mirror of
https://github.com/Znote/ZnoteAAC.git
synced 2025-04-30 03:09:22 +02:00
Hide empty shop tables.
This commit is contained in:
parent
c110edf41b
commit
c5decc03d1
26
shop.php
26
shop.php
@ -133,11 +133,11 @@ foreach ($shop_list as $key => $offer) {
|
|||||||
?>
|
?>
|
||||||
<div id="categoryNavigator">
|
<div id="categoryNavigator">
|
||||||
<a class="nav_link" href="#all">ALL</a>
|
<a class="nav_link" href="#all">ALL</a>
|
||||||
<a class="nav_link" href="#cat_itemids">ITEMS</a>
|
<?php if (!empty($category_items)): ?><a class="nav_link" href="#cat_itemids">ITEMS</a><?php endif; ?>
|
||||||
<a class="nav_link" href="#cat_premium">PREMIUM</a>
|
<?php if (!empty($category_premium)): ?><a class="nav_link" href="#cat_premium">PREMIUM</a><?php endif; ?>
|
||||||
<a class="nav_link" href="#cat_outfits">OUTFITS</a>
|
<?php if (!empty($category_outfits)): ?><a class="nav_link" href="#cat_outfits">OUTFITS</a><?php endif; ?>
|
||||||
<a class="nav_link" href="#cat_mounts">MOUNTS</a>
|
<?php if (!empty($category_mounts)): ?><a class="nav_link" href="#cat_mounts">MOUNTS</a><?php endif; ?>
|
||||||
<a class="nav_link" href="#cat_misc">MISC</a>
|
<?php if (!empty($category_misc)): ?><a class="nav_link" href="#cat_misc">MISC</a><?php endif; ?>
|
||||||
</div>
|
</div>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
function domReady () {
|
function domReady () {
|
||||||
@ -198,8 +198,9 @@ foreach ($shop_list as $key => $offer) {
|
|||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<!-- ITEMIDS -->
|
<?php if (!empty($category_items)): ?>
|
||||||
<table class="show" id="cat_itemids">
|
<!-- ITEMIDS -->
|
||||||
|
<table class="show" id="cat_itemids">
|
||||||
<tr class="yellow">
|
<tr class="yellow">
|
||||||
<td>Item:</td>
|
<td>Item:</td>
|
||||||
<?php if ($config['shop']['showImage']) { ?><td>Image:</td><?php } ?>
|
<?php if ($config['shop']['showImage']) { ?><td>Image:</td><?php } ?>
|
||||||
@ -226,7 +227,9 @@ foreach ($shop_list as $key => $offer) {
|
|||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</tr>
|
</tr>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
</table>
|
</table>
|
||||||
|
<?php endif; ?>
|
||||||
|
<?php if (!empty($category_premium)): ?>
|
||||||
<!-- PREMIUM DURATION -->
|
<!-- PREMIUM DURATION -->
|
||||||
<table class="show" id="cat_premium">
|
<table class="show" id="cat_premium">
|
||||||
<tr class="yellow">
|
<tr class="yellow">
|
||||||
@ -256,6 +259,8 @@ foreach ($shop_list as $key => $offer) {
|
|||||||
</tr>
|
</tr>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
</table>
|
</table>
|
||||||
|
<?php endif; ?>
|
||||||
|
<?php if (!empty($category_outfits)): ?>
|
||||||
<!-- OUTFITS -->
|
<!-- OUTFITS -->
|
||||||
<table class="show" id="cat_outfits">
|
<table class="show" id="cat_outfits">
|
||||||
<tr class="yellow">
|
<tr class="yellow">
|
||||||
@ -283,6 +288,8 @@ foreach ($shop_list as $key => $offer) {
|
|||||||
</tr>
|
</tr>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
</table>
|
</table>
|
||||||
|
<?php endif; ?>
|
||||||
|
<?php if (!empty($category_mounts)): ?>
|
||||||
<!-- MOUNTS -->
|
<!-- MOUNTS -->
|
||||||
<table class="show" id="cat_mounts">
|
<table class="show" id="cat_mounts">
|
||||||
<tr class="yellow">
|
<tr class="yellow">
|
||||||
@ -310,6 +317,8 @@ foreach ($shop_list as $key => $offer) {
|
|||||||
</tr>
|
</tr>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
</table>
|
</table>
|
||||||
|
<?php endif; ?>
|
||||||
|
<?php if (!empty($category_misc)): ?>
|
||||||
<!-- MISCELLANEOUS -->
|
<!-- MISCELLANEOUS -->
|
||||||
<table class="show" id="cat_misc">
|
<table class="show" id="cat_misc">
|
||||||
<tr class="yellow">
|
<tr class="yellow">
|
||||||
@ -343,6 +352,7 @@ foreach ($shop_list as $key => $offer) {
|
|||||||
</tr>
|
</tr>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
</table>
|
</table>
|
||||||
|
<?php endif; ?>
|
||||||
|
|
||||||
<?php if ($shop['enableShopConfirmation']) { ?>
|
<?php if ($shop['enableShopConfirmation']) { ?>
|
||||||
<script src="http://code.jquery.com/jquery-latest.min.js" type="text/javascript"></script>
|
<script src="http://code.jquery.com/jquery-latest.min.js" type="text/javascript"></script>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user