microblog.tx 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <div class="post <: $style :>">
  2. :if ( !$post.addpost ) {
  3. : include "post_title.tx";
  4. : if ( !$post.video_href && !$post.is_image && !$post.is_video && !$post.is_profile && $post.preview ) {
  5. <div style="background-image:url(<: $post.preview :>);" class="responsive preview"></div>
  6. : }
  7. : if ( $post.video_href ) {
  8. <video preload="none" class="responsive" controls poster="<: $post.preview :>" >
  9. <source src="<: $post.video_href :>" type="<: $post.video_content_type :>" />
  10. Your browser does not support the video tag.
  11. </video>
  12. : }
  13. : if ( $post.audio_href ) {
  14. <audio controls>
  15. <source src="<: $post.audio_href :>" type="<: $post.audio_content_type :>" />
  16. Your browser does not support the audio tag.
  17. </audio>
  18. : }
  19. : if ( !!$post.data ) {
  20. <div id="postData-<: $post.id :>">
  21. <: render_it($post.data) | mark_raw :>
  22. </div>
  23. : }
  24. : }
  25. : if ( $can_edit ) {
  26. : include "edit_head.tx";
  27. <form class="Submissions" action="/post/save" method="POST" enctype="multipart/form-data">
  28. Title *<br /><input required class="cooltext" type="text" name="title" placeholder="Iowa Man Destroys Moon" value="<: $post.title :>" />
  29. URL *<br /><input required class="cooltext" type="href" name="href" placeholder="https://oneweirdtrick.scam" value="<: $post.href :>" />
  30. : include "preview.tx";
  31. Audio<br /><input class="cooltext" type="url" name="audio_href" placeholder="https://soundclod.com/static.mp3" value="<: $post.audio_href :>" />
  32. Video<br /><input class="cooltext" type="url" name="video_href" placeholder="https://youvimeo.tv/infomercial.mp4" value="<: $post.video_href :>" />
  33. : include "acls.tx";
  34. : include "tags.tx";
  35. : include "form_common.tx";
  36. </form>
  37. :include "edit_foot.tx"
  38. : }
  39. </div>