Вход Регистрация
Файл: adultscript-2.0.3-pro/files/templates/defboot/video_search.tpl.php
Строк: 242
<?php defined('_VALID') or die('Restricted Access!'); ?>
    <div id="content" class="row">
        <div class="col-xs-12 col-sm-12 col-md-2">
            <div class="panel panel-default">
                <div class="panel-heading">
                      <h3 class="panel-title"><?php echo __('search'); ?></h3>
                </div>
                <div class="panel-body no-padding">
                    <ul class="nav nav-stacked navigation">
                        <li class="active disabled"><a href="#"><i class="fa fa-lg fa-video-camera"></i> <?php echo __('videos'); ?></a></li>
                        <?php if (VModule::enabled('photo')): ?><li><a href="<?php echo REL_URL,'/search/photo/?s=',$this->query?>"><i class="fa fa-lg fa-camera"></i> <?php echo __('photos'); ?></a></li><?php endif; ?>
                        <?php if (VModule::enabled('pornstar')): ?><li><a href="<?php echo REL_URL,'/search/pornstar/?s=',$this->query?>"><i class="fa fa-lg fa-star"></i> <?php echo __('pornstars'); ?></a></li><?php endif; ?>
                    </ul>
                </div>
            </div>
            <?php if ($this->searches): ?>
            <div class="panel panel-default">
                <div class="panel-heading">
                      <h3 class="panel-title"><?php echo __('related-searches'); ?></h3>
                </div>
                <div class="panel-body no-padding">
                    <ul class="nav nav-stacked navigation">
                        <?php foreach ($this->searches as $search): ?>
                        <li><a href="<?php echo REL_URL,'/search/video/?s=',e(str_replace(' ''+'$search['keyword'])),'">',e($search['keyword']); ?></a></li>
                        <?php endforeach; ?>
                    </ul>
                </div>
            </div>
            <?php endif; ?>
        </div>
        <div class="col-xs-12 col-sm-12 col-md-10">
            <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 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 == 'recent'): echo ' pull-right'; endif; ?>" role="menu">
                                <li<?php if (isset($this->order) && $this->order == 'relevance'): echo ' class="active"'; endif; ?>><a href="<?php echo build_search_url($this->query'relevance'$this->timeline$this->duration$this->category); ?>"><?php echo __('relevance'); ?></a></li>
                                <li<?php if (isset($this->order) && $this->order == 'recent'): echo ' class="active"'; endif; ?>><a href="<?php echo build_search_url($this->query'recent'$this->timeline$this->duration$this->category); ?>"><?php echo __('recent'); ?></a></li>
                                <li<?php if (isset($this->order) && $this->order == 'popular'): echo ' class="active"'; endif; ?>><a href="<?php echo build_search_url($this->query'popular'$this->timeline$this->duration$this->category); ?>"><?php echo __('popular'); ?></a></li>
                                <li<?php if (isset($this->order) && $this->order == 'rated'): echo ' class="active"'; endif; ?>><a href="<?php echo build_search_url($this->query'rated'$this->timeline$this->duration$this->category); ?>"><?php echo __('rated'); ?></a></li>                                    
                                <li<?php if (isset($this->order) && $this->order == 'discussed'): echo ' class="active"'; endif; ?>><a href="<?php echo build_search_url($this->query'discussed'$this->timeline$this->duration$this->category); ?>"><?php echo __('discussed'); ?></a></li>
                                <li<?php if (isset($this->order) && $this->order == 'downloaded'): echo ' class="active"'; endif; ?>><a href="<?php echo build_search_url($this->query'downloaded'$this->timeline$this->duration$this->category); ?>"><?php echo __('downloaded'); ?></a></li>
                            </ul>
                        </div>
                        <?php if (isset($this->order) && ($this->order == 'popular' or $this->order == 'rated')): ?>
                        <div class="btn-group" role="group">
                            <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-expanded="false">
                                <?php $timelines = array('all' => __('all-time'), 'week' => __('this-week'), 'month' => __('this-month'), 'year' => __('this-year')); if (isset($timelines[$this->timeline])): echo $timelines[$this->timeline]; else: echo __($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_search_url($this->query$this->order'today'$this->duration$this->category),'">',__('today'); ?></a></li>
                                <li<?php if (isset($this->timeline) && $this->timeline == 'yesterday'): echo ' class="active"'; endif; ?>><a href="<?php echo build_search_url($this->query$this->order'yesterday'$this->duration$this->category),'">',__('yesterday'); ?></a></li>
                                <li<?php if (isset($this->timeline) && $this->timeline == 'week'): echo ' class="active"'; endif; ?>><a href="<?php echo build_search_url($this->query$this->order'week'$this->duration$this->category),'">',__('this-week'); ?></a></li>
                                <li<?php if (isset($this->timeline) && $this->timeline == 'month'): echo ' class="active"'; endif; ?>><a href="<?php echo build_search_url($this->query$this->order'month'$this->duration$this->category),'">',__('this-month'); ?></a></li>
                                <li<?php if (isset($this->timeline) && $this->timeline == 'year'): echo ' class="active"'; endif; ?>><a href="<?php echo build_search_url($this->query$this->order'year'$this->duration$this->category),'">',__('this-year'); ?></a></li>
                                <li<?php if (isset($this->timeline) && $this->timeline == 'all'): echo ' class="active"'; endif; ?>><a href="<?php echo build_search_url($this->query$this->order'all'$this->duration$this->category),'">',__('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 if ($this->duration == 'all'): echo __('all-durations'); else: echo __($this->duration.'-desc'); endif; ?>
                                <span class="caret"></span>
                                <span class="sr-only">Toggle Dropdown</span>                                  
                            </button>
                            <ul class="dropdown-menu pull-right" role="menu">
                                <li<?php if ($this->duration == 'all'): echo ' class="active"'; endif; ?>><a href="<?= build_search_url($this->query$this->order$this->timeline'all'$this->category),'">',__('all-durations'); ?></a></li>
                                <li<?php if ($this->duration == 'short'): echo ' class="active"'; endif; ?>><a href="<?= build_search_url($this->query$this->order$this->timeline'short'$this->category),'">',__('short-desc'); ?></a></li>
                                <li<?php if ($this->duration == 'medium'): echo ' class="active"'; endif; ?>><a href="<?= build_search_url($this->query$this->order$this->timeline'medium'$this->category),'">',__('medium-desc'); ?></a></li>
                                <li<?php if ($this->duration == 'long'): echo ' class="active"'; endif; ?>><a href="<?= build_search_url($this->query$this->order$this->timeline'long'$this->category),'">',__('long-desc'); ?></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 if ($this->category == 'all'): echo __('categories'); else: echo e($this->name); endif; ?>
                                <span class="caret"></span>
                                <span class="sr-only">Toggle Dropdown</span>                                  
                            </button>
                            <ul class="dropdown-menu pull-right" role="menu" style="max-height: 240px; overflow: auto;">
                                <li<?php if ($this->category == 'all'): echo ' class="active"'; endif; ?>><a href="<?php echo build_search_url($this->query$this->order$this->timelinenull'all'),'">',__('all'); ?></a></li>
                                <?php foreach ($this->categories as $category): $cat_id $category['cat_id']; $active = ($this->category == $cat_id) ? ' class="active"' ''$span = (isset($category['subcategories']) && $category['subcategories']) ? ' <span class="caret"></span>' ''?>
                                <li<?php echo $active?>><a href="<?php echo build_search_url($this->query$this->order$this->timelinenull$cat_id),'">',e($category['name']),$span?></a></li>
                                <?php if (isset($category['subcategories']) && $category['subcategories']): ?>
                                <?php foreach ($category['subcategories'] as $subcategory): $cat_id $subcategory['cat_id']; $active = ($this->category == $cat_id) ? ' active' ''?>
                                <li class="subcategory<?php echo $active?>"><a href="<?php echo build_search_url($this->query$this->order$this->timelinenull$cat_id),'"> &nbsp; ',e($subcategory['name']); ?></a></li>
                                <?php endforeach; endif; endforeach; ?>
                            </ul>
                        </div>
                    </div>
                    <div class="clearfix"></div>
                </div>
                <div class="panel-body panel-padding">
                    <?php echo p('adv_square''video-browse-square'); ?>
                    <?php if ($this->videos): echo $this->fetch('_video_list'); ?>
                    <?php echo p('adv''video-search-bottom''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 if ($this->query): echo __('no-videos-found', array($this->query)); else: echo __('no-query'); endif; ?></div>
                    <?php endif; ?>
                </div>
            </div>
        </div>
    </div>
Онлайн: 2
Реклама