K273 Puock主题 | 开源多风格自适应
最近更新 2022年10月16日
资源编号 58661

K273 Puock主题 | 开源多风格自适应

2022-10-16 综合/模板 0 45,768
郑重承诺丨源码搜网提供安全交易、信息保真!
增值服务:
¥ 10源码币

终身VIP免费升级终身VIP

开通VIP尊享优惠特权
立即下载 升级会员
详情介绍

Puock主题是憧憬点滴回忆开发的一款免费开源主题。主题大气精巧,笔者亲测好用,遂推荐给大家。

一、主题介绍

演示站点:https://licoy.cn/

主要功用

K273 Puock主题 | 开源多风格自适应

21个主要功用

K273 Puock主题 | 开源多风格自适应

小工具与模板

简明的设置界面

 

底部两栏设置方法

缺陷:兼容性有待进步,有部分WordPI K Hress插件的功用无法运用,比如:Wechat Social登录弹窗无法Z W a x _显示,pure-hn X O 6 z Fighlight代码高亮插件、Hermit X音乐插件、Smartideo视频插件B ] R *、Clipboard文字仿制插件无法运用。假如你依靠的插件比较少,且有耐性找到冲突插件的代替方案,这款主题仍是十分适宜的。真的勇士永远不怕折腾
(因为笔者的插件实在是多,这个主题我用了八天就溜了y ! J 3 H 5 – o v

二、主题优化

1、增加悬浮按钮

 

右下按钮

1.1 主代码

<div id=\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"share\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\">		
	<a class=\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"fgzh\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\" onclick=\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"showgzh()\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\" title=\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"大众号\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"></a>	
	<?php if((!is_home()) && (!is_user_logged_in())) { ?>
		<img id=\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"qr_img\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\" src=\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"https://www.jishusongshu.com/images/qr_img.png\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\" style=\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"display:block\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\">
		<?php }else{ ?>
		<img id=\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"qr_img\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\" src=\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"https://www.jishusongshu.com/images/qr_img.png\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\" >	
	<?php } ?>
	<a href=\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"https://jq.qq.com/?_wv=1027&k=5KYuhQa\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\" target=\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"_blank\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\" class=\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"tencent\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\" title=\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"加QQ群\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"></a>
	<a class=\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"mnpg\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\" onclick=\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"showpg()\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\" title=\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"小程序\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"></a>	
	<img id=\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"pg_img\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\" src=\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"https://www.jishusongshu.com/images/pg_img.png\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\" >
</div>

1.2 JS代f – ?

<script type=\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"text/javascript\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\">
function showpg(){ 
  if(document.getElementById(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"pg_img\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\").style.display==\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"block\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"){ 
    document.getElementById(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"pg_img\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\").style.display=\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"none\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"; 
  }
  else{
    document.getElementById(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"pg_img\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\").style.display=\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"block\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"; 
  } 
  if(document.getElementById(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"qr_img\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\").style.display==\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"block\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"){ 
    document.getElementById(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"qr_img\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\").style.display=\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"none\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"; 
  }
}
function showgzh(){ 
  if(document.getElementById(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"qr_img\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\").style.display==\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"block\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"){ 
    document.getElementById(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"qr_img\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\").style.display=\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"none\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"; 
  }
  else{
    document.getElementById(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"qr_img\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\").style.display=\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"block\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"; 
  } 
  if(document.getElementById(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"pg_img\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\").style.display==\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"block\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"){ 
    document.getElementById(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"pg_img\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\").style.display=\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"none\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"; 
  }
}
</script>

1.3 CSS款式

#return-top-bottom{bottom:160px}
#share{position:fixed;bottom:50px;right:12px;width:30px;zoom:1;z-index:99;}
#share a{background-image:url(https://www.jishusongshu.com/images/share-bar.png);background-repeat:no-repeat;display:block;width:32px;height:32px;overflow:hidden;text-indent:-999px;-webkit-transition: all 0.2s ease-in-out;-moz-transition: all 0.2s ease-in-out;-o-transition: all 0.2s ease-in-out;-ms-transition: all 0.2s ease-in-out;transition: all 0.2s ease-in-out;}
#share .mnpg{background-position:0 0;position:absolute;bottom:0px;border-radius:3px;cursor: pointer;box-shadow: 0 0 2px 0 rgba(0, 0, 0, .12), 0 2px 2px 0 rgba(0, 0, 0, .24);}
#share a.mnpg:hover{background-position:-32px 0px;border-radius:3px;}
#share .tencent{background-position:0px -32px;position:absolute;bottom:74px;border-radius:3px;cursor: pointer;box-shadow: 0 0 2px 0 rgba(0, 0, 0, .12), 0 2px 2px 0 rgba(0, 0, 0, .24);}
#share a.tencent:hover{background-position:-32px -32px;}
#share .fgzh{background-position:0px -64px;position:absolute;bottom:37px;border-radius:3px;cursor: pointer;box-shadow: 0 0 2px 0 rgba(0, 0, 0, .12), 0 2px 2px 0 rgba(0, 0, 0, .24);}
#share a.fgzh:hover{background-position:-32px -64px;}  
#qr_img{position:absolute;bottom:50px;left:-183px;display:none;max-width: 300px;z-index:9999}
#pg_img{position:absolute;bottom:18px;left:-183px;display:none;max-width: 300px;z-index:9997}  

2、修正底部信息

首页展现友情链接,其他页面展现信息

 

2.1 修正页脚

修正footer.php的部分代码

<?php if((is_home())&&(!wp_is_mobile())) { ?>
            <div class=\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"col-md-6\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\">
                <div><span class=\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"t-md pb-2 d-inline-block border-bottom border-primary\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"><i class=\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"czs-link-l\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"></i> <?php _e(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'友情链接\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\', PUOCK) ?></span></div>
                <div class=\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"more-link mt20 t-md\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\">
                    <?php
                    $link_cid = pk_get_option(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'index_link_id\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\',\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\');
                    if(!empty($link_cid)){
                        preg_match_all(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'/<a .*?>.*?<\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\/a>/\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\', wp_list_bookmarks(array(
                            \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'category\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'=>$link_cid,
                            \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'category_before\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'=>\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\',
                            \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'title_li\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'=>\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\',
                            \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'show_images\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'=>0,
                            \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'echo\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'=>0                            
                        )), $links);
                        foreach ($links[0] as $link){
                            echo $link;
                        }
                    }
                    $link_page_id = pk_get_option(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'link_page\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\',\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\');
                    if(!empty($link_page_id)){
                        echo \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'<a target=\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"_blank\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\" href=\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'.get_page_link($link_page_id).\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\">\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'.__(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'更多链接\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\', PUOCK).\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'</a>\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\';
                    }
                    ?>                    
                </div>
            </div> 
            <?php }else{ ?>
            <div class=\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"col-md-6\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\">
                <div><span class=\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"t-md pb-2 d-inline-block border-bottom border-primary\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"><i class=\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"czs-link-l\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"></i> <?php _e(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'重视咱们\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\', PUOCK) ?></span></div>
                <div class=\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"more-link mt20 t-md\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\">                    
                    <div class=\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"footer-col footer-col-sns\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\">
                    <div class=\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"footer-sns\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\">     
                        <a href=\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"https://github.com/songshuxiao\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\" target=\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"_blank\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\" rel=\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"nofollow\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\">
                            <i class=\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"fa fa-github\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"></i>
                        </a>              
                        <a href=\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"https://jq.qq.com/?_wv=1027&k=5KYuhQa\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\" target=\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"_blank\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\" rel=\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"nofollow\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\">
                            <i class=\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"fa fa-qq\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"></i>
                        </a>
                        <a class=\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"sns-wx\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\" href=\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"javascript:;\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\">
                            <i class=\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"fa fa-wechat\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"></i>
                            <span style=\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"background-image:url(https://www.jishusongshu.com/img/jsssgzh.jpg);\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"></span>
                        </a>
                        <a href=\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"https://weibo.com/yangchunniaoyu\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\" target=\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"_blank\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\" rel=\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"nofollow\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\">
                        <i class=\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"fa fa-weibo\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"></i>
                        </a>
                        <a href=\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"https://mail.qq.com/cgi-bin/qm_share?t=qm_mailme&email=jishusongshu@qq.com\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\" target=\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"_blank\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\" rel=\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"nofollow\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\">
                            <i class=\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"fa fa-envelope\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"></i>
                        </a>
                    </div>
                    </div>
                </div>
            </div> 
<?php } ?>

注意假如你想展现的友链图片显示,请把\\\\\\\\\\\\\\\\\\\\\\\\R [ %\\\\\\\'show_images\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'=>0,删去

2.2 增加款式

.footer-sns .fa {
	display:inline-block;
	position:relative;
	width:40px;
	height:40px;
	font-size:20px;
	line-height:40px;
	border-radius:50%;
	text-align:center;
	background:rgba(255,255,255,.1);
	color:hsl(0deg 0% 100%);
	z-index:0;
}
.sns-wx {
	position:relative;
	overflow:hidden;
}
.sns-wx span,.sns-wx:hover span {
	-webkit-transition:all .2s ease-out .1s;
	-o-transition:all .2s ease-out .1s;
	transition:all .2s ease-out .1s;
}
.sns-wx span {
	position:absolute;
	z-index:1;
	top:-170px;
	left:0;
	margin-left:-57px;
	width:150px;
	height:150px;
	background-color:#fff;
	background-size:95% auto;
	background-position:50%;
	background-repeat:no-repeat;
	-webkit-box-shadow:0 0 5px 1px rgba(0,0,0,.3);
	box-shadow:0 0 5px 1px rgba(0,0,0,.3);
	opacity:0;
	filter:alpha(opacify=0);
}
.sns-wx span:after {
	position:absolute;
	bottom:-16px;
	left:50%;
	width:0;
	height:0;
	margin-left:-8px;
	line-height:0;
	border:8px solid transparent;
	border-top-color:#fff;
	content:\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\";
}
.sns-wx:hover {
	overflow:visible;
}
.sns-wx:hover span {
	top:-165px;
	opacity:1;
	filter:alpha(opacify=100);
}
.footer-col {
	display:inline-block;
	font-size:0;
	vertical-align:middle;
	color:#ffffff;
}
.footer-col hover {
	color:#6199F9;
}
.footer-sns {
	display:inline-block;
	margin-top:-10px;
	font-size:0;
}
.footer-sns a,.sec-panel-head small {
	display:inline-block;
	vertical-align:top;
}
.footer-sns a {
	margin:7px 0 7px 10px;
}
.footer-sns .fa {
	display:inline-block;
	position:relative;
	width:40px;
	height:40px;
	font-size:20px;
	line-height:40px;
	border-radius:50%;
	text-align:center;
	background:rgba(255,255,255,.1);
	color:hsl(0deg 0% 100%);
	z-index:0;
}
.footer-sns .fa svg,.footer-sns .fa:before {
	position:relative;
	z-index:1;
}
.footer-sns .fa:after {
	position:absolute;
	left:0;
	top:0;
	width:100%;
	height:100%;
	background:#3380ff;
	border-radius:50%;
	content:\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\";
	opacity:0;
	filter:alpha(opacify=0);
	-webkit-transform:scale(0);
	-ms-transform:scale(0);
	transform:scale(0);
}
.footer-sns .fa.material-icons:after {
	z-index:-1;
}
.footer-sns .fa:hover {
	color:#fff;
}
.footer-sns .fa:hover:after {
	-webkit-transform:scale(1);
	-ms-transform:scale(1);
	transform:scale(1);
	opacity:1;
	filter:alpha(opacify=100);
	-webkit-transition:all .5s cubic-bezier(.3,0,0,1.3) 0s;
	-o-transition:all .5s cubic-bezier(.3,0,0,1.3) 0s;
	transition:all .5s cubic-bezier(.3,0,0,1.3) 0s;
}

3、k } 7 Y L e修正名片款式

 

底部三栏

3.1 修正侧栏文件

wp-content/theme5 J [ [ 9 Ks/Puock/inc/fun/widget.php第599行开端修正B X 0 & 5 t N o Lrow mt10块

<div class=\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"mt10 author_count\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"> 
     <ul>                   
         <li><span>文章数</span><strong><?php the_author_posts(); ?></strong></li>
         <li><span>浏览量</span><strong><?php echo get_total_views() ?></strong></li>                    
         <li><span>评论数</span><strong><?php echo $comment_num ?></strong></li>
     </ul>
</div>

3.2 增加款式

.author_count ul {display:-moz-flex;display:-ms-flex;display:-o-flex;display:flex;text-align:center;margin-left:0;}
.author_count ul li {float:left;list-style:none;width:33.333%;border-right:1px #efefef solid;padding:8px 0;font-weight:300;}
.author_count ul li:last-child {border-right:1px solid transparent;}
.author_count ul li span {display:block;font-size:14px;color:#999;}
.author_count ul li strong {font-weight:bold;}

4、顶栏登录选项

未登录则顶栏显示登录选项

在wp-content/themesC l W O )/Puock/inc/fun/core.php第589行增3 ^ d ; b ^ F加代码

else {
        $out .= \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'<li><a data-no-instant class=\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"p-2\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\" data-toggle=\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"tooltip\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\" title=\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"用户登录\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\" href=\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"/wp-login.php\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\">登录</a></li>\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\';
    }


源代码是什么?
在计算机中运行的一切都是编程的,而编程需要使用计算机语言,直接用计算机语言编译的程序叫做源代码。比如用VisualBasic写的源代码文件一般都是。bas文件,而用C++写的一般都是。cpp文件。源代码不能直接运行,必须编译后才能运行。源代码编译后,可以直接在操作系统下运行。
从字面上来说,源文件指的是文件,文件指的是源代码的集合。源代码是能够实现特定功能的具有特定含义的一组字符(程序开发代码)。“源代码”大部分时候等于“源代码”。
源代码的主要功能
1.生成目标代码,即计算机能识别的代码。
2.讲解软件,也就是讲解软件的编写。很多初学者,甚至少数有经验的程序员,都忽略了软件指令的编译,因为这部分不会直接显示在生成的程序中,也不会参与编译。
但对软件的学习、共享、维护和重用大有裨益。因此,写软件描述在业内被认为是创造优秀程序的好习惯,有些公司还强制要求必须写。

资源下载此资源下载价格为10源码币立即购买,终身VIP免费
源码产品具有可复制性,出售以后不支持任何理由退换货!
收藏 (0) 打赏

感谢您的支持,我会继续努力的!

打开微信/支付宝扫一扫,即可进行扫码打赏哦,分享从这里开始,精彩与您同在
点赞 (0)

源码搜 综合/模板 K273 Puock主题 | 开源多风格自适应 https://ymsou.com/58661.html

常见问题

相关文章

发表评论
暂无评论
官方客服团队

为您解决烦忧 - 24小时在线 专业服务