PageRenderTime 36ms CodeModel.GetById 10ms RepoModel.GetById 0ms app.codeStats 0ms

/templates/emerald/index_flat.tpl

https://github.com/mysnip/Core
Smarty Template | 67 lines | 64 code | 3 blank | 0 comment | 0 complexity | a77377dc97de0c43f3e3017156e99c55 MD5 | raw file
  1. <!-- BEGIN TEMPLATE index_flat.tpl -->
  2. <div class="nav">
  3. {IF URL->MARKVROOTREAD}
  4. <a onclick="return Phorum.markRead('vroots', {VROOT})" class="icon icon-tag-green" href="{URL->MARKVROOTREAD}">{LANG->MarkAllForumsRead}</a>
  5. {/IF}
  6. </div>
  7. <table cellspacing="0" class="list">
  8. {LOOP FORUMS}
  9. {IF FORUMS->level 0}
  10. <tr>
  11. {IF FORUMS->forum_id FORUMS->vroot}
  12. <th align="left">
  13. <img src="{URL->TEMPLATE}/images/folder.png" class="icon1616" alt="&bull;" />
  14. {LANG->Forums}
  15. </th>
  16. {ELSE}
  17. <th align="left">
  18. <img src="{URL->TEMPLATE}/images/folder.png" class="icon1616" alt="&bull;" />
  19. <a href="{FORUMS->URL->LIST}">{FORUMS->name}</a>
  20. </th>
  21. {/IF}
  22. <th>{LANG->Threads}</th>
  23. <th>{LANG->Posts}</th>
  24. <th align="left">{LANG->LastPost}</th>
  25. </tr>
  26. {ELSE}
  27. <tr>
  28. {IF FORUMS->folder_flag}
  29. <td colspan="4">
  30. <img src="{URL->TEMPLATE}/images/folder.png" class="icon1616" alt="&bull;" />
  31. <a href="{FORUMS->URL->INDEX}">{FORUMS->name}</a><p>{FORUMS->description}</p>
  32. </td>
  33. {ELSE}
  34. <td width="55%">
  35. <h3><a href="{FORUMS->URL->LIST}">{FORUMS->name}</a>{IF FORUMS->new_message_check}<span class="new-flag[hide,{FORUMS->forum_id}]">&nbsp;&nbsp;<span class="new-indicator">({LANG->NewMessages})</span></span>{/IF}</h3>
  36. <p>{FORUMS->description}</p>
  37. {IF FORUMS->URL->MARK_READ}<a class="icon icon-tag-green" href="{FORUMS->URL->MARK_READ}" onclick="return Phorum.markRead('forums', {FORUMS->forum_id})">{LANG->MarkForumRead}</a>&nbsp;&nbsp;&nbsp;{/IF}
  38. {IF FORUMS->URL->FEED}<a class="icon icon-feed" href="{FORUMS->URL->FEED}">{FEED}</a>{/IF}
  39. </td>
  40. <td align="center" width="12%" nowrap="nowrap">
  41. {FORUMS->thread_count}
  42. {IF FORUMS->new_threads}
  43. <span class="new-flag[hide,{FORUMS->forum_id}]">
  44. (<span class="new-flag">{FORUMS->new_threads} {LANG->newflag}</span>)
  45. </span>
  46. {/IF}
  47. </td>
  48. <td align="center" width="12%" nowrap="nowrap">
  49. {FORUMS->message_count}
  50. {IF FORUMS->new_messages}
  51. <span class="new-flag[hide,{FORUMS->forum_id}]">
  52. (<span class="new-flag">{FORUMS->new_messages} {LANG->newflag}</span>)
  53. </span>
  54. {/IF}
  55. </td>
  56. <td width="21%" nowrap="nowrap">
  57. {FORUMS->last_post}
  58. </td>
  59. {/IF}
  60. </tr>
  61. {/IF}
  62. {/LOOP FORUMS}
  63. </table>
  64. <!-- END TEMPLATE index_flat.tpl -->