mirror of
				https://github.com/mashirozx/sakura.git
				synced 2025-05-29 01:49:21 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			200 lines
		
	
	
		
			8.1 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			200 lines
		
	
	
		
			8.1 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
<?php
 | 
						||
/**
 | 
						||
 * The template for displaying the footer.
 | 
						||
 *
 | 
						||
 * Contains the closing of the #content div and all content after.
 | 
						||
 *
 | 
						||
 * @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
 | 
						||
 *
 | 
						||
 * @package Sakura
 | 
						||
 */
 | 
						||
 | 
						||
?>
 | 
						||
	</div><!-- #content -->
 | 
						||
	<?php 
 | 
						||
		if(akina_option('general_disqus_plugin_support')){
 | 
						||
			get_template_part('layouts/duoshuo');
 | 
						||
		}else{
 | 
						||
			comments_template('', true); 
 | 
						||
		}
 | 
						||
	?>
 | 
						||
	</div><!-- #page Pjax container-->
 | 
						||
	<footer id="colophon" class="site-footer" role="contentinfo">
 | 
						||
		<div class="site-info" theme-info="Sakura v<?php echo SAKURA_VERSION; ?>">
 | 
						||
			<div class="footertext">
 | 
						||
				<div class="img-preload">
 | 
						||
					<img src="https://cdn.jsdelivr.net/gh/moezx/cdn@3.1.9/img/Sakura/images/wordpress-rotating-ball-o.svg">
 | 
						||
					<img src="https://cdn.jsdelivr.net/gh/moezx/cdn@3.1.9/img/Sakura/images/disqus-preloader.svg">
 | 
						||
				</div>
 | 
						||
				<p style="color: #666666;"><?php echo akina_option('footer_info', ''); ?></p>
 | 
						||
			</div>
 | 
						||
			<div class="footer-device">
 | 
						||
			<p style="font-family: 'Ubuntu', sans-serif;">
 | 
						||
					<span style="color: #b9b9b9;">
 | 
						||
						<?php /* 能保留下面两个链接吗?算是我一个小小的心愿吧~ */ ?>
 | 
						||
						Theme <a href="https://2heng.xin/theme-sakura/" target="_blank" style="color: #b9b9b9;;text-decoration: underline dotted rgba(0, 0, 0, .1);">Sakura</a> <i class="iconfont icon-sakura rotating" style="color: #ffc0cb;display:inline-block"></i> by <a href="https://2heng.xin/" target="_blank" style="color: #b9b9b9;;text-decoration: underline dotted rgba(0, 0, 0, .1);">Mashiro</a>
 | 
						||
					</span>
 | 
						||
				</p>
 | 
						||
			</div>
 | 
						||
		</div><!-- .site-info -->
 | 
						||
	</footer><!-- #colophon -->
 | 
						||
	<div class="openNav no-select">
 | 
						||
		<div class="iconflat no-select">	 
 | 
						||
			<div class="icon"></div>
 | 
						||
		</div>
 | 
						||
		<div class="site-branding">
 | 
						||
			<?php if (akina_option('akina_logo')){ ?>
 | 
						||
			<div class="site-title"><a href="<?php bloginfo('url');?>" ><img src="<?php echo akina_option('akina_logo'); ?>"></a></div>
 | 
						||
			<?php }else{ ?>
 | 
						||
			<h1 class="site-title"><a href="<?php bloginfo('url');?>" ><?php bloginfo('name');?></a></h1>
 | 
						||
			<?php } ?>
 | 
						||
		</div>
 | 
						||
	</div><!-- m-nav-bar -->
 | 
						||
	</section><!-- #section -->
 | 
						||
	<!-- m-nav-center -->
 | 
						||
	<div id="mo-nav">
 | 
						||
		<div class="m-avatar">
 | 
						||
			<?php $ava = akina_option('focus_logo') ? akina_option('focus_logo') : get_template_directory_uri().'/images/avatar.jpg'; ?>
 | 
						||
			<img src="<?php echo $ava ?>">
 | 
						||
		</div>
 | 
						||
		<p style="text-align: center; color: #333; font-weight: 900; font-family: 'Ubuntu', sans-serif; letter-spacing: 1.5px">Contact me</p>
 | 
						||
		<li><a href="https://twitter.com/EkklesN" target="_blank" class="social-wangyiyun" title="Twitter"><img src="https://cdn.jsdelivr.net/gh/moezx/cdn@3.1.9/img/Sakura/images/sns/twitter.png"/></a></li>
 | 
						||
		<div class="m-search">
 | 
						||
			<form class="m-search-form" method="get" action="<?php echo home_url(); ?>" role="search">
 | 
						||
				<input class="m-search-input" type="search" name="s" placeholder="<?php _e('搜索...', 'akina') ?>" required>
 | 
						||
			</form>
 | 
						||
		</div>
 | 
						||
		<?php wp_nav_menu( array( 'depth' => 2, 'theme_location' => 'primary', 'container' => false ) ); ?>
 | 
						||
	</div><!-- m-nav-center end -->
 | 
						||
	<a class="cd-top faa-float animated "></a>
 | 
						||
	<button onclick="topFunction()" id="moblieGoTop" title="Go to top"><i class="fa fa-chevron-up" aria-hidden="true"></i></button>
 | 
						||
	<!-- search start -->
 | 
						||
	<form class="js-search search-form search-form--modal" method="get" action="<?php echo home_url(); ?>" role="search">
 | 
						||
		<div class="search-form__inner">
 | 
						||
		<?php if(akina_option('live_search')){ ?>
 | 
						||
			<div class="micro">
 | 
						||
				<i class="iconfont icon-search"></i>
 | 
						||
				<input id="search-input" class="text-input" type="search" name="s" placeholder="<?php _e('想要找点什么呢?', 'akina') ?>" required>
 | 
						||
			</div>
 | 
						||
			<div class="ins-section-wrapper">
 | 
						||
                <a id="Ty" href="#"></a>
 | 
						||
                <div class="ins-section-container" id="PostlistBox"></div>
 | 
						||
            </div>
 | 
						||
		<?php }else{ ?>
 | 
						||
			<div class="micro">
 | 
						||
				<p class="micro mb-"><?php _e('想要找点什么呢?', 'akina') ?></p>
 | 
						||
				<i class="iconfont icon-search"></i>
 | 
						||
				<input class="text-input" type="search" name="s" placeholder="<?php _e('Search', 'akina') ?>" required>
 | 
						||
			</div>
 | 
						||
		<?php } ?>
 | 
						||
		</div>
 | 
						||
		<div class="search_close"></div>
 | 
						||
	</form>
 | 
						||
	<!-- search end -->
 | 
						||
<?php wp_footer(); ?>
 | 
						||
<?php if(akina_option('site_statistics')){ ?>
 | 
						||
<div class="site-statistics">
 | 
						||
<script type="text/javascript"><?php echo akina_option('site_statistics'); ?></script>
 | 
						||
</div>
 | 
						||
<?php } ?>
 | 
						||
<div class="changeSkin-gear no-select" style="bottom: -999px;">
 | 
						||
    <div class="keys">
 | 
						||
        <span id="open-skinMenu">
 | 
						||
		<i class="iconfont icon-gear inline-block rotating"></i>  切换主题 | SCHEME TOOL 
 | 
						||
        </span>
 | 
						||
    </div>
 | 
						||
</div>
 | 
						||
<div class="skin-menu no-select">
 | 
						||
    <div class="theme-controls row-container">
 | 
						||
        <ul class="menu-list">
 | 
						||
            <li id="white-bg">
 | 
						||
                <i class="fa fa-television" aria-hidden="true"></i>
 | 
						||
            </li><!--Default-->
 | 
						||
            <li id="sakura-bg">
 | 
						||
                <i class="iconfont icon-sakura"></i>
 | 
						||
            </li><!--Sakura-->
 | 
						||
            <li id="gribs-bg">
 | 
						||
                <i class="fa fa-slack" aria-hidden="true"></i>
 | 
						||
            </li><!--Grids-->
 | 
						||
            <li id="KAdots-bg">
 | 
						||
                <i class="iconfont icon-dots"></i>
 | 
						||
            </li><!--Dots-->
 | 
						||
            <li id="totem-bg">
 | 
						||
                <i class="fa fa-superpowers" aria-hidden="true"></i>
 | 
						||
            </li><!--Orange-->
 | 
						||
            <li id="pixiv-bg">
 | 
						||
                <i class="iconfont icon-pixiv"></i>
 | 
						||
            </li><!--Start-->
 | 
						||
            <li id="bing-bg">
 | 
						||
                <i class="iconfont icon-bing"></i>
 | 
						||
            </li><!--Bing-->
 | 
						||
            <li id="dark-bg">
 | 
						||
                <i class="fa fa-moon-o" aria-hidden="true"></i>
 | 
						||
            </li><!--Night-->
 | 
						||
        </ul>
 | 
						||
    </div>
 | 
						||
    <div class="font-family-controls row-container">
 | 
						||
        <button type="button" class="control-btn-serif selected" data-mode="serif" 
 | 
						||
                onclick="mashiro_global.font_control.change_font()">Serif</button>
 | 
						||
        <button type="button" class="control-btn-sans-serif" data-mode="sans-serif" 
 | 
						||
                onclick="mashiro_global.font_control.change_font()">Sans Serif</button>
 | 
						||
    </div>
 | 
						||
</div>
 | 
						||
<canvas id="night-mode-cover"></canvas>
 | 
						||
<?php if (akina_option('playlist_id', '')): ?>
 | 
						||
<div id="aplayer-float" style="z-index: 100;"
 | 
						||
	class="aplayer"
 | 
						||
    data-id="<?php echo akina_option('playlist_id', ''); ?>"
 | 
						||
    data-server="netease"
 | 
						||
    data-type="playlist"
 | 
						||
    data-fixed="true"
 | 
						||
    data-theme="orange">
 | 
						||
</div>
 | 
						||
<style>.skin-menu{left:auto;right:10px;}.changeSkin-gear{left:auto;right:5px;}</style>
 | 
						||
<script>
 | 
						||
    function secondToDate(second) {
 | 
						||
        if (!second) {
 | 
						||
            return 0;
 | 
						||
        }
 | 
						||
        var time = new Array(0, 0, 0, 0, 0);
 | 
						||
        if (second >= 365 * 24 * 3600) {
 | 
						||
            time[0] = parseInt(second / (365 * 24 * 3600));
 | 
						||
            second %= 365 * 24 * 3600;
 | 
						||
        }
 | 
						||
        if (second >= 24 * 3600) {
 | 
						||
            time[1] = parseInt(second / (24 * 3600));
 | 
						||
            second %= 24 * 3600;
 | 
						||
        }
 | 
						||
        if (second >= 3600) {
 | 
						||
            time[2] = parseInt(second / 3600);
 | 
						||
            second %= 3600;
 | 
						||
        }
 | 
						||
        if (second >= 60) {
 | 
						||
            time[3] = parseInt(second / 60);
 | 
						||
            second %= 60;
 | 
						||
        }
 | 
						||
        if (second > 0) {
 | 
						||
            time[4] = second;
 | 
						||
        }
 | 
						||
        return time;
 | 
						||
    }
 | 
						||
</script>
 | 
						||
<script type="text/javascript" language="javascript">
 | 
						||
    function setTime() {
 | 
						||
        // 博客创建时间秒数,时间格式中,月比较特殊,是从0开始的,所以想要显示5月,得写4才行,如下
 | 
						||
        var create_time = Math.round(new Date(Date.UTC(2018, 6, 03, 14, 30, 0))
 | 
						||
                .getTime() / 1000);
 | 
						||
        // 当前时间秒数,增加时区的差异
 | 
						||
        var timestamp = Math.round((new Date().getTime() + 8 * 60 * 60 * 1000) / 1000);
 | 
						||
        currentTime = secondToDate((timestamp - create_time));
 | 
						||
        currentTimeHtml = currentTime[0] + '年' + currentTime[1] + '天'
 | 
						||
                + currentTime[2] + '时' + currentTime[3] + '分' + currentTime[4]
 | 
						||
                + '秒';
 | 
						||
        document.getElementById("htmer_time").innerHTML = currentTimeHtml;
 | 
						||
    }
 | 
						||
    setInterval(setTime, 1000);
 | 
						||
</script>
 | 
						||
<?php endif; ?>
 | 
						||
</body>
 | 
						||
</html>
 |