1
0
mirror of https://github.com/wbbaddons/Tims-Chat.git synced 2024-10-31 14:10:08 +00:00

Don't use RELATIVE_WCF_DIR

To comply with WoltLab/WCF@ef1f1061b6
This commit is contained in:
Tim Düsterhus 2012-02-05 21:54:37 +01:00
parent d0800739bb
commit f5a7f6d940
5 changed files with 13 additions and 13 deletions

View File

@ -1,7 +1,7 @@
{include file='header'} {include file='header'}
<header class="wcf-mainHeading"> <header class="wcf-mainHeading">
<img src="{@RELATIVE_WCF_DIR}icon/{$action}1.svg" alt="" /> <img src="{@$__wcf->getPath('wcf')}icon/{$action}1.svg" alt="" />
<hgroup> <hgroup>
<h1>{lang}wcf.acp.chat.room.{$action}{/lang}</h1> <h1>{lang}wcf.acp.chat.room.{$action}{/lang}</h1>
</hgroup> </hgroup>
@ -18,7 +18,7 @@
<div class="wcf-contentHeader"> <div class="wcf-contentHeader">
<nav> <nav>
<ul class="wcf-largeButtons"> <ul class="wcf-largeButtons">
<li><a href="{link controller='ChatRoomList'}{/link}" title="{lang}wcf.acp.menu.link.chat.room.list{/lang}" class="wcf-button"><img src="{@RELATIVE_WCF_DIR}icon/chat1.svg" alt="" /> <span>{lang}wcf.acp.menu.link.chat.room.list{/lang}</span></a></li> <li><a href="{link controller='ChatRoomList'}{/link}" title="{lang}wcf.acp.menu.link.chat.room.list{/lang}" class="wcf-button"><img src="{@$__wcf->getPath('wcf')}icon/chat1.svg" alt="" /> <span>{lang}wcf.acp.menu.link.chat.room.list{/lang}</span></a></li>
</ul> </ul>
</nav> </nav>
</div> </div>

View File

@ -1,7 +1,7 @@
{include file='header'} {include file='header'}
<header class="wcf-mainHeading"> <header class="wcf-mainHeading">
<img src="{@RELATIVE_WCF_DIR}icon/chat1.svg" alt="" /> <img src="{@$__wcf->getPath('wcf')}icon/chat1.svg" alt="" />
<hgroup> <hgroup>
<h1>{lang}wcf.acp.chat.room.list{/lang}</h1> <h1>{lang}wcf.acp.chat.room.list{/lang}</h1>
</hgroup> </hgroup>
@ -22,7 +22,7 @@
{if $__wcf->session->getPermission('admin.content.chat.canAddRoom')} {if $__wcf->session->getPermission('admin.content.chat.canAddRoom')}
<nav> <nav>
<ul class="wcf-largeButtons"> <ul class="wcf-largeButtons">
<li><a href="{link controller='ChatRoomAdd'}{/link}" title="{lang}wcf.acp.chat.room.add{/lang}" class="wcf-button"><img src="{@RELATIVE_WCF_DIR}icon/add1.svg" alt="" /> <span>{lang}wcf.acp.chat.room.add{/lang}</span></a></li> <li><a href="{link controller='ChatRoomAdd'}{/link}" title="{lang}wcf.acp.chat.room.add{/lang}" class="wcf-button"><img src="{@$__wcf->getPath('wcf')}icon/add1.svg" alt="" /> <span>{lang}wcf.acp.chat.room.add{/lang}</span></a></li>
</ul> </ul>
</nav> </nav>
{/if} {/if}
@ -50,14 +50,14 @@
<tr class="chatRoomRow"> <tr class="chatRoomRow">
<td class="columnIcon"> <td class="columnIcon">
{if $__wcf->session->getPermission('admin.content.chat.canEditRoom')} {if $__wcf->session->getPermission('admin.content.chat.canEditRoom')}
<a href="{link controller='ChatRoomEdit' id=$chatRoom->roomID}{/link}"><img src="{@RELATIVE_WCF_DIR}icon/edit1.svg" alt="" title="{lang}wcf.global.button.edit{/lang}" class="balloonTooltip" /></a> <a href="{link controller='ChatRoomEdit' id=$chatRoom->roomID}{/link}"><img src="{@$__wcf->getPath('wcf')}icon/edit1.svg" alt="" title="{lang}wcf.global.button.edit{/lang}" class="balloonTooltip" /></a>
{else} {else}
<img src="{@RELATIVE_WCF_DIR}icon/edit1D.svg" alt="" title="{lang}wcf.global.button.edit{/lang}" /> <img src="{@$__wcf->getPath('wcf')}icon/edit1D.svg" alt="" title="{lang}wcf.global.button.edit{/lang}" />
{/if} {/if}
{if $__wcf->session->getPermission('admin.content.chat.canDeleteRoom')} {if $__wcf->session->getPermission('admin.content.chat.canDeleteRoom')}
<img src="{@RELATIVE_WCF_DIR}icon/delete1.svg" alt="" title="{lang}wcf.global.button.delete{/lang}" class="deleteButton balloonTooltip" data-object-id="{@$chatRoom->roomID}" data-confirm-message="{lang}wcf.acp.bbcode.delete.sure{/lang}" /> <img src="{@$__wcf->getPath('wcf')}icon/delete1.svg" alt="" title="{lang}wcf.global.button.delete{/lang}" class="deleteButton balloonTooltip" data-object-id="{@$chatRoom->roomID}" data-confirm-message="{lang}wcf.acp.bbcode.delete.sure{/lang}" />
{else} {else}
<img src="{@RELATIVE_WCF_DIR}icon/delete1D.svg" alt="" title="{lang}wcf.global.button.delete{/lang}" /> <img src="{@$__wcf->getPath('wcf')}icon/delete1D.svg" alt="" title="{lang}wcf.global.button.delete{/lang}" />
{/if} {/if}
{event name='buttons'} {event name='buttons'}
@ -80,7 +80,7 @@
{if $__wcf->session->getPermission('admin.content.chat.canAddRoom')} {if $__wcf->session->getPermission('admin.content.chat.canAddRoom')}
<nav> <nav>
<ul class="wcf-largeButtons"> <ul class="wcf-largeButtons">
<li><a href="{link controller='ChatRoomAdd'}{/link}" title="{lang}wcf.acp.chat.room.add{/lang}" class="wcf-button"><img src="{@RELATIVE_WCF_DIR}icon/add1.svg" alt="" /> <span>{lang}wcf.acp.chat.room.add{/lang}</span></a></li> <li><a href="{link controller='ChatRoomAdd'}{/link}" title="{lang}wcf.acp.chat.room.add{/lang}" class="wcf-button"><img src="{@$__wcf->getPath('wcf')}icon/add1.svg" alt="" /> <span>{lang}wcf.acp.chat.room.add{/lang}</span></a></li>
</ul> </ul>
</nav> </nav>
{/if} {/if}

View File

@ -82,7 +82,7 @@ public function save() {
// update room // update room
$chatRoomAction = new \wcf\data\chat\room\ChatRoomEditor(array($this->roomID), 'update', array('data' => array( $chatRoomAction = new \wcf\data\chat\room\ChatRoomAction(array($this->roomID), 'update', array('data' => array(
'title' => $this->title, 'title' => $this->title,
'topic' => $this->topic 'topic' => $this->topic
))); )));

View File

@ -5,7 +5,7 @@
{include file='headInclude' sandbox=false} {include file='headInclude' sandbox=false}
<style type="text/css"> <style type="text/css">
@import url("{@RELATIVE_WCF_DIR}style/timwolla.wcf.chat.css"); @import url("{@$__wcf->getPath('wcf')}style/timwolla.wcf.chat.css");
#timsChatCopyrightDialog { #timsChatCopyrightDialog {
background-image: url("{link controller='Chat' action='Copyright' sheep=1}{/link}"); background-image: url("{link controller='Chat' action='Copyright' sheep=1}{/link}");
background-position: right 45px; background-position: right 45px;

View File

@ -1,2 +1,2 @@
<script type="text/javascript" src="{@RELATIVE_WCF_DIR}js/TimWolla.WCF.Chat.js{if $chatVersion|isset}?version={$chatVersion|urlencode}{/if}"></script> <script type="text/javascript" src="{@$__wcf->getPath('wcf')}js/TimWolla.WCF.Chat.js{if $chatVersion|isset}?version={$chatVersion|urlencode}{/if}"></script>
<script type="text/javascript" src="{@RELATIVE_WCF_DIR}js/jCounter.jQuery.js"></script> <script type="text/javascript" src="{@$__wcf->getPath('wcf')}js/jCounter.jQuery.js"></script>