presentation.tx 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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 src="/scripts/reveal.js"></script>
  32. <script>
  33. Reveal.initialize({
  34. hash:true,
  35. embed:true
  36. });
  37. </script>
  38. : } else {
  39. <br />
  40. <a href="/posts/<: $post.id :>?embed=1&nochrome=1">Click Here to view</a>
  41. : }
  42. : }
  43. : if ( $can_edit && !$nochrome ) {
  44. <div class="postedit">
  45. : include "edit_head.tx";
  46. <form class="Submissions" action="/post/save" method="POST" enctype="multipart/form-data">
  47. Title *<br /><input required class="cooltext" type="text" name="title" placeholder="Iowa Man Destroys Moon" value="<: $post.title :>" />
  48. : include "preview.tx";
  49. Video<br /><input class="cooltext" type="url" name="video_href" placeholder="https://youvimeo.tv/infomercial.mp4" value="<: $post.video_href :>" />
  50. : include "attachments.tx";
  51. : include "visibility.tx";
  52. : include "acls.tx";
  53. : include "tags.tx";
  54. : include "aliases.tx"
  55. : include "form_multi.tx";
  56. </form>
  57. : include "edit_foot.tx";
  58. </div>
  59. : }
  60. </div>