You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

131 lines
5.2 KiB

4 years ago
  1. <?php if (!defined('__TYPECHO_ROOT_DIR__')) exit;
  2. define("THEME_URL", $this->options->themeUrl);
  3. if(!empty(Helper::options()->CDNURL)){
  4. $theurl = Helper::options()->CDNURL.'/usr/themes/Akina/';
  5. }else{
  6. $theurl = THEME_URL.'/';
  7. }
  8. define("theurl",$theurl);
  9. define("theprofile", authorProfile($this->options->profile,theurl));
  10. ?>
  11. <!DOCTYPE HTML>
  12. <html>
  13. <head>
  14. <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  15. <meta name="viewport" content="width=device-width, initial-scale=1">
  16. <meta name="renderer" content="webkit">
  17. <meta http-equiv="Cache-Control" content="no-transform" />
  18. <meta http-equiv="Cache-Control" content="no-siteapp" />
  19. <meta http-equiv="x-dns-prefetch-control" content="on" />
  20. <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>
  21. <?php $this->header('generator=&template=&pingback=&xmlrpc=&wlw='); ?>
  22. <link rel='dns-prefetch' href="<?php $this->options->DNS();?>" />
  23. <?php echo '
  24. <link rel="shortcut icon" href="'.theurl.'images/favicon.ico">
  25. <link rel="stylesheet" href="'.theurl.'css/style.css" type="text/css" />
  26. <link rel="stylesheet" href="'.theurl.'css/OwO.css" type="text/css" />
  27. ';?>
  28. <style type="text/css">
  29. <?php if (!empty($this->options->menu) && in_array('show', $this->options->menu)): ?>
  30. .site-top ul { opacity: 1 !important;}
  31. .site-top .show-nav { display:none !important; }
  32. <?php endif; ?>
  33. <?php if (!empty($this->options->menu) && in_array('indexbg', $this->options->menu)): ?>
  34. @media (max-width:1080px) {#centerbg {display:block;} }
  35. <?php else: ?>
  36. @media (max-width:1080px) {#centerbg {display:none} }
  37. @media (max-width: 860px){.notice {margin-top: 100px;} }
  38. <?php endif; ?>
  39. <?php if (!empty($this->options->menu) && in_array('feature', $this->options->menu)): ?>
  40. #content .top-feature { display:block; }
  41. .feature-content { display:flex; }
  42. <?php endif; ?>
  43. <?php if (!empty($this->options->menu) && in_array('page', $this->options->menu)): ?>
  44. <?php else: ?>
  45. .navigator { display:block !important }
  46. #pagination { display:none !important }
  47. <?php endif; ?>
  48. .wedonate img { margin-right:10px }
  49. .cd-top { background:url(<?php echo theurl; ?>images/gotop.png) no-repeat center 50%}
  50. </style>
  51. <?php $this->options->cssCode();?>
  52. </head>
  53. <body class="home blog hfeed">
  54. <!-- 加载动画 -->
  55. <div id="preloader">
  56. <div id="preloader-inner"></div>
  57. </div>
  58. <section id="main-container">
  59. <div class="openNav">
  60. <div class="iconflat">
  61. <div class="icon"></div>
  62. </div>
  63. <!-- logo则显示 -->
  64. <div class="site-branding">
  65. <div class="site-title"><a href="<?php $this->options ->siteUrl(); ?>" ><img src="<?php echo authorProfile($this->options->logo,theurl);?>"></a></div>
  66. </div>
  67. <!-- logo 结束 -->
  68. </div>
  69. <!-- 主页面显示 -->
  70. <div id="page" class="site wrapper">
  71. <header class="site-header" role="banner">
  72. <div class="site-top">
  73. <!-- logo则显示 -->
  74. <div class="site-branding">
  75. <div class="site-title"><a href="<?php $this->options ->siteUrl(); ?>" ><img src="<?php echo authorProfile($this->options->logo,theurl);?>"></a></div>
  76. </div>
  77. <!-- logo 结束 -->
  78. <div id="login-reg">
  79. <!-- 个人头像 -->
  80. <?php if($this->user->hasLogin()): ?>
  81. <!-- 如果用户已经登录 -->
  82. <div class="exloginbox">
  83. <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>
  84. <div class="user_inner">
  85. <ul>
  86. <li><a href="<?php $this->options->adminUrl(); ?>" class="user-manage">管理后台</a></li>
  87. <li><a href="<?php $this->options->logoutUrl(); ?>" class="user-logout">登出</a></li>
  88. </ul>
  89. </div>
  90. </div>
  91. <?php else: ?>
  92. <!-- 如果用户未登录 -->
  93. <div class="ex-login">
  94. <a href="<?php $this->options->adminUrl(); ?>" target="_top">
  95. <i class="iconfont">&#xe615;</i>
  96. </a>
  97. </div>
  98. <?php endif; ?>
  99. </div>
  100. <!-- 搜索 -->
  101. <div class="searchbox">
  102. <i class="iconfont js-toggle-search iconsearch">&#xe6f0;</i>
  103. </div>
  104. <!-- 分类 -->
  105. <div class="lower">
  106. <nav>
  107. <ul id="nav_menu" class="menu"><li class="current-menu-item"><a href="<?php $this->options ->siteUrl(); ?>">首页</a></li>
  108. <li><a href="#">分类</a>
  109. <ul class="sub-menu">
  110. <?php $this->widget('Widget_Metas_Category_List')->parse('<li><a href="{permalink}">{name}</a></li>'); ?>
  111. </ul>
  112. </li>
  113. <li><a href="#">更多</a>
  114. <ul class="sub-menu">
  115. <?php $this->widget('Widget_Contents_Page_List')->to($pages); ?>
  116. <?php while($pages->next()): ?>
  117. <li><a href="<?php $pages->permalink(); ?>"><?php $pages->title(); ?></a></li>
  118. <?php endwhile; ?>
  119. </ul>
  120. </li>
  121. </ul>
  122. <!-- 隐藏后菜单图标 -->
  123. <i class="iconfont show-nav">&#xe613;</i>
  124. </nav>
  125. </div>
  126. </div>
  127. <!-- 到顶部按钮 -->
  128. <div class="cd-top-box">
  129. <a href="#" class="cd-top"></a>
  130. </div>
  131. </header>