aowow/template/bricks/contribute.tpl.php
Sarjuuk 0360f6f600 Misc/Fixups
* fixed file generators involving ?_icons table
 * known spells onspell detail page should have a localized tooltip
 * fixed numer formating in spell tooltips for locales with a ',' as decimal
 * fixed php-tag in contribute template, causing parse error
2017-04-06 23:53:22 +02:00

32 lines
1.1 KiB
PHP

<?php
if (!empty($this->contribute)):
?>
<div class="clear"></div>
<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->localizedBrick('contrib', User::$localeId);
?>
</div>
</div>
<script type="text/javascript">
var tabsContribute = new Tabs({parent: $WH.ge('tabs-contribute-generic')});
<?php
if ($this->contribute & CONTRIBUTE_CO):
echo " tabsContribute.add(LANG.tab_addyourcomment, {id: 'add-your-comment'});\n";
endif;
if ($this->contribute & CONTRIBUTE_SS):
echo " tabsContribute.add(LANG.tab_submitascreenshot, {id: 'submit-a-screenshot'});\n";
endif;
if ($this->contribute & CONTRIBUTE_VI):
echo " if (g_user && g_user.roles & (U_GROUP_ADMIN | U_GROUP_BUREAU | U_GROUP_VIDEO))\n";
echo " tabsContribute.add(LANG.tab_suggestavideo, {id: 'suggest-a-video'});\n";
endif;
?>
tabsContribute.flush();
</script>
<?php endif; ?>