presentation.tx 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. <div class="post <: $style :>">
  2. :if ( !$post.addpost ) {
  3. : include "post_title.tx";
  4. : include "post_tags.tx";
  5. : if ( !$nochrome ) {
  6. : if ( !$post.video_href && !$post.is_image && !$post.is_video && !$post.is_profile && $post.preview ) {
  7. <img src="<: $post.preview :>" class="responsive-img" loading="lazy" />
  8. : }
  9. : }
  10. :if ($nochrome) {
  11. <style>
  12. .postData {
  13. margin-top:0px;
  14. }
  15. .responsive-text {
  16. max-width:100vw !important;
  17. }
  18. .post {
  19. height:100vh;
  20. }
  21. </style>
  22. <div class="reveal postData responsive-text" id="postData-<: $post.id :>">
  23. <div class="slides">
  24. <: for $post.data -> $slide { :>
  25. <section>
  26. <: render_it($slide) | mark_raw :>
  27. </section>
  28. <: } :>
  29. </div>
  30. </div>
  31. <script>
  32. Reveal.initialize({
  33. hash:true,
  34. embed:true
  35. });
  36. </script>
  37. : } else {
  38. <br />
  39. <a href="/posts/<: $post.id :>?embed=1&nochrome=1">Click Here to view</a>
  40. : }
  41. : }
  42. : if ( $can_edit && !$nochrome ) {
  43. <div class="postedit">
  44. : include "edit_head.tx";
  45. <form class="Submissions" action="/post/save" method="POST" enctype="multipart/form-data">
  46. Title *<br /><input required class="cooltext" type="text" name="title" placeholder="Iowa Man Destroys Moon" value="<: $post.title :>" />
  47. : include "preview.tx";
  48. Video<br /><input class="cooltext" type="url" name="video_href" placeholder="https://youvimeo.tv/infomercial.mp4" value="<: $post.video_href :>" />
  49. : include "attachments.tx";
  50. : include "visibility.tx";
  51. : include "acls.tx";
  52. : include "tags.tx";
  53. : include "aliases.tx"
  54. : include "form_multi.tx";
  55. </form>
  56. : include "edit_foot.tx";
  57. </div>
  58. : }
  59. </div>