mirror of
https://github.com/wbbaddons/Tims-Chat.git
synced 2025-01-09 00:20:08 +00:00
Use PACKAGE_VERSION
This commit is contained in:
parent
8770affe56
commit
71936e14d6
@ -14,13 +14,6 @@
|
|||||||
* @subpackage page
|
* @subpackage page
|
||||||
*/
|
*/
|
||||||
class ChatPage extends \wcf\page\AbstractPage {
|
class ChatPage extends \wcf\page\AbstractPage {
|
||||||
/**
|
|
||||||
* The version of this installation of Tims Chat 3.
|
|
||||||
*
|
|
||||||
* @var string
|
|
||||||
*/
|
|
||||||
public $chatVersion = '';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see wcf\page\AbstractPage::$loginRequired
|
* @see wcf\page\AbstractPage::$loginRequired
|
||||||
*/
|
*/
|
||||||
@ -101,7 +94,6 @@ public function assignVariables() {
|
|||||||
parent::assignVariables();
|
parent::assignVariables();
|
||||||
|
|
||||||
WCF::getTPL()->assign(array(
|
WCF::getTPL()->assign(array(
|
||||||
'chatVersion' => $this->chatVersion,
|
|
||||||
'newestMessages' => $this->newestMessages,
|
'newestMessages' => $this->newestMessages,
|
||||||
'room' => $this->room,
|
'room' => $this->room,
|
||||||
'roomID' => $this->roomID,
|
'roomID' => $this->roomID,
|
||||||
@ -113,13 +105,6 @@ public function assignVariables() {
|
|||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Reads chat-version. Used to avoid caching of JS-File when Tims Chat is updated.
|
|
||||||
*/
|
|
||||||
public function readChatVersion() {
|
|
||||||
return $this->chatVersion = \wcf\data\package\PackageCache::getInstance()->getPackage(\chat\util\ChatUtil::getPackageID())->packageVersion;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see \wcf\page\IPage::readData()
|
* @see \wcf\page\IPage::readData()
|
||||||
*/
|
*/
|
||||||
|
@ -66,7 +66,7 @@ Hinweis: Setzen Sie diese Einstellung nur, wenn Sie wissen, was sie bewirkt. Die
|
|||||||
<item name="chat.general.rooms"><![CDATA[Räume]]></item>
|
<item name="chat.general.rooms"><![CDATA[Räume]]></item>
|
||||||
<item name="chat.general.users"><![CDATA[Nutzer]]></item>
|
<item name="chat.general.users"><![CDATA[Nutzer]]></item>
|
||||||
|
|
||||||
<item name="chat.general.copyright"><![CDATA[<a href="http://tims.bastelstu.be"><strong>Tims Chat</strong>{if CHAT_SHOW_VERSION && $chatVersion|isset} {$chatVersion}{/if}, entwickelt in <strong>Tims Bastelstube</strong></a>]]></item>
|
<item name="chat.general.copyright"><![CDATA[<a href="http://tims.bastelstu.be"><strong>Tims Chat</strong>{if SHOW_VERSION_NUMBER} {PACKAGE_VERSION}{/if}, entwickelt in <strong>Tims Bastelstube</strong></a>]]></item>
|
||||||
<item name="chat.general.copyright.leader"><![CDATA[Projektleiter]]></item>
|
<item name="chat.general.copyright.leader"><![CDATA[Projektleiter]]></item>
|
||||||
<item name="chat.general.copyright.developer"><![CDATA[Entwickler]]></item>
|
<item name="chat.general.copyright.developer"><![CDATA[Entwickler]]></item>
|
||||||
<item name="chat.general.copyright.graphics"><![CDATA[Grafisches]]></item>
|
<item name="chat.general.copyright.graphics"><![CDATA[Grafisches]]></item>
|
||||||
|
@ -43,11 +43,9 @@
|
|||||||
|
|
||||||
$('#timsChatCopyright').click(function (event) {
|
$('#timsChatCopyright').click(function (event) {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
if ($.wcfIsset('timsChatCopyrightDialog')) return WCF.showDialog('timsChatCopyrightDialog', { title: 'Tims Chat{if CHAT_SHOW_VERSION && $chatVersion|isset} {$chatVersion}{/if}' });
|
if (!$.wcfIsset('timsChatCopyrightDialog')) $('<fieldset id="timsChatCopyrightDialog"></fieldset>').appendTo('body');
|
||||||
var container = $('<fieldset id="timsChatCopyrightDialog"></fieldset>');
|
$('#timsChatCopyrightDialog').load('{link application='chat' controller='Chat' action='Copyright'}{/link}', function() {
|
||||||
container.load('{link application='chat' controller='Chat' action='Copyright'}{/link}', function() {
|
WCF.showDialog('timsChatCopyrightDialog', { title: 'Tims Chat{if SHOW_VERSION_NUMBER} {PACKAGE_VERSION}{/if}' });
|
||||||
$('body').append(container);
|
|
||||||
WCF.showDialog('timsChatCopyrightDialog', { title: 'Tims Chat{if CHAT_SHOW_VERSION && $chatVersion|isset} {$chatVersion}{/if}' });
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<script type="text/javascript" src="{@$__wcf->getPath('chat')}js/be.bastelstu.Chat.js{if $chatVersion|isset}?version={$chatVersion|urlencode}{/if}"></script>
|
<script type="text/javascript" src="{@$__wcf->getPath('chat')}js/be.bastelstu.Chat.js?version={PACKAGE_VERSION|urlencode}{/if}"></script>
|
||||||
<script type="text/javascript" src="{@$__wcf->getPath('chat')}js/jCounter.jQuery.js"></script>
|
<script type="text/javascript" src="{@$__wcf->getPath('chat')}js/jCounter.jQuery.js"></script>
|
||||||
{if CHAT_SOCKET_IO_PATH}<script type="text/javascript" src="{CHAT_SOCKET_IO_PATH}/socket.io/socket.io.js"></script>{/if}
|
{if CHAT_SOCKET_IO_PATH}<script type="text/javascript" src="{CHAT_SOCKET_IO_PATH}/socket.io/socket.io.js"></script>{/if}
|
||||||
<script type="text/javascript" src="{@$__wcf->getPath('chat')}js/be.bastelstu.Chat.Log.js{if $chatVersion|isset}?version={$chatVersion|urlencode}{/if}"></script>
|
<script type="text/javascript" src="{@$__wcf->getPath('chat')}js/be.bastelstu.Chat.Log.js?version={PACKAGE_VERSION|urlencode}"></script>
|
||||||
{event name='javascript'}
|
{event name='javascript'}
|
Loading…
Reference in New Issue
Block a user