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.

47 lines
1.7 KiB

  1. {if="$comments"}
  2. <ul class="list divided spaced middle">
  3. <li class="subheader">
  4. <p>
  5. <span class="info">{$comments|count}</span>
  6. {$c->__('post.comments')}
  7. </p>
  8. </li>
  9. {loop="$comments"}
  10. {if="$value->title || $value->contentraw"}
  11. <li>
  12. {if="$value->isLike()"}
  13. <span class="primary icon small red">
  14. <i class="zmdi zmdi-favorite"></i>
  15. </span>
  16. {else}
  17. {$url = $value->getContact()->getPhoto('s')}
  18. {if="$url"}
  19. <span class="primary icon small bubble">
  20. <img src="{$url}">
  21. </span>
  22. {else}
  23. <span class="primary icon small bubble color {$value->getContact()->jid|stringToColor}">
  24. <i class="zmdi zmdi-account"></i>
  25. </span>
  26. {/if}
  27. {/if}
  28. <p class="normal line">
  29. <span class="info" title="{$value->published|strtotime|prepareDate}">
  30. {$value->published|strtotime|prepareDate:true,true}
  31. </span>
  32. {$value->getContact()->getTrueName()}
  33. </p>
  34. {if="!$value->isLike()"}
  35. <p class="all">
  36. {if="$value->title"}
  37. {$value->title}
  38. {else}
  39. {$value->contentraw}
  40. {/if}
  41. </p>
  42. {/if}
  43. </li>
  44. {/if}
  45. {/loop}
  46. </ul><br />
  47. {/if}