00:00/00:00

题是樱花庄的白猫dalao的

项目发布于 GitHub:mashirozx/Sakura,如果下载速度慢可使用国内镜像,Pull Request 和 Issue 请提交到 GitHub。

主题使用说明见:https://2heng.xin/theme-sakura/

以下是我根据个人审美观瞎折腾一下,可能一句就能搞定的而我K了N句....自己太菜了么得办法

外观——Theme Editor——footer.php

大概 61行的位置添加


    <h3 style="text-align: center;margin-top:-10px;color: #ffb4b4;"><?php echo akina_option('site_name', ''); ?></h3>
        <p id="source"  style="text-align: center;color:#333333;font-weight: 200;"><?php echo akina_option('admin_des', 'Hi, Mashiro?'); ?></p>
        <hr style="border-top: 1px dashed #ffb4b4;width: 20px;border-left: none;border-right:none;border-bottom:none;">
                   <p id="petub">
                <?php if (akina_option('github')){ ?>
                <a href="<?php%20echo%20akina_option('github',%20'');%20?>" target="_blank" class="social-github" title="github"><img src="https://cdn.jsdelivr.net/gh/moezx/cdn@3.1.9/img/Sakura/images/sns/github.png"/></a>
                <?php } ?>  
                <?php if (akina_option('sina')){ ?>
                <a href="<?php%20echo%20akina_option('sina',%20'');%20?>" target="_blank" class="social-sina" title="sina"><img src="https://cdn.jsdelivr.net/gh/moezx/cdn@3.1.9/img/Sakura/images/sns/sina.png"/></a>
                <?php } ?>
                <?php if (akina_option('telegram')){ ?>
                <a href="<?php%20echo%20akina_option('telegram',%20'');%20?>" target="_blank" class="social-lofter" title="telegram"><img src="https://cdn.jsdelivr.net/gh/moezx/cdn@3.1.9/img/Sakura/images/sns/telegram.svg"/></a>
                <?php } ?>  
                <?php if (akina_option('qq')){ ?>
                <a href="<?php%20echo%20akina_option('qq',%20'');%20?>" title="Initiate chat ?"><img src="https://cdn.jsdelivr.net/gh/moezx/cdn@3.1.9/img/Sakura/images/sns/qq.png"/></a>
                <?php } ?>  
                <?php if (akina_option('qzone')){ ?>
                <a href="<?php%20echo%20akina_option('qzone',%20'');%20?>" target="_blank" class="social-qzone" title="qzone"><img src="https://cdn.jsdelivr.net/gh/moezx/cdn@3.1.9/img/Sakura/images/sns/qzone.png"/></a>
                <?php } ?>
                <?php if (akina_option('wechat')){ ?>
                <a href="#"><img src="https://cdn.jsdelivr.net/gh/moezx/cdn@3.1.9/img/Sakura/images/sns/wechat.png"/></a>
                    <div class="wechatInner">
                        <img src="<?php%20echo%20akina_option('wechat',%20'');%20?>" alt="WeChat">
                    </div>

                <?php } ?> 
                <?php if (akina_option('lofter')){ ?>
                <a href="<?php%20echo%20akina_option('lofter',%20'');%20?>" target="_blank" class="social-lofter" title="lofter"><img src="https://cdn.jsdelivr.net/gh/moezx/cdn@3.1.9/img/Sakura/images/sns/lofter.png"/></a>
                <?php } ?>  
                    <?php if (akina_option('bili')){ ?>
                    <a href="<?php%20echo%20akina_option('bili',%20'');%20?>" target="_blank" class="social-bili" title="bilibili"><img src="https://cdn.jsdelivr.net/gh/moezx/cdn@3.1.9/img/Sakura/images/sns/bilibili.png"/></a>
                    <?php } ?>
                    <?php if (akina_option('youku')){ ?>
                    <a href="<?php%20echo%20akina_option('youku',%20'');%20?>" target="_blank" class="social-youku" title="youku"><img src="https://cdn.jsdelivr.net/gh/moezx/cdn@3.1.9/img/Sakura/images/sns/youku.png"/></a>
                    <?php } ?>
                    <?php if (akina_option('wangyiyun')){ ?>
                    <a href="<?php%20echo%20akina_option('wangyiyun',%20'');%20?>" target="_blank" class="social-wangyiyun" title="CloudMusic"><img src="https://cdn.jsdelivr.net/gh/moezx/cdn@3.1.9/img/Sakura/images/sns/wangyiyun.png"/></a>
                    <?php } ?>
                    <?php if (akina_option('twitter')){ ?>
                    <a href="<?php%20echo%20akina_option('twitter',%20'');%20?>" 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>
                    <?php } ?>  
                    <?php if (akina_option('facebook')){ ?>
                    <a href="<?php%20echo%20akina_option('facebook',%20'');%20?>" target="_blank" class="social-wangyiyun" title="Facebook"><img src="https://cdn.jsdelivr.net/gh/moezx/cdn@3.1.9/img/Sakura/images/sns/facebook.png"/></a>
                    <?php } ?>  
                    <?php if (akina_option('googleplus')){ ?>
                    <a href="<?php%20echo%20akina_option('googleplus',%20'');%20?>" target="_blank" class="social-wangyiyun" title="Google+"><img src="https://cdn.jsdelivr.net/gh/moezx/cdn@3.1.9/img/Sakura/images/sns/googleplus.png"/></a>
                    <?php } ?>
                    <?php if (akina_option('jianshu')){ ?>
                    <a href="<?php%20echo%20akina_option('jianshu',%20'');%20?>" target="_blank" class="social-wangyiyun" title="Jianshu"><img src="https://cdn.jsdelivr.net/gh/moezx/cdn@3.1.9/img/Sakura/images/sns/jianshu.png"/></a>
                    <?php } ?>
                    <?php if (akina_option('zhihu')){ ?>
                    <a href="<?php%20echo%20akina_option('zhihu',%20'');%20?>" target="_blank" class="social-wangyiyun" title="Zhihu"><img src="https://cdn.jsdelivr.net/gh/moezx/cdn@3.1.9/img/Sakura/images/sns/zhihu.png"/></a>
                    <?php } ?>  
                    <?php if (akina_option('csdn')){ ?>
                    <a href="<?php%20echo%20akina_option('csdn',%20'');%20?>" target="_blank" class="social-wangyiyun" title="CSDN"><img src="https://cdn.jsdelivr.net/gh/moezx/cdn@3.1.9/img/Sakura/images/sns/csdn.png"/></a>
                    <?php } ?>      
                    <?php if (akina_option('email_name') && akina_option('email_domain')){ ?>
                    <a onclick="mail_me()" class="social-wangyiyun" title="E-mail"><img src="https://cdn.jsdelivr.net/gh/moezx/cdn@3.1.9/img/Sakura/images/sns/email.svg"/></a>
                    <?php } ?>  
                   </p>


添加CSS


#petub {
    text-align: center;
    word-spacing: 20px;
    margin: -20px 0px 20px 0px;
}

#petub img {
    background-color: #ffffffa6;
    box-shadow: 1px 1px 10px rgba(0, 0, 0, 0.15);
    padding: 5px;
    border-radius: 15px;
    width: 30px;  //图标大小,建议根据个人喜爱修改
}