sakura/layouts/imgbox.php

140 lines
12 KiB
PHP
Raw Normal View History

2018-05-26 18:59:29 +08:00
<?php
//https://api.mashiro.top/cover
?>
<figure id="centerbg" class="centerbg">
<?php if ( !akina_option('focus_infos') ){ ?>
<div class="focusinfo">
2019-04-21 03:45:03 +08:00
<?php if (akina_option('focus_logo_text')):?>
<h1 class="center-text glitch is-glitching Ubuntu-font" data-text="<?php echo akina_option('focus_logo_text', ''); ?>"><?php echo akina_option('focus_logo_text', ''); ?></h1>
<?php elseif (akina_option('focus_logo')):?>
2018-05-26 18:59:29 +08:00
<div class="header-tou"><a href="<?php bloginfo('url');?>" ><img src="<?php echo akina_option('focus_logo', ''); ?>"></a></div>
<?php else :?>
<div class="header-tou" ><a href="<?php bloginfo('url');?>"><img src="<?php bloginfo('template_url'); ?>/images/avatar.jpg"></a></div>
<?php endif; ?>
<div class="header-info">
<p><?php echo akina_option('admin_des', 'Hi, Mashiro?'); ?></p>
<?php if (akina_option('social_style')=="v2"): ?>
<div class="top-social_v2">
2022-07-05 21:00:46 +08:00
<li id="bg-pre"><img class="flipx" src="<?php echo (SAKURA_STATIC_ASSETS_HOST);?>gh/MomentQYC/sakura@static/img/Sakura/images/next-b.svg"/></li>
2018-05-26 18:59:29 +08:00
<?php if (akina_option('github')){ ?>
2022-07-05 21:00:46 +08:00
<li><a href="<?php echo akina_option('github', ''); ?>" target="_blank" class="social-github" title="github"><img src="<?php echo (SAKURA_STATIC_ASSETS_HOST);?>gh/MomentQYC/sakura@static/img/Sakura/images/sns/github.png"/></a></li>
2018-05-26 18:59:29 +08:00
<?php } ?>
<?php if (akina_option('sina')){ ?>
2022-07-05 21:00:46 +08:00
<li><a href="<?php echo akina_option('sina', ''); ?>" target="_blank" class="social-sina" title="sina"><img src="<?php echo (SAKURA_STATIC_ASSETS_HOST);?>gh/MomentQYC/sakura@static/img/Sakura/images/sns/sina.png"/></a></li>
2018-05-26 18:59:29 +08:00
<?php } ?>
<?php if (akina_option('telegram')){ ?>
2022-07-05 21:00:46 +08:00
<li><a href="<?php echo akina_option('telegram', ''); ?>" target="_blank" class="social-lofter" title="telegram"><img src="<?php echo (SAKURA_STATIC_ASSETS_HOST);?>gh/MomentQYC/sakura@static/img/Sakura/images/sns/telegram.svg"/></a></li>
2018-05-26 18:59:29 +08:00
<?php } ?>
<?php if (akina_option('qq')){ ?>
2022-07-05 21:00:46 +08:00
<li class="qq"><a href="<?php echo akina_option('qq', ''); ?>" title="Initiate chat ?"><img src="<?php echo (SAKURA_STATIC_ASSETS_HOST);?>gh/MomentQYC/sakura@static/img/Sakura/images/sns/qq.png"/></a></li>
2018-05-26 18:59:29 +08:00
<?php } ?>
<?php if (akina_option('qzone')){ ?>
2022-07-05 21:00:46 +08:00
<li><a href="<?php echo akina_option('qzone', ''); ?>" target="_blank" class="social-qzone" title="qzone"><img src="<?php echo (SAKURA_STATIC_ASSETS_HOST);?>gh/MomentQYC/sakura@static/img/Sakura/images/sns/qzone.png"/></a></li>
2018-05-26 18:59:29 +08:00
<?php } ?>
<?php if (akina_option('wechat')){ ?>
2022-07-05 21:00:46 +08:00
<li class="wechat"><a href="#"><img src="<?php echo (SAKURA_STATIC_ASSETS_HOST);?>gh/MomentQYC/sakura@static/img/Sakura/images/sns/wechat.png"/></a>
2018-05-26 18:59:29 +08:00
<div class="wechatInner">
<img src="<?php echo akina_option('wechat', ''); ?>" alt="WeChat">
</div>
</li>
<?php } ?>
<?php if (akina_option('lofter')){ ?>
2022-07-05 21:00:46 +08:00
<li><a href="<?php echo akina_option('lofter', ''); ?>" target="_blank" class="social-lofter" title="lofter"><img src="<?php echo (SAKURA_STATIC_ASSETS_HOST);?>gh/MomentQYC/sakura@static/img/Sakura/images/sns/lofter.png"/></a></li>
2018-05-26 18:59:29 +08:00
<?php } ?>
<?php if (akina_option('bili')){ ?>
2022-07-05 21:00:46 +08:00
<li><a href="<?php echo akina_option('bili', ''); ?>" target="_blank" class="social-bili" title="bilibili"><img src="<?php echo (SAKURA_STATIC_ASSETS_HOST);?>gh/MomentQYC/sakura@static/img/Sakura/images/sns/bilibili.png"/></a></li>
2018-05-26 18:59:29 +08:00
<?php } ?>
<?php if (akina_option('youku')){ ?>
2022-07-05 21:00:46 +08:00
<li><a href="<?php echo akina_option('youku', ''); ?>" target="_blank" class="social-youku" title="youku"><img src="<?php echo (SAKURA_STATIC_ASSETS_HOST);?>gh/MomentQYC/sakura@static/img/Sakura/images/sns/youku.png"/></a></li>
2018-05-26 18:59:29 +08:00
<?php } ?>
<?php if (akina_option('wangyiyun')){ ?>
2022-07-05 21:00:46 +08:00
<li><a href="<?php echo akina_option('wangyiyun', ''); ?>" target="_blank" class="social-wangyiyun" title="CloudMusic"><img src="<?php echo (SAKURA_STATIC_ASSETS_HOST);?>gh/MomentQYC/sakura@static/img/Sakura/images/sns/wangyiyun.png"/></a></li>
2018-05-26 18:59:29 +08:00
<?php } ?>
<?php if (akina_option('twitter')){ ?>
2022-07-05 21:00:46 +08:00
<li><a href="<?php echo akina_option('twitter', ''); ?>" target="_blank" class="social-wangyiyun" title="Twitter"><img src="<?php echo (SAKURA_STATIC_ASSETS_HOST);?>gh/MomentQYC/sakura@static/img/Sakura/images/sns/twitter.png"/></a></li>
2018-05-26 18:59:29 +08:00
<?php } ?>
<?php if (akina_option('facebook')){ ?>
2022-07-05 21:00:46 +08:00
<li><a href="<?php echo akina_option('facebook', ''); ?>" target="_blank" class="social-wangyiyun" title="Facebook"><img src="<?php echo (SAKURA_STATIC_ASSETS_HOST);?>gh/MomentQYC/sakura@static/img/Sakura/images/sns/facebook.png"/></a></li>
2018-05-26 18:59:29 +08:00
<?php } ?>
<?php if (akina_option('jianshu')){ ?>
2022-07-05 21:00:46 +08:00
<li><a href="<?php echo akina_option('jianshu', ''); ?>" target="_blank" class="social-wangyiyun" title="Jianshu"><img src="<?php echo (SAKURA_STATIC_ASSETS_HOST);?>gh/MomentQYC/sakura@static/img/Sakura/images/sns/jianshu.png"/></a></li>
2018-05-26 18:59:29 +08:00
<?php } ?>
<?php if (akina_option('zhihu')){ ?>
2022-07-05 21:00:46 +08:00
<li><a href="<?php echo akina_option('zhihu', ''); ?>" target="_blank" class="social-wangyiyun" title="Zhihu"><img src="<?php echo (SAKURA_STATIC_ASSETS_HOST);?>gh/MomentQYC/sakura@static/img/Sakura/images/sns/zhihu.png"/></a></li>
2018-05-26 18:59:29 +08:00
<?php } ?>
<?php if (akina_option('csdn')){ ?>
2022-07-05 21:00:46 +08:00
<li><a href="<?php echo akina_option('csdn', ''); ?>" target="_blank" class="social-wangyiyun" title="CSDN"><img src="<?php echo (SAKURA_STATIC_ASSETS_HOST);?>gh/MomentQYC/sakura@static/img/Sakura/images/sns/csdn.png"/></a></li>
2018-05-26 18:59:29 +08:00
<?php } ?>
<?php if (akina_option('email_name') && akina_option('email_domain')){ ?>
2022-07-05 21:00:46 +08:00
<li><a onclick="mail_me()" class="social-wangyiyun" title="E-mail"><img src="<?php echo (SAKURA_STATIC_ASSETS_HOST);?>gh/MomentQYC/sakura@static/img/Sakura/images/sns/email.svg"/></a></li>
2018-05-26 18:59:29 +08:00
<?php } ?>
2022-07-05 21:00:46 +08:00
<li id="bg-next"><img src="<?php echo (SAKURA_STATIC_ASSETS_HOST);?>gh/MomentQYC/sakura@static/img/Sakura/images/next-b.svg"/></li>
2018-05-26 18:59:29 +08:00
</div>
<?php endif; ?>
</div>
<?php if (akina_option('social_style')=="v1"): ?>
<div class="top-social">
2022-07-05 21:00:46 +08:00
<li id="bg-pre"><img class="flipx" src="<?php echo (SAKURA_STATIC_ASSETS_HOST);?>gh/MomentQYC/sakura@static/img/Sakura/images/next-b.svg"/></li>
2018-05-26 18:59:29 +08:00
<?php if (akina_option('github')){ ?>
2022-07-05 21:00:46 +08:00
<li><a href="<?php echo akina_option('github', ''); ?>" target="_blank" class="social-github" title="github"><img src="<?php echo (SAKURA_STATIC_ASSETS_HOST);?>gh/MomentQYC/sakura@static/img/Sakura/images/sns/github.png"/></a></li>
2018-05-26 18:59:29 +08:00
<?php } ?>
<?php if (akina_option('sina')){ ?>
2022-07-05 21:00:46 +08:00
<li><a href="<?php echo akina_option('sina', ''); ?>" target="_blank" class="social-sina" title="sina"><img src="<?php echo (SAKURA_STATIC_ASSETS_HOST);?>gh/MomentQYC/sakura@static/img/Sakura/images/sns/sina.png"/></a></li>
2018-05-26 18:59:29 +08:00
<?php } ?>
<?php if (akina_option('telegram')){ ?>
2022-07-05 21:00:46 +08:00
<li><a href="<?php echo akina_option('telegram', ''); ?>" target="_blank" class="social-lofter" title="telegram"><img src="<?php echo (SAKURA_STATIC_ASSETS_HOST);?>gh/MomentQYC/sakura@static/img/Sakura/images/sns/telegram.svg"/></a></li>
2018-05-26 18:59:29 +08:00
<?php } ?>
<?php if (akina_option('qq')){ ?>
2022-07-05 21:00:46 +08:00
<li class="qq"><a href="<?php echo akina_option('qq', ''); ?>" title="Initiate chat ?"><img src="<?php echo (SAKURA_STATIC_ASSETS_HOST);?>gh/MomentQYC/sakura@static/img/Sakura/images/sns/qq.png"/></a></li>
2018-05-26 18:59:29 +08:00
<?php } ?>
<?php if (akina_option('qzone')){ ?>
2022-07-05 21:00:46 +08:00
<li><a href="<?php echo akina_option('qzone', ''); ?>" target="_blank" class="social-qzone" title="qzone"><img src="<?php echo (SAKURA_STATIC_ASSETS_HOST);?>gh/MomentQYC/sakura@static/Sakura/images/sns/qzone.png"/></a></li>
2018-05-26 18:59:29 +08:00
<?php } ?>
<?php if (akina_option('wechat')){ ?>
2022-07-05 21:00:46 +08:00
<li class="wechat"><a href="#"><img src="<?php echo (SAKURA_STATIC_ASSETS_HOST);?>gh/MomentQYC/sakura@static/img/Sakura/images/sns/wechat.png"/></a>
2018-05-26 18:59:29 +08:00
<div class="wechatInner">
<img src="<?php echo akina_option('wechat', ''); ?>" alt="WeChat">
</div>
</li>
<?php } ?>
<?php if (akina_option('lofter')){ ?>
2022-07-05 21:00:46 +08:00
<li><a href="<?php echo akina_option('lofter', ''); ?>" target="_blank" class="social-lofter" title="lofter"><img src="<?php echo (SAKURA_STATIC_ASSETS_HOST);?>gh/MomentQYC/sakura@static/img/Sakura/images/sns/lofter.png"/></a></li>
2018-05-26 18:59:29 +08:00
<?php } ?>
<?php if (akina_option('bili')){ ?>
2022-07-05 21:00:46 +08:00
<li><a href="<?php echo akina_option('bili', ''); ?>" target="_blank" class="social-bili" title="bilibili"><img src="<?php echo (SAKURA_STATIC_ASSETS_HOST);?>gh/MomentQYC/sakura@static/img/Sakura/images/sns/bilibili.png"/></a></li>
2018-05-26 18:59:29 +08:00
<?php } ?>
<?php if (akina_option('youku')){ ?>
2022-07-05 21:00:46 +08:00
<li><a href="<?php echo akina_option('youku', ''); ?>" target="_blank" class="social-youku" title="youku"><img src="<?php echo (SAKURA_STATIC_ASSETS_HOST);?>gh/MomentQYC/sakura@static/img/Sakura/images/sns/youku.png"/></a></li>
2018-05-26 18:59:29 +08:00
<?php } ?>
<?php if (akina_option('wangyiyun')){ ?>
2022-07-05 21:00:46 +08:00
<li><a href="<?php echo akina_option('wangyiyun', ''); ?>" target="_blank" class="social-wangyiyun" title="CloudMusic"><img src="<?php echo (SAKURA_STATIC_ASSETS_HOST);?>gh/MomentQYC/sakura@static/img/Sakura/images/sns/wangyiyun.png"/></a></li>
2018-05-26 18:59:29 +08:00
<?php } ?>
<?php if (akina_option('twitter')){ ?>
2022-07-05 21:00:46 +08:00
<li><a href="<?php echo akina_option('twitter', ''); ?>" target="_blank" class="social-wangyiyun" title="Twitter"><img src="<?php echo (SAKURA_STATIC_ASSETS_HOST);?>gh/MomentQYC/sakura@static/img/Sakura/images/sns/twitter.png"/></a></li>
2018-05-26 18:59:29 +08:00
<?php } ?>
<?php if (akina_option('facebook')){ ?>
2022-07-05 21:00:46 +08:00
<li><a href="<?php echo akina_option('facebook', ''); ?>" target="_blank" class="social-wangyiyun" title="Facebook"><img src="<?php echo (SAKURA_STATIC_ASSETS_HOST);?>gh/MomentQYC/sakura@static/img/Sakura/images/sns/facebook.png"/></a></li>
2018-05-26 18:59:29 +08:00
<?php } ?>
<?php if (akina_option('jianshu')){ ?>
2022-07-05 21:00:46 +08:00
<li><a href="<?php echo akina_option('jianshu', ''); ?>" target="_blank" class="social-wangyiyun" title="Jianshu"><img src="<?php echo (SAKURA_STATIC_ASSETS_HOST);?>gh/MomentQYC/sakura@static/img/Sakura/images/sns/jianshu.png"/></a></li>
2018-05-26 18:59:29 +08:00
<?php } ?>
<?php if (akina_option('zhihu')){ ?>
2022-07-05 21:00:46 +08:00
<li><a href="<?php echo akina_option('zhihu', ''); ?>" target="_blank" class="social-wangyiyun" title="Zhihu"><img src="<?php echo (SAKURA_STATIC_ASSETS_HOST);?>gh/MomentQYC/sakura@static/img/Sakura/images/sns/zhihu.png"/></a></li>
2018-05-26 18:59:29 +08:00
<?php } ?>
<?php if (akina_option('csdn')){ ?>
2022-07-05 21:00:46 +08:00
<li><a href="<?php echo akina_option('csdn', ''); ?>" target="_blank" class="social-wangyiyun" title="CSDN"><img src="<?php echo (SAKURA_STATIC_ASSETS_HOST);?>gh/MomentQYC/sakura@static/img/Sakura/images/sns/csdn.png"/></a></li>
2018-05-26 18:59:29 +08:00
<?php } ?>
<?php if (akina_option('email_name') && akina_option('email_domain')){ ?>
2022-07-05 21:00:46 +08:00
<li><a onclick="mail_me()" class="social-wangyiyun" title="E-mail"><img src="<?php echo (SAKURA_STATIC_ASSETS_HOST);?>gh/MomentQYC/sakura@static/img/Sakura/images/sns/email.svg"/></a></li>
2018-05-26 18:59:29 +08:00
<?php } ?>
2022-07-05 21:00:46 +08:00
<li id="bg-next"><img src="<?php echo (SAKURA_STATIC_ASSETS_HOST);?>gh/MomentQYC/sakura@static/img/Sakura/images/next-b.svg"/></li>
2018-05-26 18:59:29 +08:00
</div>
<?php endif; ?>
</div>
<?php } ?>
</figure>
<?php
echo bgvideo(); //BGVideo