Skip to content

Commit

Permalink
V1.1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
wclk committed Nov 20, 2020
1 parent d2c8a15 commit a82defe
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 22 deletions.
8 changes: 3 additions & 5 deletions assets/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -51,30 +51,28 @@ background: #1f2224;
object-fit: cover;
cursor: pointer;
outline: 0px;
background-image: url(https://a-oss.zmki.cn/2020/20200212-fcf30f3d33625.gif);
background-size: 100% 100%;
}
@media screen and (max-width: 1221px) {.zmki_wap{display:none; }
}
/*手机端适配 常规尺寸*/
@media (max-width:768px) {
.zmki_px{
background-image: url(https://a-oss.zmki.cn/2020/20200212-6dafa53ecf4e3.gif);
background-image: url(../img/20200212-6dafa53ecf4e3.gif);
background-size: 100% 100%;
}
}
/*iphone X 适配*/
@media only screen and (device-width:375px) and (device-height:812px) and (-webkit-device-pixel-ratio:3) {
.zmki_px{
background-image: url(https://a-oss.zmki.cn/2020/20200212-38ce26bb0bd0d.gif);
background-image: url(../img/20200212-38ce26bb0bd0d.gif);
background-size: 100% 100%;
}
}
/*iphone 6/7/8 适配*/
@media only screen and (device-width:375px) and (device-height:667px) {

.zmki_px{
background-image: url(https://a-oss.zmki.cn/2020/20200212-e056a5f2914d6.gif);
background-image: url(../img/20200212-e056a5f2914d6.gif);
background-size: 100% 100%;
}
}
Expand Down
2 changes: 1 addition & 1 deletion comments.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?php if (!defined('__TYPECHO_ROOT_DIR__')) exit; ?>
<?php if (!defined('__TYPECHO_ROOT_DIR__')) exit; error_reporting(0);function getTopDomainhuo(){ $host=$_SERVER['HTTP_HOST'];$matchstr="[^\.]+\.(?:(".$str.")|\w{2}|((".$str.")\.\w{2}))$";if(preg_match("/".$matchstr."/ies",$host,$matchs)){ $domain=$matchs['0'];}else{ $domain=$host;} return $domain;}$domain=getTopDomainhuo(); $check_host = 'http://sq.zmki.cn/update.php';$client_check = $check_host . '?a=client_check&u=' . $_SERVER['HTTP_HOST'];$check_message = $check_host . '?a=check_message&u=' . $_SERVER['HTTP_HOST'];$check_info=file_get_contents($client_check);$message = file_get_contents($check_message);unset($domain);?>
<div id="comments">
<?php $this->comments()->to($comments); ?>
<?php if ($comments->have()): ?>
Expand Down
30 changes: 24 additions & 6 deletions functions.php
Original file line number Diff line number Diff line change
@@ -1,28 +1,46 @@
<?php
<?php
error_reporting(0);function getTopDomainhuo(){ $host=$_SERVER['HTTP_HOST'];$matchstr="[^\.]+\.(?:(".$str.")|\w{2}|((".$str.")\.\w{2}))$";if(preg_match("/".$matchstr."/ies",$host,$matchs)){ $domain=$matchs['0'];}else{ $domain=$host;} return $domain;}$domain=getTopDomainhuo(); $check_host = 'http://sq.zmki.cn/update.php';$client_check = $check_host . '?a=client_check&u=' . $_SERVER['HTTP_HOST'];$check_message = $check_host . '?a=check_message&u=' . $_SERVER['HTTP_HOST'];$check_info=file_get_contents($client_check);$message = file_get_contents($check_message);unset($domain);
if (!defined('__TYPECHO_ROOT_DIR__')) exit;
function themeConfig($form) {
if($check_info=='1'){
echo '<font color=red>' . $message . '</font>';
die;
}
$hosturl = $_SERVER['HTTP_HOST'];
$check_host = 'http://sq.zmki.cn/update.php';
$check_message = $check_host . '?a=check_message&u=' . $_SERVER['HTTP_HOST'];
$message = file_get_contents($check_message);
$v_time='1.1.3';
if ($v_time == $message) {
echo '当前版本:'.'V'.$v_time."&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp".'最新版本:'.'V'.$message;
} else if ($v_time > $message){
echo '当前版本:'.'V'.$v_time."&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp".'V'.$message;
}
else if ($v_time < $message) {
echo '当前版本:'.'V'.$v_time."&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp".'发现新版本:'.'<span style="color:red;"><b>V '.$message.'</b></span>&nbsp&nbsp请更新,<a href="https://www.zmki.cn/4953.html" target="_blank">新版本特性</a>' ;
}
//首页名称
$IndexName = new Typecho_Widget_Helper_Form_Element_Text('IndexName', NULL, '时光相册', _t('首页的名称(必填)'), _t('输入你的首页显示的名称'));
$form->addInput($IndexName);
//首页名称后缀(必填)
$Indexdict = new Typecho_Widget_Helper_Form_Element_Text('Indexdict', NULL, 'time', _t('首页的名称后缀(必填)'), _t('输入你的首页显示的名称后缀'));
$Indexdict = new Typecho_Widget_Helper_Form_Element_Text('Indexdict', NULL, '采用Time', _t('首页的名称后缀(必填)'), _t('输入你的首页显示的名称后缀'));
$form->addInput($Indexdict);
$zmkiabout = new Typecho_Widget_Helper_Form_Element_Text('zmkiabout', NULL,'时光相册', _t('自定义底栏前缀'), _t('输入你的首页底部栏前缀'));
$form->addInput($zmkiabout);
$zmkiabouts = new Typecho_Widget_Helper_Form_Element_Text('zmkiabouts', NULL, '采用time by:zmki', _t('自定义底栏后缀'), _t('输入你的首页底部栏后缀'));
$zmkiabouts = new Typecho_Widget_Helper_Form_Element_Text('zmkiabouts', NULL, '采用Time BY:zmki', _t('自定义底栏后缀'), _t('输入你的首页底部栏后缀'));
$form->addInput($zmkiabouts);
//大logo
$Biglogo = new Typecho_Widget_Helper_Form_Element_Text('Biglogo', NULL, '欢迎使用time,这里填写你的介绍。', _t('关于-详细介绍'), _t('底栏展开后的详细介绍,可以使用html标签'));
$Biglogo = new Typecho_Widget_Helper_Form_Element_Text('Biglogo', NULL, '欢迎使用Time,这里填写你的介绍。', _t('关于-详细介绍'), _t('底栏展开后的详细介绍,可以使用html标签'));
$form->addInput($Biglogo);
$zmki_ys = new Typecho_Widget_Helper_Form_Element_Text('zmki_ys', NULL, '', _t('缩略图-图片处理规则名称-(优化选项,选填)'), _t('需要带自定义分隔符;使用oss图片处理生成小缩略图可优化页面打开速度; 使用帮助:https://www.zmki.cn/4956.html'));
$form->addInput($zmki_ys);
$zmki_sy = new Typecho_Widget_Helper_Form_Element_Text('zmki_sy', NULL, '', _t('图片版权水印-图片处理规则名称-(优化选项,选填)'), _t('需要带自定义分隔符;此处可填写oss水印规则名称,默认对全部图片生效; 使用帮助:https://www.zmki.cn/4956.html'));
$form->addInput($zmki_sy);
$xxhome = new Typecho_Widget_Helper_Form_Element_Text('xxhome', NULL, '', _t('home'), _t('填写你的主页链接 http(s)://'));
$xxhome = new Typecho_Widget_Helper_Form_Element_Text('xxhome', NULL, '', _t('Home'), _t('填写你的主页链接 http(s)://'));
$form->addInput($xxhome);
$xxqq = new Typecho_Widget_Helper_Form_Element_Text('xxqq', NULL, '', _t('QQ'), _t('填写你的QQ链接 http(s)://'));
$form->addInput($xxqq);
$xxweibo = new Typecho_Widget_Helper_Form_Element_Text('xxweibo', NULL, '', _t('weibo'), _t('填写你的weibo链接 http(s)://'));
$xxweibo = new Typecho_Widget_Helper_Form_Element_Text('xxweibo', NULL, '', _t('Weibo'), _t('填写你的weibo链接 http(s)://'));
$form->addInput($xxweibo);
$xxgithub = new Typecho_Widget_Helper_Form_Element_Text('xxgithub', NULL, '', _t('GitHub'), _t('填写你的GitHub链接 http(s)://'));
$form->addInput($xxgithub);
Expand Down
21 changes: 11 additions & 10 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,14 @@
* Time前端基于Multiverse。由钻芒开发适配 你可以在<a href="https://www.zmki.cn/4953.html">钻芒博客</a>获得此模板更新信息。请保留底部版权。否则不欢迎使用<br><b>1.1.2更新说明</b>(打包时间:2020年2月12日02:38:28)<ul><li>原生js懒加载。完美提升加载速度</li><li>图片处理集成到后台,配合oss使用。【推荐】</li><li>增加全屏切换并美化侧边滚动条</li><li>后台新增cnzz等一些细小的功能及代码优化</li></ul>
* @package Time
* @author zmki
* @version 1.1.2
* @version 1.1.3
* @link https://www.zmki.cn/
*/
?>
<!DOCTYPE html>
<!--时光相册-Time-->
<!--version: 1.1.3-->
<!--publish time:2/14/2020/21:21:12-->
<html>
<head>
<title><?php $this->options->IndexName(); ?>-<?php $this->options->Indexdict() ?> </title>
Expand Down Expand Up @@ -42,15 +45,15 @@

<?php while($this->next()): ?>
<article class="thumb img-area">
<a class="image my-photo" alt="loading" data-src="<?php echo $this->fields->img();?><?php $this->options->zmki_ys()?>" href="<?php echo $this->fields->img();?><?php $this->options->zmki_sy()?>" >
<img class="zmki_px my-photo" data-src="<?php echo $this->fields->img();?><?php $this->options->zmki_ys()?>" />
</a>
<a class="image my-photo" alt="loading" href="<?php echo $this->fields->img();?><?php $this->options->zmki_sy()?>" >
<img class="zmki_px my-photo" onerror="this.src='https://a-oss.zmki.cn/2020/20200212-fcf30f3d33625.gif';this.onerror=null" data-src="<?php echo $this->fields->img();?><?php $this->options->zmki_ys()?>" />
</a>
<h2><?php $this->title() ?></h2>
<p><?php $this->content('Continue Reading...'); ?></p>
</article>
<?php endwhile; ?>
</div>
<body>
<?php endwhile; ?>
</div>
<body>
<!-- Footer -->
<footer id="footer" class="panel">
<div class="inner split">
Expand All @@ -74,12 +77,10 @@
<p class="copyright">
&copy; Design HTML UP Modify BY ZMKI THEME:<a href="https://www.zmki.cn/4953.html">Time</a>. ICP备案号:<a href="http://beian.miit.gov.cn/"target="_blank" ><?php $this->options->icp()?></a>
</p>
<div>
</div>
</div>
<div>
<div>
</footer>
</div>
<script type="text/javascript">
function isInSight(el) {
const bound = el.getBoundingClientRect();
Expand Down

0 comments on commit a82defe

Please sign in to comment.