后台设置了推荐位,想实现判断是否设置推荐位 迅睿框架 更新 2020-05-28 20:38:25 啦啦啦 后台设置了推荐位,想实现判断是否设置推荐位,使用不同的样式,推荐位内容随机设置也要随机展示,不是先展示推荐位再展示非推荐位 谢谢
{list action=module module=work} {if \Phpcmf\Service::M()->table_site("work_flag")->where("flag", 1)->where("id", $t.id)->counts()} <li class="box full">{else}<li class="box">{/if} <div class="inner"> <p class="image"> <a target="_blank" href="{$t.url}"><img src="{HOME_THEME_PATH}static/images/blank3.png" data-src="{dr_get_file($t.thumb)}" class="lazy" alt=""></a> </p> <h2 class="title"> <a target="_blank" href="{$t.url}"> <span>{$t.title}</span> <br> <span>{$t.ywmc}</span> </a> </h2> </div> </li> {/list}