Файл: adultscript-2.0.3-pro/files/mobile/templates/default/header.tpl.php
Строк: 116
<?php defined('_VALID') or die('Restricted Access!'); ?>
<!DOCTYPE html>
<html>
<head>
<title><?php if (isset($this->meta_title)): echo e($this->meta_title); else: echo e($this->mcfg['site_name']); endif; ?></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="description" content="<?php if (isset($this->meta_desc)): echo e($this->meta_desc); else: echo e($this->mcfg['meta_desc']); endif; ?>" />
<meta name="keywords" content="<?php if (isset($this->meta_keys)): echo e($this->meta_keys); else: echo e($this->mcfg['meta_keys']); endif; ?>" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="apple-mobile-web-app-capable" content="yes"/>
<?php if (isset($this->metas)): foreach ($this->metas as $key => $value): ?>
<meta property="<?php echo e($key); ?>" content="<?php echo e($value); ?>" />
<?php endforeach; endif; if (isset($this->canonical)): ?>
<link rel="canonical" href="<?php echo $this->canonical; ?>" />
<?php endif; ?>
<link rel="stylesheet" href="<?php echo TPL_REL; ?>/css/jquery.mobile-1.4.5.min.css" />
<link rel="stylesheet" href="<?php echo TPL_REL; ?>/css/jquery.mobile-custom-1.0.0.css" />
<script type="text/javascript">var base_url = "<?php echo BASE_URL; ?>"; var mobile_url = "<?php echo MOBILE_URL; ?>"; var rel_url = "<?php echo RELATIVE_URL; ?>"; var tpl_rel = "<?php echo TPL_REL; ?>"; var thumb_url = "<?php echo THUMB_URL; ?>";</script>
<script type="text/javascript" src="<?php echo TPL_REL; ?>/js/jquery-2.1.1.min.js"></script>
<script type="text/javascript" src="<?php echo TPL_REL; ?>/js/jquery.main-1.0.js"></script>
<script type="text/javascript" src="<?php echo TPL_REL; ?>/js/jquery.mobile-1.4.5.min.js"></script>
</head>
<body>
<div id="container" data-theme="b" data-role="page">
<div data-role="header">
<center><a href="<?php echo MOBILE_URL; ?>/" class="logo"><img src="<?php echo TPL_REL; ?>/images/logo.png" alt="<?php echo $this->cfg['site_name']; ?>" /></a></center>
<div data-role="controlgroup" data-type="horizontal" style="width: 100%; text-align: center;">
<?php if (VAuth::loggedin()): ?>
<a href="<?php echo MOBILE_REL; ?>/user/dashboard/" data-role="button" data-theme="b" data-inline="true">Dashboard</a>
<a href="<?php echo MOBILE_REL; ?>/user/logout/" data-role="button" data-theme="b" data-inline="true">Logout</a>
<?php else: ?>
<a href="<?php echo MOBILE_REL; ?>/user/signup/" data-role="button" data-theme="b" data-inline="true" >Register</a>
<a href="<?php echo MOBILE_REL; ?>/user/login/" data-role="button" data-theme="b" data-inline="true">Login</a>
<?php endif; ?>
<a href="#language" data-role="button" data-rel="popup" data-position-to="window" data-theme="b"><img src="<?php echo MEDIA_URL; ?>/flags/<?php echo $this->flag; ?>.png"></a>
<div data-role="popup" id="language">
<a href="#" data-rel="back" data-role="button" data-theme="a" data-icon="delete" data-iconpos="notext" class="ui-btn-right">Close</a>
<ul data-role="listview" data-inset="true" style="min-width:210px;" data-theme="b">
<li data-role="divider" data-theme="a">Select Language</li>
<?php foreach ($this->languages as $code => $language): ?>
<li><a href="#<?php echo $code; ?>" id="language_<?php echo $code; ?>"><?php echo e($language['name']); ?></a></li>
<?php endforeach; ?>
</ul>
</div>
</div>
<div data-role="navbar"><ul><?php echo p('menu_main', $this->menu); ?></ul></div>
</div>
<?php $types = array('photo' => 1, 'pornstar' => 1, 'community' => 1); $type = 'video'; if (isset($this->menu) && isset($types[$this->menu])): $type = $this->menu; endif; ?>
<form method="get" action="<?php echo MOBILE_REL; ?>/search/<?php echo $type; ?>/">
<div data-role="fieldcontain">
<center><input type="search" name="query" id="search" data-theme="a" value="<?php if (isset($this->query)): echo e($this->query); endif; ?>" /></center>
</div>
</form>
<?php echo p('adv', 'mobile-header'); ?>
<?php if (isset($this->errors) && !empty($this->errors)): echo $this->fetch('errors'); endif; ?>
<?php if (isset($this->warnings) && !empty($this->warnings)): echo $this->fetch('warnings'); endif; ?>
<?php if (isset($this->messages) && !empty($this->messages)): echo $this->fetch('messages'); endif; ?>