当内容有副标题时,显示副标题,当有没有副标题时,显示标题:
<title><?php echo $navinfor['ftitle']?$navinfor['ftitle']:$navinfor['title'] ?></title>
如果要在内容页正文中做此判断,用灵动标签来实现,代码如下:
<?=$bqr[ftitle]?$bqr[ftitle]:$bqr[title]?>
Just So So ...
当内容有副标题时,显示副标题,当有没有副标题时,显示标题:
<title><?php echo $navinfor['ftitle']?$navinfor['ftitle']:$navinfor['title'] ?></title>
如果要在内容页正文中做此判断,用灵动标签来实现,代码如下:
<?=$bqr[ftitle]?$bqr[ftitle]:$bqr[title]?>