blog.tx 1.1 KB

123456789101112131415161718192021222324252627282930
  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. <img src="<: $post.preview :>" class="responsive-img" loading="lazy" />
  7. : }
  8. <div class="postData responsive-text" id="postData-<: $post.id :>">
  9. <: render_it($post.data) | mark_raw :>
  10. </div>
  11. : }
  12. : if ( $can_edit ) {
  13. <div class="postedit">
  14. : include "edit_head.tx";
  15. <form class="Submissions" action="/post/save" method="POST" enctype="multipart/form-data">
  16. Title *<br /><input required class="cooltext" type="text" name="title" placeholder="Iowa Man Destroys Moon" value="<: $post.title :>" />
  17. : include "preview.tx";
  18. : include "visibility.tx";
  19. : include "acls.tx";
  20. : include "tags.tx";
  21. : include "aliases.tx";
  22. : include "form_common.tx";
  23. </form>
  24. : include "edit_foot.tx";
  25. </div>
  26. : }
  27. </div>