mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
removing smarty - part I
- converting syntax for bricks
This commit is contained in:
@@ -1,14 +0,0 @@
|
|||||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
|
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
||||||
<head>
|
|
||||||
{include file='head.tpl'}
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<div style="text-align:center; margin:auto; width:75%; padding-top:150px">
|
|
||||||
<div style="background-image:url(static/images/logos/logo.png); width:261px; height:119px; margin:auto;"></div>
|
|
||||||
<h1>Maintenance</h1>
|
|
||||||
<div style="background-image:url(static/images/maintenance/brbgnomes.jpg); width:618px; height:282px; margin:auto;"></div>
|
|
||||||
<div style="padding-top:50px">We will be back soon..ish!</div>
|
|
||||||
</div>
|
|
||||||
<body>
|
|
||||||
<html>
|
|
||||||
@@ -1,15 +0,0 @@
|
|||||||
{strip}
|
|
||||||
{math equation="abs(x)" x=$an.id assign="pId"}
|
|
||||||
{/strip}
|
|
||||||
<div id="announcement-{$pId}"></div>
|
|
||||||
<script type="text/javascript">
|
|
||||||
new Announcement({ldelim}
|
|
||||||
parent: 'announcement-{$pId}',
|
|
||||||
id: {$an.id},
|
|
||||||
text: {if $an.text[0] == '$'}{$an.text|substr:1}{else}'{$an.text}'{/if},
|
|
||||||
name: '{$an.name}',
|
|
||||||
style: '{$an.style}',
|
|
||||||
status: {$an.status},
|
|
||||||
mode: {$an.mode}
|
|
||||||
{rdelim});
|
|
||||||
</script>
|
|
||||||
18
template/bricks/announcement.tpl.php
Normal file
18
template/bricks/announcement.tpl.php
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
<?php
|
||||||
|
foreach ($this->announcements as $_):
|
||||||
|
?>
|
||||||
|
<div id="announcement-<?php echo abs($_['id']); ?>"></div>
|
||||||
|
<script type="text/javascript">
|
||||||
|
new Announcement({
|
||||||
|
parent: 'announcement-<?php echo abs($_['id']); ?>',
|
||||||
|
id: <?php echo $_['id']; ?>,
|
||||||
|
text: <?php echo $_['text'][0] == '$' ? substr($_['text'], 1) : "'".$_['text']."'" ?>,
|
||||||
|
name: '<?php echo $_['name']; ?>',
|
||||||
|
style: '<?php echo $_['style']; ?>',
|
||||||
|
status: <?php echo $_['status']; ?>,
|
||||||
|
mode: <?php echo $_['mode']; ?>
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
<?php
|
||||||
|
endforeach;
|
||||||
|
?>
|
||||||
@@ -1,14 +0,0 @@
|
|||||||
{if !empty($article)}
|
|
||||||
<div id="article-generic" class="left"></div>
|
|
||||||
<script type="text/javascript">//<![CDATA[
|
|
||||||
Markup.printHtml("{$article.text}", "article-generic", {strip}{ldelim}
|
|
||||||
{if !empty($article.params)}{foreach from=$article.params key=k item=v}
|
|
||||||
{$k}: {if $v[0] == '$'}{$v|substr:1}{else}'{$v}'{/if},
|
|
||||||
{/foreach}{/if}
|
|
||||||
allow: Markup.CLASS_ADMIN,
|
|
||||||
dbpage: true
|
|
||||||
{rdelim}{/strip});
|
|
||||||
//]]></script>
|
|
||||||
|
|
||||||
<div class="pad2"></div>
|
|
||||||
{/if}
|
|
||||||
19
template/bricks/article.tpl.php
Normal file
19
template/bricks/article.tpl.php
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
<?php
|
||||||
|
if (!empty($this->article)):
|
||||||
|
?>
|
||||||
|
<div id="article-generic" class="left"></div>
|
||||||
|
<script type="text/javascript">//<![CDATA[
|
||||||
|
Markup.printHtml("<?php echo Util::jsEscape($this->article['text']); ?>", "article-generic", {
|
||||||
|
<?php
|
||||||
|
foreach ($this->article['params'] as $k => $v):
|
||||||
|
echo $k.': '.($v[0] == '$' ? substr($v, 1) : "'".$v."'").",\n";
|
||||||
|
endforeach;
|
||||||
|
?>
|
||||||
|
allow: Markup.CLASS_ADMIN,
|
||||||
|
dbpage: true
|
||||||
|
});
|
||||||
|
//]]></script>
|
||||||
|
<div class="pad2"></div>
|
||||||
|
<?php
|
||||||
|
endif;
|
||||||
|
?>
|
||||||
@@ -1,15 +0,0 @@
|
|||||||
{if !empty($pageText)}
|
|
||||||
<div class="clear"></div>
|
|
||||||
<h3>{$lang.content}</h3>
|
|
||||||
|
|
||||||
<div id="book-generic"></div>
|
|
||||||
<script>//<![CDATA[
|
|
||||||
{strip}new Book({ldelim} parent: 'book-generic', pages: [
|
|
||||||
{foreach from=$pageText item=page name=j}
|
|
||||||
'{$page|escape:"javascript"}'
|
|
||||||
{if $smarty.foreach.j.last}{else},{/if}
|
|
||||||
{/foreach}
|
|
||||||
]{rdelim}){/strip}
|
|
||||||
//]]></script>
|
|
||||||
|
|
||||||
{/if}
|
|
||||||
13
template/bricks/book.tpl.php
Normal file
13
template/bricks/book.tpl.php
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
<?php
|
||||||
|
if (!empty($this->pageText)):
|
||||||
|
?>
|
||||||
|
<div class="clear"></div>
|
||||||
|
<h3><?php echo Lang:$main['content']; ?></h3>
|
||||||
|
|
||||||
|
<div id="book-generic"></div>
|
||||||
|
<script>//<![CDATA[
|
||||||
|
new Book({ parent: 'book-generic', pages: <?php echo json_encode($this->pageText); ?>})
|
||||||
|
//]]></script>
|
||||||
|
<?php
|
||||||
|
endif;
|
||||||
|
?>
|
||||||
@@ -1,68 +0,0 @@
|
|||||||
{strip}
|
|
||||||
var lv_comments = [
|
|
||||||
{foreach name=forCo from=$community.co key=number item=co}
|
|
||||||
{ldelim}
|
|
||||||
number:{$co.number},
|
|
||||||
user:'{$co.user}',
|
|
||||||
body:'{$co.body|escape:"javascript"}',
|
|
||||||
date:'{$co.date|date_format:"%Y/%m/%d %H:%M:%S"}',
|
|
||||||
{if $co.roles!=0}
|
|
||||||
roles:{$co.roles},
|
|
||||||
{/if}
|
|
||||||
{if $co.indent!=0}
|
|
||||||
indent:{$co.indent},
|
|
||||||
{/if}
|
|
||||||
rating:{$co.rating},
|
|
||||||
replyTo:{$co.replyto},
|
|
||||||
purged:{$co.purged},
|
|
||||||
deleted:0,
|
|
||||||
raters:[{foreach name=foo2 key=id from=$co.raters item=rater}[{$rater.userid},{$rater.rate}]{if $smarty.foreach.foo2.last}{else},{/if}{/foreach}],
|
|
||||||
id:{$co.id}
|
|
||||||
|
|
||||||
,sticky:{$co.sticky}
|
|
||||||
,userRating:{$co.userRating}
|
|
||||||
{rdelim}
|
|
||||||
{if $smarty.foreach.forCo.last}{else},{/if}
|
|
||||||
{/foreach}
|
|
||||||
];
|
|
||||||
{/strip}
|
|
||||||
{strip}
|
|
||||||
var lv_screenshots = [
|
|
||||||
{foreach name=forSc from=$community.sc key=number item=sc}
|
|
||||||
{ldelim}
|
|
||||||
id:{$sc.id},
|
|
||||||
user:'{$sc.user}',
|
|
||||||
date:'{$sc.date|date_format:"%Y/%m/%d %H:%M:%S"}',
|
|
||||||
width:{$sc.width},
|
|
||||||
height:{$sc.height},
|
|
||||||
type:{$type},
|
|
||||||
typeId:{$typeId},
|
|
||||||
{if isset($sc.sticky)}
|
|
||||||
sticky:{$sc.sticky},
|
|
||||||
{/if}
|
|
||||||
caption:'{$sc.caption|escape:"javascript"}'
|
|
||||||
{rdelim}
|
|
||||||
{if $smarty.foreach.forSc.last}{else},{/if}
|
|
||||||
{/foreach}
|
|
||||||
];
|
|
||||||
{/strip}
|
|
||||||
{strip}
|
|
||||||
var lv_videos = [
|
|
||||||
{foreach name=forVi from=$community.vi key=number item=vi}
|
|
||||||
{ldelim}
|
|
||||||
id:{$vi.id},
|
|
||||||
user:'{$vi.user}',
|
|
||||||
date:'{$vi.date|date_format:"%Y/%m/%d %H:%M:%S"}',
|
|
||||||
videoType:1, {* there is only youtube *}
|
|
||||||
videoId:'{$vi.videoId}',
|
|
||||||
type:{$type},
|
|
||||||
typeId:{$typeId},
|
|
||||||
{if isset($vi.sticky)}
|
|
||||||
sticky:{$vi.sticky},
|
|
||||||
{/if}
|
|
||||||
caption:'{$vi.caption|escape:"javascript"}'
|
|
||||||
{rdelim}
|
|
||||||
{if $smarty.foreach.forVi.last}{else},{/if}
|
|
||||||
{/foreach}
|
|
||||||
];
|
|
||||||
{/strip}
|
|
||||||
3
template/bricks/community.tpl.php
Normal file
3
template/bricks/community.tpl.php
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
var lv_comments = <?php echo json_encode($this->community['co'], JSON_NUMERIC_CHECK); ?>;
|
||||||
|
var lv_screenshots = <?php echo json_encode($this->community['sc'], JSON_NUMERIC_CHECK); ?>;
|
||||||
|
var lv_videos = <?php echo json_encode($this->community['vi'], JSON_NUMERIC_CHECK); ?>;
|
||||||
@@ -1,4 +1,6 @@
|
|||||||
{if $user.id > 0}
|
<?php
|
||||||
|
if (User::$id > 0):
|
||||||
|
?>
|
||||||
<div id="tab-add-your-comment" style="display: none">
|
<div id="tab-add-your-comment" style="display: none">
|
||||||
|
|
||||||
Please keep the following in mind when posting a comment:
|
Please keep the following in mind when posting a comment:
|
||||||
@@ -10,13 +12,13 @@
|
|||||||
<li><div>You might want to proof-read your comments before posting them.</div></li>
|
<li><div>You might want to proof-read your comments before posting them.</div></li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<form name="addcomment" action="?comment=add&type={$type}&typeid={$typeId}" method="post" onsubmit="return co_validateForm(this)">
|
<form name="addcomment" action="?comment=add&type=<?php echo $this->type.'&typeid='.$this->typeId; ?>" method="post" onsubmit="return co_validateForm(this)">
|
||||||
<div id="replybox-generic" style="display: none">
|
<div id="replybox-generic" style="display: none">
|
||||||
The answer to a comment from <span></span>. <a href="javascript:;" onclick="co_cancelReply()">Cancel</a>
|
The answer to a comment from <span></span>. <a href="javascript:;" onclick="co_cancelReply()">Cancel</a>
|
||||||
<div class="pad"></div>
|
<div class="pad"></div>
|
||||||
</div>
|
</div>
|
||||||
<div id="funcbox-generic"></div>
|
<div id="funcbox-generic"></div>
|
||||||
<script type="text/javascript">Listview.funcBox.coEditAppend($WH.ge('funcbox-generic'), {ldelim}body: ''{rdelim}, 1)</script>
|
<script type="text/javascript">Listview.funcBox.coEditAppend($WH.ge('funcbox-generic'), {body: ''}, 1)</script>
|
||||||
<div class="pad"></div>
|
<div class="pad"></div>
|
||||||
<input type="submit" value="Submit"></input>
|
<input type="submit" value="Submit"></input>
|
||||||
<input type="hidden" name="replyto" value=""></input>
|
<input type="hidden" name="replyto" value=""></input>
|
||||||
@@ -33,11 +35,11 @@
|
|||||||
<li><div>Be sure to read the <a href="?help=screenshots-tips-tricks" target="_blank">tips & tricks</a> if you haven't before.</div></li>
|
<li><div>Be sure to read the <a href="?help=screenshots-tips-tricks" target="_blank">tips & tricks</a> if you haven't before.</div></li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<form action="?screenshot=add&{$type}.{$typeId}" method="post" enctype="multipart/form-data" onsubmit="return ss_validateForm(this)">
|
<form action="?screenshot=add&<?php echo $this->type.'.'.$this->typeId; ?>" method="post" enctype="multipart/form-data" onsubmit="return ss_validateForm(this)">
|
||||||
|
|
||||||
File{$lang.colon}<input type="file" name="screenshotfile" style="width: 35%"/><br />
|
File:<input type="file" name="screenshotfile" style="width: 35%"/><br />
|
||||||
<div class="pad2"></div>
|
<div class="pad2"></div>
|
||||||
Caption{$lang.colon}<input type="text" name="screenshotcaption" maxlength="200" /> <small>Optional, up to 200 characters</small><br />
|
Caption:<input type="text" name="screenshotcaption" maxlength="200" /> <small>Optional, up to 200 characters</small><br />
|
||||||
<div class="pad2"></div>
|
<div class="pad2"></div>
|
||||||
<input type="submit" value="Submit" />
|
<input type="submit" value="Submit" />
|
||||||
|
|
||||||
@@ -52,11 +54,11 @@
|
|||||||
Simply type the URL of the video in the form below.
|
Simply type the URL of the video in the form below.
|
||||||
|
|
||||||
<div class="pad2"></div>
|
<div class="pad2"></div>
|
||||||
<form action="?video=add&{$type}.{$typeId}" method="post" enctype="multipart/form-data" onsubmit="return vi_validateForm(this)">
|
<form action="?video=add&<?php echo $this->type.'.'.$this->typeId; ?>" method="post" enctype="multipart/form-data" onsubmit="return vi_validateForm(this)">
|
||||||
|
|
||||||
URL{$lang.colon}<input type="text" name="videourl" style="width: 35%" /> <small>Supported: YouTube only</small>
|
URL:<input type="text" name="videourl" style="width: 35%" /> <small>Supported: YouTube only</small>
|
||||||
<div class="pad2"></div>
|
<div class="pad2"></div>
|
||||||
Title{$lang.colon}<input type="text" name="videotitle" maxlength="200" /> <small>Optional, up to 200 characters</small><br />
|
Title:<input type="text" name="videotitle" maxlength="200" /> <small>Optional, up to 200 characters</small><br />
|
||||||
<div class="pad"></div>
|
<div class="pad"></div>
|
||||||
<input type="submit" value="Submit" />
|
<input type="submit" value="Submit" />
|
||||||
|
|
||||||
@@ -66,7 +68,9 @@
|
|||||||
</form>
|
</form>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
{else}
|
<?php
|
||||||
|
else:
|
||||||
|
?>
|
||||||
<div id="tab-add-your-comment" style="display: none">
|
<div id="tab-add-your-comment" style="display: none">
|
||||||
|
|
||||||
Please keep the following in mind when posting a comment:
|
Please keep the following in mind when posting a comment:
|
||||||
@@ -117,4 +121,6 @@
|
|||||||
</form>
|
</form>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
{/if}
|
<?php
|
||||||
|
endif;
|
||||||
|
?>
|
||||||
@@ -1,4 +1,6 @@
|
|||||||
{if $user.id > 0}
|
<?php
|
||||||
|
if (User::$id > 0):
|
||||||
|
?>
|
||||||
<div id="tab-add-your-comment" style="display: none">
|
<div id="tab-add-your-comment" style="display: none">
|
||||||
|
|
||||||
Gardez à l'esprit les points suivant avant de poster un commentaire :
|
Gardez à l'esprit les points suivant avant de poster un commentaire :
|
||||||
@@ -10,13 +12,13 @@
|
|||||||
<li><div>Il serait avisé de corriger vos fautes avant de soumettre vos commentaires.</div></li>
|
<li><div>Il serait avisé de corriger vos fautes avant de soumettre vos commentaires.</div></li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<form name="addcomment" action="?comment=add&type={$type}&typeid={$typeId}" method="post" onsubmit="return co_validateForm(this)">
|
<form name="addcomment" action="?comment=add&type=<?php echo $this->type.'&typeid='.$this->typeId; ?>" method="post" onsubmit="return co_validateForm(this)">
|
||||||
<div id="replybox-generic" style="display: none">
|
<div id="replybox-generic" style="display: none">
|
||||||
The answer to a comment from <span></span>. <a href="javascript:;" onclick="co_cancelReply()">Cancel</a>
|
The answer to a comment from <span></span>. <a href="javascript:;" onclick="co_cancelReply()">Cancel</a>
|
||||||
<div class="pad"></div>
|
<div class="pad"></div>
|
||||||
</div>
|
</div>
|
||||||
<div id="funcbox-generic"></div>
|
<div id="funcbox-generic"></div>
|
||||||
<script type="text/javascript">Listview.funcBox.coEditAppend($WH.ge('funcbox-generic'), {ldelim}body: ''{rdelim}, 1)</script>
|
<script type="text/javascript">Listview.funcBox.coEditAppend($WH.ge('funcbox-generic'), {body: ''}, 1)</script>
|
||||||
<div class="pad"></div>
|
<div class="pad"></div>
|
||||||
<input type="submit" value="Submit"></input>
|
<input type="submit" value="Submit"></input>
|
||||||
<input type="hidden" name="replyto" value=""></input>
|
<input type="hidden" name="replyto" value=""></input>
|
||||||
@@ -33,11 +35,11 @@
|
|||||||
<li><div>Assurez-vous de lire les <a href="?help=screenshots-tips-tricks" target="_blank">trucs et astuces</a> si ce n'est pas déjà fait.</div></li>
|
<li><div>Assurez-vous de lire les <a href="?help=screenshots-tips-tricks" target="_blank">trucs et astuces</a> si ce n'est pas déjà fait.</div></li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<form action="?screenshot=add&{$type}.{$typeId}" method="post" enctype="multipart/form-data" onsubmit="return ss_validateForm(this)">
|
<form action="?screenshot=add&<?php echo $this->type.'.'.$this->typeId; ?>" method="post" enctype="multipart/form-data" onsubmit="return ss_validateForm(this)">
|
||||||
|
|
||||||
File{$lang.colon}<input type="file" name="screenshotfile" style="width: 35%"/><br />
|
File : <input type="file" name="screenshotfile" style="width: 35%"/><br />
|
||||||
<div class="pad2"></div>
|
<div class="pad2"></div>
|
||||||
Caption{$lang.colon}<input type="text" name="screenshotcaption" maxlength="200" /> <small>Optional, up to 200 characters</small><br />
|
Caption : <input type="text" name="screenshotcaption" maxlength="200" /> <small>Optional, up to 200 characters</small><br />
|
||||||
<div class="pad2"></div>
|
<div class="pad2"></div>
|
||||||
<input type="submit" value="Submit" />
|
<input type="submit" value="Submit" />
|
||||||
|
|
||||||
@@ -52,11 +54,11 @@
|
|||||||
Entrez simplement l'URL du vidéo dans le formulaire ci-dessous.
|
Entrez simplement l'URL du vidéo dans le formulaire ci-dessous.
|
||||||
|
|
||||||
<div class="pad2"></div>
|
<div class="pad2"></div>
|
||||||
<form action="?video=add&{$type}.{$typeId}" method="post" enctype="multipart/form-data" onsubmit="return vi_validateForm(this)">
|
<form action="?video=add&<?php echo $this->type.'.'.$this->typeId; ?>" method="post" enctype="multipart/form-data" onsubmit="return vi_validateForm(this)">
|
||||||
|
|
||||||
URL{$lang.colon}<input type="text" name="videourl" style="width: 35%" /> <small>Supporté: Youtube seulement</small>
|
URL : <input type="text" name="videourl" style="width: 35%" /> <small>Supporté: Youtube seulement</small>
|
||||||
<div class="pad2"></div>
|
<div class="pad2"></div>
|
||||||
Title{$lang.colon}<input type="text" name="videotitle" maxlength="200" /> <small>Optional, up to 200 characters</small><br />
|
Title : <input type="text" name="videotitle" maxlength="200" /> <small>Optional, up to 200 characters</small><br />
|
||||||
<div class="pad"></div>
|
<div class="pad"></div>
|
||||||
<input type="submit" value="Submit" />
|
<input type="submit" value="Submit" />
|
||||||
|
|
||||||
@@ -66,7 +68,9 @@
|
|||||||
</form>
|
</form>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
{else}
|
<?php
|
||||||
|
else:
|
||||||
|
?>
|
||||||
<div id="tab-add-your-comment" style="display: none">
|
<div id="tab-add-your-comment" style="display: none">
|
||||||
|
|
||||||
Gardez à l'esprit les points suivant avant de poster un commentaire :
|
Gardez à l'esprit les points suivant avant de poster un commentaire :
|
||||||
@@ -117,4 +121,6 @@
|
|||||||
</form>
|
</form>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
{/if}
|
<?php
|
||||||
|
endif;
|
||||||
|
?>
|
||||||
@@ -1,4 +1,6 @@
|
|||||||
{if $user.id > 0}
|
<?php
|
||||||
|
if (User::$id > 0):
|
||||||
|
?>
|
||||||
<div id="tab-add-your-comment" style="display: none">
|
<div id="tab-add-your-comment" style="display: none">
|
||||||
|
|
||||||
Denkt bitte an Folgendes, wenn Ihr einen Kommentar schreibt:
|
Denkt bitte an Folgendes, wenn Ihr einen Kommentar schreibt:
|
||||||
@@ -10,13 +12,13 @@
|
|||||||
<li><div>Stellt Eure Fragen bitte in unseren <a href="?forums">Foren</a>, wenn Ihr eine schnellere Antwort wünscht.</div></li>
|
<li><div>Stellt Eure Fragen bitte in unseren <a href="?forums">Foren</a>, wenn Ihr eine schnellere Antwort wünscht.</div></li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<form name="addcomment" action="?comment=add&type={$type}&typeid={$typeId}" method="post" onsubmit="return co_validateForm(this)">
|
<form name="addcomment" action="?comment=add&type=<?php echo $this->type.'&typeid='.$this->typeId; ?>" method="post" onsubmit="return co_validateForm(this)">
|
||||||
<div id="replybox-generic" style="display: none">
|
<div id="replybox-generic" style="display: none">
|
||||||
Antwort zu einem Kommentar von <span></span>. <a href="javascript:;" onclick="co_cancelReply()">Abbrechen</a>
|
Antwort zu einem Kommentar von <span></span>. <a href="javascript:;" onclick="co_cancelReply()">Abbrechen</a>
|
||||||
<div class="pad"></div>
|
<div class="pad"></div>
|
||||||
</div>
|
</div>
|
||||||
<div id="funcbox-generic"></div>
|
<div id="funcbox-generic"></div>
|
||||||
<script type="text/javascript">Listview.funcBox.coEditAppend($WH.ge('funcbox-generic'), {ldelim}body: ''{rdelim}, 1)</script>
|
<script type="text/javascript">Listview.funcBox.coEditAppend($WH.ge('funcbox-generic'), {body: ''}, 1)</script>
|
||||||
<div class="pad"></div>
|
<div class="pad"></div>
|
||||||
<input type="submit" value="Absenden"></input>
|
<input type="submit" value="Absenden"></input>
|
||||||
<input type="hidden" name="replyto" value=""></input>
|
<input type="hidden" name="replyto" value=""></input>
|
||||||
@@ -34,11 +36,11 @@
|
|||||||
<li><div>Lest Euch unbedingt die <a href="?help=screenshots-tips-tricks" target="_blank">Tipps & Tricks</a> durch, wenn nicht bereits geschehen.</div></li>
|
<li><div>Lest Euch unbedingt die <a href="?help=screenshots-tips-tricks" target="_blank">Tipps & Tricks</a> durch, wenn nicht bereits geschehen.</div></li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<form action="?screenshot=add&{$type}.{$typeId}" method="post" enctype="multipart/form-data" onsubmit="return ss_validateForm(this)">
|
<form action="?screenshot=add&<?php echo $this->type.'.'.$this->typeId; ?>" method="post" enctype="multipart/form-data" onsubmit="return ss_validateForm(this)">
|
||||||
|
|
||||||
Datei{$lang.colon}<input type="file" name="screenshotfile" style="width: 35%"/><br />
|
Datei:<input type="file" name="screenshotfile" style="width: 35%"/><br />
|
||||||
<div class="pad2"></div>
|
<div class="pad2"></div>
|
||||||
Titel{$lang.colon}<input type="text" name="screenshotcaption" maxlength="200" /> <small>Optional, bis zu 200 Zeichen</small><br />
|
Titel:<input type="text" name="screenshotcaption" maxlength="200" /> <small>Optional, bis zu 200 Zeichen</small><br />
|
||||||
<div class="pad2"></div>
|
<div class="pad2"></div>
|
||||||
<input type="submit" value="Senden" />
|
<input type="submit" value="Senden" />
|
||||||
|
|
||||||
@@ -54,11 +56,11 @@
|
|||||||
Gebt einfach die URL des Videos im folgenden Formular ein.
|
Gebt einfach die URL des Videos im folgenden Formular ein.
|
||||||
|
|
||||||
<div class="pad2"></div>
|
<div class="pad2"></div>
|
||||||
<form action="?video=add&{$type}.{$typeId}" method="post" enctype="multipart/form-data" onsubmit="return vi_validateForm(this)">
|
<form action="?video=add&<?php echo $this->type.'.'.$this->typeId; ?>" method="post" enctype="multipart/form-data" onsubmit="return vi_validateForm(this)">
|
||||||
|
|
||||||
URL{$lang.colon}<input type="text" name="videourl" style="width: 35%" /> <small>Unterstützt: nur YouTube</small>
|
URL:<input type="text" name="videourl" style="width: 35%" /> <small>Unterstützt: nur YouTube</small>
|
||||||
<div class="pad2"></div>
|
<div class="pad2"></div>
|
||||||
Titel{$lang.colon}<input type="text" name="videotitle" maxlength="200" /> <small>Optional, bis zu 200 Zeichen</small><br />
|
Titel:<input type="text" name="videotitle" maxlength="200" /> <small>Optional, bis zu 200 Zeichen</small><br />
|
||||||
<div class="pad"></div>
|
<div class="pad"></div>
|
||||||
<input type="submit" value="Senden" />
|
<input type="submit" value="Senden" />
|
||||||
|
|
||||||
@@ -68,7 +70,9 @@
|
|||||||
</form>
|
</form>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
{else}
|
<?php
|
||||||
|
else:
|
||||||
|
?>
|
||||||
<div id="tab-add-your-comment" style="display: none">
|
<div id="tab-add-your-comment" style="display: none">
|
||||||
|
|
||||||
Denkt bitte an Folgendes, wenn Ihr einen Kommentar schreibt:
|
Denkt bitte an Folgendes, wenn Ihr einen Kommentar schreibt:
|
||||||
@@ -115,7 +119,7 @@
|
|||||||
<div class="pad2"></div>
|
<div class="pad2"></div>
|
||||||
<form action="/video=add&13.7" method="post" enctype="multipart/form-data" onsubmit="return vi_validateForm(this)">
|
<form action="/video=add&13.7" method="post" enctype="multipart/form-data" onsubmit="return vi_validateForm(this)">
|
||||||
|
|
||||||
URL{$lang.colon}<input type="text" name="videourl" style="width: 35%" /> <small>Unterstützt: nur YouTube</small>
|
URL:<input type="text" name="videourl" style="width: 35%" /> <small>Unterstützt: nur YouTube</small>
|
||||||
<div class="pad"></div>
|
<div class="pad"></div>
|
||||||
<input type="submit" value="Senden" />
|
<input type="submit" value="Senden" />
|
||||||
|
|
||||||
@@ -125,4 +129,6 @@
|
|||||||
</form>
|
</form>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
{/if}
|
<?php
|
||||||
|
endif;
|
||||||
|
?>
|
||||||
@@ -1,4 +1,6 @@
|
|||||||
{if $user.id > 0}
|
<?php
|
||||||
|
if (User::$id > 0):
|
||||||
|
?>
|
||||||
<div id="tab-add-your-comment" style="display: none">
|
<div id="tab-add-your-comment" style="display: none">
|
||||||
|
|
||||||
Ten en cuenta lo siguiente cuando escribas un comentario:
|
Ten en cuenta lo siguiente cuando escribas un comentario:
|
||||||
@@ -10,13 +12,13 @@
|
|||||||
<li><div>Deberías corregir tus comentarios antes de enviarlos.</div></li>
|
<li><div>Deberías corregir tus comentarios antes de enviarlos.</div></li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<form name="addcomment" action="?comment=add&type={$type}&typeid={$typeId}" method="post" onsubmit="return co_validateForm(this)">
|
<form name="addcomment" action="?comment=add&type=<?php echo $this->type.'&typeid='.$this->typeId; ?>" method="post" onsubmit="return co_validateForm(this)">
|
||||||
<div id="replybox-generic" style="display: none">
|
<div id="replybox-generic" style="display: none">
|
||||||
The answer to a comment from <span></span>. <a href="javascript:;" onclick="co_cancelReply()">Cancel</a>
|
The answer to a comment from <span></span>. <a href="javascript:;" onclick="co_cancelReply()">Cancel</a>
|
||||||
<div class="pad"></div>
|
<div class="pad"></div>
|
||||||
</div>
|
</div>
|
||||||
<div id="funcbox-generic"></div>
|
<div id="funcbox-generic"></div>
|
||||||
<script type="text/javascript">Listview.funcBox.coEditAppend($WH.ge('funcbox-generic'), {ldelim}body: ''{rdelim}, 1)</script>
|
<script type="text/javascript">Listview.funcBox.coEditAppend($WH.ge('funcbox-generic'), {body: ''}, 1)</script>
|
||||||
<div class="pad"></div>
|
<div class="pad"></div>
|
||||||
<input type="submit" value="Submit"></input>
|
<input type="submit" value="Submit"></input>
|
||||||
<input type="hidden" name="replyto" value=""></input>
|
<input type="hidden" name="replyto" value=""></input>
|
||||||
@@ -33,11 +35,11 @@
|
|||||||
<li><div>Asegurate de leer las <a href="?help=screenshots-tips-tricks" target="_blank">sugerencias y trucos</a> si no lo has hecho antes.</div></li>
|
<li><div>Asegurate de leer las <a href="?help=screenshots-tips-tricks" target="_blank">sugerencias y trucos</a> si no lo has hecho antes.</div></li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<form action="?screenshot=add&{$type}.{$typeId}" method="post" enctype="multipart/form-data" onsubmit="return ss_validateForm(this)">
|
<form action="?screenshot=add&<?php echo $this->type.'.'.$this->typeId; ?>" method="post" enctype="multipart/form-data" onsubmit="return ss_validateForm(this)">
|
||||||
|
|
||||||
File{$lang.colon}<input type="file" name="screenshotfile" style="width: 35%"/><br />
|
File:<input type="file" name="screenshotfile" style="width: 35%"/><br />
|
||||||
<div class="pad2"></div>
|
<div class="pad2"></div>
|
||||||
Caption{$lang.colon}<input type="text" name="screenshotcaption" maxlength="200" /> <small>Optional, up to 200 characters</small><br />
|
Caption:<input type="text" name="screenshotcaption" maxlength="200" /> <small>Optional, up to 200 characters</small><br />
|
||||||
<div class="pad2"></div>
|
<div class="pad2"></div>
|
||||||
<input type="submit" value="Submit" />
|
<input type="submit" value="Submit" />
|
||||||
|
|
||||||
@@ -52,11 +54,11 @@
|
|||||||
Símplemente, escribe la URL del vídeo en el formulario.
|
Símplemente, escribe la URL del vídeo en el formulario.
|
||||||
|
|
||||||
<div class="pad2"></div>
|
<div class="pad2"></div>
|
||||||
<form action="?video=add&{$type}.{$typeId}" method="post" enctype="multipart/form-data" onsubmit="return vi_validateForm(this)">
|
<form action="?video=add&<?php echo $this->type.'.'.$this->typeId; ?>" method="post" enctype="multipart/form-data" onsubmit="return vi_validateForm(this)">
|
||||||
|
|
||||||
URL{$lang.colon}<input type="text" name="videourl" style="width: 35%" /> <small>Soportado: Sólo YouTube</small>
|
URL:<input type="text" name="videourl" style="width: 35%" /> <small>Soportado: Sólo YouTube</small>
|
||||||
<div class="pad2"></div>
|
<div class="pad2"></div>
|
||||||
Title{$lang.colon}<input type="text" name="videotitle" maxlength="200" /> <small>Optional, up to 200 characters</small><br />
|
Title:<input type="text" name="videotitle" maxlength="200" /> <small>Optional, up to 200 characters</small><br />
|
||||||
<div class="pad"></div>
|
<div class="pad"></div>
|
||||||
<input type="submit" value="Submit" />
|
<input type="submit" value="Submit" />
|
||||||
|
|
||||||
@@ -66,7 +68,9 @@
|
|||||||
</form>
|
</form>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
{else}
|
<?php
|
||||||
|
else:
|
||||||
|
?>
|
||||||
<div id="tab-add-your-comment" style="display: none">
|
<div id="tab-add-your-comment" style="display: none">
|
||||||
|
|
||||||
Ten en cuenta lo siguiente cuando escribas un comentario:
|
Ten en cuenta lo siguiente cuando escribas un comentario:
|
||||||
@@ -117,4 +121,6 @@
|
|||||||
</form>
|
</form>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
{/if}
|
<?php
|
||||||
|
endif;
|
||||||
|
?>
|
||||||
@@ -1,4 +1,6 @@
|
|||||||
{if $user.id > 0}
|
<?php
|
||||||
|
if (User::$id > 0):
|
||||||
|
?>
|
||||||
<div id="tab-add-your-comment" style="display: none">
|
<div id="tab-add-your-comment" style="display: none">
|
||||||
|
|
||||||
При написании комментария, просим вас не забывать про следующее:
|
При написании комментария, просим вас не забывать про следующее:
|
||||||
@@ -10,13 +12,13 @@
|
|||||||
<li><div>У вас может возникнуть желание проверить написание своего комментария перед тем, как поместить его на сайт.</div></li>
|
<li><div>У вас может возникнуть желание проверить написание своего комментария перед тем, как поместить его на сайт.</div></li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<form name="addcomment" action="?comment=add&type={$type}&typeid={$typeId}" method="post" onsubmit="return co_validateForm(this)">
|
<form name="addcomment" action="?comment=add&type=<?php echo $this->type.'&typeid='.$this->typeId; ?>" method="post" onsubmit="return co_validateForm(this)">
|
||||||
<div id="replybox-generic" style="display: none">
|
<div id="replybox-generic" style="display: none">
|
||||||
The answer to a comment from <span></span>. <a href="javascript:;" onclick="co_cancelReply()">Cancel</a>
|
The answer to a comment from <span></span>. <a href="javascript:;" onclick="co_cancelReply()">Cancel</a>
|
||||||
<div class="pad"></div>
|
<div class="pad"></div>
|
||||||
</div>
|
</div>
|
||||||
<div id="funcbox-generic"></div>
|
<div id="funcbox-generic"></div>
|
||||||
<script type="text/javascript">Listview.funcBox.coEditAppend($WH.ge('funcbox-generic'), {ldelim}body: ''{rdelim}, 1)</script>
|
<script type="text/javascript">Listview.funcBox.coEditAppend($WH.ge('funcbox-generic'), {body: ''}, 1)</script>
|
||||||
<div class="pad"></div>
|
<div class="pad"></div>
|
||||||
<input type="submit" value="Submit"></input>
|
<input type="submit" value="Submit"></input>
|
||||||
<input type="hidden" name="replyto" value=""></input>
|
<input type="hidden" name="replyto" value=""></input>
|
||||||
@@ -33,11 +35,11 @@
|
|||||||
<li><div>Если вы ещё не читали, то настоятельно рекомендуем вам прочесть <a href="?help=screenshots-tips-tricks" target="_blank">советы и особенности</a> получения изображений при помощи снимков экрана.</div></li>
|
<li><div>Если вы ещё не читали, то настоятельно рекомендуем вам прочесть <a href="?help=screenshots-tips-tricks" target="_blank">советы и особенности</a> получения изображений при помощи снимков экрана.</div></li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<form action="?screenshot=add&{$type}.{$typeId}" method="post" enctype="multipart/form-data" onsubmit="return ss_validateForm(this)">
|
<form action="?screenshot=add&<?php echo $this->type.'.'.$this->typeId; ?>" method="post" enctype="multipart/form-data" onsubmit="return ss_validateForm(this)">
|
||||||
|
|
||||||
File{$lang.colon}<input type="file" name="screenshotfile" style="width: 35%"/><br />
|
File:<input type="file" name="screenshotfile" style="width: 35%"/><br />
|
||||||
<div class="pad2"></div>
|
<div class="pad2"></div>
|
||||||
Caption{$lang.colon}<input type="text" name="screenshotcaption" maxlength="200" /> <small>Optional, up to 200 characters</small><br />
|
Caption:<input type="text" name="screenshotcaption" maxlength="200" /> <small>Optional, up to 200 characters</small><br />
|
||||||
<div class="pad2"></div>
|
<div class="pad2"></div>
|
||||||
<input type="submit" value="Submit" />
|
<input type="submit" value="Submit" />
|
||||||
|
|
||||||
@@ -52,11 +54,11 @@
|
|||||||
Введите URL видео на YouTube в форму ниже.
|
Введите URL видео на YouTube в форму ниже.
|
||||||
|
|
||||||
<div class="pad2"></div>
|
<div class="pad2"></div>
|
||||||
<form action="?video=add&{$type}.{$typeId}" method="post" enctype="multipart/form-data" onsubmit="return vi_validateForm(this)">
|
<form action="?video=add&<?php echo $this->type.'.'.$this->typeId; ?>" method="post" enctype="multipart/form-data" onsubmit="return vi_validateForm(this)">
|
||||||
|
|
||||||
URL{$lang.colon}<input type="text" name="videourl" style="width: 35%" /> <small>Поддерживается: только YouTube</small>
|
URL:<input type="text" name="videourl" style="width: 35%" /> <small>Поддерживается: только YouTube</small>
|
||||||
<div class="pad2"></div>
|
<div class="pad2"></div>
|
||||||
Title{$lang.colon}<input type="text" name="videotitle" maxlength="200" /> <small>Optional, up to 200 characters</small><br />
|
Title:<input type="text" name="videotitle" maxlength="200" /> <small>Optional, up to 200 characters</small><br />
|
||||||
<div class="pad"></div>
|
<div class="pad"></div>
|
||||||
<input type="submit" value="Submit" />
|
<input type="submit" value="Submit" />
|
||||||
|
|
||||||
@@ -66,7 +68,9 @@
|
|||||||
</form>
|
</form>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
{else}
|
<?php
|
||||||
|
else:
|
||||||
|
?>
|
||||||
<div id="tab-add-your-comment" style="display: none">
|
<div id="tab-add-your-comment" style="display: none">
|
||||||
|
|
||||||
При написании комментария, просим вас не забывать про следующее:
|
При написании комментария, просим вас не забывать про следующее:
|
||||||
@@ -117,4 +121,6 @@
|
|||||||
</form>
|
</form>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
{/if}
|
<?php
|
||||||
|
endif;
|
||||||
|
?>
|
||||||
@@ -1,18 +0,0 @@
|
|||||||
<div class="text">
|
|
||||||
<h2>{$lang.contribute}</h2>
|
|
||||||
</div>
|
|
||||||
<div id="tabs-contribute-generic" style="width: 50%"></div>
|
|
||||||
<div class="text" style="margin-right: 310px">
|
|
||||||
<div class="tabbed-contents" style="clear: none">
|
|
||||||
{include file="bricks/contrib_`$user.locale`.tpl"}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<script type="text/javascript">
|
|
||||||
var tabsContribute = new Tabs({ldelim}parent: $WH.ge('tabs-contribute-generic'){rdelim});
|
|
||||||
tabsContribute.add(LANG.tab_addyourcomment, {ldelim}id: 'add-your-comment'{rdelim});
|
|
||||||
tabsContribute.add(LANG.tab_submitascreenshot, {ldelim}id: 'submit-a-screenshot'{rdelim});
|
|
||||||
if(g_user && g_user.roles & (U_GROUP_ADMIN | U_GROUP_BUREAU | U_GROUP_VIDEO))
|
|
||||||
tabsContribute.add(LANG.tab_suggestavideo, {ldelim}id: 'suggest-a-video'{rdelim});
|
|
||||||
tabsContribute.flush();
|
|
||||||
</script>
|
|
||||||
<div class="clear"></div>
|
|
||||||
20
template/bricks/contribute.tpl.php
Normal file
20
template/bricks/contribute.tpl.php
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
<div class="text">
|
||||||
|
<h2><?php echo Lang::$main['contribute']; ?></h2>
|
||||||
|
</div>
|
||||||
|
<div id="tabs-contribute-generic" style="width: 50%"></div>
|
||||||
|
<div class="text" style="margin-right: 310px">
|
||||||
|
<div class="tabbed-contents" style="clear: none">
|
||||||
|
<?php
|
||||||
|
$this->brick('contrib_'.User::$localeId);
|
||||||
|
?>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<script type="text/javascript">
|
||||||
|
var tabsContribute = new Tabs({parent: $WH.ge('tabs-contribute-generic')});
|
||||||
|
tabsContribute.add(LANG.tab_addyourcomment, {id: 'add-your-comment'});
|
||||||
|
tabsContribute.add(LANG.tab_submitascreenshot, {id: 'submit-a-screenshot'});
|
||||||
|
if(g_user && g_user.roles & (U_GROUP_ADMIN | U_GROUP_BUREAU | U_GROUP_VIDEO))
|
||||||
|
tabsContribute.add(LANG.tab_suggestavideo, {id: 'suggest-a-video'});
|
||||||
|
tabsContribute.flush();
|
||||||
|
</script>
|
||||||
|
<div class="clear"></div>
|
||||||
@@ -1,8 +1,10 @@
|
|||||||
<div id="footer">
|
<div id="footer">
|
||||||
{if isset($mysql)}
|
<?php
|
||||||
{$lang.numSQL}: {$mysql.count}<br>
|
if (isset($this->mysql)):
|
||||||
{$lang.timeSQL}: {$mysql.time}
|
echo Lang::$main['numSQL'] . Lang::$main['colon']. $this->mysql['count']."<br>\n";
|
||||||
{/if}
|
echo Lang::$main['timeSQL']. Lang::$main['colon']. Util::formatTime($this->mysql['time'] * 1000)."\n";
|
||||||
|
endif;
|
||||||
|
?>
|
||||||
</div>
|
</div>
|
||||||
</div><!-- #wrapper .nosidebar -->
|
</div><!-- #wrapper .nosidebar -->
|
||||||
</div><!-- #layout -->
|
</div><!-- #layout -->
|
||||||
@@ -10,7 +12,7 @@
|
|||||||
|
|
||||||
<noscript>
|
<noscript>
|
||||||
<div id="noscript-bg"></div>
|
<div id="noscript-bg"></div>
|
||||||
<div id="noscript-text">{$lang.noJScript}</div>
|
<div id="noscript-text"><?php echo Lang::$main['noJScript']; ?></div>
|
||||||
</noscript>
|
</noscript>
|
||||||
|
|
||||||
<script type="text/javascript">DomContentLoaded.now()</script>
|
<script type="text/javascript">DomContentLoaded.now()</script>
|
||||||
49
template/bricks/head.tpl.php
Normal file
49
template/bricks/head.tpl.php
Normal file
@@ -0,0 +1,49 @@
|
|||||||
|
<title><?php echo htmlentities(implode(' - ', $this->title)); ?></title>
|
||||||
|
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
|
||||||
|
<meta http-equiv="X-UA-Compatible" content="chrome=1">
|
||||||
|
<link rel="SHORTCUT ICON" href="<?php echo STATIC_URL; ?>/images/logos/favicon.ico">
|
||||||
|
<link rel="search" type="application/opensearchdescription+xml" href="<?php echo STATIC_URL; ?>/download/searchplugins/aowow.xml" title="Aowow" />
|
||||||
|
<link rel="stylesheet" type="text/css" href="<?php echo STATIC_URL.'/css/basic.css?'.AOWOW_REVISION; ?>" />
|
||||||
|
<link rel="stylesheet" type="text/css" href="<?php echo STATIC_URL.'/css/global.css?'.AOWOW_REVISION; ?>" />
|
||||||
|
<link rel="stylesheet" type="text/css" href="<?php echo STATIC_URL.'/css/locale_'.User::$localeString.'.css?'.AOWOW_REVISION; ?>" />
|
||||||
|
<!--[if IE]><link rel="stylesheet" type="text/css" href="<?php echo STATIC_URL.'/css/global_ie.css?'.AOWOW_REVISION; ?>" /><![endif]-->
|
||||||
|
<!--[if lte IE 6]><link rel="stylesheet" type="text/css" href="<?php echo STATIC_URL.'/css/global_ie6.css?'.AOWOW_REVISION; ?>" /><![endif]-->
|
||||||
|
<!--[if lte IE 7]><link rel="stylesheet" type="text/css" href="<?php echo STATIC_URL.'/css/global_ie67.css?'.AOWOW_REVISION; ?>" /><![endif]-->
|
||||||
|
<?php
|
||||||
|
foreach ($this->css as $css):
|
||||||
|
if (!empty($css['string'])):
|
||||||
|
echo '<style type="text/css">'.$css['string']."</style>\n";
|
||||||
|
elseif (!empty($css['path'])):
|
||||||
|
echo (!empty($css['ieCond']) ? '<!--[if '.$css['ieCond'].']>' : null) .
|
||||||
|
'<link rel="stylesheet" type="text/css" href="'.$css['.path'].'?'.AOWOW_REVISION.'" />' .
|
||||||
|
(!empty($css['ieCond']) ? '<![endif]-->' : null);
|
||||||
|
endif;
|
||||||
|
endforeach;
|
||||||
|
?>
|
||||||
|
<script type="text/javascript">
|
||||||
|
var g_serverTime = new Date('<?php echo date(Util::$dateFormatInternal); ?>');
|
||||||
|
var g_staticUrl = "<?php echo STATIC_URL; ?>";
|
||||||
|
var g_host = "<?php echo HOST_URL; ?>";
|
||||||
|
<?php
|
||||||
|
if (!empty($this->dataKey)):
|
||||||
|
echo "var g_dataKey = '".$this->dataKey."'\n";
|
||||||
|
endif;
|
||||||
|
?>
|
||||||
|
</script>
|
||||||
|
<script src="<?php echo STATIC_URL.'/js/jquery-1.4.2.min.js'; ?>" type="text/javascript"></script>
|
||||||
|
<script src="<?php echo STATIC_URL.'/js/basic.js?'.AOWOW_REVISION; ?>" type="text/javascript"></script>
|
||||||
|
<script src="<?php echo STATIC_URL.'/widgets/power.js?lang='.substr(User::$localeString, 2); ?>" type="text/javascript"></script>
|
||||||
|
<script src="<?php echo STATIC_URL.'/js/locale_'.User::$localeString.'.js?'.AOWOW_REVISION; ?>" type="text/javascript"></script>
|
||||||
|
<script src="<?php echo STATIC_URL.'/js/global.js?'.AOWOW_REVISION; ?>" type="text/javascript"></script>
|
||||||
|
<script src="<?php echo STATIC_URL.'/js/Markup.js?'.AOWOW_REVISION; ?>" type="text/javascript"></script>
|
||||||
|
<?php
|
||||||
|
foreach ($this->js as $js):
|
||||||
|
if (!empty($js)):
|
||||||
|
echo '<script src="'.$js.($file[0] == '?' ? '&' : '?').AOWOW_REVISION."\" type=\"text/javascript\"></script>\n";
|
||||||
|
endif;
|
||||||
|
endforeach;
|
||||||
|
?>
|
||||||
|
<script type="text/javascript">
|
||||||
|
var g_locale = <?php echo json_encode($this->gLocale, JSON_NUMERIC_CHECK); ?>;
|
||||||
|
var g_user = <?php echo json_encode($this->gUser, JSON_NUMERIC_CHECK); ?>;
|
||||||
|
</script>
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
{if !empty($headIcons)}
|
|
||||||
{foreach from=$headIcons key='k' item='v'}
|
|
||||||
<div id="h1-icon-{$k}" class="h1-icon"></div>
|
|
||||||
{/foreach}
|
|
||||||
<script type="text/javascript">//<![CDATA[
|
|
||||||
{foreach from=$headIcons key='k' item='v'}
|
|
||||||
$WH.ge('h1-icon-{$k}').appendChild(Icon.create('{$v}', 1));
|
|
||||||
{/foreach}
|
|
||||||
//]]></script>
|
|
||||||
{/if}
|
|
||||||
12
template/bricks/headIcons.tpl.php
Normal file
12
template/bricks/headIcons.tpl.php
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
<?php
|
||||||
|
foreach ($this->headIcons as $k => $v):
|
||||||
|
echo '<div id="h1-icon-'.$k."\" class=\"h1-icon\"></div>\n";
|
||||||
|
endforeach;
|
||||||
|
?>
|
||||||
|
<script type="text/javascript">//<![CDATA[
|
||||||
|
<?php
|
||||||
|
foreach ($this->headIcons as $k => $v):
|
||||||
|
echo "\$WH.ge('h1-icon-".$k."').appendChild(Icon.create('".Util::jsEscape($v)."', 1));\n";
|
||||||
|
endforeach;
|
||||||
|
?>
|
||||||
|
//]]></script>
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
{include file='head.tpl'}
|
<?php $this->brick('head'); ?>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
@@ -11,14 +11,14 @@
|
|||||||
<div id="header">
|
<div id="header">
|
||||||
<div id="header-logo">
|
<div id="header-logo">
|
||||||
<a href="."></a>
|
<a href="."></a>
|
||||||
<h1>{$title|escape:"html"}</h1>
|
<h1><?php echo htmlentities($this->name); ?></h1>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div id="wrapper" class="nosidebar">
|
<div id="wrapper" class="nosidebar">
|
||||||
<div id="toptabs">
|
<div id="toptabs">
|
||||||
<div id="toptabs-inner">
|
<div id="toptabs-inner">
|
||||||
<div id="toptabs-right">
|
<div id="toptabs-right">
|
||||||
{include file="bricks/headerMenu.tpl"}
|
<?php $this->brick('headerMenu'); ?>
|
||||||
</div>
|
</div>
|
||||||
<div id="toptabs-generic"></div>
|
<div id="toptabs-generic"></div>
|
||||||
<div class="clear"></div>
|
<div class="clear"></div>
|
||||||
@@ -30,10 +30,12 @@
|
|||||||
<div class="topbar-buttons" id="topbar-buttons"></div>
|
<div class="topbar-buttons" id="topbar-buttons"></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{strip}<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
g_initHeader({$tab});
|
g_initHeader(<?php echo $this->tabId; ?>);
|
||||||
LiveSearch.attach($WH.ge('livesearch-generic'));
|
LiveSearch.attach($WH.ge('livesearch-generic'));
|
||||||
{foreach from=$jsGlobals item="glob"}
|
<?php
|
||||||
{include file="globals/`$glob[0]`.tpl" data=$glob[1] extra=$glob[2]}
|
foreach ($this->jsGlobals as $glob):
|
||||||
{/foreach}
|
$this->gBrick($glob[0], ['vars' => $glob[1], 'extra' => $glob[2]]);
|
||||||
</script>{/strip}
|
endforeach;
|
||||||
|
?>
|
||||||
|
</script>
|
||||||
@@ -1,4 +0,0 @@
|
|||||||
{if $user.id}<a id="toptabs-menu-profiles">{$lang.userProfiles}</a>|<a id="toptabs-menu-user">{$user.name}</a></a>{else}<a href="?account=signin">{$lang.signIn}</a>{/if}
|
|
||||||
|<a href="#" id="toplinks-feedback" class="icon-email">{$lang.feedback}</a>
|
|
||||||
|<a href="javascript:;" id="toptabs-menu-language">{$lang.language} <small>▼</small></a>
|
|
||||||
<script type="text/javascript">g_initHeaderMenus()</script>
|
|
||||||
10
template/bricks/headerMenu.tpl.php
Normal file
10
template/bricks/headerMenu.tpl.php
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
<?php
|
||||||
|
if (User::$id):
|
||||||
|
echo '<a id="toptabs-menu-profiles">'.Lang::$main['userProfiles'].'</a>|<a id="toptabs-menu-user">'.User::$displayName.'</a></a>';
|
||||||
|
else:
|
||||||
|
echo '<a href="?account=signin">'.Lang::$main['signIn'].'</a>';
|
||||||
|
endif;
|
||||||
|
?>
|
||||||
|
|<a href="#" id="toplinks-feedback" class="icon-email"><?php echo Lang::$main['feedback']; ?></a>
|
||||||
|
|<a href="javascript:;" id="toptabs-menu-language"><?php echo Lang::$main['language']; ?><small>▼</small></a>
|
||||||
|
<script type="text/javascript">g_initHeaderMenus()</script>
|
||||||
@@ -1,26 +0,0 @@
|
|||||||
<table class="infobox">
|
|
||||||
{if !empty($infobox)}
|
|
||||||
<tr><th id="infobox-quick-facts">{$lang.quickFacts}</th></tr>
|
|
||||||
<tr><td><div class="infobox-spacer"></div><div id="infobox-contents0"></div></td></tr>
|
|
||||||
{/if}
|
|
||||||
{if !empty($series)}
|
|
||||||
{foreach from=$series item=s}
|
|
||||||
{include file="bricks/series.tpl" list=$s[0] listTitle=$s[1]}
|
|
||||||
{/foreach}
|
|
||||||
{/if}
|
|
||||||
<tr><th id="infobox-screenshots">{$lang.screenshots}</th></tr>
|
|
||||||
<tr><td><div class="infobox-spacer"></div><div id="infobox-sticky-ss"></div></td></tr>
|
|
||||||
{if $user.id > 0}
|
|
||||||
<tr><th id="infobox-videos">{$lang.videos}</th></tr>
|
|
||||||
<tr><td><div class="infobox-spacer"></div><div id="infobox-sticky-vi"></div></td></tr>
|
|
||||||
{/if}
|
|
||||||
</table>
|
|
||||||
<script type="text/javascript">ss_appendSticky()</script>
|
|
||||||
{if $user.id > 0}
|
|
||||||
<script type="text/javascript">vi_appendSticky()</script>
|
|
||||||
{/if}
|
|
||||||
{if !empty($infobox)}
|
|
||||||
<script type="text/javascript">
|
|
||||||
Markup.printHtml("{$infobox}", "infobox-contents0", {ldelim} allow: Markup.CLASS_STAFF, dbpage: true {rdelim});
|
|
||||||
</script>
|
|
||||||
{/if}
|
|
||||||
30
template/bricks/infobox.tpl.php
Normal file
30
template/bricks/infobox.tpl.php
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
<table class="infobox">
|
||||||
|
<?php
|
||||||
|
if (!empty($this->infobox)):
|
||||||
|
?>
|
||||||
|
<tr><th id="infobox-quick-facts"><?php echo Lang::$main['quickFacts']; ?></th></tr>
|
||||||
|
<tr><td><div class="infobox-spacer"></div><div id="infobox-contents0"></div></td></tr>
|
||||||
|
<?php
|
||||||
|
endif;
|
||||||
|
if (!empty($this->series)):
|
||||||
|
foreach ($this->series as $s):
|
||||||
|
$this->brick('series', ['list' => $s[0], 'listTitle' => $s[1]]);
|
||||||
|
endforeach;
|
||||||
|
endif;
|
||||||
|
?>
|
||||||
|
<tr><th id="infobox-screenshots"><?php echo Lang::$main['screenshots']; ?></th></tr>
|
||||||
|
<tr><td><div class="infobox-spacer"></div><div id="infobox-sticky-ss"></div></td></tr>
|
||||||
|
<tr><th id="infobox-videos"><?php echo Lang::$main['videos']; ?></th></tr>
|
||||||
|
<tr><td><div class="infobox-spacer"></div><div id="infobox-sticky-vi"></div></td></tr>
|
||||||
|
</table>
|
||||||
|
<script type="text/javascript">ss_appendSticky()</script>
|
||||||
|
<script type="text/javascript">vi_appendSticky()</script>
|
||||||
|
<?php
|
||||||
|
if (!empty($this->infobox)):
|
||||||
|
?>
|
||||||
|
<script type="text/javascript">
|
||||||
|
Markup.printHtml("<?php echo Util::jsEscape($this->infobox); ?>", "infobox-contents0", { allow: Markup.CLASS_STAFF, dbpage: true });
|
||||||
|
</script>
|
||||||
|
<?php
|
||||||
|
endif;
|
||||||
|
?>
|
||||||
@@ -1,35 +0,0 @@
|
|||||||
{if !empty($map) && isset($map.data)}
|
|
||||||
{if $map.data.zone < 0}
|
|
||||||
<div id="mapper" style="width: 778px; margin: 0 auto">
|
|
||||||
{if isset($map.som)}
|
|
||||||
<div id="som-generic"></div>
|
|
||||||
{/if}
|
|
||||||
<div id="mapper-generic"></div>
|
|
||||||
<div class="pad clear"></div>
|
|
||||||
</div>
|
|
||||||
{else}
|
|
||||||
<div class="pad"></div>
|
|
||||||
{if isset($map.som)}
|
|
||||||
<div id="som-generic"></div>
|
|
||||||
{/if}
|
|
||||||
{if isset($map.mapperData)}
|
|
||||||
<div>{$lang.foundIn} <span id="locations">{$map.mapSelector}.</span></div>
|
|
||||||
{/if}
|
|
||||||
<div id="mapper-generic"></div>
|
|
||||||
<div style="clear: left"></div>
|
|
||||||
{/if}
|
|
||||||
|
|
||||||
<script type="text/javascript">//<![CDATA[
|
|
||||||
{if $map.data.zone < 0}
|
|
||||||
var g_pageInfo = {ldelim}id:{$map.data.zone}{rdelim};
|
|
||||||
{elseif !empty($map.mapperData)}
|
|
||||||
var g_mapperData = {$map.mapperData};
|
|
||||||
{else}
|
|
||||||
var g_mapperData = {ldelim}{$map.data.zone}: {ldelim}{rdelim}{rdelim};
|
|
||||||
{/if}
|
|
||||||
var myMapper = new Mapper({ldelim}{foreach from=$map.data key=k item=v}{$k}: {$v}, {/foreach}parent: 'mapper-generic'{rdelim});
|
|
||||||
{if !empty($map.som)}
|
|
||||||
new ShowOnMap({$map.som});
|
|
||||||
{/if}
|
|
||||||
//]]></script>
|
|
||||||
{/if}
|
|
||||||
39
template/bricks/mapper.tpl.php
Normal file
39
template/bricks/mapper.tpl.php
Normal file
@@ -0,0 +1,39 @@
|
|||||||
|
<?php
|
||||||
|
if (!empty($this->map['data'])):
|
||||||
|
if ($this->map['data']['zone'] < 0):
|
||||||
|
?>
|
||||||
|
<div id="mapper" style="width: 778px; margin: 0 auto">
|
||||||
|
<?php if (isset($this->map['som'])): ?>
|
||||||
|
<div id="som-generic"></div>
|
||||||
|
<?php endif; ?>
|
||||||
|
<div id="mapper-generic"></div>
|
||||||
|
<div class="pad clear"></div>
|
||||||
|
</div>
|
||||||
|
<?php else: ?>
|
||||||
|
<div class="pad"></div>
|
||||||
|
<?php if (isset($this->map['som'])): ?>
|
||||||
|
<div id="som-generic"></div>
|
||||||
|
<?php
|
||||||
|
endif;
|
||||||
|
if (isset($this->map['mapperData'])):
|
||||||
|
?>
|
||||||
|
<div><?php echo Lang::$map['foundIn']; ?> <span id="locations"><?php echo $this->map['mapSelector']; ?>.</span></div>
|
||||||
|
<?php endif; ?>
|
||||||
|
<div id="mapper-generic"></div>
|
||||||
|
<div style="clear: left"></div>
|
||||||
|
<?php endif; ?>
|
||||||
|
|
||||||
|
<script type="text/javascript">//<![CDATA[
|
||||||
|
<?php if ($this->map['data']['zone'] < 0): ?>
|
||||||
|
var g_pageInfo = {id:<?php echo $this->map['data']['zone']; ?>};
|
||||||
|
<?php elseif (!empty($this->map['mapperData'])): ?>
|
||||||
|
var g_mapperData = <?php echo $this->map['mapperData']; ?>;
|
||||||
|
<?php else: ?>
|
||||||
|
var g_mapperData = {<?php echo $this->map['data']['zone']; ?>: {}};
|
||||||
|
<?php endif; ?>
|
||||||
|
var myMapper = new Mapper({<?php json_encode($this->map['data'], JSON_NUMERIC_CHECK); /* parent: 'mapper-generic' should come here? */ ?>, parent: 'mapper-generic'});
|
||||||
|
<?php if (!empty($this->map['som'])): ?>
|
||||||
|
new ShowOnMap(<?php echo $this->map['som']; ?>);
|
||||||
|
<?php endif; ?>
|
||||||
|
//]]></script>
|
||||||
|
<?php endif; ?>
|
||||||
@@ -1,191 +0,0 @@
|
|||||||
<h3>{$lang.reagents}</h3>
|
|
||||||
|
|
||||||
{if $enhanced}
|
|
||||||
<style type="text/css">
|
|
||||||
.iconlist-col {ldelim} float: left; width: 31%; margin-right: 2%; {rdelim}
|
|
||||||
.iconlist {ldelim} border-collapse: collapse; margin-top: 4px; {rdelim}
|
|
||||||
.iconlist ul {ldelim} margin: 0!important; padding: 0!important; {rdelim}
|
|
||||||
.iconlist ul li {ldelim} list-style-position: inside; list-style-type: square; padding-left: 13px; {rdelim}
|
|
||||||
.iconlist th {ldelim} min-width: 18px; white-space: nowrap; {rdelim}
|
|
||||||
.iconlist td {ldelim} padding: 4px 0 6px 0; {rdelim}
|
|
||||||
.iconlist var {ldelim} font-size: 1px; {rdelim}
|
|
||||||
.iconlist .iconsmall {ldelim} margin-right: 4px; {rdelim}
|
|
||||||
.iconlist a.disclosure-on, .iconlist a.disclosure-off {ldelim} font-weight: normal; text-decoration: underline; {rdelim}
|
|
||||||
.iconlist .iconlist ul li {ldelim} padding-left: 10px; {rdelim}
|
|
||||||
.iconlist .iconlist th, .iconlist .iconlist td {ldelim} font-size: 11px; {rdelim}
|
|
||||||
.iconlist-col table th li {ldelim} list-style-position: outside; padding: 0; margin-left: 20px; {rdelim}
|
|
||||||
</style>
|
|
||||||
<script type="text/javascript">//<![CDATA[
|
|
||||||
function iconlist_showhide(spn) {ldelim}
|
|
||||||
var
|
|
||||||
tr,
|
|
||||||
table,
|
|
||||||
trs,
|
|
||||||
s;
|
|
||||||
|
|
||||||
tr = spn;
|
|
||||||
|
|
||||||
while ((tr.parentNode) && tr.tagName.toUpperCase() != 'TR') {ldelim}
|
|
||||||
tr = tr.parentNode;
|
|
||||||
{rdelim}
|
|
||||||
|
|
||||||
table = tr;
|
|
||||||
|
|
||||||
while ((table.parentNode) && table.tagName.toUpperCase() != 'TABLE') {ldelim}
|
|
||||||
table = table.parentNode;
|
|
||||||
{rdelim}
|
|
||||||
trs = table.getElementsByTagName('tr');
|
|
||||||
|
|
||||||
var opening = spn.className.indexOf('disclosure-off') >= 0;
|
|
||||||
var isSpell = tr.id.substr(tr.id.lastIndexOf('.')+1, 1) == '6';
|
|
||||||
var isItem = tr.id.substr(tr.id.lastIndexOf('.')+1, 1) == '3';
|
|
||||||
|
|
||||||
if (opening) {ldelim}
|
|
||||||
if (isSpell) {ldelim} //find any other open spells on this branch and close them
|
|
||||||
for (var x = 0; x < trs.length; x++)
|
|
||||||
if (trs[x].id.indexOf(tr.id.substr(0,tr.id.lastIndexOf('-'))) == 0) {ldelim} //sister spell
|
|
||||||
ns = trs[x].getElementsByTagName('div');
|
|
||||||
for (var y = 0; y < ns.length; y++)
|
|
||||||
if (ns[y].className == 'iconlist-tree disclosure-on')
|
|
||||||
iconlist_showhide(ns[y]);
|
|
||||||
{rdelim}
|
|
||||||
{rdelim}
|
|
||||||
if (isItem) {ldelim} //expanding item to spells, so cross out item
|
|
||||||
tr.style.textDecoration = 'line-through';
|
|
||||||
{rdelim}
|
|
||||||
|
|
||||||
for (var x = 0; x < trs.length; x++) {ldelim}
|
|
||||||
if ((trs[x].id.indexOf(tr.id) == 0) && (trs[x].id.substr(tr.id.length+1).indexOf('.') < 0)) {ldelim}
|
|
||||||
trs[x].style.display = '';
|
|
||||||
{rdelim}
|
|
||||||
{rdelim}
|
|
||||||
spn.className = 'iconlist-tree disclosure-on';
|
|
||||||
|
|
||||||
if (isItem) {ldelim} //check to see if there is one spell for this item.. if so, expand it
|
|
||||||
var spellCount = 0; var lastTr = 0;
|
|
||||||
for (var x = 0; x < trs.length; x++) {ldelim}
|
|
||||||
if ((trs[x].id.indexOf(tr.id+'.6') == 0) && (trs[x].id.lastIndexOf('-') == tr.id.length + 2)) {ldelim}
|
|
||||||
spellCount++;
|
|
||||||
lastTr = x;
|
|
||||||
{rdelim}
|
|
||||||
{rdelim}
|
|
||||||
|
|
||||||
if (spellCount == 1) {ldelim}
|
|
||||||
ns = trs[lastTr].getElementsByTagName('div');
|
|
||||||
for (var y = 0; y < ns.length; y++) {ldelim}
|
|
||||||
if (ns[y].className == 'iconlist-tree disclosure-off') {ldelim}
|
|
||||||
iconlist_showhide(ns[y]);
|
|
||||||
{rdelim}
|
|
||||||
{rdelim}
|
|
||||||
{rdelim}
|
|
||||||
{rdelim}
|
|
||||||
|
|
||||||
{rdelim}
|
|
||||||
else {ldelim}
|
|
||||||
for (var x = 0; x < trs.length; x++) {ldelim}
|
|
||||||
if ((trs[x].id.indexOf(tr.id) == 0) && (trs[x].id != tr.id)) {ldelim}
|
|
||||||
trs[x].style.display = 'none';
|
|
||||||
trs[x].style.textDecoration = '';
|
|
||||||
ns = trs[x].getElementsByTagName('div');
|
|
||||||
for (var y = 0; y < ns.length; y++) {ldelim}
|
|
||||||
if (ns[y].className == 'iconlist-tree disclosure-on') {ldelim}
|
|
||||||
ns[y].className = 'iconlist-tree disclosure-off';
|
|
||||||
{rdelim}
|
|
||||||
{rdelim}
|
|
||||||
{rdelim}
|
|
||||||
{rdelim}
|
|
||||||
spn.className = 'iconlist-tree disclosure-off';
|
|
||||||
tr.style.textDecoration = '';
|
|
||||||
{rdelim}
|
|
||||||
{rdelim}
|
|
||||||
|
|
||||||
function iconlist_expandall(tableid,doexpand) {ldelim}
|
|
||||||
var table = document.getElementById(tableid);
|
|
||||||
var trs = table.getElementsByTagName('tr');
|
|
||||||
|
|
||||||
if (doexpand) {ldelim}
|
|
||||||
iconlist_expandall(tableid,false);
|
|
||||||
var firstSpells = new Array();
|
|
||||||
for (var x = 0; x < trs.length; x++) {ldelim}
|
|
||||||
if (!trs[x].id) {ldelim}
|
|
||||||
continue;
|
|
||||||
{rdelim}
|
|
||||||
if (trs[x].style.display == 'none') {ldelim}
|
|
||||||
continue;
|
|
||||||
{rdelim}
|
|
||||||
|
|
||||||
if (trs[x].id.substr(trs[x].id.lastIndexOf('.')+1,1) == '6') {ldelim} //is spell
|
|
||||||
var skipOut = false;
|
|
||||||
var thisItem = trs[x].id.substr(0,trs[x].id.lastIndexOf('.'));
|
|
||||||
|
|
||||||
for (var y = 0; y < firstSpells.length; y++) {ldelim}
|
|
||||||
if (firstSpells[y] == thisItem) {ldelim}
|
|
||||||
skipOut = true;
|
|
||||||
break;
|
|
||||||
{rdelim}
|
|
||||||
{rdelim}
|
|
||||||
|
|
||||||
if (skipOut) {ldelim}
|
|
||||||
continue;
|
|
||||||
{rdelim}
|
|
||||||
|
|
||||||
firstSpells.push(thisItem);
|
|
||||||
{rdelim}
|
|
||||||
|
|
||||||
var spn = document.getElementById('spn.'+trs[x].id);
|
|
||||||
if (spn && spn.className.indexOf('disclosure-off') >= 0) {ldelim}
|
|
||||||
iconlist_showhide(spn);
|
|
||||||
{rdelim}
|
|
||||||
{rdelim}
|
|
||||||
{rdelim}
|
|
||||||
else {ldelim}
|
|
||||||
for (var x = 0; x < trs.length; x++) {ldelim}
|
|
||||||
if (!trs[x].id) {ldelim}
|
|
||||||
continue;
|
|
||||||
{rdelim}
|
|
||||||
if (trs[x].id.indexOf('.') != trs[x].id.lastIndexOf('.')) {ldelim}
|
|
||||||
continue;
|
|
||||||
{rdelim}
|
|
||||||
|
|
||||||
var spn = document.getElementById('spn.'+trs[x].id);
|
|
||||||
if (spn && spn.className.indexOf('disclosure-on') >= 0) {ldelim}
|
|
||||||
iconlist_showhide(spn);
|
|
||||||
{rdelim}
|
|
||||||
{rdelim}
|
|
||||||
{rdelim}
|
|
||||||
{rdelim}
|
|
||||||
//]]></script>
|
|
||||||
{/if}
|
|
||||||
|
|
||||||
<table class="iconlist" id="reagent-list-generic">
|
|
||||||
{if $enhanced}
|
|
||||||
<tr>
|
|
||||||
<th></th>
|
|
||||||
<th align="left">
|
|
||||||
<input type="button" style="font-size: 11px; margin-right: 0.5em" onclick="iconlist_expandall('reagent-list-generic',true);" value="{$lang._expandAll}">
|
|
||||||
<input type="button" style="font-size: 11px; margin-right: 0.5em" onclick="iconlist_expandall('reagent-list-generic',false);" value="{$lang._collapseAll}">
|
|
||||||
</th>
|
|
||||||
</tr>
|
|
||||||
{/if}
|
|
||||||
{foreach from=$reagents key='k' item='itr'}
|
|
||||||
{strip}<tr id="reagent-list-generic.{$itr.path}"{if $itr.level} style="display: none"{/if}>
|
|
||||||
<th align="right" id="iconlist-icon{$k}"></th>
|
|
||||||
<td{if $itr.level} style="padding-left: {$itr.level}em"{/if}>
|
|
||||||
{if !empty($itr.final) && $enhanced}
|
|
||||||
<div class="iconlist-tree" style="width: 15px; float: left"> </div>
|
|
||||||
{elseif $enhanced}
|
|
||||||
<div class="iconlist-tree disclosure-off" onclick="iconlist_showhide(this);" style="padding-left: 0; cursor: pointer; width: 15px; float: left" id="spn.reagent-list-generic.{$itr.path}"> </div>
|
|
||||||
{/if}
|
|
||||||
<span class="q{if $itr.type == $smarty.const.TYPE_ITEM}{$itr.quality}{/if}"><a href="?{$itr.typeStr}={$itr.typeId}">{$itr.name}</a></span>{if $itr.qty > 1} ({$itr.qty}){/if}
|
|
||||||
</td>
|
|
||||||
</tr>{/strip}
|
|
||||||
{/foreach}
|
|
||||||
</table>
|
|
||||||
|
|
||||||
<script type="text/javascript">//<![CDATA[
|
|
||||||
{foreach from=$reagents key='k' item='itr'}
|
|
||||||
$WH.ge('iconlist-icon{$k}').appendChild(g_{$itr.typeStr}s.createIcon({$itr.typeId}, 0, {$itr.qty}));
|
|
||||||
{/foreach}
|
|
||||||
//]]></script>
|
|
||||||
|
|
||||||
<div class="clear"></div>
|
|
||||||
201
template/bricks/reagentList.tpl.php
Normal file
201
template/bricks/reagentList.tpl.php
Normal file
@@ -0,0 +1,201 @@
|
|||||||
|
<h3><?php echo Lang::$main['reagents']; ?></h3>
|
||||||
|
|
||||||
|
<?php
|
||||||
|
if ($this->reagents['enhanced']):
|
||||||
|
?>
|
||||||
|
<style type="text/css">
|
||||||
|
.iconlist-col { float: left; width: 31%; margin-right: 2%; }
|
||||||
|
.iconlist { border-collapse: collapse; margin-top: 4px; }
|
||||||
|
.iconlist ul { margin: 0!important; padding: 0!important; }
|
||||||
|
.iconlist ul li { list-style-position: inside; list-style-type: square; padding-left: 13px; }
|
||||||
|
.iconlist th { min-width: 18px; white-space: nowrap; }
|
||||||
|
.iconlist td { padding: 4px 0 6px 0; }
|
||||||
|
.iconlist var { font-size: 1px; }
|
||||||
|
.iconlist .iconsmall { margin-right: 4px; }
|
||||||
|
.iconlist a.disclosure-on, .iconlist a.disclosure-off { font-weight: normal; text-decoration: underline; }
|
||||||
|
.iconlist .iconlist ul li { padding-left: 10px; }
|
||||||
|
.iconlist .iconlist th, .iconlist .iconlist td { font-size: 11px; }
|
||||||
|
.iconlist-col table th li { list-style-position: outside; padding: 0; margin-left: 20px; }
|
||||||
|
</style>
|
||||||
|
<script type="text/javascript">//<![CDATA[
|
||||||
|
function iconlist_showhide(spn) {
|
||||||
|
var
|
||||||
|
tr,
|
||||||
|
table,
|
||||||
|
trs,
|
||||||
|
s;
|
||||||
|
|
||||||
|
tr = spn;
|
||||||
|
|
||||||
|
while ((tr.parentNode) && tr.tagName.toUpperCase() != 'TR') {
|
||||||
|
tr = tr.parentNode;
|
||||||
|
}
|
||||||
|
|
||||||
|
table = tr;
|
||||||
|
|
||||||
|
while ((table.parentNode) && table.tagName.toUpperCase() != 'TABLE') {
|
||||||
|
table = table.parentNode;
|
||||||
|
}
|
||||||
|
trs = table.getElementsByTagName('tr');
|
||||||
|
|
||||||
|
var opening = spn.className.indexOf('disclosure-off') >= 0;
|
||||||
|
var isSpell = tr.id.substr(tr.id.lastIndexOf('.')+1, 1) == '6';
|
||||||
|
var isItem = tr.id.substr(tr.id.lastIndexOf('.')+1, 1) == '3';
|
||||||
|
|
||||||
|
if (opening) {
|
||||||
|
if (isSpell) { //find any other open spells on this branch and close them
|
||||||
|
for (var x = 0; x < trs.length; x++)
|
||||||
|
if (trs[x].id.indexOf(tr.id.substr(0,tr.id.lastIndexOf('-'))) == 0) { //sister spell
|
||||||
|
ns = trs[x].getElementsByTagName('div');
|
||||||
|
for (var y = 0; y < ns.length; y++)
|
||||||
|
if (ns[y].className == 'iconlist-tree disclosure-on')
|
||||||
|
iconlist_showhide(ns[y]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (isItem) { //expanding item to spells, so cross out item
|
||||||
|
tr.style.textDecoration = 'line-through';
|
||||||
|
}
|
||||||
|
|
||||||
|
for (var x = 0; x < trs.length; x++) {
|
||||||
|
if ((trs[x].id.indexOf(tr.id) == 0) && (trs[x].id.substr(tr.id.length+1).indexOf('.') < 0)) {
|
||||||
|
trs[x].style.display = '';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
spn.className = 'iconlist-tree disclosure-on';
|
||||||
|
|
||||||
|
if (isItem) { //check to see if there is one spell for this item.. if so, expand it
|
||||||
|
var spellCount = 0; var lastTr = 0;
|
||||||
|
for (var x = 0; x < trs.length; x++) {
|
||||||
|
if ((trs[x].id.indexOf(tr.id+'.6') == 0) && (trs[x].id.lastIndexOf('-') == tr.id.length + 2)) {
|
||||||
|
spellCount++;
|
||||||
|
lastTr = x;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (spellCount == 1) {
|
||||||
|
ns = trs[lastTr].getElementsByTagName('div');
|
||||||
|
for (var y = 0; y < ns.length; y++) {
|
||||||
|
if (ns[y].className == 'iconlist-tree disclosure-off') {
|
||||||
|
iconlist_showhide(ns[y]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
for (var x = 0; x < trs.length; x++) {
|
||||||
|
if ((trs[x].id.indexOf(tr.id) == 0) && (trs[x].id != tr.id)) {
|
||||||
|
trs[x].style.display = 'none';
|
||||||
|
trs[x].style.textDecoration = '';
|
||||||
|
ns = trs[x].getElementsByTagName('div');
|
||||||
|
for (var y = 0; y < ns.length; y++) {
|
||||||
|
if (ns[y].className == 'iconlist-tree disclosure-on') {
|
||||||
|
ns[y].className = 'iconlist-tree disclosure-off';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
spn.className = 'iconlist-tree disclosure-off';
|
||||||
|
tr.style.textDecoration = '';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function iconlist_expandall(tableid,doexpand) {
|
||||||
|
var table = document.getElementById(tableid);
|
||||||
|
var trs = table.getElementsByTagName('tr');
|
||||||
|
|
||||||
|
if (doexpand) {
|
||||||
|
iconlist_expandall(tableid,false);
|
||||||
|
var firstSpells = new Array();
|
||||||
|
for (var x = 0; x < trs.length; x++) {
|
||||||
|
if (!trs[x].id) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
if (trs[x].style.display == 'none') {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (trs[x].id.substr(trs[x].id.lastIndexOf('.')+1,1) == '6') { //is spell
|
||||||
|
var skipOut = false;
|
||||||
|
var thisItem = trs[x].id.substr(0,trs[x].id.lastIndexOf('.'));
|
||||||
|
|
||||||
|
for (var y = 0; y < firstSpells.length; y++) {
|
||||||
|
if (firstSpells[y] == thisItem) {
|
||||||
|
skipOut = true;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (skipOut) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
firstSpells.push(thisItem);
|
||||||
|
}
|
||||||
|
|
||||||
|
var spn = document.getElementById('spn.'+trs[x].id);
|
||||||
|
if (spn && spn.className.indexOf('disclosure-off') >= 0) {
|
||||||
|
iconlist_showhide(spn);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
for (var x = 0; x < trs.length; x++) {
|
||||||
|
if (!trs[x].id) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
if (trs[x].id.indexOf('.') != trs[x].id.lastIndexOf('.')) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
var spn = document.getElementById('spn.'+trs[x].id);
|
||||||
|
if (spn && spn.className.indexOf('disclosure-on') >= 0) {
|
||||||
|
iconlist_showhide(spn);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
//]]></script>
|
||||||
|
<?php
|
||||||
|
endif;
|
||||||
|
?>
|
||||||
|
|
||||||
|
<table class="iconlist" id="reagent-list-generic">
|
||||||
|
<?php
|
||||||
|
if ($this->reagents['enhanced']):
|
||||||
|
?>
|
||||||
|
<tr>
|
||||||
|
<th></th>
|
||||||
|
<th align="left">
|
||||||
|
<input type="button" style="font-size: 11px; margin-right: 0.5em" onclick="iconlist_expandall('reagent-list-generic',true);" value="{$lang._expandAll}">
|
||||||
|
<input type="button" style="font-size: 11px; margin-right: 0.5em" onclick="iconlist_expandall('reagent-list-generic',false);" value="{$lang._collapseAll}">
|
||||||
|
</th>
|
||||||
|
</tr>
|
||||||
|
<?php
|
||||||
|
endif;
|
||||||
|
|
||||||
|
foreach ($this->reagents['data'] as $k => $itr):
|
||||||
|
echo '<tr id="reagent-list-generic.'.$itr['path'].'"'.($itr['level'] ? ' style="display: none"' : null).'><th align="right" id="iconlist-icon'.$k.'"></th>' .
|
||||||
|
'<td'.($itr['level'] ? ' style="padding-left: '.$itr['level'].'em"' : null);
|
||||||
|
|
||||||
|
if (!empty($itr['final']) && $this->reagents['enhanced']):
|
||||||
|
echo '<div class="iconlist-tree" style="width: 15px; float: left"> </div>';
|
||||||
|
elseif ($this->reagents['enhanced']):
|
||||||
|
echo '<div class="iconlist-tree disclosure-off" onclick="iconlist_showhide(this);" style="padding-left: 0; cursor: pointer; width: 15px; float: left" id="spn.reagent-list-generic.'.$itr['path'].'"> </div>';
|
||||||
|
endif;
|
||||||
|
|
||||||
|
echo '<span class="q'.($itr['type'] == TYPE_ITEM) ? $itr['quality'] : null).'"><a href="?'.$itr['typeStr'].'='.$itr['typeId'].'">'.$itr['name'].'</a></span>'.($itr['qty'] > 1 ? ' ('.$itr['qty'].')' : null)."</td></tr>\n";
|
||||||
|
endforeach;
|
||||||
|
?>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
<script type="text/javascript">//<![CDATA[
|
||||||
|
<?php
|
||||||
|
foreach ($this->reagents['data'] as $k => $itr):
|
||||||
|
echo "\$WH.ge('iconlist-icon".$k."').appendChild(g_".$itr['typeStr']."s.createIcon(".$itr['typeId'].", 0, ".$itr['qty']."));\n";
|
||||||
|
endforeach;
|
||||||
|
?>
|
||||||
|
//]]></script>
|
||||||
|
|
||||||
|
<div class="clear"></div>
|
||||||
@@ -1,59 +0,0 @@
|
|||||||
{if isset($redButtons[$smarty.const.BUTTON_WOWHEAD])}
|
|
||||||
{assign var='b' value=$redButtons[$smarty.const.BUTTON_WOWHEAD]}
|
|
||||||
{if $b}
|
|
||||||
<a href="{$wowhead}" class="button-red"><em><b><i>Wowhead</i></b><span>Wowhead</span></em></a>
|
|
||||||
{else}
|
|
||||||
<a href="javascript:;" class="button-red button-red-disabled"><em><b><i>Wowhead</i></b><span>Wowhead</span></em></a>
|
|
||||||
{/if}
|
|
||||||
{/if}
|
|
||||||
{if isset($redButtons[$smarty.const.BUTTON_LINKS])}
|
|
||||||
{assign var='b' value=$redButtons[$smarty.const.BUTTON_LINKS]}
|
|
||||||
{if $b}
|
|
||||||
<a href="javascript:;" id="open-links-button" class="button-red" onclick="this.blur(); Links.show({ldelim} {if isset($b.color)}linkColor: '{$b.color}', {/if}{if isset($b.linkId)}linkId: '{$b.linkId}', {/if}linkName: '{if isset($b.name)}{$b.name|escape:"javascript"}{else}{$name|escape:"javascript"}{/if}', type: {$type}, typeId: {$typeId} {rdelim});"><em><b><i>{$lang.links}</i></b><span>{$lang.links}</span></em></a>
|
|
||||||
{else}
|
|
||||||
<a href="javascript:;" id="open-links-button" class="button-red button-red-disabled"><em><b><i>{$lang.links}</i></b><span>{$lang.links}</span></em></a>
|
|
||||||
{/if}
|
|
||||||
{/if}
|
|
||||||
{if isset($redButtons[$smarty.const.BUTTON_VIEW3D])}
|
|
||||||
{assign var='b' value=$redButtons[$smarty.const.BUTTON_VIEW3D]}
|
|
||||||
{if $b}
|
|
||||||
<a href="javascript:;" id="view3D-button" class="button-red" onclick="this.blur(); ModelViewer.show({ldelim} {foreach from=$b name=i key=k item=v}{$k}: {$v|@json_encode:$smarty.const.JSON_NUMERIC_CHECK}{if $smarty.foreach.i.last}{else}, {/if}{/foreach} {rdelim})"><em><b><i>{$lang.view3D}</i></b><span>{$lang.view3D}</span></em></a>
|
|
||||||
{else}
|
|
||||||
<a href="javascript:;" id="view3D-button" class="button-red button-red-disabled"><em><b><i>{$lang.view3D}</i></b><span>{$lang.view3D}</span></em></a>
|
|
||||||
{/if}
|
|
||||||
{/if}
|
|
||||||
{if isset($redButtons[$smarty.const.BUTTON_COMPARE])}
|
|
||||||
{assign var='b' value=$redButtons[$smarty.const.BUTTON_COMPARE]}
|
|
||||||
{if $b}
|
|
||||||
<a href="javascript:;" class="button-red" onclick="this.blur(); su_addToSaved('{if isset($b.eqList)}{$b.eqList}{else}{$typeId}{/if}', {if isset($b.qty)}{$b.qty}{else}1{/if})"><em><b><i>{$lang.compare}</i></b><span>{$lang.compare}</span></em></a>
|
|
||||||
{else}
|
|
||||||
<a href="javascript:;" class="button-red button-red-disabled"><em><b><i>{$lang.compare}</i></b><span>{$lang.compare}</span></em></a>
|
|
||||||
{/if}
|
|
||||||
{/if}
|
|
||||||
{if isset($redButtons[$smarty.const.BUTTON_UPGRADE])}
|
|
||||||
{assign var='b' value=$redButtons[$smarty.const.BUTTON_UPGRADE]}
|
|
||||||
{if $b}
|
|
||||||
<a href="javascript:;" class="button-red" onclick="this.blur(); pr_showClassPresetMenu(this, {$typeId}, {$b.class}, {$b.slot}, event);"><em><b><i>{$lang.findUpgrades}</i></b><span>{$lang.findUpgrades}</span></em></a>
|
|
||||||
{else}
|
|
||||||
<a href="javascript:;" class="button-red button-red-disabled"><em><b><i>{$lang.findUpgrades}</i></b><span>{$lang.findUpgrades}</span></em></a>
|
|
||||||
{/if}
|
|
||||||
{/if}
|
|
||||||
{if isset($redButtons[$smarty.const.BUTTON_TALENT])}
|
|
||||||
{assign var='b' value=$redButtons[$smarty.const.BUTTON_TALENT]}
|
|
||||||
{if $b}
|
|
||||||
<a href="{$b.href}" class="button-red"><em><b><i>{if $b.pet}{$lang.petCalc}{else}{$lang.talentCalc}{/if}</i></b><span>{if $b.pet}{$lang.petCalc}{else}{$lang.talentCalc}{/if}</span></em></a>
|
|
||||||
{else}
|
|
||||||
<a href="javascript:;" class="button-red button-red-disabled"><em><b><i>{if $b.pet}{$lang.petCalc}{else}{$lang.talentCalc}{/if}</i></b><span>{if $b.pet}{$lang.petCalc}{else}{$lang.talentCalc}{/if}</span></em></a>
|
|
||||||
{/if}
|
|
||||||
{/if}
|
|
||||||
{if isset($redButtons[$smarty.const.BUTTON_FORUM])}
|
|
||||||
{assign var='b' value=$redButtons[$smarty.const.BUTTON_FORUM]}
|
|
||||||
{if $b}
|
|
||||||
<a href="{$b.href}" class="button-red"><em><b><i>{$lang.forum}</i></b><span>{$lang.forum}</span></em></a>
|
|
||||||
{else}
|
|
||||||
<a href="javascript:;" class="button-red button-red-disabled"><em><b><i>{$lang.forum}</i></b><span>{$lang.forum}</span></em></a>
|
|
||||||
{/if}
|
|
||||||
{/if}
|
|
||||||
{if isset($redButtons[$smarty.const.BUTTON_EQUIP])}
|
|
||||||
<div id="equip-pinned-button"></div> {* content is added by jScript *}
|
|
||||||
{/if}
|
|
||||||
70
template/bricks/redButtons.tpl.php
Normal file
70
template/bricks/redButtons.tpl.php
Normal file
@@ -0,0 +1,70 @@
|
|||||||
|
<?php
|
||||||
|
// link to wowhead
|
||||||
|
if (isset($this->redButtons[BUTTON_WOWHEAD])):
|
||||||
|
if ($this->redButtons[BUTTON_WOWHEAD]):
|
||||||
|
echo '<a href="'.Util::$wowheadLink.'" class="button-red"><em><b><i>Wowhead</i></b><span>Wowhead</span></em></a>';
|
||||||
|
else:
|
||||||
|
echo '<a href="javascript:;" class="button-red button-red-disabled"><em><b><i>Wowhead</i></b><span>Wowhead</span></em></a>';
|
||||||
|
endif;
|
||||||
|
endif;
|
||||||
|
|
||||||
|
// ingame-links/markdown/ect
|
||||||
|
if (isset($this->redButtons[BUTTON_LINKS])):
|
||||||
|
if ($b = $this->redButtons[BUTTON_WOWHEAD]):
|
||||||
|
echo '<a href="javascript:;" id="open-links-button" class="button-red" onclick="this.blur(); Links.show({' .
|
||||||
|
(isset($b['color']) ? "linkColor: '".$b['color']."', " : null) . (isset($b['linkId']) ? "linkId: '".$b['linkId']."', " : null) .
|
||||||
|
"linkName: '".Util::jsEscape(isset($b['name']) ? $b['name'] : $this->name)."', type: ".$this->type.', typeId: '.$this->typeId.' });"><em><b><i>'.Lang::$main['links'].'</i></b><span>'.Lang::$main['links'].'</span></em></a>';
|
||||||
|
else:
|
||||||
|
echo '<a href="javascript:;" id="open-links-button" class="button-red button-red-disabled"><em><b><i>'.Lang::$main['links'].'</i></b><span>'.Lang::$main['links'].'</span></em></a>';
|
||||||
|
endif;
|
||||||
|
endif;
|
||||||
|
|
||||||
|
// view in 3D
|
||||||
|
if (isset($this->redButtons[BUTTON_VIEW3D])):
|
||||||
|
if ($b = $this->redButtons[BUTTON_VIEW3D]):
|
||||||
|
echo '<a href="javascript:;" id="view3D-button" class="button-red" onclick="this.blur(); ModelViewer.show('.json_encode($b, JSON_NUMERIC_CHECK).')"><em><b><i>'.Lang::$main['view3D'].'</i></b><span>'.Lang::$main['view3D'].'</span></em></a>';
|
||||||
|
else:
|
||||||
|
echo '<a href="javascript:;" id="view3D-button" class="button-red button-red-disabled"><em><b><i>'.Lang::$main['view3D'].'</i></b><span>'.Lang::$main['view3D'].'</span></em></a>';
|
||||||
|
endif;
|
||||||
|
endif;
|
||||||
|
|
||||||
|
// item comparison tool
|
||||||
|
if (isset($this->redButtons[BUTTON_COMPARE])):
|
||||||
|
if ($b = $this->redButtons[BUTTON_COMPARE]):
|
||||||
|
echo '<a href="javascript:;" class="button-red" onclick="this.blur(); su_addToSaved(\''.(isset($b['eqList']) ? $b['eqList'] : $this->typeId).'\', '.(isset($b['qty']) ? $b['qty'] : 1).')"><em><b><i>'.Lang::$main['compare'].'</i></b><span>'.Lang::$main['compare'].'</span></em></a>';
|
||||||
|
else:
|
||||||
|
echo '<a href="javascript:;" class="button-red button-red-disabled"><em><b><i>'.Lang::$main['compare'].'</i></b><span>'.Lang::$main['compare'].'</span></em></a>';
|
||||||
|
endif;
|
||||||
|
endif;
|
||||||
|
|
||||||
|
// item upgrade search
|
||||||
|
if (isset($this->redButtons[BUTTON_UPGRADE])):
|
||||||
|
if ($b = $this->redButtons[BUTTON_UPGRADE]):
|
||||||
|
echo '<a href="javascript:;" class="button-red" onclick="this.blur(); pr_showClassPresetMenu(this, '.$this->typeId.', ',$b['class'].', '.$b['slot'].', event);"><em><b><i>'.Lang::$main['findUpgrades'].'</i></b><span>'.Lang::$main['findUpgrades'].'</span></em></a>';
|
||||||
|
else:
|
||||||
|
echo '<a href="javascript:;" class="button-red button-red-disabled"><em><b><i>'.Lang::$main['findUpgrades'].'</i></b><span>'.Lang::$main['findUpgrades'].'</span></em></a>';
|
||||||
|
endif;
|
||||||
|
endif;
|
||||||
|
|
||||||
|
// goto: talent calculator
|
||||||
|
if (isset($this->redButtons[BUTTON_TALENT])):
|
||||||
|
if ($b = $this->redButtons[BUTTON_TALENT]):
|
||||||
|
echo '<a href="'.$b['href'].'" class="button-red"><em><b><i>'.($b['pet'] ? Lang::$main['petCalc'] : Lang::$main['talentCalc']).'</i></b><span>'.($b['pet'] ? Lang::$main['petCalc'] : Lang::$main['talentCalc']).'</span></em></a>';
|
||||||
|
else:
|
||||||
|
echo '<a href="javascript:;" class="button-red button-red-disabled"><em><b><i>{if $b.pet}'.Lang::$main['petCalc'].'else:'.Lang::$main['talentCalc'].'endif;</i></b><span>{if $b.pet}'.Lang::$main['petCalc'].'else:'.Lang::$main['talentCalc'].'endif;</span></em></a>';
|
||||||
|
endif;
|
||||||
|
endif;
|
||||||
|
|
||||||
|
// goto: (sub-)forum
|
||||||
|
if (isset($this->redButtons[BUTTON_FORUM])):
|
||||||
|
if ($b = $this->redButtons[BUTTON_FORUM]):
|
||||||
|
echo '<a href="'.$b['href'].'" class="button-red"><em><b><i>'.Lang::$main['forum'].'</i></b><span>'.Lang::$main['forum'].'</span></em></a>';
|
||||||
|
else:
|
||||||
|
echo '<a href="javascript:;" class="button-red button-red-disabled"><em><b><i>'.Lang::$main['forum'].'</i></b><span>'.Lang::$main['forum'].'</span></em></a>';
|
||||||
|
endif;
|
||||||
|
endif;
|
||||||
|
|
||||||
|
// equip item on pinned character
|
||||||
|
if (isset($this->redButtons[BUTTON_EQUIP])):
|
||||||
|
echo '<div id="equip-pinned-button"></div>'; /* content is added by jScript */
|
||||||
|
endif;
|
||||||
@@ -1,28 +0,0 @@
|
|||||||
{if $rewTitle}
|
|
||||||
{$rewTitle}{$lang.colon}
|
|
||||||
{if isset($extra)}{$extra}{/if}
|
|
||||||
|
|
||||||
{/if}
|
|
||||||
{if $rewData}
|
|
||||||
<div class="pad"></div>
|
|
||||||
<table class="icontab icontab-box">
|
|
||||||
<tr>
|
|
||||||
{foreach from=$rewData item=i key=k}
|
|
||||||
<th id="icontab-icon{$k+1+$offset}"></th><td><span class="q{if isset($i.quality)}{$i.quality}{/if}"><a href="?{$i.typeStr}={$i.id}">{$i.name}</a></span></td>
|
|
||||||
{if $k%2}
|
|
||||||
</tr><tr>
|
|
||||||
{/if}
|
|
||||||
|
|
||||||
{/foreach}
|
|
||||||
{if count($rewData)%2}
|
|
||||||
<th style="display: none"></th><td style="display: none"></td>
|
|
||||||
{/if}
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
|
|
||||||
<script type="text/javascript">//<![CDATA[
|
|
||||||
{foreach from=$rewData item=i key=k}{if isset($i.globalStr)}
|
|
||||||
$WH.ge('icontab-icon{$k+1+$offset}').appendChild({$i.globalStr}.createIcon({$i.id}, 1, {if isset($i.qty)}{$i.qty}{else}0{/if}));
|
|
||||||
{/if}{/foreach}
|
|
||||||
//]]></script>
|
|
||||||
{/if}
|
|
||||||
34
template/bricks/rewards.tpl.php
Normal file
34
template/bricks/rewards.tpl.php
Normal file
@@ -0,0 +1,34 @@
|
|||||||
|
<?php
|
||||||
|
if ($this->rewards['title']):
|
||||||
|
echo $this->rewards['title'].Lang::$main['colon'].(isset($this->rewards['extra']) ? $this->rewards['extra'] : null);
|
||||||
|
endif;
|
||||||
|
if ($this->rewards['data']):
|
||||||
|
?>
|
||||||
|
<div class="pad"></div>
|
||||||
|
<table class="icontab icontab-box">
|
||||||
|
<tr>
|
||||||
|
<?php
|
||||||
|
foreach ($this->rewards['data'] as $k => $i):
|
||||||
|
echo '<th id="icontab-icon'.($k + 1 + $offset).'"></th><td><span class="q'.(isset($i['quality']) ? $i['quality'] : null).'"><a href="?'.$i['typeStr'].'='.$i['id'].'">'.$i['name']."</a></span></td>\n";
|
||||||
|
echo $k % 2 ? '</tr><tr>' : null;
|
||||||
|
endforeach;
|
||||||
|
|
||||||
|
if (count($this->rewards['data']) % 2):
|
||||||
|
echo '<th style="display: none"></th><td style="display: none"></td>';
|
||||||
|
endif;
|
||||||
|
?>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
<script type="text/javascript">//<![CDATA[
|
||||||
|
<?php
|
||||||
|
foreach ($this->rewards['data'] as $k => $i):
|
||||||
|
if (isset()):
|
||||||
|
echo "\$WH.ge('icontab-icon".($k + 1 + $offset)."').appendChild(".$i['globalStr'].".createIcon(".$i['id'].", 1, ".(@$i['qty'] ?: 0)."));\n";
|
||||||
|
endif;
|
||||||
|
endforeach;
|
||||||
|
?>
|
||||||
|
//]]></script>
|
||||||
|
<?php
|
||||||
|
endif;
|
||||||
|
?>
|
||||||
@@ -1,23 +0,0 @@
|
|||||||
<tr><th id="infobox-series">{if !empty($listTitle)}{$listTitle}{else}{$lang.series}{/if}</th></tr>
|
|
||||||
<tr><td>
|
|
||||||
<div class="infobox-spacer"></div>
|
|
||||||
<table class="series">
|
|
||||||
{foreach from=$list key='idx' item='itr'}
|
|
||||||
<tr>
|
|
||||||
<th>{$idx+1}.</th>
|
|
||||||
<td><div>
|
|
||||||
{foreach name=itemItr from=$itr item='i'}
|
|
||||||
{if $i.side == 1}<span class="icon-alliance-padded">{elseif $i.side == 2}<span class="icon-horde">{/if}
|
|
||||||
{if ($i.typeId == $typeId)}
|
|
||||||
<b>{$i.name}</b>
|
|
||||||
{else}
|
|
||||||
<a href="?{$i.typeStr}={$i.typeId}">{$i.name}</a>
|
|
||||||
{/if}
|
|
||||||
{if $i.side != 3}</span>{/if}
|
|
||||||
{if $smarty.foreach.itemItr.last}{else}<br />{/if}
|
|
||||||
{/foreach}
|
|
||||||
</div></td>
|
|
||||||
</tr>
|
|
||||||
{/foreach}
|
|
||||||
</table>
|
|
||||||
</td></tr>
|
|
||||||
29
template/bricks/series.tpl.php
Normal file
29
template/bricks/series.tpl.php
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
<tr><th id="infobox-series"><?php echo $listTitle ?: Lang::$main['series']; ?></th></tr>
|
||||||
|
<tr><td>
|
||||||
|
<div class="infobox-spacer"></div>
|
||||||
|
<table class="series">
|
||||||
|
<?php
|
||||||
|
foreach ($list as $idx => $itr):
|
||||||
|
echo '<tr><th>'.($idx + 1).'</th><td><div>';
|
||||||
|
|
||||||
|
$end = array_pop(array_keys($itr));
|
||||||
|
foreach ($itr as $k => $i): // itemItr
|
||||||
|
switch ($i['side']):
|
||||||
|
case 1: $wrap = '<span class="icon-alliance-padded">%s</span>'; break;
|
||||||
|
case 2: $wrap = '<span class="icon-horde">%s</span>'; break;
|
||||||
|
default: $wrap = '%s'; break;
|
||||||
|
endswitch;
|
||||||
|
|
||||||
|
if ($i['typeId'] == $this->typeId):
|
||||||
|
echo sprintf($wrap, '<b>'.$i['name'].'</b>');
|
||||||
|
else:
|
||||||
|
echo sprintf($wrap, '<a href="?'.$i['typeStr'].'='.$i['typeId'].'">'.$i['name'].'</a>');
|
||||||
|
endif;
|
||||||
|
|
||||||
|
echo $end == $k ? null : '<br />';
|
||||||
|
endforeach;
|
||||||
|
echo "</div></td></tr>\n";
|
||||||
|
endforeach;
|
||||||
|
?>
|
||||||
|
</table>
|
||||||
|
</td></tr>
|
||||||
@@ -1,16 +0,0 @@
|
|||||||
<div id="tabs-generic"></div>
|
|
||||||
<div id="lv-generic" class="listview"></div>
|
|
||||||
<script type="text/javascript">//<![CDATA[
|
|
||||||
var tabsRelated = new Tabs({ldelim}parent: $WH.ge('tabs-generic'){rdelim});
|
|
||||||
{foreach from=$tabs item="tab"}
|
|
||||||
{if !empty($tab.data)}
|
|
||||||
{include file="listviews/`$tab.file`.tpl" data=$tab.data params=$tab.params}
|
|
||||||
{/if}
|
|
||||||
{/foreach}
|
|
||||||
new Listview({ldelim}template: 'comment', id: 'comments', name: LANG.tab_comments, tabs: tabsRelated, parent: 'lv-generic', data: lv_comments{rdelim});
|
|
||||||
new Listview({ldelim}template: 'screenshot', id: 'screenshots', name: LANG.tab_screenshots, tabs: tabsRelated, parent: 'lv-generic', data: lv_screenshots{rdelim});
|
|
||||||
if (lv_videos.length || (g_user && g_user.roles & (U_GROUP_ADMIN | U_GROUP_BUREAU | U_GROUP_VIDEO)))
|
|
||||||
new Listview({ldelim}template: 'video', id: 'videos', name: LANG.tab_videos, tabs: tabsRelated, parent: 'lv-generic', data: lv_videos{rdelim});
|
|
||||||
tabsRelated.flush();
|
|
||||||
//]]></script>
|
|
||||||
|
|
||||||
18
template/bricks/tabsRelated.tpl.php
Normal file
18
template/bricks/tabsRelated.tpl.php
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
<div id="tabs-generic"></div>
|
||||||
|
<div id="lv-generic" class="listview"></div>
|
||||||
|
<script type="text/javascript">//<![CDATA[
|
||||||
|
var tabsRelated = new Tabs({parent: $WH.ge('tabs-generic')});
|
||||||
|
<?php
|
||||||
|
foreach ($this->lvData as $lv):
|
||||||
|
if (!empty($lv['data'])):
|
||||||
|
$this->lvBrick($lv['file'], ['data' => $lv['data'], 'params' => $lv['params']]);
|
||||||
|
endif;
|
||||||
|
endforeach;
|
||||||
|
?>
|
||||||
|
new Listview({template: 'comment', id: 'comments', name: LANG.tab_comments, tabs: tabsRelated, parent: 'lv-generic', data: lv_comments});
|
||||||
|
new Listview({template: 'screenshot', id: 'screenshots', name: LANG.tab_screenshots, tabs: tabsRelated, parent: 'lv-generic', data: lv_screenshots});
|
||||||
|
if (lv_videos.length || (g_user && g_user.roles & (U_GROUP_ADMIN | U_GROUP_BUREAU | U_GROUP_VIDEO)))
|
||||||
|
new Listview({template: 'video', id: 'videos', name: LANG.tab_videos, tabs: tabsRelated, parent: 'lv-generic', data: lv_videos});
|
||||||
|
tabsRelated.flush();
|
||||||
|
//]]></script>
|
||||||
|
|
||||||
@@ -1,28 +0,0 @@
|
|||||||
<div id="ic{$typeId}" style="float: left"></div>
|
|
||||||
<div id="tt{$typeId}" class="wowhead-tooltip" style="float: left; padding-top: 1px"></div>
|
|
||||||
<div style="clear: left"></div>
|
|
||||||
<div id="sl{$typeId}" style="margin-left: 70px; margin-top: 4px;"></div>
|
|
||||||
<div id="ks{$typeId}" style="margin-left: 70px; margin-top: 4px;"></div>
|
|
||||||
|
|
||||||
{if !empty($jsGlobals[6][2].buff)} {* not set with items *}
|
|
||||||
<h3>{$lang._aura}</h3>
|
|
||||||
<div id="btt{$typeId}" class="wowhead-tooltip"></div>
|
|
||||||
{/if}
|
|
||||||
|
|
||||||
<script type="text/javascript">//<![CDATA[
|
|
||||||
$WH.ge('ic{$typeId}').appendChild(Icon.create('{$headIcons[0]}', 2, null, 0, {$headIcons[1]}));
|
|
||||||
var
|
|
||||||
tt = $WH.ge('tt{$typeId}'),
|
|
||||||
{if !empty($jsGlobals[6][2].buff)}
|
|
||||||
btt = $WH.ge('btt{$typeId}'),
|
|
||||||
{/if}
|
|
||||||
sl = $WH.ge('sl{$typeId}'),
|
|
||||||
ks = $WH.ge('ks{$typeId}');
|
|
||||||
|
|
||||||
tt.innerHTML = '<table><tr><td>' + ($WH.g_enhanceTooltip.bind(tt))({$typeId}, true, true, sl, null, [{$typeId}], ks, null) + '</td><th style="background-position: top right"></th></tr><tr><th style="background-position: bottom left"></th><th style="background-position: bottom right"></th></tr></table>';
|
|
||||||
$WH.Tooltip.fixSafe(tt, 1, 1);
|
|
||||||
{if !empty($jsGlobals[6][2].buff)}
|
|
||||||
btt.innerHTML = '<table><tr><td>' + ($WH.g_enhanceTooltip.bind(btt))({$typeId}, true, true, sl, tt, [{$typeId}], ks) + '</td><th style="background-position: top right"></th></tr><tr><th style="background-position: bottom left"></th><th style="background-position: bottom right"></th></tr></table>';
|
|
||||||
$WH.Tooltip.fixSafe(btt, 1, 1);
|
|
||||||
{/if}
|
|
||||||
//]]></script>
|
|
||||||
28
template/bricks/tooltip.tpl.php
Normal file
28
template/bricks/tooltip.tpl.php
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
<div id="ic<?php echo $this->typeId; ?>" style="float: left"></div>
|
||||||
|
<div id="tt<?php echo $this->typeId; ?>" class="wowhead-tooltip" style="float: left; padding-top: 1px"></div>
|
||||||
|
<div style="clear: left"></div>
|
||||||
|
<div id="sl<?php echo $this->typeId; ?>" style="margin-left: 70px; margin-top: 4px;"></div>
|
||||||
|
<div id="ks<?php echo $this->typeId; ?>" style="margin-left: 70px; margin-top: 4px;"></div>
|
||||||
|
|
||||||
|
<?php if (!empty($this->jsGlobals[6][2]['buff'])): /* not set with items */ ?>
|
||||||
|
<h3><?php echo Lang::$spell['_aura']; ?></h3>
|
||||||
|
<div id="btt<?php echo $this->typeId; ?>" class="wowhead-tooltip"></div>
|
||||||
|
<?php endif; ?>
|
||||||
|
|
||||||
|
<script type="text/javascript">//<![CDATA[
|
||||||
|
$WH.ge('ic<?php echo $this->typeId; ?>').appendChild(Icon.create('<?php echo $this->headIcons[0]; ?>', 2, null, 0, <?php echo $this->headIcons[1]; ?>));
|
||||||
|
var
|
||||||
|
tt = $WH.ge('tt<?php echo $this->typeId; ?>'),
|
||||||
|
<?php if (!empty($this->jsGlobals[6][2]['buff'])): ?>
|
||||||
|
btt = $WH.ge('btt<?php echo $this->typeId; ?>'),
|
||||||
|
<?php endif; ?>
|
||||||
|
sl = $WH.ge('sl<?php echo $this->typeId; ?>'),
|
||||||
|
ks = $WH.ge('ks<?php echo $this->typeId; ?>');
|
||||||
|
|
||||||
|
tt.innerHTML = '<table><tr><td>' + ($WH.g_enhanceTooltip.bind(tt))(<?php echo $this->typeId; ?>, true, true, sl, null, [<?php echo $this->typeId; ?>], ks, null) + '</td><th style="background-position: top right"></th></tr><tr><th style="background-position: bottom left"></th><th style="background-position: bottom right"></th></tr></table>';
|
||||||
|
$WH.Tooltip.fixSafe(tt, 1, 1);
|
||||||
|
<?php if (!empty($this->jsGlobals[6][2]['buff'])): ?>
|
||||||
|
btt.innerHTML = '<table><tr><td>' + ($WH.g_enhanceTooltip.bind(btt))(<?php echo $this->typeId; ?>, true, true, sl, tt, [<?php echo $this->typeId; ?>], ks) + '</td><th style="background-position: top right"></th></tr><tr><th style="background-position: bottom left"></th><th style="background-position: bottom right"></th></tr></table>';
|
||||||
|
$WH.Tooltip.fixSafe(btt, 1, 1);
|
||||||
|
<?php endif; ?>
|
||||||
|
//]]></script>
|
||||||
@@ -1,59 +0,0 @@
|
|||||||
{include file='header.tpl'}
|
|
||||||
|
|
||||||
<div class="main" id="main">
|
|
||||||
<div class="main-precontents" id="main-precontents"></div>
|
|
||||||
<div class="main-contents" id="main-contents">
|
|
||||||
|
|
||||||
{if !empty($announcements)}
|
|
||||||
{foreach from=$announcements item=item}
|
|
||||||
{include file='bricks/announcement.tpl' an=$item}
|
|
||||||
{/foreach}
|
|
||||||
{/if}
|
|
||||||
|
|
||||||
<script type="text/javascript">//<![CDATA[
|
|
||||||
{include file='bricks/community.tpl'}
|
|
||||||
var g_pageInfo = {ldelim}type: {$type}, typeId: {$typeId}, name: '{$name|escape:"quotes"}'{rdelim};
|
|
||||||
g_initPath({$path});
|
|
||||||
//]]></script>
|
|
||||||
|
|
||||||
{include file='bricks/infobox.tpl'}
|
|
||||||
|
|
||||||
<div class="text">
|
|
||||||
{include file='bricks/headIcons.tpl'}
|
|
||||||
|
|
||||||
{include file='bricks/redButtons.tpl'}
|
|
||||||
|
|
||||||
<h1{if isset($expansion)} class="h1-icon"><span class="icon-{$expansion}-right">{$name}</span>{else}>{$name}{/if}</h1>
|
|
||||||
|
|
||||||
{include file='bricks/article.tpl'}
|
|
||||||
|
|
||||||
{include file='bricks/mapper.tpl'}
|
|
||||||
|
|
||||||
{if isset($extraText)}
|
|
||||||
<div id="text-generic" class="left"></div>
|
|
||||||
<script type="text/javascript">//<![CDATA[
|
|
||||||
Markup.printHtml("{$extraText}", "text-generic", {strip}{ldelim}
|
|
||||||
allow: Markup.CLASS_ADMIN,
|
|
||||||
dbpage: true
|
|
||||||
{rdelim}{/strip});
|
|
||||||
//]]></script>
|
|
||||||
|
|
||||||
<div class="pad2"></div>
|
|
||||||
{/if}
|
|
||||||
|
|
||||||
{if isset($unavailable)}
|
|
||||||
<div class="pad"></div>
|
|
||||||
<b style="color: red">{$lang._unavailable}</b>
|
|
||||||
{/if}
|
|
||||||
|
|
||||||
<h2 class="clear">{$lang.related}</h2>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
{include file='bricks/tabsRelated.tpl' tabs=$lvData}
|
|
||||||
|
|
||||||
{include file='bricks/contribute.tpl'}
|
|
||||||
|
|
||||||
</div><!-- main-contents -->
|
|
||||||
</div><!-- main -->
|
|
||||||
|
|
||||||
{include file='footer.tpl'}
|
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
var _ = g_achievements;
|
|
||||||
{strip}
|
|
||||||
{foreach from=$data key=id item=item}
|
|
||||||
_[{$id}]={ldelim}
|
|
||||||
name_{$user.language}:'{$item.name|escape:"javascript"}',
|
|
||||||
icon:'{$item.icon|escape:"javascript"}'
|
|
||||||
{rdelim};
|
|
||||||
{/foreach}
|
|
||||||
{/strip}
|
|
||||||
9
template/globals/achievement.tpl.php
Normal file
9
template/globals/achievement.tpl.php
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
var _ = g_achievements;
|
||||||
|
<?php
|
||||||
|
foreach ($vars as $id => $data):
|
||||||
|
echo '_['.$id.']={' .
|
||||||
|
'name_'.User::$localeString.':\''.Util::jsEscape($data['name']).'\',' .
|
||||||
|
'icon:\''.Util::jsEscape($data['icon']).'\'' .
|
||||||
|
'};';
|
||||||
|
endforeach;
|
||||||
|
?>
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
var _ = g_classes;
|
|
||||||
{strip}
|
|
||||||
{foreach from=$data key=id item=item}
|
|
||||||
_[{$id}]={ldelim}
|
|
||||||
name_{$user.language}:'{$item.name|escape:"javascript"}'
|
|
||||||
{rdelim};
|
|
||||||
{/foreach}
|
|
||||||
{/strip}
|
|
||||||
7
template/globals/class.tpl.php
Normal file
7
template/globals/class.tpl.php
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
var _ = g_classes;
|
||||||
|
{strip}
|
||||||
|
<?php
|
||||||
|
foreach ($vars as $id => $data):
|
||||||
|
echo '_['.$id.']={name_'.User::$localeString.':\''.Util::jsEscape($data['name']).'\'};';
|
||||||
|
endforeach;
|
||||||
|
?>
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
var _ = g_npcs;
|
|
||||||
{strip}
|
|
||||||
{foreach from=$data key=id item=item}
|
|
||||||
_[{$id}]={ldelim}
|
|
||||||
name_{$user.language}:'{$item.name|escape:"javascript"}'
|
|
||||||
{rdelim};
|
|
||||||
{/foreach}
|
|
||||||
{/strip}
|
|
||||||
7
template/globals/creature.tpl.php
Normal file
7
template/globals/creature.tpl.php
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
var _ = g_npcs;
|
||||||
|
{strip}
|
||||||
|
<?php
|
||||||
|
foreach ($vars as $id => $data):
|
||||||
|
echo '_['.$id.']={name_'.User::$localeString.':\''.Util::jsEscape($data['name']).'\'};';
|
||||||
|
endforeach;
|
||||||
|
?>
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
var _ = g_gatheredcurrencies;
|
|
||||||
{strip}
|
|
||||||
{foreach from=$data key=id item=item}
|
|
||||||
_[{$id}]={ldelim}
|
|
||||||
name_{$user.language}:'{$item.name|escape:"javascript"}',
|
|
||||||
icon:{$item.icon|@json_encode}
|
|
||||||
{rdelim};
|
|
||||||
{/foreach}
|
|
||||||
{/strip}
|
|
||||||
9
template/globals/currency.tpl.php
Normal file
9
template/globals/currency.tpl.php
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
var _ = g_gatheredcurrencies;
|
||||||
|
<?php
|
||||||
|
foreach ($vars as $id => $data):
|
||||||
|
echo '_['.$id.']={' .
|
||||||
|
'name_'.User::$localeString.':\''.Util::jsEscape($data['name']).'\',' .
|
||||||
|
'icon:'.json_encode($data['icon'], JSON_NUMERIC_CHECK) .
|
||||||
|
'};';
|
||||||
|
endforeach;
|
||||||
|
?>
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
var _ = g_holidays;
|
|
||||||
{strip}
|
|
||||||
{foreach from=$data key=id item=item}
|
|
||||||
_[{$id}]={ldelim}
|
|
||||||
name_{$user.language}:'{$item.name|escape:"javascript"}',
|
|
||||||
icon:'{$item.icon|escape:"javascript"}'
|
|
||||||
{rdelim};
|
|
||||||
{/foreach}
|
|
||||||
{/strip}
|
|
||||||
10
template/globals/event.tpl.php
Normal file
10
template/globals/event.tpl.php
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
var _ = g_holidays;
|
||||||
|
{strip}
|
||||||
|
<?php
|
||||||
|
foreach ($vars as $id => $data):
|
||||||
|
echo '_['.$id.']={' .
|
||||||
|
'name_'.User::$localeString.':\''.Util::jsEscape($data['name']).'\',' .
|
||||||
|
'icon:\''.Util::jsEscape($data['icon']).'\'' .
|
||||||
|
'};';
|
||||||
|
endforeach;
|
||||||
|
?>
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
var _ = g_factions;
|
|
||||||
{strip}
|
|
||||||
{foreach from=$data key=id item=item}
|
|
||||||
_[{$id}]={ldelim}
|
|
||||||
name_{$user.language}:'{$item.name|escape:"javascript"}'
|
|
||||||
{rdelim};
|
|
||||||
{/foreach}
|
|
||||||
{/strip}
|
|
||||||
7
template/globals/faction.tpl.php
Normal file
7
template/globals/faction.tpl.php
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
var _ = g_factions;
|
||||||
|
{strip}
|
||||||
|
<?php
|
||||||
|
foreach ($vars as $id => $data):
|
||||||
|
echo '_['.$id.']={name_'.User::$localeString.':\''.Util::jsEscape($data['name']).'\'};';
|
||||||
|
endforeach;
|
||||||
|
?>
|
||||||
@@ -1,16 +0,0 @@
|
|||||||
var _ = g_items;
|
|
||||||
{strip}
|
|
||||||
{foreach from=$data key=id item=item}
|
|
||||||
_[{$id}]={ldelim}
|
|
||||||
name_{$user.language}:'{$item.name|escape:"javascript"}',
|
|
||||||
icon:'{$item.icon|escape:"javascript"}'
|
|
||||||
{if isset($item.quality)}, quality:'{$item.quality}'{/if}
|
|
||||||
{rdelim};
|
|
||||||
{/foreach}
|
|
||||||
|
|
||||||
{if $extra}
|
|
||||||
_[{$extra.id}].tooltip_{$user.language} = '{$extra.tooltip}';
|
|
||||||
_[{$extra.id}].spells_{$user.language} = {$extra.spells|@json_encode:$smarty.const.JSON_NUMERIC_CHECK};
|
|
||||||
{/if}
|
|
||||||
|
|
||||||
{/strip}
|
|
||||||
15
template/globals/item.tpl.php
Normal file
15
template/globals/item.tpl.php
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
var _ = g_items;
|
||||||
|
<?php
|
||||||
|
foreach ($vars as $id => $data):
|
||||||
|
echo '_['.$id.']={' .
|
||||||
|
'name_'.User::$localeString.':\''.Util::jsEscape($data['name']).'\',' .
|
||||||
|
'icon:\''.Util::jsEscape($data['icon']).'\'' .
|
||||||
|
(isset($data['quality']) ? ', quality:\''.$data['quality'].'\'' : null) .
|
||||||
|
'};';
|
||||||
|
endforeach;
|
||||||
|
|
||||||
|
if ($extra):
|
||||||
|
echo '_['.$extra['id'].'].tooltip_'.User::$localeString.' = \''.$extra['tooltip'].'\'';
|
||||||
|
echo '_['.$extra['id'].'].spells_'.User::$localeString.' = {'.json_encode($extra['spells'], JSON_NUMERIC_CHECK).'};';
|
||||||
|
endif;
|
||||||
|
?>
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
var _ = g_objects;
|
|
||||||
{strip}
|
|
||||||
{foreach from=$data key=id item=item}
|
|
||||||
_[{$id}]={ldelim}
|
|
||||||
name_{$user.language}:'{$item.name|escape:"javascript"}'
|
|
||||||
{rdelim};
|
|
||||||
{/foreach}
|
|
||||||
{/strip}
|
|
||||||
6
template/globals/object.tpl.php
Normal file
6
template/globals/object.tpl.php
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
var _ = g_objects;
|
||||||
|
<?php
|
||||||
|
foreach ($vars as $id => $data):
|
||||||
|
echo '_['.$id.']={name_'.User::$localeString.':\''.Util::jsEscape($data['name']).'\'};';
|
||||||
|
endforeach;
|
||||||
|
?>
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
var _ = g_pets;
|
|
||||||
{strip}
|
|
||||||
{foreach from=$data key=id item=item}
|
|
||||||
_[{$id}]={ldelim}
|
|
||||||
icon:'{$item.icon|escape:"javascript"}'
|
|
||||||
{rdelim};
|
|
||||||
{/foreach}
|
|
||||||
{/strip}
|
|
||||||
6
template/globals/pet.tpl.php
Normal file
6
template/globals/pet.tpl.php
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
var _ = g_pets;
|
||||||
|
<?php
|
||||||
|
foreach ($vars as $id => $data):
|
||||||
|
echo '_['.$id.']={icon:\''.Util::jsEscape($data['icon']).'\'};';
|
||||||
|
endforeach;
|
||||||
|
?>
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
var _ = g_quests;
|
|
||||||
{strip}
|
|
||||||
{foreach from=$data key=id item=item}
|
|
||||||
_[{$id}]={ldelim}
|
|
||||||
name_{$user.language}:'{$item.name|escape:"javascript"}'
|
|
||||||
{rdelim};
|
|
||||||
{/foreach}
|
|
||||||
{/strip}
|
|
||||||
6
template/globals/quest.tpl.php
Normal file
6
template/globals/quest.tpl.php
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
var _ = g_quests;
|
||||||
|
<?php
|
||||||
|
foreach ($vars as $id => $data):
|
||||||
|
echo '_['.$id.']={name_'.User::$localeString.':\''.Util::jsEscape($data['name']).'\'};';
|
||||||
|
endforeach;
|
||||||
|
?>
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
var _ = g_races;
|
|
||||||
{strip}
|
|
||||||
{foreach from=$data key=id item=item}
|
|
||||||
_[{$id}]={ldelim}
|
|
||||||
name_{$user.language}:'{$item.name|escape:"javascript"}'
|
|
||||||
{rdelim};
|
|
||||||
{/foreach}
|
|
||||||
{/strip}
|
|
||||||
6
template/globals/race.tpl.php
Normal file
6
template/globals/race.tpl.php
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
var _ = g_races;
|
||||||
|
<?php
|
||||||
|
foreach ($vars as $id => $data):
|
||||||
|
echo '_['.$id.']={name_'.User::$localeString.':\''.Util::jsEscape($data['name']).'\'};';
|
||||||
|
endforeach;
|
||||||
|
?>
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
var _ = g_skills;
|
|
||||||
{strip}
|
|
||||||
{foreach from=$data key=id item=item}
|
|
||||||
_[{$id}]={ldelim}
|
|
||||||
name_{$user.language}:'{$item.name|escape:"javascript"}',
|
|
||||||
icon:'{$item.icon|escape:"javascript"}'
|
|
||||||
{rdelim};
|
|
||||||
{/foreach}
|
|
||||||
{/strip}
|
|
||||||
9
template/globals/skill.tpl.php
Normal file
9
template/globals/skill.tpl.php
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
var _ = g_skills;
|
||||||
|
<?php
|
||||||
|
foreach ($vars as $id => $data):
|
||||||
|
echo '_['.$id.']={' .
|
||||||
|
'name_'.User::$localeString.':\''.Util::jsEscape($data['name']).'\',' .
|
||||||
|
'icon:\''.Util::jsEscape($data['icon']).'\'' .
|
||||||
|
'};';
|
||||||
|
endforeach;
|
||||||
|
?>
|
||||||
@@ -1,17 +0,0 @@
|
|||||||
var _ = g_spells;
|
|
||||||
{strip}
|
|
||||||
{foreach from=$data key=id item=item}
|
|
||||||
_[{$id}]={ldelim}
|
|
||||||
name_{$user.language}:'{$item.name|escape:"javascript"}',
|
|
||||||
icon:'{$item.icon|escape:"javascript"}'
|
|
||||||
{rdelim};
|
|
||||||
{/foreach}
|
|
||||||
|
|
||||||
{if $extra}
|
|
||||||
_[{$extra.id}].tooltip_{$user.language} = '{$extra.tooltip}';
|
|
||||||
_[{$extra.id}].buff_{$user.language} = '{$extra.buff}';
|
|
||||||
_[{$extra.id}].spells_{$user.language} = {$extra.spells|@json_encode:$smarty.const.JSON_NUMERIC_CHECK};
|
|
||||||
_[{$extra.id}].buffspells_{$user.language} = {$extra.buffspells|@json_encode:$smarty.const.JSON_NUMERIC_CHECK};
|
|
||||||
{/if}
|
|
||||||
|
|
||||||
{/strip}
|
|
||||||
16
template/globals/spell.tpl.php
Normal file
16
template/globals/spell.tpl.php
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
var _ = g_spells;
|
||||||
|
<?php
|
||||||
|
foreach ($vars as $id => $data):
|
||||||
|
echo '_['.$id.']={' .
|
||||||
|
'name_'.User::$localeString.':\''.Util::jsEscape($data['name']).'\',' .
|
||||||
|
'icon:\''.Util::jsEscape($data['icon']).'\'' .
|
||||||
|
'};';
|
||||||
|
endforeach;
|
||||||
|
|
||||||
|
if ($extra):
|
||||||
|
echo '_['.$extra['id'].'].tooltip_'.User::$localeString.' = \''.$extra['tooltip'].'\'';
|
||||||
|
echo '_['.$extra['id'].'].buff_'.User::$localeString.' = \''.$extra['buff'].'\'';
|
||||||
|
echo '_['.$extra['id'].'].spells_'.User::$localeString.' = {'.json_encode($extra['spells'], JSON_NUMERIC_CHECK).'};';
|
||||||
|
echo '_['.$extra['id'].'].buffspells_'.User::$localeString.' = {'.json_encode($extra['buffspells'], JSON_NUMERIC_CHECK).'};';
|
||||||
|
endif;
|
||||||
|
?>
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
var _ = g_titles;
|
|
||||||
{strip}
|
|
||||||
{foreach from=$data key=id item=item}
|
|
||||||
_[{$id}]={ldelim}
|
|
||||||
name_{$user.language}:'{$item.name|escape:"javascript"}'
|
|
||||||
{if isset($item.namefemale)}, namefemale_{$user.language}:'{$item.namefemale|escape:"javascript"}'{/if}
|
|
||||||
{rdelim};
|
|
||||||
{/foreach}
|
|
||||||
{/strip}
|
|
||||||
10
template/globals/title.tpl.php
Normal file
10
template/globals/title.tpl.php
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
var _ = g_titles;
|
||||||
|
<?php
|
||||||
|
foreach ($vars as $id => $data):
|
||||||
|
echo '_['.$id.']={name_'.User::$localeString.':\''.Util::jsEscape($data['name']).'\'';
|
||||||
|
if (isset($data['namefemale'])):
|
||||||
|
echo ', namefemale_'.User::$localeString.':\''.Util::jsEscape($data['namefemale']).'\'';
|
||||||
|
endif;
|
||||||
|
echo '};'
|
||||||
|
endforeach;
|
||||||
|
?>
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
var _ = g_gatheredzones;
|
|
||||||
{strip}
|
|
||||||
{foreach from=$data key=id item=item}
|
|
||||||
_[{$id}]={ldelim}
|
|
||||||
name_{$user.language}:'{$item.name|escape:"javascript"}'
|
|
||||||
{rdelim};
|
|
||||||
{/foreach}
|
|
||||||
{/strip}
|
|
||||||
6
template/globals/zone.tpl.php
Normal file
6
template/globals/zone.tpl.php
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
var _ = g_gatheredzones;
|
||||||
|
<?php
|
||||||
|
foreach ($vars as $id => $data):
|
||||||
|
echo '_['.$id.']={name_'.User::$localeString.':\''.Util::jsEscape($data['name']).'\'};';
|
||||||
|
endforeach;
|
||||||
|
?>
|
||||||
@@ -1,50 +0,0 @@
|
|||||||
<title>{if $title}{$title|escape:"html"} - {/if}{$appName}</title>
|
|
||||||
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
|
|
||||||
<meta http-equiv="X-UA-Compatible" content="chrome=1">
|
|
||||||
<link rel="SHORTCUT ICON" href="{$smarty.const.STATIC_URL}/images/logos/favicon.ico">
|
|
||||||
<link rel="search" type="application/opensearchdescription+xml" href="{$smarty.const.STATIC_URL}/download/searchplugins/aowow.xml" title="Aowow" />
|
|
||||||
<link rel="stylesheet" type="text/css" href="{$smarty.const.STATIC_URL}/css/basic.css?{$AOWOW_REVISION}" />
|
|
||||||
<link rel="stylesheet" type="text/css" href="{$smarty.const.STATIC_URL}/css/global.css?{$AOWOW_REVISION}" />
|
|
||||||
<link rel="stylesheet" type="text/css" href="{$smarty.const.STATIC_URL}/css/locale_{$user.language}.css?{$AOWOW_REVISION}" />
|
|
||||||
<!--[if IE]><link rel="stylesheet" type="text/css" href="{$smarty.const.STATIC_URL}/css/global_ie.css?{$AOWOW_REVISION}" /><![endif]-->
|
|
||||||
<!--[if lte IE 6]><link rel="stylesheet" type="text/css" href="{$smarty.const.STATIC_URL}/css/global_ie6.css?{$AOWOW_REVISION}" /><![endif]-->
|
|
||||||
<!--[if lte IE 7]><link rel="stylesheet" type="text/css" href="{$smarty.const.STATIC_URL}/css/global_ie67.css?{$AOWOW_REVISION}" /><![endif]-->
|
|
||||||
{foreach from=$reqCSS item=css}
|
|
||||||
{if !empty($css.string)}
|
|
||||||
<style type="text/css">{$css.string}</style>
|
|
||||||
{elseif !empty($css.path)}
|
|
||||||
{if !empty($css.ieCond)}<!--[if {$css.ieCond}]>{/if}<link rel="stylesheet" type="text/css" href="{$css.path}?{$AOWOW_REVISION}" />{if !empty($css.ieCond)}<![endif]-->{/if}
|
|
||||||
{/if}
|
|
||||||
{/foreach}
|
|
||||||
<script type="text/javascript">
|
|
||||||
var g_serverTime = new Date('{$smarty.now|date_format:"%Y/%m/%d %H:%M:%S"}');
|
|
||||||
var g_staticUrl = "{$smarty.const.STATIC_URL}";
|
|
||||||
var g_host = "{$smarty.const.HOST_URL}";
|
|
||||||
{if !empty($dataKey)}
|
|
||||||
var g_dataKey = '{$dataKey}';
|
|
||||||
{/if}
|
|
||||||
</script>
|
|
||||||
<script src="{$smarty.const.STATIC_URL}/js/jquery-1.4.2.min.js" type="text/javascript"></script>
|
|
||||||
<script src="{$smarty.const.STATIC_URL}/js/basic.js?{$AOWOW_REVISION}" type="text/javascript"></script>
|
|
||||||
<script src="{$smarty.const.STATIC_URL}/widgets/power.js?lang={$user.language|substr:2}" type="text/javascript"></script>
|
|
||||||
<script src="{$smarty.const.STATIC_URL}/js/locale_{$user.language}.js?{$AOWOW_REVISION}" type="text/javascript"></script>
|
|
||||||
<script src="{$smarty.const.STATIC_URL}/js/global.js?{$AOWOW_REVISION}" type="text/javascript"></script>
|
|
||||||
<script src="{$smarty.const.STATIC_URL}/js/Markup.js?{$AOWOW_REVISION}" type="text/javascript"></script>
|
|
||||||
{foreach from=$reqJS item=file}{if !empty($file)}
|
|
||||||
<script src="{$file}{if $file[0] == '?'}&{else}?{/if}{$AOWOW_REVISION}" type="text/javascript"></script>
|
|
||||||
{/if}{/foreach}
|
|
||||||
<script type="text/javascript">
|
|
||||||
var g_locale = {ldelim} id:{$user.locale}, name:'{$user.language}' {rdelim};
|
|
||||||
var g_user = {ldelim} {strip}
|
|
||||||
commentban:false,
|
|
||||||
ratingban:false,
|
|
||||||
id:{$user.id},
|
|
||||||
name:'{$user.name|escape:"quotes"}',
|
|
||||||
roles:{$user.roles},
|
|
||||||
permissions:{$user.perms},
|
|
||||||
cookies: {$user.cookies}
|
|
||||||
{if isset($user.chars)}, characters: {$user.chars} {/if}
|
|
||||||
{if isset($user.profiles)}, profiles: {$user.profiles}{/if}
|
|
||||||
{if isset($user.weights)}, weightscales: {$user.weights}{/if}
|
|
||||||
{/strip} {rdelim};
|
|
||||||
</script>
|
|
||||||
@@ -1,54 +0,0 @@
|
|||||||
{include file='header.tpl'}
|
|
||||||
|
|
||||||
<div class="main" id="main">
|
|
||||||
<div class="main-precontents" id="main-precontents"></div>
|
|
||||||
<div class="main-contents" id="main-contents">
|
|
||||||
|
|
||||||
{if !empty($announcements)}
|
|
||||||
{foreach from=$announcements item=item}
|
|
||||||
{include file='bricks/announcement.tpl' an=$item}
|
|
||||||
{/foreach}
|
|
||||||
{/if}
|
|
||||||
|
|
||||||
{include file='bricks/mapper.tpl'}
|
|
||||||
|
|
||||||
<script type="text/javascript">//<![CDATA[
|
|
||||||
g_initPath({$path});
|
|
||||||
//]]></script>
|
|
||||||
|
|
||||||
{if !empty($name) || !empty($h1Links)}
|
|
||||||
<div class="text">
|
|
||||||
{if !empty($h1Links)}
|
|
||||||
<div class="h1-links">{$h1Links}</div>
|
|
||||||
{/if}
|
|
||||||
{if !empty($name)}
|
|
||||||
<h1>{$name}</h1>
|
|
||||||
{/if}
|
|
||||||
</div>
|
|
||||||
{/if}
|
|
||||||
|
|
||||||
{if !empty($lvData)}
|
|
||||||
{if count($lvData) > 1}
|
|
||||||
<div id="tabs-generic"></div>
|
|
||||||
{/if}
|
|
||||||
<div id="lv-generic" class="listview"></div>
|
|
||||||
<script type="text/javascript">//<![CDATA[
|
|
||||||
{if count($lvData) > 1}
|
|
||||||
var myTabs = new Tabs({ldelim}parent: $WH.ge('tabs-generic'){rdelim});
|
|
||||||
{/if}
|
|
||||||
{foreach from=$lvData item=lv}
|
|
||||||
{if isset($lv.file)}
|
|
||||||
{include file="listviews/`$lv.file`.tpl" data=$lv.data params=$lv.params}
|
|
||||||
{/if}
|
|
||||||
{/foreach}
|
|
||||||
{if count($lvData) > 1}
|
|
||||||
myTabs.flush();
|
|
||||||
{/if}
|
|
||||||
//]]></script>
|
|
||||||
<div class="clear"></div>
|
|
||||||
{/if}
|
|
||||||
|
|
||||||
</div><!-- main-contents -->
|
|
||||||
</div><!-- main -->
|
|
||||||
|
|
||||||
{include file='footer.tpl'}
|
|
||||||
@@ -1,28 +0,0 @@
|
|||||||
{strip}
|
|
||||||
new Listview({ldelim}
|
|
||||||
template:'achievement',
|
|
||||||
{if !isset($params.id)}id:'achievements',{/if}
|
|
||||||
{if !isset($params.name)}name:LANG.tab_achievements,{/if}
|
|
||||||
{if !isset($params.parent)}parent:'lv-generic',{/if}
|
|
||||||
{foreach from=$params key=k item=v}
|
|
||||||
{if $v[0] == '$'}
|
|
||||||
{$k}:{$v|substr:1},
|
|
||||||
{else if $v}
|
|
||||||
{$k}:'{$v}',
|
|
||||||
{/if}
|
|
||||||
{/foreach}
|
|
||||||
data:[
|
|
||||||
{foreach name=i from=$data item=curr}
|
|
||||||
{ldelim}
|
|
||||||
{foreach from=$curr key='name' item=val}
|
|
||||||
{if $name != 'id'}
|
|
||||||
{$name}:{$val|@json_encode:$smarty.const.JSON_NUMERIC_CHECK},
|
|
||||||
{/if}
|
|
||||||
{/foreach}
|
|
||||||
id:{$curr.id}
|
|
||||||
{rdelim}
|
|
||||||
{if $smarty.foreach.i.last}{else},{/if}
|
|
||||||
{/foreach}
|
|
||||||
]
|
|
||||||
{rdelim});
|
|
||||||
{/strip}
|
|
||||||
17
template/listviews/achievement.tpl.php
Normal file
17
template/listviews/achievement.tpl.php
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
new Listview({
|
||||||
|
template:'achievement',
|
||||||
|
<?php
|
||||||
|
echo !isset($params['id']) ? "id:'achievements'," : null;
|
||||||
|
echo !isset($params['name']) ? "name:LANG.tab_achievements," : null;
|
||||||
|
echo !isset($params['parent']) ? "parent:'lv-generic'," : null;
|
||||||
|
|
||||||
|
foreach ($params as $k => $v):
|
||||||
|
if ($v[0] == '$'):
|
||||||
|
echo $k.':'.substr($v, 1).',';
|
||||||
|
elseif ($v):
|
||||||
|
echo $k.":'".$v."',";
|
||||||
|
endif;
|
||||||
|
endforeach;
|
||||||
|
?>
|
||||||
|
data:<?php echo json_encode(array_values($data), JSON_NUMERIC_CHECK); ?>
|
||||||
|
});
|
||||||
@@ -1,28 +0,0 @@
|
|||||||
{strip}
|
|
||||||
new Listview({ldelim}
|
|
||||||
template:'holidaycal',
|
|
||||||
{if !isset($params.id)}id:'calendar',{/if}
|
|
||||||
{if !isset($params.name)}name:LANG.tab_calendar,{/if}
|
|
||||||
{if !isset($params.parent)}parent:'lv-generic',{/if}
|
|
||||||
{foreach from=$params key=k item=v}
|
|
||||||
{if $v[0] == '$'}
|
|
||||||
{$k}:{$v|substr:1},
|
|
||||||
{else if $v}
|
|
||||||
{$k}:'{$v}',
|
|
||||||
{/if}
|
|
||||||
{/foreach}
|
|
||||||
data:[
|
|
||||||
{foreach name=i from=$data item=curr}
|
|
||||||
{ldelim}
|
|
||||||
{foreach from=$curr key='name' item=val}
|
|
||||||
{if $name != 'id'}
|
|
||||||
{$name}:{$val|@json_encode:$smarty.const.JSON_NUMERIC_CHECK},
|
|
||||||
{/if}
|
|
||||||
{/foreach}
|
|
||||||
id:{$curr.id}
|
|
||||||
{rdelim}
|
|
||||||
{if $smarty.foreach.i.last}{else},{/if}
|
|
||||||
{/foreach}
|
|
||||||
]
|
|
||||||
{rdelim});
|
|
||||||
{/strip}
|
|
||||||
17
template/listviews/calendar.tpl.php
Normal file
17
template/listviews/calendar.tpl.php
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
new Listview({
|
||||||
|
template:'holidaycal',
|
||||||
|
<?php
|
||||||
|
echo !isset($params['id']) ? "id:'calendar'," : null;
|
||||||
|
echo !isset($params['name']) ? "name:LANG.tab_calendar," : null;
|
||||||
|
echo !isset($params['parent']) ? "parent:'lv-generic'," : null;
|
||||||
|
|
||||||
|
foreach ($params as $k => $v):
|
||||||
|
if ($v[0] == '$'):
|
||||||
|
echo $k.':'.substr($v, 1).',';
|
||||||
|
elseif ($v):
|
||||||
|
echo $k.":'".$v."',";
|
||||||
|
endif;
|
||||||
|
endforeach;
|
||||||
|
?>
|
||||||
|
data:<?php echo json_encode(array_values($data), JSON_NUMERIC_CHECK); ?>
|
||||||
|
});
|
||||||
@@ -1,6 +1,5 @@
|
|||||||
{strip}
|
|
||||||
us_addCharactersTab([
|
us_addCharactersTab([
|
||||||
{ldelim}
|
{
|
||||||
id:763,
|
id:763,
|
||||||
"name":"Lilywhite",
|
"name":"Lilywhite",
|
||||||
"achievementpoints":"0",
|
"achievementpoints":"0",
|
||||||
@@ -23,6 +22,6 @@
|
|||||||
"talentspec":0,
|
"talentspec":0,
|
||||||
"published":1,
|
"published":1,
|
||||||
"pinned":0
|
"pinned":0
|
||||||
{rdelim}
|
}
|
||||||
]);
|
]);
|
||||||
{/strip}
|
{/strip}
|
||||||
@@ -1,28 +0,0 @@
|
|||||||
{strip}
|
|
||||||
new Listview({ldelim}
|
|
||||||
template:'classs',
|
|
||||||
{if !isset($params.id)}id:'classes',{/if}
|
|
||||||
{if !isset($params.name)}name:LANG.tab_classes,{/if}
|
|
||||||
{if !isset($params.parent)}parent:'lv-generic',{/if}
|
|
||||||
{foreach from=$params key=k item=v}
|
|
||||||
{if $v[0] == '$'}
|
|
||||||
{$k}:{$v|substr:1},
|
|
||||||
{else if $v}
|
|
||||||
{$k}:'{$v}',
|
|
||||||
{/if}
|
|
||||||
{/foreach}
|
|
||||||
data:[
|
|
||||||
{foreach name=i from=$data item=curr}
|
|
||||||
{ldelim}
|
|
||||||
{foreach from=$curr key='name' item=val}
|
|
||||||
{if $name != 'id'}
|
|
||||||
{$name}:{$val|@json_encode:$smarty.const.JSON_NUMERIC_CHECK},
|
|
||||||
{/if}
|
|
||||||
{/foreach}
|
|
||||||
id:{$curr.id}
|
|
||||||
{rdelim}
|
|
||||||
{if $smarty.foreach.i.last}{else},{/if}
|
|
||||||
{/foreach}
|
|
||||||
]
|
|
||||||
{rdelim});
|
|
||||||
{/strip}
|
|
||||||
17
template/listviews/class.tpl.php
Normal file
17
template/listviews/class.tpl.php
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
new Listview({
|
||||||
|
template:'classs',
|
||||||
|
<?php
|
||||||
|
echo !isset($params['id']) ? "id:'classes'," : null;
|
||||||
|
echo !isset($params['name']) ? "name:LANG.tab_classes," : null;
|
||||||
|
echo !isset($params['parent']) ? "parent:'lv-generic'," : null;
|
||||||
|
|
||||||
|
foreach ($params as $k => $v):
|
||||||
|
if ($v[0] == '$'):
|
||||||
|
echo $k.':'.substr($v, 1).',';
|
||||||
|
elseif ($v):
|
||||||
|
echo $k.":'".$v."',";
|
||||||
|
endif;
|
||||||
|
endforeach;
|
||||||
|
?>
|
||||||
|
data:<?php echo json_encode(array_values($data), JSON_NUMERIC_CHECK); ?>
|
||||||
|
});
|
||||||
@@ -1,30 +0,0 @@
|
|||||||
{strip}
|
|
||||||
new Listview({ldelim}
|
|
||||||
template: 'commentpreview',
|
|
||||||
id: 'comments',
|
|
||||||
{if !isset($params.parent)}parent:'lv-generic',{/if}
|
|
||||||
{foreach from=$params key=k item=v}
|
|
||||||
{if $v[0] == '$'}
|
|
||||||
{$k}:{$v|substr:1},
|
|
||||||
{else if $v}
|
|
||||||
{$k}:'{$v}',
|
|
||||||
{/if}
|
|
||||||
{/foreach}
|
|
||||||
data: [
|
|
||||||
{foreach name=i from=$data item=curr}
|
|
||||||
{ldelim}
|
|
||||||
id:{$curr.id},
|
|
||||||
user:'{$curr.user|escape:"javascript"}',
|
|
||||||
date:'{$curr.date|date_format:"%Y/%m/%d %H:%M:%S"}',
|
|
||||||
preview:'{$curr.preview|escape:"javascript"}',
|
|
||||||
subject:'{$curr.subject|escape:"javascript"}',
|
|
||||||
rating: {$curr.rating},
|
|
||||||
deleted:{$curr.deleted},
|
|
||||||
type:{$curr.type},
|
|
||||||
typeId:{$curr.typeId}
|
|
||||||
{rdelim}
|
|
||||||
{if $smarty.foreach.i.last}{else},{/if}
|
|
||||||
{/foreach}
|
|
||||||
]
|
|
||||||
{rdelim});
|
|
||||||
{/strip}
|
|
||||||
29
template/listviews/commentpreview.tpl.php
Normal file
29
template/listviews/commentpreview.tpl.php
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
new Listview({
|
||||||
|
template:'commentpreview',
|
||||||
|
id: 'comments',
|
||||||
|
<?php
|
||||||
|
echo !isset($params['parent']) ? "parent:'lv-generic'," : null;
|
||||||
|
|
||||||
|
foreach ($params as $k => $v):
|
||||||
|
if ($v[0] == '$'):
|
||||||
|
echo $k.':'.substr($v, 1).',';
|
||||||
|
elseif ($v):
|
||||||
|
echo $k.":'".$v."',";
|
||||||
|
endif;
|
||||||
|
endforeach;
|
||||||
|
/* data:
|
||||||
|
{
|
||||||
|
id:{$curr.id},
|
||||||
|
user:'{$curr.user|escape:"javascript"}',
|
||||||
|
date:'{$curr.date|date_format:"%Y/%m/%d %H:%M:%S"}',
|
||||||
|
preview:'{$curr.preview|escape:"javascript"}',
|
||||||
|
subject:'{$curr.subject|escape:"javascript"}',
|
||||||
|
rating: {$curr.rating},
|
||||||
|
deleted:{$curr.deleted},
|
||||||
|
type:{$curr.type},
|
||||||
|
typeId:{$curr.typeId}
|
||||||
|
}
|
||||||
|
*/
|
||||||
|
?>
|
||||||
|
data:<?php echo json_encode(array_values($data), JSON_NUMERIC_CHECK); ?>
|
||||||
|
});
|
||||||
@@ -1,28 +0,0 @@
|
|||||||
{strip}
|
|
||||||
new Listview({ldelim}
|
|
||||||
template:'npc',
|
|
||||||
{if !isset($params.id)}id:'npcs',{/if}
|
|
||||||
{if !isset($params.name)}name:LANG.tab_npcs,{/if}
|
|
||||||
{if !isset($params.parent)}parent:'lv-generic',{/if}
|
|
||||||
{foreach name=params from=$params key=k item=v}
|
|
||||||
{if $v[0] == '$'}
|
|
||||||
{$k}:{$v|substr:1},
|
|
||||||
{else if $v}
|
|
||||||
{$k}:'{$v}',
|
|
||||||
{/if}
|
|
||||||
{/foreach}
|
|
||||||
data:[
|
|
||||||
{foreach name=i from=$data item=curr}
|
|
||||||
{ldelim}
|
|
||||||
{foreach from=$curr key='name' item=val}
|
|
||||||
{if $name != 'id'}
|
|
||||||
{$name}:{$val|@json_encode:$smarty.const.JSON_NUMERIC_CHECK},
|
|
||||||
{/if}
|
|
||||||
{/foreach}
|
|
||||||
id:{$curr.id}
|
|
||||||
{rdelim}
|
|
||||||
{if $smarty.foreach.i.last}{else},{/if}
|
|
||||||
{/foreach}
|
|
||||||
]{rdelim}
|
|
||||||
);
|
|
||||||
{/strip}
|
|
||||||
17
template/listviews/creature.tpl.php
Normal file
17
template/listviews/creature.tpl.php
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
new Listview({
|
||||||
|
template:'npc',
|
||||||
|
<?php
|
||||||
|
echo !isset($params['id']) ? "id:'npcs'," : null;
|
||||||
|
echo !isset($params['name']) ? "name:LANG.tab_npcs," : null;
|
||||||
|
echo !isset($params['parent']) ? "parent:'lv-generic'," : null;
|
||||||
|
|
||||||
|
foreach ($params as $k => $v):
|
||||||
|
if ($v[0] == '$'):
|
||||||
|
echo $k.':'.substr($v, 1).',';
|
||||||
|
elseif ($v):
|
||||||
|
echo $k.":'".$v."',";
|
||||||
|
endif;
|
||||||
|
endforeach;
|
||||||
|
?>
|
||||||
|
data:<?php echo json_encode(array_values($data), JSON_NUMERIC_CHECK); ?>
|
||||||
|
});
|
||||||
@@ -1,28 +0,0 @@
|
|||||||
{strip}
|
|
||||||
new Listview({ldelim}
|
|
||||||
template:'currency',
|
|
||||||
{if !isset($params.id)}id:'currencies',{/if}
|
|
||||||
{if !isset($params.name)}name:LANG.tab_currencies,{/if}
|
|
||||||
{if !isset($params.parent)}parent:'lv-generic',{/if}
|
|
||||||
{foreach from=$params key=k item=v}
|
|
||||||
{if $v[0] == '$'}
|
|
||||||
{$k}:{$v|substr:1},
|
|
||||||
{else if $v}
|
|
||||||
{$k}:'{$v}',
|
|
||||||
{/if}
|
|
||||||
{/foreach}
|
|
||||||
data:[
|
|
||||||
{foreach name=i from=$data item=curr}
|
|
||||||
{ldelim}
|
|
||||||
{foreach from=$curr key='name' item=val}
|
|
||||||
{if $name != 'id'}
|
|
||||||
{$name}:{$val|@json_encode:$smarty.const.JSON_NUMERIC_CHECK},
|
|
||||||
{/if}
|
|
||||||
{/foreach}
|
|
||||||
id:{$curr.id}
|
|
||||||
{rdelim}
|
|
||||||
{if $smarty.foreach.i.last}{else},{/if}
|
|
||||||
{/foreach}
|
|
||||||
]
|
|
||||||
{rdelim});
|
|
||||||
{/strip}
|
|
||||||
17
template/listviews/currency.tpl.php
Normal file
17
template/listviews/currency.tpl.php
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
new Listview({
|
||||||
|
template:'currency',
|
||||||
|
<?php
|
||||||
|
echo !isset($params['id']) ? "id:'currencies'," : null;
|
||||||
|
echo !isset($params['name']) ? "name:LANG.tab_currencies," : null;
|
||||||
|
echo !isset($params['parent']) ? "parent:'lv-generic'," : null;
|
||||||
|
|
||||||
|
foreach ($params as $k => $v):
|
||||||
|
if ($v[0] == '$'):
|
||||||
|
echo $k.':'.substr($v, 1).',';
|
||||||
|
elseif ($v):
|
||||||
|
echo $k.":'".$v."',";
|
||||||
|
endif;
|
||||||
|
endforeach;
|
||||||
|
?>
|
||||||
|
data:<?php echo json_encode(array_values($data), JSON_NUMERIC_CHECK); ?>
|
||||||
|
});
|
||||||
@@ -1,28 +0,0 @@
|
|||||||
{strip}
|
|
||||||
new Listview({ldelim}
|
|
||||||
template:'holiday',
|
|
||||||
{if !isset($params.id)}id:'holidays',{/if}
|
|
||||||
{if !isset($params.name)}name:LANG.tab_holidays,{/if}
|
|
||||||
{if !isset($params.parent)}parent:'lv-generic',{/if}
|
|
||||||
{foreach from=$params key=k item=v}
|
|
||||||
{if $v[0] == '$'}
|
|
||||||
{$k}:{$v|substr:1},
|
|
||||||
{else if $v}
|
|
||||||
{$k}:'{$v}',
|
|
||||||
{/if}
|
|
||||||
{/foreach}
|
|
||||||
data:[
|
|
||||||
{foreach name=i from=$data item=curr}
|
|
||||||
{ldelim}
|
|
||||||
{foreach from=$curr key='name' item=val}
|
|
||||||
{if $name != 'id'}
|
|
||||||
{$name}:{$val|@json_encode:$smarty.const.JSON_NUMERIC_CHECK},
|
|
||||||
{/if}
|
|
||||||
{/foreach}
|
|
||||||
id:{$curr.id}
|
|
||||||
{rdelim}
|
|
||||||
{if $smarty.foreach.i.last}{else},{/if}
|
|
||||||
{/foreach}
|
|
||||||
]
|
|
||||||
{rdelim});
|
|
||||||
{/strip}
|
|
||||||
17
template/listviews/event.tpl.php
Normal file
17
template/listviews/event.tpl.php
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
new Listview({
|
||||||
|
template:'holiday',
|
||||||
|
<?php
|
||||||
|
echo !isset($params['id']) ? "id:'holidays'," : null;
|
||||||
|
echo !isset($params['name']) ? "name:LANG.tab_holidays," : null;
|
||||||
|
echo !isset($params['parent']) ? "parent:'lv-generic'," : null;
|
||||||
|
|
||||||
|
foreach ($params as $k => $v):
|
||||||
|
if ($v[0] == '$'):
|
||||||
|
echo $k.':'.substr($v, 1).',';
|
||||||
|
elseif ($v):
|
||||||
|
echo $k.":'".$v."',";
|
||||||
|
endif;
|
||||||
|
endforeach;
|
||||||
|
?>
|
||||||
|
data:<?php echo json_encode(array_values($data), JSON_NUMERIC_CHECK); ?>
|
||||||
|
});
|
||||||
@@ -1,28 +0,0 @@
|
|||||||
{strip}
|
|
||||||
new Listview({ldelim}
|
|
||||||
template:'faction',
|
|
||||||
{if !isset($params.id)}id:'factions',{/if}
|
|
||||||
{if !isset($params.name)}name:LANG.tab_factions,{/if}
|
|
||||||
{if !isset($params.parent)}parent:'lv-generic',{/if}
|
|
||||||
{foreach from=$params key=k item=v}
|
|
||||||
{if $v[0] == '$'}
|
|
||||||
{$k}:{$v|substr:1},
|
|
||||||
{else if $v}
|
|
||||||
{$k}:'{$v}',
|
|
||||||
{/if}
|
|
||||||
{/foreach}
|
|
||||||
data:[
|
|
||||||
{foreach name=i from=$data item=curr}
|
|
||||||
{ldelim}
|
|
||||||
{foreach from=$curr key='name' item=val}
|
|
||||||
{if $name != 'id'}
|
|
||||||
{$name}:{$val|@json_encode:$smarty.const.JSON_NUMERIC_CHECK},
|
|
||||||
{/if}
|
|
||||||
{/foreach}
|
|
||||||
id:{$curr.id}
|
|
||||||
{rdelim}
|
|
||||||
{if $smarty.foreach.i.last}{else},{/if}
|
|
||||||
{/foreach}
|
|
||||||
]
|
|
||||||
{rdelim});
|
|
||||||
{/strip}
|
|
||||||
17
template/listviews/faction.tpl.php
Normal file
17
template/listviews/faction.tpl.php
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
new Listview({
|
||||||
|
template:'faction',
|
||||||
|
<?php
|
||||||
|
echo !isset($params['id']) ? "id:'factions'," : null;
|
||||||
|
echo !isset($params['name']) ? "name:LANG.tab_factions," : null;
|
||||||
|
echo !isset($params['parent']) ? "parent:'lv-generic'," : null;
|
||||||
|
|
||||||
|
foreach ($params as $k => $v):
|
||||||
|
if ($v[0] == '$'):
|
||||||
|
echo $k.':'.substr($v, 1).',';
|
||||||
|
elseif ($v):
|
||||||
|
echo $k.":'".$v."',";
|
||||||
|
endif;
|
||||||
|
endforeach;
|
||||||
|
?>
|
||||||
|
data:<?php echo json_encode(array_values($data), JSON_NUMERIC_CHECK); ?>
|
||||||
|
});
|
||||||
@@ -1,29 +0,0 @@
|
|||||||
{strip}
|
|
||||||
new Listview({ldelim}
|
|
||||||
template:'genericmodel',
|
|
||||||
{if !isset($params.id)}id:'same-model-as',{/if}
|
|
||||||
{if !isset($params.name)}name:LANG.tab_samemodelas,{/if}
|
|
||||||
{if !isset($params.parent)}parent:'lv-generic',{/if}
|
|
||||||
{* genericlinktype: 'item|object', *}
|
|
||||||
{foreach from=$params key=k item=v}
|
|
||||||
{if $v[0] == '$'}
|
|
||||||
{$k}:{$v|substr:1},
|
|
||||||
{else if $v}
|
|
||||||
{$k}:'{$v}',
|
|
||||||
{/if}
|
|
||||||
{/foreach}
|
|
||||||
data:[
|
|
||||||
{foreach name=i from=$data item=curr}
|
|
||||||
{ldelim}
|
|
||||||
{foreach from=$curr key='name' item=val}
|
|
||||||
{if $name != 'id'}
|
|
||||||
{$name}:{$val|@json_encode:$smarty.const.JSON_NUMERIC_CHECK},
|
|
||||||
{/if}
|
|
||||||
{/foreach}
|
|
||||||
id:{$curr.id}
|
|
||||||
{rdelim}
|
|
||||||
{if $smarty.foreach.i.last}{else},{/if}
|
|
||||||
{/foreach}
|
|
||||||
]
|
|
||||||
{rdelim});
|
|
||||||
{/strip}
|
|
||||||
18
template/listviews/genericmodel.tpl.php
Normal file
18
template/listviews/genericmodel.tpl.php
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
new Listview({
|
||||||
|
template:'genericmodel',
|
||||||
|
<?php
|
||||||
|
echo !isset($params['id']) ? "id:'same-model-as'," : null;
|
||||||
|
echo !isset($params['name']) ? "name:LANG.tab_samemodelas," : null;
|
||||||
|
echo !isset($params['parent']) ? "parent:'lv-generic'," : null;
|
||||||
|
/* genericlinktype: 'item|object', */
|
||||||
|
|
||||||
|
foreach ($params as $k => $v):
|
||||||
|
if ($v[0] == '$'):
|
||||||
|
echo $k.':'.substr($v, 1).',';
|
||||||
|
elseif ($v):
|
||||||
|
echo $k.":'".$v."',";
|
||||||
|
endif;
|
||||||
|
endforeach;
|
||||||
|
?>
|
||||||
|
data:<?php echo json_encode(array_values($data), JSON_NUMERIC_CHECK); ?>
|
||||||
|
});
|
||||||
@@ -1,84 +0,0 @@
|
|||||||
{if !empty($tab.showRep)}
|
|
||||||
var _ = [
|
|
||||||
{ldelim}
|
|
||||||
id: 'standing',
|
|
||||||
after: 'reqlevel',
|
|
||||||
name: LANG.standing,
|
|
||||||
width: '12%',
|
|
||||||
value: 'standing',
|
|
||||||
type: 'text',
|
|
||||||
getValue: function(item)
|
|
||||||
{ldelim}
|
|
||||||
return g_reputation_standings[item.standing];
|
|
||||||
{rdelim},
|
|
||||||
compute: function(item, td)
|
|
||||||
{ldelim}
|
|
||||||
return g_reputation_standings[item.standing];
|
|
||||||
{rdelim}
|
|
||||||
{rdelim}
|
|
||||||
];
|
|
||||||
{/if}
|
|
||||||
|
|
||||||
{strip}
|
|
||||||
new Listview({ldelim}
|
|
||||||
template:'item',
|
|
||||||
{if !isset($params.id)}id:'items',{/if}
|
|
||||||
{if !isset($params.name)}name:LANG.tab_items,{/if}
|
|
||||||
{if !isset($params.parent)}parent:'lv-generic',{/if}
|
|
||||||
{foreach from=$params key=k item=v}
|
|
||||||
{if $v[0] == '$'}
|
|
||||||
{$k}:{$v|substr:1},
|
|
||||||
{else if $v}
|
|
||||||
{$k}:'{$v}',
|
|
||||||
{/if}
|
|
||||||
{/foreach}
|
|
||||||
data:[
|
|
||||||
{foreach name=i from=$data item=curr}
|
|
||||||
{ldelim}
|
|
||||||
{foreach from=$curr key='name' item=val}
|
|
||||||
{if $name != 'id'}
|
|
||||||
{$name}:{$val|@json_encode:$smarty.const.JSON_NUMERIC_CHECK},
|
|
||||||
{/if}
|
|
||||||
{/foreach}
|
|
||||||
id:{$curr.id}
|
|
||||||
{rdelim}
|
|
||||||
{if $smarty.foreach.i.last}{else},{/if}
|
|
||||||
{/foreach}
|
|
||||||
]
|
|
||||||
{rdelim});
|
|
||||||
{/strip}
|
|
||||||
|
|
||||||
{* 4.3 loot-example
|
|
||||||
|
|
||||||
template: 'item',
|
|
||||||
id: 'drops',
|
|
||||||
name: LANG.tab_drops,
|
|
||||||
tabs: tabsRelated,
|
|
||||||
parent: 'lkljbjkb574',
|
|
||||||
extraCols: [Listview.extraCols.count, Listview.extraCols.percent],
|
|
||||||
sort:['-percent', 'name'],
|
|
||||||
_totalCount: 448092, /* total # creature killed/looted */
|
|
||||||
computeDataFunc: Listview.funcBox.initLootTable,
|
|
||||||
onAfterCreate: Listview.funcBox.addModeIndicator,
|
|
||||||
data: [
|
|
||||||
{
|
|
||||||
"classs":15, /* Tab Type */
|
|
||||||
"commondrop":true, /* loot filtered as "not noteworthy" */
|
|
||||||
"id":25445,
|
|
||||||
"level":1,
|
|
||||||
"name":"7Wretched Ichor",
|
|
||||||
"slot":0,
|
|
||||||
"source":[2], /* 1: crafted; 2:zonedrop; 3:pvp; 4:quest; 5: Vendors; 6:Trainer; 7:Discovery; 8:Redemption; 9: Talent; 10:Starter; 11: Event; 12:Achievement; */
|
|
||||||
"sourcemore":[{"z":3520}], /* z: zone... */
|
|
||||||
"subclass":0, /* Tab:Type */
|
|
||||||
modes:{
|
|
||||||
"mode":4, /* &1: heroic; &4: noteworthy(?); &8: reg10; &16: reg25; &32: hc10; &64: hc25; &128: RaidFinder */
|
|
||||||
"4":{"count":363318,"outof":448092} /* calculate pct chance */
|
|
||||||
},
|
|
||||||
count:363318,
|
|
||||||
stack:[1,1], /* [min, max] */
|
|
||||||
pctstack:'{1: 50.0123, 2: 49.9877}' /* {dropCount: relChanceForThisStack} */
|
|
||||||
}
|
|
||||||
]
|
|
||||||
});
|
|
||||||
*}
|
|
||||||
78
template/listviews/item.tpl.php
Normal file
78
template/listviews/item.tpl.php
Normal file
@@ -0,0 +1,78 @@
|
|||||||
|
<?php
|
||||||
|
if (!empty($lv['showRep'])):
|
||||||
|
?>
|
||||||
|
var _ = [
|
||||||
|
{
|
||||||
|
id: 'standing',
|
||||||
|
after: 'reqlevel',
|
||||||
|
name: LANG.standing,
|
||||||
|
width: '12%',
|
||||||
|
value: 'standing',
|
||||||
|
type: 'text',
|
||||||
|
getValue: function(item)
|
||||||
|
{
|
||||||
|
return g_reputation_standings[item.standing];
|
||||||
|
},
|
||||||
|
compute: function(item, td)
|
||||||
|
{
|
||||||
|
return g_reputation_standings[item.standing];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
];
|
||||||
|
<?php
|
||||||
|
endif;
|
||||||
|
?>
|
||||||
|
|
||||||
|
new Listview({
|
||||||
|
template:'item',
|
||||||
|
<?php
|
||||||
|
echo !isset($params['id']) ? "id:'items'," : null;
|
||||||
|
echo !isset($params['name']) ? "name:LANG.tab_items," : null;
|
||||||
|
echo !isset($params['parent']) ? "parent:'lv-generic'," : null;
|
||||||
|
|
||||||
|
foreach ($params as $k => $v):
|
||||||
|
if ($v[0] == '$'):
|
||||||
|
echo $k.':'.substr($v, 1).',';
|
||||||
|
elseif ($v):
|
||||||
|
echo $k.":'".$v."',";
|
||||||
|
endif;
|
||||||
|
endforeach;
|
||||||
|
?>
|
||||||
|
data:<?php echo json_encode(array_values($data), JSON_NUMERIC_CHECK); ?>
|
||||||
|
});
|
||||||
|
|
||||||
|
<?php
|
||||||
|
// 4.3 loot-example
|
||||||
|
|
||||||
|
// template: 'item',
|
||||||
|
// id: 'drops',
|
||||||
|
// name: LANG.tab_drops,
|
||||||
|
// tabs: tabsRelated,
|
||||||
|
// parent: 'lkljbjkb574',
|
||||||
|
// extraCols: [Listview.extraCols.count, Listview.extraCols.percent],
|
||||||
|
// sort:['-percent', 'name'],
|
||||||
|
// _totalCount: 448092, /* total # creature killed/looted */
|
||||||
|
// computeDataFunc: Listview.funcBox.initLootTable,
|
||||||
|
// onAfterCreate: Listview.funcBox.addModeIndicator,
|
||||||
|
// data: [
|
||||||
|
// {
|
||||||
|
// "classs":15, /* Tab Type */
|
||||||
|
// "commondrop":true, /* loot filtered as "not noteworthy" */
|
||||||
|
// "id":25445,
|
||||||
|
// "level":1,
|
||||||
|
// "name":"7Wretched Ichor",
|
||||||
|
// "slot":0,
|
||||||
|
// "source":[2], /* 1: crafted; 2:zonedrop; 3:pvp; 4:quest; 5: Vendors; 6:Trainer; 7:Discovery; 8:Redemption; 9: Talent; 10:Starter; 11: Event; 12:Achievement; */
|
||||||
|
// "sourcemore":[{"z":3520}], /* z: zone... */
|
||||||
|
// "subclass":0, /* Tab:Type */
|
||||||
|
// modes:{
|
||||||
|
// "mode":4, /* &1: heroic; &4: noteworthy(?); &8: reg10; &16: reg25; &32: hc10; &64: hc25; &128: RaidFinder */
|
||||||
|
// "4":{"count":363318,"outof":448092} /* calculate pct chance */
|
||||||
|
// },
|
||||||
|
// count:363318,
|
||||||
|
// stack:[1,1], /* [min, max] */
|
||||||
|
// pctstack:'{1: 50.0123, 2: 49.9877}' /* {dropCount: relChanceForThisStack} */
|
||||||
|
// }
|
||||||
|
// ]
|
||||||
|
// });
|
||||||
|
?>
|
||||||
@@ -1,29 +0,0 @@
|
|||||||
{strip}
|
|
||||||
new Listview({ldelim}
|
|
||||||
template:'itemset',
|
|
||||||
{if !isset($params.id)}id:'itemsets',{/if}
|
|
||||||
{if !isset($params.name)}name:LANG.tab_itemsets,{/if}
|
|
||||||
{if !isset($params.parent)}parent:'lv-generic',{/if}
|
|
||||||
{foreach from=$params key=k item=v}
|
|
||||||
{if $v[0] == '$'}
|
|
||||||
{$k}:{$v|substr:1},
|
|
||||||
{else if $v}
|
|
||||||
{$k}:'{$v}',
|
|
||||||
{/if}
|
|
||||||
{/foreach}
|
|
||||||
data:[
|
|
||||||
{foreach name=i from=$data item=curr}
|
|
||||||
{ldelim}
|
|
||||||
{foreach from=$curr key='name' item=val}
|
|
||||||
{if $name != 'id' && $name != 'name' && $name != 'quality'}
|
|
||||||
{$name}:{$val|@json_encode:$smarty.const.JSON_NUMERIC_CHECK},
|
|
||||||
{/if}
|
|
||||||
{/foreach}
|
|
||||||
name:'{$curr.quality}{$curr.name|escape:"quotes"}',
|
|
||||||
id:{$curr.id}
|
|
||||||
{rdelim}
|
|
||||||
{if $smarty.foreach.i.last}{else},{/if}
|
|
||||||
{/foreach}
|
|
||||||
]
|
|
||||||
{rdelim});
|
|
||||||
{/strip}
|
|
||||||
17
template/listviews/itemset.tpl.php
Normal file
17
template/listviews/itemset.tpl.php
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
new Listview({
|
||||||
|
template:'itemset',
|
||||||
|
<?php
|
||||||
|
echo !isset($params['id']) ? "id:'itemsets'," : null;
|
||||||
|
echo !isset($params['name']) ? "name:LANG.tab_itemsets," : null;
|
||||||
|
echo !isset($params['parent']) ? "parent:'lv-generic'," : null;
|
||||||
|
|
||||||
|
foreach ($params as $k => $v):
|
||||||
|
if ($v[0] == '$'):
|
||||||
|
echo $k.':'.substr($v, 1).',';
|
||||||
|
elseif ($v):
|
||||||
|
echo $k.":'".$v."',";
|
||||||
|
endif;
|
||||||
|
endforeach;
|
||||||
|
?>
|
||||||
|
data:<?php echo json_encode(array_values($data), JSON_NUMERIC_CHECK); ?>
|
||||||
|
});
|
||||||
@@ -1,28 +0,0 @@
|
|||||||
{strip}
|
|
||||||
new Listview({ldelim}
|
|
||||||
template:'model',
|
|
||||||
{if !isset($params.id)}id:'gallery',{/if}
|
|
||||||
{if !isset($params.name)}name:LANG.tab_gallery,{/if}
|
|
||||||
{if !isset($params.parent)}parent:'lv-generic',{/if}
|
|
||||||
{foreach from=$params key=k item=v}
|
|
||||||
{if $v[0] == '$'}
|
|
||||||
{$k}:{$v|substr:1},
|
|
||||||
{else if $v}
|
|
||||||
{$k}:'{$v}',
|
|
||||||
{/if}
|
|
||||||
{/foreach}
|
|
||||||
data:[
|
|
||||||
{foreach name=i from=$data item=curr}
|
|
||||||
{ldelim}
|
|
||||||
{foreach from=$curr key='name' item=val}
|
|
||||||
{if $name != 'count'}
|
|
||||||
{$name}:{$val|@json_encode:$smarty.const.JSON_NUMERIC_CHECK},
|
|
||||||
{/if}
|
|
||||||
{/foreach}
|
|
||||||
count:{$curr.count}
|
|
||||||
{rdelim}
|
|
||||||
{if $smarty.foreach.i.last}{else},{/if}
|
|
||||||
{/foreach}
|
|
||||||
]
|
|
||||||
{rdelim});
|
|
||||||
{/strip}
|
|
||||||
17
template/listviews/model.tpl.php
Normal file
17
template/listviews/model.tpl.php
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
new Listview({
|
||||||
|
template:'model',
|
||||||
|
<?php
|
||||||
|
echo !isset($params['id']) ? "id:'gallery'," : null;
|
||||||
|
echo !isset($params['name']) ? "name:LANG.tab_gallery," : null;
|
||||||
|
echo !isset($params['parent']) ? "parent:'lv-generic'," : null;
|
||||||
|
|
||||||
|
foreach ($params as $k => $v):
|
||||||
|
if ($v[0] == '$'):
|
||||||
|
echo $k.':'.substr($v, 1).',';
|
||||||
|
elseif ($v):
|
||||||
|
echo $k.":'".$v."',";
|
||||||
|
endif;
|
||||||
|
endforeach;
|
||||||
|
?>
|
||||||
|
data:<?php echo json_encode(array_values($data), JSON_NUMERIC_CHECK); ?>
|
||||||
|
});
|
||||||
@@ -1,28 +0,0 @@
|
|||||||
{strip}
|
|
||||||
new Listview({ldelim}
|
|
||||||
template:'object',
|
|
||||||
{if !isset($params.id)}id:'objects',{/if}
|
|
||||||
{if !isset($params.name)}name:LANG.tab_objects,{/if}
|
|
||||||
{if !isset($params.parent)}parent:'lv-generic',{/if}
|
|
||||||
{foreach from=$params key=k item=v}
|
|
||||||
{if $v[0] == '$'}
|
|
||||||
{$k}:{$v|substr:1},
|
|
||||||
{else if $v}
|
|
||||||
{$k}:'{$v}',
|
|
||||||
{/if}
|
|
||||||
{/foreach}
|
|
||||||
data:[
|
|
||||||
{foreach name=i from=$data item=curr}
|
|
||||||
{ldelim}
|
|
||||||
{foreach from=$curr key='name' item=val}
|
|
||||||
{if $name != 'id'}
|
|
||||||
{$name}:{$val|@json_encode:$smarty.const.JSON_NUMERIC_CHECK},
|
|
||||||
{/if}
|
|
||||||
{/foreach}
|
|
||||||
id:{$curr.id}
|
|
||||||
{rdelim}
|
|
||||||
{if $smarty.foreach.i.last}{else},{/if}
|
|
||||||
{/foreach}
|
|
||||||
]
|
|
||||||
{rdelim});
|
|
||||||
{/strip}
|
|
||||||
17
template/listviews/object.tpl.php
Normal file
17
template/listviews/object.tpl.php
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
new Listview({
|
||||||
|
template:'object',
|
||||||
|
<?php
|
||||||
|
echo !isset($params['id']) ? "id:'objects'," : null;
|
||||||
|
echo !isset($params['name']) ? "name:LANG.tab_objects," : null;
|
||||||
|
echo !isset($params['parent']) ? "parent:'lv-generic'," : null;
|
||||||
|
|
||||||
|
foreach ($params as $k => $v):
|
||||||
|
if ($v[0] == '$'):
|
||||||
|
echo $k.':'.substr($v, 1).',';
|
||||||
|
elseif ($v):
|
||||||
|
echo $k.":'".$v."',";
|
||||||
|
endif;
|
||||||
|
endforeach;
|
||||||
|
?>
|
||||||
|
data:<?php echo json_encode(array_values($data), JSON_NUMERIC_CHECK); ?>
|
||||||
|
});
|
||||||
@@ -1,46 +0,0 @@
|
|||||||
var _ = function(family)
|
|
||||||
{ldelim}
|
|
||||||
family.foodCount = 0;
|
|
||||||
for(var food in g_pet_foods)
|
|
||||||
{ldelim}
|
|
||||||
if(family.diet & food)
|
|
||||||
family.foodCount++;
|
|
||||||
{rdelim}
|
|
||||||
|
|
||||||
family.spellCount = 0;
|
|
||||||
|
|
||||||
for(var i = 0, len = family.spells.length; i < len; ++i)
|
|
||||||
{ldelim}
|
|
||||||
if(family.spells[i])
|
|
||||||
family.spellCount++;
|
|
||||||
{rdelim}
|
|
||||||
{rdelim};
|
|
||||||
{strip}
|
|
||||||
new Listview({ldelim}
|
|
||||||
template:'pet',
|
|
||||||
computeDataFunc: _,
|
|
||||||
{if !isset($params.id)}id:'hunter-pets',{/if}
|
|
||||||
{if !isset($params.name)}name:LANG.tab_pets,{/if}
|
|
||||||
{if !isset($params.parent)}parent:'lv-generic',{/if}
|
|
||||||
{foreach from=$params key=k item=v}
|
|
||||||
{if $v[0] == '$'}
|
|
||||||
{$k}:{$v|substr:1},
|
|
||||||
{else if $v}
|
|
||||||
{$k}:'{$v}',
|
|
||||||
{/if}
|
|
||||||
{/foreach}
|
|
||||||
data:[
|
|
||||||
{foreach name=i from=$data item=curr}
|
|
||||||
{ldelim}
|
|
||||||
{foreach from=$curr key='name' item=val}
|
|
||||||
{if $name != 'id'}
|
|
||||||
{$name}:{$val|@json_encode:$smarty.const.JSON_NUMERIC_CHECK},
|
|
||||||
{/if}
|
|
||||||
{/foreach}
|
|
||||||
id:{$curr.id}
|
|
||||||
{rdelim}
|
|
||||||
{if $smarty.foreach.i.last}{else},{/if}
|
|
||||||
{/foreach}
|
|
||||||
]
|
|
||||||
{rdelim});
|
|
||||||
{/strip}
|
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user