详情页

帝国cms模板页面判断 if eles的调用方法

时间:2023年11月07日

编辑:佚名

<?php if ($navinfor['ftitle']) {?>[!--ftitle--] <?}  else {?><?}?>[!--pagetitle--]
如果副标题有则调用副标题,没有副标题则调用正标题
<?php
if($navinfor['onlinepdf'])
{
?>
 <div class="col-xl-2 col-lg-3 col-md-3 col-6 ">
<div class="p-down">
                  <dl>
                    <dt>    
                <img src="https://static.78moban.com/img/20190429/20190429104209_9m5w.png" alt="">
                  </dt>
                <dd><a href=" [!--onlinepdf--]">资料下载<i class="fa fa-download"></i></a></dd>
                </dl>
              </div>
             </div>
<?
}
else
{
?>
<div class="col-xl-2 col-lg-3 col-md-3 col-6 ">
暂无
</div>
<?
}
?>
相关文章
猜你需要