microblog.tx 2.1 KB

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