手册里指定版块id调取不能用了吗?

150203330302023-02-27  417

 

 

门户首页,手册里得指定板块id调取怎么不起作用,

icon_text改成icon_fmt也不生效
<?php $_forum = $arrlist['list'][1];?>
<div class="card">
    <div class="card-header">
        <div class="row justify-content-between m-0">
            <div>
                <strong>
                    <a href="<?php echo $_forum['url'];?>" title='<?php echo $_forum['name'];?>'>
                    <?php echo $_forum['name']; ?>
                    </a>
                </strong>
            </div>
            <div>
                <a href="<?php echo $_forum['url'];?>">
                    <i class="icon-angle-double-right"></i>
                </a>
            </div>
        </div>
    </div>
    <div class="row">
        <div class="col-md-4">
            <ul class="row list-unstyled threadlist nowrap pl-2 mb-0">
                <?php if (!empty($_forum['news'])) {$i=0; foreach ($_forum['news'] as $_thread) {if ($_thread['icon_text'] && ++$i <= 2) { ?>
                <li class="col-6 col-md-12 mt-3">
                    <a href="<?php echo $_thread['url'];?>">
                        <img class="d-block w-100" src="<?php echo $_thread['icon_text']; ?>" alt='<?php echo $_thread['subject'];?>'>
                        <div class="ellipsis">
                            <?php echo $_thread['subject'];?>
                        </div>
                    </a>
                </li>
                <?php }}}else{ ?>
                <li class="col-md-12">
                    <img class="main-pic" src="<?php echo view_path();?>img/nopic.png" width="170" height="128">
                    <p class="p-2 m-0">
                        <?php echo lang('none');?>
                    </p>
                </li>
                <?php } ?>
            </ul>
        </div>

        <div class="col-md-8">
            <ul class="list-unstyled threadlist nowrap pt-3">
                <!--最新内容-->
                <?php if (!empty($_forum['news'])) { foreach ($_forum['news'] as $_thread) { ?>
                <li class="col-lg-12 tap ellipsis" data-href="<?php echo $_thread['url'];?>">
                    <a href="<?php echo $_thread['url'];?>" title='<?php echo $_thread['subject'];?>'>
                       <h2 class="ellipsis">
                        <?php echo $_thread['subject'];?>
                       </h2>
                    </a>
                </li>
                <?php }} ?>
            </ul>
        </div>
    </div>
</div>
转载请注明原文地址:https://www.wellcms.net/read-617.html
00
最新回复(1)