/ Published in: PHP
This snippet displays the Featured text along side the itemTitle of an item.
You can change the "Featured" to something different, like "Hot New Item" etc.
If you find that this does not change on your site, then please check the K2 language file.
You can change the "Featured" to something different, like "Hot New Item" etc.
If you find that this does not change on your site, then please check the K2 language file.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<?php if($this->item->params->get('itemFeaturedNotice') && $this->item->featured): ?> <!-- Featured flag --> <span> <sup> <?php echo JText::_('Featured'); ?> </sup> </span> <?php endif; ?>