Файл: adultscript-2.0.3-pro/files/templates/defboot/photo_albums_menu.tpl.php
Строк: 97
<?php defined('_VALID') or die('Restricted Access!'); ?>
<div class="btn-toolbar" role="menu">
<?php if (isset($this->order) && $this->order != 'recent'): ?>
<div class="btn-group pull-right" role="group">
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-expanded="false">
<?php $timelines = array('today' => __('today'), 'yesterday' => __('yesterday'), 'week' => __('this-week'), 'month' => __('this-month'), 'year' => __('this-year')); if (isset($this->timeline) && $this->timeline): echo $timelines[$this->timeline]; else: echo __('all-time'); endif; ?>
<span class="caret"></span>
<span class="sr-only">Toggle Dropdown</span>
</button>
<ul class="dropdown-menu" role="menu">
<li<?php if (isset($this->timeline) && $this->timeline == 'today'): echo ' class="active"'; endif; ?>><a href="<?php echo build_url($this->order, 'today', $this->slug, 1),'">',__('today'); ?></a></li>
<li<?php if (isset($this->timeline) && $this->timeline == 'yesterday'): echo ' class="active"'; endif; ?>><a href="<?php echo build_url($this->order, 'yesterday', $this->slug, 1),'">',__('yesterday'); ?></a></li>
<li<?php if (isset($this->timeline) && $this->timeline == 'week'): echo ' class="active"'; endif; ?>><a href="<?php echo build_url($this->order, 'week', $this->slug, 1),'">',__('this-week'); ?></a></li>
<li<?php if (isset($this->timeline) && $this->timeline == 'month'): echo ' class="active"'; endif; ?>><a href="<?php echo build_url($this->order, 'month', $this->slug, 1),'">',__('this-month'); ?></a></li>
<li<?php if (isset($this->timeline) && $this->timeline == 'year'): echo ' class="active"'; endif; ?>><a href="<?php echo build_url($this->order, 'year', $this->slug, 1),'">',__('this-year'); ?></a></li>
<li<?php if (isset($this->timeline) && $this->timeline == 'all'): echo ' class="active"'; endif; ?>><a href="<?php echo build_url($this->order, 'all', $this->slug, 1),'">',__('all-time'); ?></a></li>
</ul>
</div>
<?php endif; ?>
<div class="btn-group pull-right" role="group">
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-expanded="false">
<?php $icons = array('recent' => 'calendar', 'popular' => 'eye', 'rated' => 'thumbs-up', 'discussed' => 'comment', 'favorited' => 'heart'); $order = (isset($this->order)) ? $this->order : 'recent'; ?>
<i class="fa fa-<?php echo $icons[$order],'"></i> ',__($order); ?>
<span class="caret"></span>
<span class="sr-only">Toggle Dropdown</span>
</button>
<ul class="dropdown-menu<?php if (isset($this->order) && $this->order == 'recent'): echo ' dropdown-menu-right'; else: echo ' dropdown-menu-left'; endif; ?>" role="menu">
<li<?php if (isset($this->order) && $this->order == 'recent'): echo ' class="active"'; endif; ?>><a href="<?php echo REL_URL,'/photo/'; if (isset($this->slug) && $this->slug): echo '/',$this->slug; endif; ?>"><i class="fa fa-calendar"></i> <?php echo __('recent'); ?></a></li>
<li<?php if (isset($this->order) && $this->order == 'popular'): echo ' class="active"'; endif; ?>><a href="<?php echo REL_URL,'/photo/'; if (isset($this->slug) && $this->slug): echo '/',$this->slug; endif; ?>/popular/"><i class="fa fa-camera"></i> <?php echo __('popular'); ?></a></li>
<li<?php if (isset($this->order) && $this->order == 'rated'): echo ' class="active"'; endif; ?>><a href="<?php echo REL_URL,'/photo/'; if (isset($this->slug) && $this->slug): echo '/',$this->slug; endif; ?>/rated/"><i class="fa fa-thumbs-up"></i> <?php echo __('rated'); ?></a></li>
<li<?php if (isset($this->order) && $this->order == 'discussed'): echo ' class="active"'; endif; ?>><a href="<?php echo REL_URL,'/photo/'; if (isset($this->slug) && $this->slug): echo '/',$this->slug; endif; ?>/discussed/"><i class="fa fa-comment"></i> <?php echo __('discussed'); ?></a></li>
<li<?php if (isset($this->order) && $this->order == 'favorited'): echo ' class="active"'; endif; ?>><a href="<?php echo REL_URL,'/photo/'; if (isset($this->slug) && $this->slug): echo '/',$this->slug; endif; ?>/favorited/"><i class="fa fa-heart"></i> <?php echo __('favorited'); ?></a></li>
</ul>
</div>
</div>