|
|
- <?php if (!defined('__TYPECHO_ROOT_DIR__')) exit;
- define("THEME_URL", $this->options->themeUrl);
- if(!empty(Helper::options()->CDNURL)){
- $theurl = Helper::options()->CDNURL.'/usr/themes/Akina/';
- }else{
- $theurl = THEME_URL.'/';
- }
- define("theurl",$theurl);
- define("theprofile", authorProfile($this->options->profile,theurl));
- ?>
- <!DOCTYPE HTML>
- <html>
- <head>
- <meta http-equiv="content-type" content="text/html; charset=utf-8" />
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <meta name="renderer" content="webkit">
- <meta http-equiv="Cache-Control" content="no-transform" />
- <meta http-equiv="Cache-Control" content="no-siteapp" />
- <meta http-equiv="x-dns-prefetch-control" content="on" />
- <title itemprop="name"><?php $this->archiveTitle(array('category'=>_t('%s - 分类'),'search'=>_t('%s - 搜索结果'),'tag' =>_t('%s - 标签'),'author'=>_t('%s的主页')), '', ' - '); ?><?php $this->options->title(); ?><?php if($this->is('index')): ?><?php if($this->options->sub){echo ' - '.$this->options->sub;} ?><?php endif; ?></title>
- <?php $this->header('generator=&template=&pingback=&xmlrpc=&wlw='); ?>
- <link rel='dns-prefetch' href="<?php $this->options->DNS();?>" />
- <?php echo '
- <link rel="shortcut icon" href="'.theurl.'images/favicon.ico">
- <link rel="stylesheet" href="'.theurl.'css/style.css" type="text/css" />
- <link rel="stylesheet" href="'.theurl.'css/OwO.css" type="text/css" />
- ';?>
- <style type="text/css">
- <?php if (!empty($this->options->menu) && in_array('show', $this->options->menu)): ?>
- .site-top ul { opacity: 1 !important;}
- .site-top .show-nav { display:none !important; }
- <?php endif; ?>
- <?php if (!empty($this->options->menu) && in_array('indexbg', $this->options->menu)): ?>
- @media (max-width:1080px) {#centerbg {display:block;} }
- <?php else: ?>
- @media (max-width:1080px) {#centerbg {display:none} }
- @media (max-width: 860px){.notice {margin-top: 100px;} }
- <?php endif; ?>
- <?php if (!empty($this->options->menu) && in_array('feature', $this->options->menu)): ?>
- #content .top-feature { display:block; }
- .feature-content { display:flex; }
- <?php endif; ?>
- <?php if (!empty($this->options->menu) && in_array('page', $this->options->menu)): ?>
- <?php else: ?>
- .navigator { display:block !important }
- #pagination { display:none !important }
- <?php endif; ?>
- .wedonate img { margin-right:10px }
- .cd-top { background:url(<?php echo theurl; ?>images/gotop.png) no-repeat center 50%}
- </style>
- <?php $this->options->cssCode();?>
- </head>
- <body class="home blog hfeed">
- <!-- 加载动画 -->
- <div id="preloader">
- <div id="preloader-inner"></div>
- </div>
- <section id="main-container">
- <div class="openNav">
- <div class="iconflat">
- <div class="icon"></div>
- </div>
- <!-- logo则显示 -->
- <div class="site-branding">
- <div class="site-title"><a href="<?php $this->options ->siteUrl(); ?>" ><img src="<?php echo authorProfile($this->options->logo,theurl);?>"></a></div>
- </div>
- <!-- logo 结束 -->
- </div>
- <!-- 主页面显示 -->
- <div id="page" class="site wrapper">
- <header class="site-header" role="banner">
- <div class="site-top">
- <!-- logo则显示 -->
- <div class="site-branding">
- <div class="site-title"><a href="<?php $this->options ->siteUrl(); ?>" ><img src="<?php echo authorProfile($this->options->logo,theurl);?>"></a></div>
- </div>
- <!-- logo 结束 -->
- <div id="login-reg">
- <!-- 个人头像 -->
- <?php if($this->user->hasLogin()): ?>
- <!-- 如果用户已经登录 -->
- <div class="exloginbox">
- <a href="#" class="user-panel"><img alt="avatar" src="<?php echo theprofile ?>" srcset="<?php echo theprofile ?> 2x" class="avatar avatar-110 photo" height="110" width="110"></a>
- <div class="user_inner">
- <ul>
- <li><a href="<?php $this->options->adminUrl(); ?>" class="user-manage">管理后台</a></li>
- <li><a href="<?php $this->options->logoutUrl(); ?>" class="user-logout">登出</a></li>
- </ul>
- </div>
- </div>
- <?php else: ?>
- <!-- 如果用户未登录 -->
- <div class="ex-login">
- <a href="<?php $this->options->adminUrl(); ?>" target="_top">
- <i class="iconfont"></i>
- </a>
- </div>
- <?php endif; ?>
- </div>
- <!-- 搜索 -->
- <div class="searchbox">
- <i class="iconfont js-toggle-search iconsearch"></i>
- </div>
- <!-- 分类 -->
- <div class="lower">
- <nav>
- <ul id="nav_menu" class="menu"><li class="current-menu-item"><a href="<?php $this->options ->siteUrl(); ?>">首页</a></li>
- <li><a href="#">分类</a>
- <ul class="sub-menu">
- <?php $this->widget('Widget_Metas_Category_List')->parse('<li><a href="{permalink}">{name}</a></li>'); ?>
- </ul>
- </li>
- <li><a href="#">更多</a>
- <ul class="sub-menu">
- <?php $this->widget('Widget_Contents_Page_List')->to($pages); ?>
- <?php while($pages->next()): ?>
- <li><a href="<?php $pages->permalink(); ?>"><?php $pages->title(); ?></a></li>
- <?php endwhile; ?>
- </ul>
- </li>
- </ul>
- <!-- 隐藏后菜单图标 -->
- <i class="iconfont show-nav"></i>
- </nav>
- </div>
- </div>
- <!-- 到顶部按钮 -->
- <div class="cd-top-box">
- <a href="#" class="cd-top"></a>
- </div>
- </header>
|