itemFeaturedNotice - Index.php - K2 - V2.2


/ Published in: PHP
Save to your folder(s)

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.


Copy this code and paste it in your HTML
  1. <?php if($this->item->params->get('itemFeaturedNotice') && $this->item->featured): ?>
  2. <!-- Featured flag -->
  3. <span>
  4. <sup>
  5. <?php echo JText::_('Featured'); ?>
  6. </sup>
  7. </span>
  8. <?php endif; ?>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.