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