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.

130 lines
5.3 KiB

  1. <div id="hello_widget" class="divided">
  2. <ul class="flex active middle">
  3. <li class="subheader block large">Active contacts</li>
  4. {loop="$top"}
  5. <li tabindex="{$key+1}" class="block action {if="$value->getPlace()"}condensed{/if}"
  6. onclick="Hello_ajaxChat('{$value->jid}')">
  7. {$url = $value->getPhoto('s')}
  8. {if="$url"}
  9. <span
  10. class="icon bubble
  11. {if="$value->value"}
  12. status {$presencestxt[$value->value]}
  13. {/if}">
  14. <img src="{$url}">
  15. </span>
  16. {else}
  17. <span
  18. class="icon bubble color {$value->jid|stringToColor}
  19. {if="$value->value"}
  20. status {$presencestxt[$value->value]}
  21. {/if}">
  22. <i class="md md-person"></i>
  23. </span>
  24. {/if}
  25. <span>{$value->getTrueName()}</span>
  26. <p class="wrap">{$value->getPlace()}</p>
  27. </li>
  28. {/loop}
  29. <a class="block large" href="{$c->route('chat')}">
  30. <li>
  31. <span class="icon">
  32. <i class="md md-forum"></i>
  33. </span>
  34. <span>{$c->__('hello.chat')}</span>
  35. </li>
  36. </a>
  37. </ul>
  38. {if="$c->supported('pubsub')"}
  39. <ul id="news" class="flex thick active">
  40. <li class="subheader block large">News</li>
  41. {loop="$news"}
  42. <li class="block condensed"
  43. data-id="{$value->nodeid}"
  44. {if="$value->title != null"}
  45. title="{$value->title|strip_tags}"
  46. {else}
  47. title="{$c->__('hello.contact_post')}"
  48. {/if}
  49. onclick="movim_reload('{$c->route('news', $value->nodeid)}')"
  50. >
  51. {if="current(explode('.', $value->origin)) == 'nsfw'"}
  52. <span class="icon bubble color red tiny">
  53. +18
  54. </span>
  55. {elseif="$value->node == 'urn:xmpp:microblog:0'"}
  56. {$url = $value->getContact()->getPhoto('s')}
  57. {if="$url"}
  58. <span class="icon bubble">
  59. <img src="{$url}">
  60. </span>
  61. {else}
  62. <span
  63. class="icon bubble color {$value->getContact()->jid|stringToColor}">
  64. <i class="md md-person"></i>
  65. </span>
  66. {/if}
  67. {else}
  68. <span class="icon bubble color {$value->node|stringToColor}">{$value->node|firstLetterCapitalize}</span>
  69. {/if}
  70. {if="$value->title != null"}
  71. <span>{$value->title}</span>
  72. {else}
  73. <span>{$c->__('hello.contact_post')}</span>
  74. {/if}
  75. <span class="info">{$value->published|strtotime|prepareDate}</span>
  76. <p class="more">
  77. {if="current(explode('.', $value->origin)) != 'nsfw'"}
  78. {$value->contentcleaned|strip_tags:'<img><img/>'}
  79. {/if}
  80. </p>
  81. </li>
  82. {/loop}
  83. <a class="block large" href="{$c->route('news')}">
  84. <li class="action">
  85. <div class="action">
  86. <i class="md md-chevron-right"></i>
  87. </div>
  88. <span class="icon">
  89. <i class="md md-view-list"></i>
  90. </span>
  91. <span>{$c->__('hello.news')}</span>
  92. </li>
  93. </a>
  94. </ul>
  95. <br />
  96. <ul class="active thick">
  97. <a href="{$c->route('blog', array($jid))}" target="_blank">
  98. <li class="condensed action">
  99. <div class="action">
  100. <i class="md md-chevron-right"></i>
  101. </div>
  102. <span class="icon">
  103. <i class="md md-wifi-tethering"></i>
  104. </span>
  105. <span>{$c->__('hello.blog_title')}</span>
  106. <p>{$c->__('hello.blog_text')}</p>
  107. </li>
  108. <br/>
  109. </a>
  110. </ul>
  111. <ul class="thick flex on_desktop">
  112. <li class="condensed block">
  113. <span class="icon bubble color blue">
  114. <i class="md md-share"></i>
  115. </span>
  116. <span>{$c->__('hello.share_title')}</span>
  117. <p>{$c->__('hello.share_text')}</p>
  118. </li>
  119. <li class="block">
  120. <a class="button" href="javascript:(function(){location.href='{$c->route('share')}&url='+encodeURIComponent(location.href);})();">
  121. <i class="md md-share"></i> {$c->__('hello.share_button')}
  122. </a>
  123. </li>
  124. </ul>
  125. {/if}
  126. </div>