new version main page
This commit is contained in:
8
app/views/menus/auth.phtml
Normal file
8
app/views/menus/auth.phtml
Normal file
@@ -0,0 +1,8 @@
|
||||
<div id="auth">
|
||||
<?if (defined('CLIENT_ID')):?>
|
||||
<a href="<?=SITE?>mybooks">Моя библиотека</a>
|
||||
<a href="<?=SITE?>out">Выйти</a>
|
||||
<?else:?>
|
||||
<a href="<?=SITE?>login">Войти</a>
|
||||
<?endif?>
|
||||
</div>
|
||||
@@ -1,28 +1,12 @@
|
||||
<?if ($items['subscript'] == true):?>
|
||||
<div class="small-mob-hidden"><p>Вам доступен весь архив</p></div>
|
||||
<?else:?>
|
||||
<div class="small-mob-hidden"><p>Всего покупок: <?=$items['count']?></p></div>
|
||||
<?endif?>
|
||||
<?if (defined('CLIENT_ID') and CLIENT_ID > 0):?>
|
||||
|
||||
<?if ($category == 'gazeta'):?>
|
||||
<div id="years">
|
||||
<p>
|
||||
<select id="year_filter" onchange="changeyear()">
|
||||
<option value="all"<?=$selected?>>Все года</option>
|
||||
<?for ($y = date('Y'); $y >= 2006; $y--):?>
|
||||
<?$selected = ($filter == $y) ? ' selected' : ''?>
|
||||
<option value="<?=$y?>"<?=$selected?>><?=$y?> год</option>
|
||||
<?endfor?>
|
||||
</select>
|
||||
<i class="fas fa-chevron-down"></i>
|
||||
</p>
|
||||
<div>
|
||||
<a href="<?=SITE?>payments">Мои покупки</a>
|
||||
</div>
|
||||
|
||||
<div class="hid460">
|
||||
<a href="<?=SITE?>form">Консультации</a>
|
||||
</div>
|
||||
<?endif?>
|
||||
|
||||
<div>
|
||||
<a href="<?=SITE?>payments">Мои покупки</a>
|
||||
</div>
|
||||
<div class="hid460">
|
||||
<a href="<?=SITE?>form">Консультации</a>
|
||||
</div>
|
||||
|
||||
<?endif?>
|
||||
|
||||
|
||||
@@ -1,11 +1,22 @@
|
||||
<div id="menu_category">
|
||||
<ul>
|
||||
<?if ($category == 'gazeta'):?>
|
||||
<li class="active">Газета</li>
|
||||
<li><a href="<?=SITE?>mybooks/books/all/1">Книги</a></li>
|
||||
<?else:?>
|
||||
<li><a href="<?=SITE?>mybooks/gazeta/all/1">Газета</a></li>
|
||||
<li class="active">Книги</li>
|
||||
<?endif?>
|
||||
</ul>
|
||||
</div>
|
||||
<?$cats = api_cats();?>
|
||||
|
||||
<?if (!isset($cats[['error']])):?>
|
||||
|
||||
|
||||
<div id="menu_category">
|
||||
<ul>
|
||||
|
||||
<?foreach($cats as $cat):?>
|
||||
|
||||
<?if ($category == $cat['categoryslug']):?>
|
||||
<li class="active"><?=$cat['categoryname']?></li>
|
||||
<?else:?>
|
||||
<li><a href="<?=SITE?>category/<?=$cat['categoryslug']?>"><?=$cat['categoryname']?></a></li>
|
||||
<?endif?>
|
||||
|
||||
<?endforeach?>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<?endif?>
|
||||
Reference in New Issue
Block a user