温馨提示: 推荐安装《大白·插件中心》,免除手动下载ftp上传,可在站点后台直接在线安装/升级。

教程

板块信息代码

2020年03月26日 大白 阅读 10006 评论 0

<!-- 板块信息 -->
<div class="card card-foruminfo">
	<div class="card-body">
		<div class="media">
			<div class="mr-3">
				<img src="<?php echo $forum['icon_url'];?>" width="60" height="60"> 
			</div>
			<div class="media-body">
				<div class="online in">
					<span class="text-bold dt"><?php echo $forum['name'];?></span> 
					<span><span class="text-grey">版块主题:</span><b><?php echo $forum['threads'];?></b></span> 
					<span><span class="text-grey">今日主题:</span><b><?php echo $forum['todayposts'];?></b></span> 
					<span><span class="text-grey">今日回帖:</span><b><?php echo $forum['todaythreads'];?></b></span>
				</div>
				<div class="online text-muted" ><?php if($forum['brief']) { ?>  <?php echo $forum['brief'];?><?php  } ?> </div>
				<div class="online text-muted" ><span class="icon-volume-up"></span><?php if($forum['announcement']) { ?>  <?php echo $forum['announcement'];?><?php  } ?></div> 
			<?php if($forum['modlist']) { ?>
				<div class="online">
						<span class="text-grey"><?php echo lang('forum_moderator');?>:</span>
						<?php foreach ($forum['modlist'] as $mod) { ?>
						<a href="<?php echo url("user-$mod[uid]");?>" class="text-muted text-nowrap m-r-xs"><img src="<?php echo $mod['avatar_url'];?>" class="avatar-1 mr-1"><?php echo $mod['username'];?></a>
						<?php } ?>
				</div>
				<?php }?>
			</div>
		</div>
	</div>
</div>
最新回复 (0)
返回