blog.tx 1.0 KB

12345678910111213141516171819202122232425262728
  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" />
  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 "acls.tx";
  19. : include "tags.tx";
  20. : include "form_common.tx";
  21. </form>
  22. : include "edit_foot.tx";
  23. </div>
  24. : }
  25. </div>