Posted By

K2Joom on 04/09/10


Tagged

date index item k2 V22


Versions (?)

itemDateCreated - Index.php - K2 - V2.2


 / Published in: PHP
 

This is used to display the date the item was created, within the item page. DATEFORMATLC2 can be changed to suit allowable Joomla variants.

  1. <?php if($this->item->params->get('itemDateCreated')): ?>
  2. <!-- Date created -->
  3. <span class="itemDateCreated">
  4. <?php echo JHTML::_('date', $this->item->created , JText::_('DATE_FORMAT_LC2')); ?>
  5. </span>
  6. <?php endif; ?>

Report this snippet  

You need to login to post a comment.