Файл: adultscript-2.0.3-pro/files/templates/defboot/header.tpl.php
Строк: 364
<?php defined('_VALID') or die('Restricted Access!'); ?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title><?php if (isset($this->meta_title)): echo e($this->meta_title); else: echo e(VF::cfg_item('site_name')); endif; ?></title>
<meta name="description" content="<?php if (isset($this->meta_desc)): echo e($this->meta_desc); else: echo e(VF::cfg_item('meta_desc')); endif; ?>" />
<meta name="keywords" content="<?php if (isset($this->meta_keys)): echo e($this->meta_keys); else: echo e(VF::cfg_item('meta_keys')); endif; ?>" />
<meta name="robots" content="index, follow" />
<meta name="revisit-after" content="1 days" />
<?php if ($meta = VCfg::get('google_webmasters')): echo $meta; endif; ?>
<?php if (isset($this->metas)): foreach ($this->metas as $property => $content): ?>
<meta property="<?php echo $property; ?>" content="<?php echo $content; ?>">
<?php endforeach; endif; if (isset($this->video) && isset($this->video['tags']) && $this->video['tags']): $tags = explode(',', $this->video['tags']); foreach ($tags as $tag): ?>
<meta property="video:tag" content="<?php echo e(trim($tag)); ?>">
<?php endforeach; endif; if (isset($this->canonical)): ?><link rel="canonical" href="<?php echo$this->canonical; ?>" /><?php endif; ?>
<?php if (VCfg::get('mobile.redirect') && isset($this->canonicalm)): ?><link rel="alternate" media="only screen and (max-width: 640px)" href="<?php echo $this->canonicalm; ?>" /><?php endif; ?>
<?php if (isset($this->prev_url)): ?><link rel="prev" href="<?php echo $this->prev_url; ?>"><?php endif; ?>
<?php if (isset($this->next_url)): ?><link rel="next" href="<?php echo $this->next_url; ?>"><?php endif; ?>
<link href="<?php echo REL_URL; ?>/misc/bootstrap/css/bootstrap.min.css" rel="stylesheet">
<link href="<?php echo REL_URL; ?>/misc/font-awesome/css/font-awesome.min.css" rel="stylesheet">
<link href="<?php echo TPL_REL; ?>/css/style.css" rel="stylesheet">
<link href="<?php echo TPL_REL; ?>/css/responsive.css" rel="stylesheet">
<?php $theme = VCfg::get('template.defboot.colors'); ?>
<link href="<?php echo TPL_REL; ?>/css/bootstrap-theme-<?php echo $theme; ?>.css?rand=<?php echo rand(0, 1090000); ?>" rel="stylesheet">
<?php if ($theme != 'light' && $theme != 'dark'): ?><link href="<?php echo TPL_REL; ?>/css/responsive-theme.css" rel="stylesheet"><?php endif; ?>
<?php if (isset($this->css)): foreach ($this->css as $url): ?>
<link href="<?php echo $url; ?>" rel="stylesheet">
<?php endforeach; endif; ?>
<!--[if lt IE 9]>
<script src="<?php echo REL_URL; ?>/misc/html5shiv/html5shiv.min.js"></script>
<script src="<?php echo REL_URL; ?>/misc/respond/respond.min.js"></script>
<![endif]-->
<script src="<?php echo REL_URL; ?>/misc/jquery/jquery.min.js"></script>
<script src="<?php echo REL_URL; ?>/misc/bootstrap/js/bootstrap.min.js"></script>
<script src="<?php echo TPL_REL; ?>/js/scripts.js"></script>
<script type="text/javascript">var base_url = '<?php echo BASE_URL; ?>'; var cur_url = '<?php echo CUR_URL; ?>'; var rel_url = '<?php echo REL_URL; ?>'; var tmb_url = '<?php echo THUMB_URL; ?>'; var age_check = <?php echo VCfg::get('age_check'); ?>;</script>
<?php if ($code = VCfg::get('template.defboot.javascript_code')): echo $code; endif; ?>
</head>
<body>
<div id="login-container"></div>
<header>
<div class="nav-top navbar-inverse">
<div class="container<?php if (isset($this->cmenu)): echo ' container-item'; endif; ?>">
<?php if (VCfg::get('template.defboot.sharing_links')): ?>
<ul class="nav nav-pills social">
<?php if ($code = VCfg::get('template.defboot.sharing_code')): echo $code; else: ?>
<?php if ($url = VCfg::get('template.defboot.facebook')): ?><li><a href="<?php echo $url; ?>" target="blank"><i class="fa fa-facebook"></i></a></li><?php endif; ?>
<?php if ($url = VCfg::get('template.defboot.twitter')): ?><li><a href="<?php echo $url; ?>" target="blank"><i class="fa fa-twitter"></i></a></li><?php endif; ?>
<?php if ($url = VCfg::get('template.defboot.google_plus')): ?><li><a href="<?php echo $url; ?>" target="blank"><i class="fa fa-google-plus"></i></a></li><?php endif; ?>
<?php if ($url = VCfg::get('template.defboot.thumblr')): ?><li><a href="<?php echo $url; ?>" target="blank"><i class="fa fa-tumblr"></i></a></li><?php endif; ?>
<?php if ($url = VCfg::get('template.defboot.pinterest')): ?><li><a href="<?php echo $url; ?>" target="blank"><i class="fa fa-pinterest"></i></a></li><?php endif; ?>
<?php if ($url = VCfg::get('template.defboot.instagram')): ?><li><a href="<?php echo $url; ?>" target="blank"><i class="fa fa-instagram"></i></a></li><?php endif; ?>
<?php endif; ?>
</ul>
<?php endif; ?>
<ul class="nav nav-pills top-menu">
<?php if (VAuth::loggedin()): ?>
<li class="active dropdown">
<a href="<?php echo REL_URL; ?>/user/dashboard/" class="dropdown-toggle" data-toggle="dropdown" aria-expanded="false" role="button">
<i class="fa fa-user"></i> <span class="hidden-xs hidden-sm"><?php echo __('dashboard'); ?></span> <span class="caret"></span>
</a>
<ul class="dropdown-menu" role="menu">
<li><a href="<?php echo REL_URL,'/user/dashboard/">',__('dashboard'); ?></a></li>
<li class="divider"></li>
<li><a href="<?php echo REL_URL,'/user/account/">',__('edit-account'); ?></a></li>
<li><a href="<?php echo REL_URL,'/user/avatar/">',__('edit-picture'); ?></a></li>
<li><a href="<?php echo REL_URL,'/user/profile/">',__('edit-profile'); ?></a></li>
<li><a href="<?php echo REL_URL,'/user/preferences/">',__('edit-preferences'); ?></a></li>
<li><a href="<?php echo REL_URL,'/user/notifications/">',__('edit-notifications'); ?></a></li>
<li class="divider"></li>
<li><a href="<?php echo REL_URL,'/user/videos/">',__('my-videos'); ?></a></li>
<li><a href="<?php echo REL_URL,'/user/favorites/">',__('my-favorite-videos'); ?></a></li>
<li><a href="<?php echo REL_URL,'/user/history/">',__('my-view-history'); ?></a></li>
<li><a href="<?php echo REL_URL,'/user/playlists/">',__('my-playlists'); ?></a></li>
<?php if (VModule::enabled('photo')): ?>
<li><a href="<?php echo REL_URL,'/user/albums/">',__('my-albums'); ?></a></li>
<li><a href="<?php echo REL_URL,'/user/photos/">',__('my-favorite-photos'); ?></a></li>
<?php endif; ?>
<li class="divider">
<li><a href="<?php echo REL_URL,'/user/comments/">',__('my-comments'); ?></a></li>
<li class="divider">
<li><a href="<?php echo REL_URL,'/user/friends/">',__('my-friends'); ?></a></li>
<li><a href="<?php echo REL_URL,'/user/subscriptions/">',__('my-subscriptions'); ?></a></li>
<li><a href="<?php echo REL_URL,'/user/subscribers/">',__('my-subscribers'); ?></a></li>
</ul>
</li>
<?php $count = p('message'); ?>
<li><a href="<?php echo REL_URL,'/message/inbox/"><i class="fa fa-envelope"></i> <span class="hidden-xs">',__('messages'),'</span>'; if ($count): echo ' <span id="message-count" class="badge">',$count,'</span>'; endif; ?></a></li>
<li><a href="<?php echo REL_URL,'/user/logout/"><i class="fa fa-sign-out"></i><span class="hidden-xs"> ',__('logout'); ?></span></a></li>
<?php else: ?>
<li><a href="<?php echo REL_URL; ?>/user/signup/"><i class="fa fa-user"></i> <?php echo __('signup'); ?></a></li>
<li><a href="#login" class="login"><i class="fa fa-sign-in"></i> <?php echo __('login'); ?></a></li>
<?php endif; if (VF::cfg_item('multi_language')): echo p('language'); endif; ?>
</ul>
</div>
</div>
<div class="nav-content">
<div class="container<?php if (isset($this->cmenu)): echo ' container-item'; endif; ?>">
<div class="logo">
<a href="<?php echo REL_URL; ?>/"><img src="<?php $logo_url = VCfg::get('template.defboot.logo_url'); if ($logo_url): echo $logo_url; else: echo TPL_REL,'/images/logo.png'; endif; ?>" alt="" /></a>
</div>
<div class="search">
<?php $actions = array('video' => 'video-camera', 'photo' => 'camera', 'premium' => 'heart', 'community' => 'users', 'forum' => 'comments', 'pornstar' => 'file-image-o');
if (isset($this->menu) && isset($actions[$this->menu])): $action = $this->menu; $icon = $actions[$this->menu]; else: $action = 'video'; $icon = 'video-camera'; endif; ?>
<form id="search-form" method="get" action="<?php echo REL_URL,'/search/',$action; ?>/">
<button id="search" type="button" class="btn btn-default btn-lg pull-right btn-submit"><i class="fa fa-search"></i></button>
<div class="input-group input-group-lg">
<input name="s" type="text" class="form-control" placeholder="<?php echo __('search'); ?>" value="<?php if (isset($this->query) && $this->query): echo e($this->query); endif; ?>">
<div class="input-group-btn">
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-expanded="false">
<i id="search-icon" class="fa fa-<?php echo $icon; ?>"></i>
<span class="caret"></span>
<span class="sr-only">Toggle Dropdown</span>
</button>
<ul class="dropdown-menu pull-right" role="menu">
<li<?php if ($action == 'video'): echo ' class="active"'; endif; ?>><a href="#search-videos" class="search-in-video"><i class="fa fa-video-camera"></i> Videos</a></li>
<?php if (VModule::enabled('photo')): ?><li<?php if ($action == 'photo'): echo ' class="active"'; endif; ?>><a href="#search-photo" class="search-in-photo"><i class="fa fa-image"></i> Photos</a></li><?php endif; ?>
<?php if (VModule::enabled('pornstar')): ?><li<?php if ($action == 'pornstar'): echo ' class="active"'; endif; ?>><a href="#search-pornstar" class="search-in-pornstar"><i class="fa fa-user"></i> Pornstars</a></li><?php endif; ?>
<?php if (VModule::enabled('forum')): ?><li<?php if ($action == 'forum'): echo ' class="active"'; endif; ?>><a href="#search-forum" class="search-in-forum"><i class="fa fa-comments"></i> Forum</a></li><?php endif; ?>
<li<?php if ($action == 'community'): echo ' class="active"'; endif; ?>><a href="#search-users" class="search-in-community"><i class="fa fa-user"></i> Users</a></li>
</ul>
</div>
</div>
</form>
</div>
<div class="clearfix"></div>
<nav class="navbar navbar-inverse" role="navigation" id="menu-main">
<div class="container-fluid">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header" id="menu-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#menu-main-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<span class="navbar-toggle navbar-menu">Menu</span>
</div>
<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse" id="menu-main-collapse">
<ul id="menu-main-content" class="nav navbar-nav"><?php echo p('menu_main'); ?></ul>
<ul class="nav navbar-nav navbar-right"><li><button type="button" class="btn btn-primary navbar-btn" onclick="window.location = '<?php echo REL_URL; ?>/upload/';"><i class="fa fa-upload"></i> <?php echo __('upload'); ?></button></li></ul>
</div><!-- /.navbar-collapse -->
</div><!-- /.container-fluid -->
</nav>
</div>
</div>
</header>
<div class="container<?php if (isset($this->cmenu)): echo ' container-item'; endif; ?>">
<?php if (isset($this->cat_id)): echo p('adv_category', 'video-category-top', array($this->cat_id)); else: echo p('adv', 'global-top'); endif; ?>
<?php echo $this->fetch('messages'); echo $this->fetch('errors'); echo $this->fetch('warnings'); ?>