Joomla-检测文章是否具有特征状态
如果呈现的文章也是特色文章,如何将custom class=“featured”添加到html\com\u content\category\blog\u item.php中 是否有一行代码可以确定文章是否具有特色 谢谢 好的,我知道了 进入html\com\u content\category\blog.php 将这些行粘贴到第79行Joomla-检测文章是否具有特征状态,joomla,Joomla,如果呈现的文章也是特色文章,如何将custom class=“featured”添加到html\com\u content\category\blog\u item.php中 是否有一行代码可以确定文章是否具有特色 谢谢 好的,我知道了 进入html\com\u content\category\blog.php 将这些行粘贴到第79行 <?php $featuredclass = ''; $item = &$item; if ($item->fe
<?php
$featuredclass = '';
$item = &$item;
if ($item->featured == 1) {
$featuredclass = 'featured';
}
?>
加
<?php echo $featuredclass;?>
在线86
<div class="items-row cols-<?php echo (int) $this->columns;?> <?php echo 'row-'.$row ; ?>">
好的,我知道了
进入html\com\u content\category\blog.php
将这些行粘贴到第79行
<?php
$featuredclass = '';
$item = &$item;
if ($item->featured == 1) {
$featuredclass = 'featured';
}
?>
加
<?php echo $featuredclass;?>
在线86
<div class="items-row cols-<?php echo (int) $this->columns;?> <?php echo 'row-'.$row ; ?>">
将答案作为“答案”,然后接受它。我同意,请将你的答案写在本页底部的答案框中(你可能需要等待一段时间才能接受)。将答案作为“答案”,然后接受它。我同意,请将你的答案写在本页底部的答案框中(您可能需要等待一段时间,然后它才会接受)。