itemDateCreated - Index.php - K2 - V2.2


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

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


Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.