Browse files

# Removed stale cc_menu.tpl from lightweight template and added

# template hooks to cc_index.tpl.
  • Loading branch information...
1 parent e4dddfc commit c7ae0094fdfe4a44e92e441906692ca8a14f0066 mmakaay committed Jan 3, 2008
Showing with 6 additions and 40 deletions.
  1. +6 −0 templates/lightweight/cc_index.tpl
  2. +0 −40 templates/lightweight/cc_menu.tpl
View
6 templates/lightweight/cc_index.tpl
@@ -1,3 +1,4 @@
+<!-- BEGIN TEMPLATE cc_index.tpl -->
<div class="nav">
{IF URL->INDEX}<a class="icon icon-folder" href="{URL->INDEX}">{LANG->ForumList}</a>{/IF}
{IF FORUM_ID}<a class="icon icon-list" href="{URL->LIST}">{LANG->MessageList}</a>{/IF}
@@ -26,6 +27,7 @@
<ul>
<li><a {IF PROFILE->PANEL "forum"}class="current" {/IF}href="{URL->CC6}">{LANG->EditBoardsettings}</a></li>
<li><a {IF PROFILE->PANEL "password"}class="current" {/IF}href="{URL->CC7}">{LANG->ChangePassword}</a></li>
+ {HOOK "tpl_cc_menu_options_hook"}
</ul>
{IF MYFILES}
@@ -47,19 +49,23 @@
{IF GROUP_MODERATOR}
<li><a {IF PROFILE->PANEL "groupmod"}class="current" {/IF}href="{URL->CC15}">{LANG->GroupMembership}</a></li>
{/IF}
+ {HOOK "tpl_cc_menu_moderator_hook"}
</ul>
{/IF}
+
</div>
</td>
<td class="content">
{IF content_template}
{INCLUDE content_template}
+ <!-- CONTINUE TEMPLATE cc_index.tpl -->
{ELSE}
<div class="information">{OKMSG}</div>
{/IF}
</td>
</tr>
</table>
+<!-- END TEMPLATE cc_index.tpl -->
View
40 templates/lightweight/cc_menu.tpl
@@ -1,40 +0,0 @@
-<div class="phorum-menu" style="text-align: left;">
- {LANG->PersProfile}
- <ul>
- <li><a {IF PROFILE->PANEL "summary"}class="phorum-current-page" {/IF}href="{URL->CC0}">{LANG->ViewProfile}</a></li>
- <li><a {IF PROFILE->PANEL "user"}class="phorum-current-page" {/IF}href="{URL->CC3}">{LANG->EditUserinfo}</a></li>
- <li><a {IF PROFILE->PANEL "sig"}class="phorum-current-page" {/IF}href="{URL->CC4}">{LANG->EditSignature}</a></li>
- <li><a {IF PROFILE->PANEL "email"}class="phorum-current-page" {/IF}href="{URL->CC5}">{LANG->EditMailsettings}</a></li>
- <li><a {IF PROFILE->PANEL "privacy"}class="phorum-current-page" {/IF}href="{URL->CC14}">{LANG->EditPrivacy}</a></li>
- <li><a {IF PROFILE->PANEL "groups"}class="phorum-current-page" {/IF}href="{URL->CC16}">{LANG->ViewJoinGroups}</a></li>
- </ul>
- {LANG->Subscriptions}
- <ul>
- <li><a {IF PROFILE->PANEL "subthreads"}class="phorum-current-page" {/IF}href="{URL->CC1}">{LANG->ListThreads}</a></li>
- </ul>
- {LANG->Options}
- <ul>
- <li><a {IF PROFILE->PANEL "forum"}class="phorum-current-page" {/IF}href="{URL->CC6}">{LANG->EditBoardsettings}</a></li>
- <li><a {IF PROFILE->PANEL "password"}class="phorum-current-page" {/IF}href="{URL->CC7}">{LANG->ChangePassword}</a></li>
- </ul>
- {IF MYFILES}
- {LANG->Files}
- <ul>
- <li><a {IF PROFILE->PANEL "files"}class="phorum-current-page" {/IF}href="{URL->CC9}">{LANG->EditMyFiles}</a></li>
- </ul>
- {/IF}
- {IF MODERATOR}
- {LANG->Moderate}
- <ul>
- {IF MESSAGE_MODERATOR}
- <li><a {IF PROFILE->PANEL "messages"}class="phorum-current-page" {/IF}href="{URL->CC8}">{LANG->UnapprovedMessages}</a></li>
- {/IF}
- {IF USER_MODERATOR}
- <li><a {IF PROFILE->PANEL "users"}class="phorum-current-page" {/IF}href="{URL->CC10}">{LANG->UnapprovedUsers}</a></li>
- {/IF}
- {IF GROUP_MODERATOR}
- <li><a {IF PROFILE->PANEL "membership"}class="phorum-current-page" {/IF}href="{URL->CC15}">{LANG->GroupMembership}</a></li>
- {/IF}
- </ul>
- {/IF}
-</div>

0 comments on commit c7ae009

Please sign in to comment.