亮晶网络

亮晶网络

网页自定义列表调用说明
2024-12-11

自定义标签列表,跟列表页或详情页的自定义标签不一样,此列表会列出该自定义标签下的全部主题,并进行分页展示。


对应的文件为 view/htm/flag.htm

<div class="row">
   <div class="col-lg-9 mx-auto main">
      <div class="d-flex justify-content-between">
         <!-- 当前所在位置 -->
         <ol class="breadcrumb col">
            <li class="breadcrumb-item">
               <!-- 返回主页链接 -->
               <a href="<?php echo $conf['path'];?>">
                  <i class="icon-home" aria-hidden="true"></i>
               </a>
            </li>
            <!-- 当前自定义标签名 -->
            <li class="breadcrumb-item">
               <a href="<?php echo $header['mobile_link'];?>">
                  <?php echo $read['name'];?>
               </a>
            </li>
            <li class="breadcrumb-item">
               <?php echo lang('list');?>
            </li>
         </ol>
      </div>
      <div class="row">
         <div class="col-md-12">
            <div class="card card-threadlist">
               <div class="card-body">
                  <!--
                  此处为 加载了公用列表文件
                  注意 ul 中class="threadlist" 管理时使用,前台不需要管理可删除
                  -->
                  <ul class="list-unstyled threadlist mb-0">
                  <?php include _include(APP_PATH . 'view/htm/thread_list.inc.htm');?>
                  </ul>
               </div>
            </div>
            <!-- 加载管理模块,不需要前台管理可删除 -->
            <?php include _include(APP_PATH.'view/htm/thread_list_mod.inc.htm');?
            <!-- 分页 / start -->
            <?php if ($pagination) { ?>
            <nav class="my-3">
               <ul class="pagination justify-content-center flex-wrap">
                  <?php echo $pagination; ?>
               </ul>
            </nav>
            <?php } ?>
            <!-- 分页 / end -->
         </div>
      </div>
   </div
   <!-- 右侧代码,暂无用处可删除
   <div class="col-lg-3 d-none d-lg-block aside"></div>
   -->
</div>


加载公用页头和页脚,此页完毕。