Вход Регистрация
Файл: adultscript-2.0.3-pro/files/templates/defboot/channel_browse.tpl.php
Строк: 132
<?php defined('_VALID') or die('Restricted Access!'); ?>
    <script type="text/javascript" src="<?php echo TPL_REL?>/js/channel.js"></script>
    <div id="content" class="row">
        <div class="col-sm-12">
            <div class="panel panel-default">
                <div class="panel-heading">
                <h1 class="panel-title pull-left"><?php echo e($this->title); ?></h1>
                <div class="btn-toolbar pull-right" role="group">
                      <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' => 'bar-chart''videos' => 'video-camera''name' => '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" role="menu">
                              <li<?php if ($this->order == 'recent'): echo ' class="active"'; endif; ?>><a href="<?php echo build_url('recent'),'"><i class="fa fa-calendar"></i> ',__('recent'); ?></a></li>
                              <li<?php if ($this->order == 'popular'): echo ' class="active"'; endif; ?>><a href="<?php echo build_url('popular'),'"><i class="fa fa-bar-chart"></i> ',__('popular'); ?></a></li>
                              <li<?php if ($this->order == 'videos'): echo ' class="active"'; endif; ?>><a href="<?php echo build_url('videos'),'"><i class="fa fa-video-camera"></i> ',__('videos'); ?></a></li>
                              <li<?php if ($this->order == 'name'): echo ' class="active"'; endif; ?>><a href="<?php echo build_url('name'),'"><i class="fa fa-folder"></i> ',__('name'); ?></a></li>
                        </ul>
                    </div>
                    <div class="btn-group" role="group">
                          <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-expanded="false">
                              <?php echo __('letter'),': <strong>'; if ($this->letter == 'all'): echo __('all'); else: echo strtoupper($this->letter); endif; ?></strong>
                            <span class="caret"></span>
                            <span class="sr-only">Toggle Dropdown</span>
                          </button>
                        <ul class="dropdown-menu pull-right letter" role="menu">
                              <li<?php if ($this->letter == 'all'): echo ' class="active"'; endif; ?>><a href="<?php echo build_url($this->order'all'1); ?>"><?php echo __('all'); ?></a></li>
                              <?php foreach (range('a''z') as $letter): ?>
                            <li<?php if ($this->letter == $letter): echo ' class="active"'; endif; ?>><a href="<?php echo build_url($this->order$letter1),'">',strtoupper($letter); ?></a></li>
                            <?php endforeach; ?>                        
                          </ul>
                    </div>
                </div>                
                <div class="clearfix"></div>
                </div>
                <div class="panel-body no-padding">
                    <?php if ($this->channels): ?>
                    <ul class="channels">
                        <?php foreach ($this->channels as $channel): ?>
                        <li id="<?php echo $channel['channel_id']; ?>" class="channel">
                            <a href="<?php echo REL_URL,'/channel/',$channel['slug']; ?>" class="thumbnail">
                                <img src="<?php echo MEDIA_REL,'/channels/',$channel['channel_id'],'.thumb.',$channel['thumb'],'" alt="',e($channel['name']),'" /> ',$channel['name']; ?>
                                <div class="channel-overlay transparent badge"><i class="fa fa-video-camera"></i> <?php echo $channel['total_videos']; ?></div>
                            </a>    
                        </li>
                        <?php endforeach; ?>
                    </ul>
                    <div class="clearfix"></div>
                    <nav class="text-center"><ul class="pagination pagination-lg"><?php echo p('pagination'$this->paginationbuild_url($this->order$this->lettertrue)); ?></ul></nav>
                    <?php else: ?>
                    <div class="none"><?php echo __('no-channels'); ?></div>
                    <?php endif; ?>
                </div>
            </div>
        </div>
    </div>
Онлайн: 1
Реклама