You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

125 lines
4.8 KiB

  1. {if="isset($attachements.pictures)"}
  2. <header
  3. class="big"
  4. style="
  5. background-image: url('{$attachements['pictures'][0]['href']}');">
  6. </header>
  7. {/if}
  8. <article>
  9. <header>
  10. <ul class="thick">
  11. <li class="condensed">
  12. {if="$post->node == 'urn:xmpp:microblog:0'"}
  13. <a href="{$c->route('contact', $post->getContact()->jid)}">
  14. {$url = $post->getContact()->getPhoto('s')}
  15. {if="$url"}
  16. <span class="icon bubble">
  17. <img src="{$url}">
  18. </span>
  19. {else}
  20. <span class="icon bubble color {$post->getContact()->jid|stringToColor}">
  21. <i class="md md-person"></i>
  22. </span>
  23. {/if}
  24. </a>
  25. {else}
  26. <!--<a href="{$c->route('node', array($post->jid, $post->node))}">-->
  27. <span class="icon bubble color {$post->node|stringToColor}">{$post->node|firstLetterCapitalize}</span>
  28. <!--</a>-->
  29. {/if}
  30. <span {if="$post->title != null"}title="{$post->title|strip_tags}"{/if}>
  31. {if="$post->title != null"}
  32. {$post->title}
  33. {else}
  34. {$c->__('post.default_title')}
  35. {/if}
  36. </span>
  37. <p>
  38. {if="$post->node == 'urn:xmpp:microblog:0' && $post->getContact()->getTrueName() != ''"}
  39. <a href="{$c->route('contact', $post->getContact()->jid)}">{$post->getContact()->getTrueName()}</a> -
  40. {/if}
  41. {$post->published|strtotime|prepareDate}
  42. </p>
  43. </li>
  44. </ul>
  45. </header>
  46. <section>
  47. {$post->contentcleaned}
  48. </section>
  49. <footer>
  50. <ul class="middle divided spaced">
  51. {if="isset($attachements.links)"}
  52. {loop="$attachements.links"}
  53. <li>
  54. <span class="icon small"><img src="http://icons.duckduckgo.com/ip2/{$value.url.host}.ico"/></span>
  55. <a href="{$value.href}" class="alternate" target="_blank">
  56. <span>{$value.href|urldecode}</span>
  57. </a>
  58. </li>
  59. {/loop}
  60. {/if}
  61. {if="isset($attachements.files)"}
  62. {loop="$attachements.files"}
  63. <li>
  64. <a
  65. href="{$value.href}"
  66. class="enclosure"
  67. type="{$value.type}"
  68. target="_blank">
  69. <span class="icon small gray">
  70. <span class="md md-attach-file"></span>
  71. </span>
  72. <span>{$value.href|urldecode}</span>
  73. </a>
  74. </li>
  75. {/loop}
  76. {/if}
  77. {if="isset($attachements.pictures)"}
  78. {loop="$attachements.pictures"}
  79. <li>
  80. <a href="{$value.href}">
  81. <img
  82. src="{$value.href}"
  83. rel="{$value.rel}"
  84. type="{$value.type}"/>
  85. </a>
  86. </li>
  87. {/loop}
  88. {/if}
  89. </ul>
  90. {if="$post->isMine()"}
  91. <ul class="thick">
  92. <li class="action">
  93. <form>
  94. <div class="action">
  95. <div class="checkbox">
  96. <input
  97. type="checkbox"
  98. id="privacy"
  99. name="privacy"
  100. {if="$post->privacy"}
  101. checked
  102. {/if}
  103. onclick="Post_ajaxTogglePrivacy('{$post->nodeid}')">
  104. <label for="privacy"></label>
  105. </div>
  106. </div>
  107. </form>
  108. <span class="icon bubble color red">
  109. <i class="md md-public"></i>
  110. </span>
  111. <span>
  112. <a target="_blank" href="{$c->route('blog', array($post->origin))}">
  113. {$c->__('post.public')}
  114. </a>
  115. </span>
  116. </li>
  117. </ul>
  118. {/if}
  119. </footer>
  120. <div id="comments"></div>
  121. </article>