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

Use the new sidebar methods

This commit is contained in:
Tim Düsterhus 2011-12-18 16:47:50 +01:00
parent bc386af3d5
commit 1b3206f81b

View File

@ -227,50 +227,44 @@
</head> </head>
<body id="tpl{$templateName|ucfirst}"> <body id="tpl{$templateName|ucfirst}">
{capture assign='sidebar'}<aside class="sidebar"> {capture assign='sidebar'}
<div id="sidebar"> <nav class="chatSidebarTabs">
<nav class="chatSidebarTabs"> <ul>
<ul> <li id="toggleUsers" class="active"><a href="javascript:;" title="{lang}wcf.chat.users{/lang}">{lang}wcf.chat.users{/lang}</a></li>
<li id="toggleUsers" class="active"><a href="javascript:;" title="{lang}wcf.chat.users{/lang}">{lang}wcf.chat.users{/lang}</a></li> <li id="toggleRooms"><a href="javascript:;" title="{lang}wcf.chat.rooms{/lang}" data-refresh-url="{link controller="Chat" action="RefreshRoomList"}{/link}">{lang}wcf.chat.rooms{/lang}</a></li>
<li id="toggleRooms"><a href="javascript:;" title="{lang}wcf.chat.rooms{/lang}" data-refresh-url="{link controller="Chat" action="RefreshRoomList"}{/link}">{lang}wcf.chat.rooms{/lang}</a></li> </ul>
</ul> </nav>
</nav>
<div id="sidebarContainer"> <div id="sidebarContainer">
<ul id="chatUserList"> <ul id="chatUserList">
{section name=user start=1 loop=26} {section name=user start=1 loop=26}
<li id="user-{$user}" class="chatUser"> <li id="user-{$user}" class="chatUser">
<span class="bgFix"><a class="chatUserLink" href="javascript:;">User {$user}</a></span> <span class="bgFix"><a class="chatUserLink" href="javascript:;">User {$user}</a></span>
<ul class="chatUserMenu"> <ul class="chatUserMenu">
<li> <li>
<a href="javascript:;">Query</a> <a href="javascript:;">Query</a>
<a href="javascript:;">Kick</a> <a href="javascript:;">Kick</a>
<a href="javascript:;">Ban</a> <a href="javascript:;">Ban</a>
<a href="{link controller="User" id=$user}{/link}">Profile</a> <a href="{link controller="User" id=$user}{/link}">Profile</a>
</li>
</ul>
</li> </li>
{/section}
</ul> </ul>
<nav id="chatRoomList" class="sidebarMenu hidden"> </li>
<div> {/section}
<ul> </ul>
{foreach from=$rooms item='roomListRoom'} <nav id="chatRoomList" class="sidebarMenu hidden">
<li{if $roomListRoom->roomID == $room->roomID} class="activeMenuItem"{/if}> <div>
<a href="{link controller='Chat' object=$roomListRoom}{/link}" class="chatRoom">{$roomListRoom}</a> <ul>
</li> {foreach from=$rooms item='roomListRoom'}
{/foreach} <li{if $roomListRoom->roomID == $room->roomID} class="activeMenuItem"{/if}>
</ul> <a href="{link controller='Chat' object=$roomListRoom}{/link}" class="chatRoom">{$roomListRoom}</a>
</div> </li>
</nav> {/foreach}
</ul>
</div> </div>
</div> </nav>
</aside> </div>
<!-- CONTENT -->{/capture} {/capture}
{capture assign='header'}{include file='header' sandbox=false}{/capture} {include file='header' sandbox=false sidebarDirection='left'}
{assign var='header' value='class="main"'|str_replace:'class="main left"':$header}
{assign var='header' value='<!-- CONTENT -->'|str_replace:$sidebar:$header}
{@$header}
<div id="chatRoomContent"> <div id="chatRoomContent">
<div id="topic" class="border"{if $room->topic|language === ''} style="display: none;"{/if}>{$room->topic|language}</div> <div id="topic" class="border"{if $room->topic|language === ''} style="display: none;"{/if}>{$room->topic|language}</div>
@ -343,7 +337,7 @@
} }
$('#chatInput').jCounter($('#chatInput').attr('maxlength'), { container: '.counter' }); $('#chatInput').jCounter($('#chatInput').attr('maxlength'), { container: '.counter' });
$('#sidebar').wcfSidebar(); $('.sidebar').wcfSidebar();
//]]> //]]>
</script> </script>