Вход Регистрация
Файл: adultscript-2.0.3-pro/files/templates/defboot/channel_view.tpl.php
Строк: 322
<?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-md-12">
            <div class="content">
                <div class="channel-image">
                    <img src="<?php echo MEDIA_REL,'/channels/',$this->channel['channel_id'],'.thumb.',$this->channel['thumb'],'" alt="',e($this->channel['name']); ?>" class="img-rounded channel-thumb" />
                </div>
                <div id="channel">
                    <?php $adv p('adv_channel'$this->channel['adv_right_id']); if ($adv): echo '<div class="ads-channel">'.$adv.'</div>'; endif; ?>
                    <h1><?php echo e($this->channel['name']); ?> <a href="<?php echo $this->channel['url']; ?>" class="btn btn-default btn-xs" target="_blank" rel="nofollow"><?php echo __('visit-site'); ?></a></h1>
                    <input name="channel_id" type="hidden" value="<?php echo $this->channel['channel_id']; ?>">
                    <div id="response" class="alert" style="display: none;"></div>
                    <div class="btn-group btn-group-mb" role="group">
                        <button id="like" type="button" class="btn btn-default" data-toggle="tooltip" data-placement="top" title="<?php echo __('like-help'); ?>"><i id="like-icon" class="fa fa-thumbs-up"></i></button>
                        <button id="rating" type="button" class="btn btn-default" disabled="disabled">
                              <?php $percent = ($this->channel['total_likes'] > && $this->channel['total_votes']) ? round($this->channel['total_likes']*100/$this->channel['total_votes']) : 100?>
                              <?php echo $percent,'% (',$this->channel['total_likes'],'/',$this->channel['total_votes']; ?>)
                              <div class="progress">
                                  <div class="progress-bar" role="progressbar" aria-valuenow="<?php echo $percent?>" aria-valuemin="0" aria-valuemax="100" style="width: <?php echo $percent?>%;">
                                      <span class="sr-only"><?php echo $percent?>% Complete</span>
                                  </div>
                              </div>
                        </button>
                        <button id="dislike" type="button" class="btn btn-default" data-toggle="tooltip" data-placement="top" title="<?php echo __('dislike-help'); ?>"><i id="dislike-icon" class="fa fa-thumbs-down"></i></button>
                    </div>
                    <div id="subscribe-container" class="btn-group">
                          <?php if ($this->is_subscribed): ?>
                        <button id="unsubscribe" class="btn btn-default btn-mb" data-toggle="tooltip" data-placement="top" title="<?= __('unsubscribe-help'); ?>"><i id="subscribe-icon" class="fa fa-rss"></i> <span class="hidden-sm no-text"><?php echo __('unsubscribe'); ?></span> (<span id="subscribe-count"><?php echo $this->channel['total_subscribers']; ?></span>)</button>
                          <?php else: ?>
                        <button id="subscribe" class="btn btn-default btn-mb" data-toggle="tooltip" data-placement="top" title="<?= __('subscribe-help'); ?>"><i id="subscribe-icon" class="fa fa-rss"></i> <span class="hidden-sm no-text"><?php echo __('subscribe'); ?></span> (<span id="subscribe-count"><?php echo $this->channel['total_subscribers']; ?></span>)</button>                    
                        <?php endif; ?>
                    </div>
                    <div class="margin-top-10">
                          <strong><?php echo __('videos'),'</strong>: ',$this->channel['total_videos']; ?> <strong><?php echo __('views'),'</strong>: ',$this->channel['total_views']; ?>
                      </div>
                      <?php if ($this->channel['description']): echo '<p class="channel-description">',$this->channel['description'],'</p>'; endif; ?>
                </div>
                <div class="clearfix"></div>
            </div>
              <ul class="nav nav-tabs">
                <li class="active"><a href="#videos"><strong><?php echo __('videos'),' (',$this->pagination['total_items']; ?>)</strong></a></li>
              </ul>
              <div class="content-channel">
                  <div class="row">
                      <div class="col-xs-12 col-sm-12 col-md-12 channel-heading">
                          <h2 class="pull-left"><?php echo e($this->channel['name']),' ',__('videos'); ?></h2>
                          <div class="btn-toolbar pull-right" role="menu">
                            <?php if (isset($this->order) && ($this->order == 'popular' or $this->order == 'rated')): ?>
                            <div class="btn-group pull-right margin-left-5" 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 (
$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" role="menu">
                                    <li<?php if (isset($this->timeline) && $this->timeline == 'today'): echo ' class="active"'; endif; ?>><a href="<?php echo build_url($this->channel['slug'], $this->order'today'),'">',__('today'); ?></a></li>
                                    <li<?php if (isset($this->timeline) && $this->timeline == 'yesterday'): echo ' class="active"'; endif; ?>><a href="<?php echo build_url($this->channel['slug'], $this->order'yesterday'),'">',__('yesterday'); ?></a></li>
                                    <li<?php if (isset($this->timeline) && $this->timeline == 'week'): echo ' class="active"'; endif; ?>><a href="<?php echo build_url($this->channel['slug'], $this->order'week'),'">',__('this-week'); ?></a></li>
                                    <li<?php if (isset($this->timeline) && $this->timeline == 'month'): echo ' class="active"'; endif; ?>><a href="<?php echo build_url($this->channel['slug'], $this->order'month'),'">',__('this-month'); ?></a></li>
                                    <li<?php if (isset($this->timeline) && $this->timeline == 'year'): echo ' class="active"'; endif; ?>><a href="<?php echo build_url($this->channel['slug'], $this->order'year'),'">',__('this-year'); ?></a></li>
                                    <li<?php if (isset($this->timeline) && $this->timeline == 'all'): echo ' class="active"'; endif; ?>><a href="<?php echo build_url($this->channel['slug'], $this->order'all'),'">',__('all-time'); ?></a></li>
                                </ul>
                            </div>
                            <?php endif; ?>                              
                              <div class="btn-group pull-right" role="group">
                                <?php $icons = array('recent' => 'calendar''popular' => 'video-camera''rated' => 'thumbs-up''discussed' => 'comment''favorited' => 'heart''downloaded' => 'download''longest' => 'clock-o''watched' => 'eye'); ?>
                                  <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-expanded="false">
                                    <i class="fa fa-<?php echo $icons[$this->order]; ?>"></i> <?php echo __($this->order); ?>
                                      <span class="caret"></span>
                                      <span class="sr-only">Toggle Dropdown</span>
                                  </button>
                                  <ul class="dropdown-menu <?php if (isset($this->order) && ($this->order == 'popular' or $this->order == 'rated')): echo 'dropdown-menu-left'; else: echo ' dropdown-menu-right'; endif; ?>" role="menu">
                                      <li<?php if (isset($this->order) && $this->order == 'recent'): echo ' class="active"'; endif; ?>><a href="<?php echo build_url($this->channel['slug'], 'recent''all'); ?>"><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 build_url($this->channel['slug'], 'popular''all'); ?>"><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 build_url($this->channel['slug'], 'rated''all'); ?>"><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 build_url($this->channel['slug'], 'discussed''all'); ?>"><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 build_url($this->channel['slug'], 'downloaded''all'); ?>"><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 build_url($this->channel['slug'], 'longest''all'); ?>"><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 build_url($this->channel['slug'], 'watched''all'); ?>"><i class="fa fa-eye"></i> <?php echo __('watched'); ?></a></li>
                                  </ul>
                              </div>
                          </div>
                          <div class="clearfix"></div>
                      </div>
                  </div>
                  <?php if ($this->videos): echo $this->fetch('_video_list'); ?>
                  <?php echo p('adv_channel'$this->channel['adv_bottom_id'], 'ads-responsive'); ?>
                  <nav class="text-center"><ul class="pagination pagination-lg"><?php echo p('pagination'$this->paginationCUR_URL); ?></ul></nav>
                  <?php else: ?>
                  <div class="none"><?php echo __('no-videos'); ?></div>
                  <?php endif; ?>
            </div>
        </div>
    </div>
Онлайн: 1
Реклама