极(子)主题活跃用户模块代码下载
734°
  • 发布时间
  • 大小
    3kb
  • 格式
    rar
当前位置:首页原创文章极(子)主题活跃用户模块代码下载

极(子)主题活跃用户模块代码下载

第一步:直接复制Onecad_hotUser.php代码到子主题根目录Pages文件夹下方

如果没有子主题请到7B2官网下载空白子主题程序
注:本功能采用为ONECAD子主题框架,截图地址可能不一样,不过不影响安装。

注意:推荐使用HPH7.4版本以下,8.0兼容,安装之前请备份主题内容及数据库,出现问题我概不负责哈!


然后可在Onecad_hotUser.php这个文件里面填写要调用的用户ID即可。

第二步:然后把CSS复制到子主题的style.css后面。

CSS文件在附件下载里面,可以不用复制下方代码!
注:自适应手机端代码自己写哈!

/*首页设计师列表01*/
.demo {
    margin: 0px;
}
 
.our-team {
	padding: 20px 0 0px;
	background: #ffffff;
	text-align: center;
	overflow: hidden;
	position: relative;
	width: 100%;
}
.demo .user-s-info-name {
    margin-top: 0px;
    display: flex;
    flex-flow: column;
    margin-left: 0px;
}
.demo .user-s-info-desc {
    font-size: 13px;
    margin-top: 10px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    width: 100%;
    background: #ffffff;
    padding: 10px;
    color: #bcbcbc;
    height: 62px;
    line-height: 35px;
    text-align: center;
    box-sizing: border-box;
    border-top: 1px solid #f3f3f3;
    border-bottom: 1px solid #f3f3f3;
}
.our-team .pic {
	display: inline-block;
	width: 130px;
	height: 130px;
	margin-bottom: 10px;
	z-index: 1;
	position: relative;
}
 
.our-team .pic:before {
	content: "";
	width: 100%;
	height: 0;
	border-radius: 50%;
	position: absolute;
	bottom: 135%;
	right: 0;
	left: 0;
	opacity: 1;
	background-image: linear-gradient(90deg,#116dff,#004eff);
	transform: scale(3);
	transition: all 0.3s linear 0s;
}
 
.our-team:hover .pic:before {
	height: 100%;
}
 
.our-team .pic:after {
	content: "";
	width: 100%;
	height: 100%;
	border-radius: 50%;
	position: absolute;
	top: 0;
	left: 0;
	z-index: -1;
	background-image: linear-gradient(90deg,#116dff,#004eff);
}
.row {
 
}
.col-sm-6 {
	cursor: pointer;
	margin-right: 16px;
	float: left;
	border-radius: 4px;
	background-size: 100% 100%;
	display: -webkit-box;
	display: -moz-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-orient: vertical;
	-webkit-box-direction: normal;
	-moz-box-orient: vertical;
	-moz-box-direction: normal;
	-ms-flex-direction: column;
	flex-direction: column;
	-webkit-box-align: center;
	-moz-box-align: center;
	-ms-flex-align: center;
	align-items: center;
	position: relative;
}
.our-team .pic img {
	width: 100%;
	height: auto;
	border-radius: 50%;
	transform: scale(1);
	transition: all 0.9s ease 0s;
}
 
.our-team:hover .pic img {
    box-shadow: 0 0 0 8px #f7f5ec;
    transform: scale(0.8);
}
 
.our-team .team-content {
	margin-bottom: 30px;
}
 
.our-team .title {
	font-size: 22px;
	font-weight: 700;
	color: #4e5052;
	letter-spacing: 1px;
	text-transform: capitalize;
	margin-bottom: 5px;
}
 
.our-team .post {
	display: block;
	font-size: 15px;
	color: #4e5052;
	text-transform: capitalize;
}
 
.our-team .social {
	width: 100%;
	padding: 0;
	margin: 0;
	position: absolute;
	bottom: -100px;
	left: 0;
	transition: all 0.5s ease 0s;
    background-image: linear-gradient(90deg,#116dff,#004eff);
}
.one-cad-module-title{
        font-size: 22px;
    text-align: left;
    margin-right: 10px;
    font-weight: 600;
}
.our-team:hover .social {
	bottom: 0;
}
 
.our-team .social li {
	display: inline-block;
}
 
.our-team .social li a {
	display: block;
	padding: 10px;
	font-size: 17px;
	color: #fff;
	transition: all 0.3s ease 0s;
}
 
.our-team .social li a:hover {
	color: #eb1768;
	background: #f7f5ec;
}
.user-s-follow a{
    border-radius: 4px;
    color: #fff;
    padding: 5px 10px;
    transition: opacity .2s;
    position: relative;
    cursor: pointer;
    font-size: 12px;
    margin: 0;
    white-space: nowrap;
    border-radius: 5px;
}
@media screen and (min-width: 1441px){
.col-sm-6 {
		width: calc(25% - 16px);
		margin-bottom: 10px;
}
}
@media screen and (min-width: 1250px) and (max-width:1440px){
.col-sm-6 {
	width:calc(50% - 16px);
	margin-bottom: 10px;
}

}
@media screen and (min-width: 500px) and (max-width:1250px){
.col-sm-6 {
    width:calc(50% - 16px);
    margin-bottom: 10px;
}
}
 @media screen and (max-width: 500px){
.col-sm-6 {
    width:100%;
    margin-bottom: 10px;
    
}
}

第三步就是调用问题:在下载的文件中把index.php放在子主题的根目录即可,然后调用的时候再首页最后段就会出现这个会员页面模块

最终效果(清除缓存,强制刷新):

下载权限
查看
  • 免费下载
    评论并刷新后下载
    登录后下载
  • {{attr.name}}:
您当前的等级为
登录后免费下载登录 小黑屋反思中,不准下载! 评论后刷新页面下载评论 支付以后下载 请先登录 您今天的下载次数(次)用完了,请明天再来 支付积分以后下载立即支付 支付以后下载立即支付 您当前的用户组不允许下载升级会员
您已获得下载权限 您可以每天下载资源次,今日剩余

给TA打赏
共{{data.count}}人
人已打赏
WP教程

解决WordPress报错”Warning:Illegal string offset”方案

2023-3-8 21:49:42

原创文章

极(子)主题框架共享版-重新整理上传

2022-6-30 22:32:08

4 条回复 A文章作者 M管理员
  1. user43_840

    加油老哥?

  2. ONECAD
    ONE·CAD图库给您打赏了¥2
  3. 图酷?给您打赏了¥5
  4. 剑去了无痕
    剑去了无痕给您打赏了¥10
购物车
优惠劵
有新私信 私信列表
搜索