1
0
mirror of https://github.com/wbbaddons/Tims-Chat.git synced 2024-12-22 21:40:08 +00:00

Replaced buttons in sidebar with links in headerNavigation

This commit is contained in:
max-m 2011-12-15 22:13:58 +01:00
parent eed48c4a34
commit 4b555beb60
3 changed files with 10 additions and 2 deletions

View File

@ -141,8 +141,6 @@
<body id="tpl{$templateName|ucfirst}"> <body id="tpl{$templateName|ucfirst}">
{capture assign='sidebar'}<aside class="sidebar"> {capture assign='sidebar'}<aside class="sidebar">
<div id="sidebar"> <div id="sidebar">
<button title="{lang}wcf.chat.title{/lang}" value="{link controller="Chat"}{/link}">{lang}wcf.chat.title{/lang}</button>
<button title="{lang}wcf.chat.protocol{/lang}" value="{link controller="Chat" action="Log"}{/link}">{lang}wcf.chat.protocol{/lang}</button>
<h2>{lang}wcf.chat.users{/lang}</h2> <h2>{lang}wcf.chat.users{/lang}</h2>
<ul id="chatUserList"> <ul id="chatUserList">
{section name=user start=1 loop=11} {section name=user start=1 loop=11}

View File

@ -0,0 +1,4 @@
{if $templateName == 'chat'}
<li><a href="{link controller="Chat" action="Log"}{/link}" title="{lang}wcf.chat.protocol{/lang}" class="balloonTooltip"><img src="{icon size='S'}chat1{/icon}" alt="" /> <span>{lang}wcf.chat.protocol{/lang}</span></a></li>
<li><a href="{link controller="Chat"}{/link}" title="{lang}wcf.chat.title{/lang}" class="balloonTooltip"><img src="{icon size='S'}chat1{/icon}" alt="" /> <span>{lang}wcf.chat.title{/lang}</span></a></li>
{/if}

View File

@ -13,5 +13,11 @@
<eventname>copyright</eventname> <eventname>copyright</eventname>
<templatecode><![CDATA[{include file='chatCopyright'}]]></templatecode> <templatecode><![CDATA[{include file='chatCopyright'}]]></templatecode>
</templatelistener> </templatelistener>
<templatelistener name="chatHeaderNavigation">
<environment>user</environment>
<templatename>header</templatename>
<eventname>headerNavigation</eventname>
<templatecode><![CDATA[{include file='chatNavigationInclude'}]]></templatecode>
</templatelistener>
</import> </import>
</data> </data>