帝国CMS内容页Title显示标题还是副标题的简单判断

免费资源网,https://freexyz.cn/

当内容有副标题时,显示副标题,当有没有副标题时,显示标题:

<title><?php echo $navinfor['ftitle']?$navinfor['ftitle']:$navinfor['title'] ?></title>

如果要在内容页正文中做此判断,用灵动标签来实现,代码如下:

<?=$bqr[ftitle]?$bqr[ftitle]:$bqr[title]?>
免费资源网,https://freexyz.cn/