public function timestamp($config = array()) { $config = new Library\ObjectConfig($config); $config->append(array('parameters' => $this->getObject('application.extensions')->articles->params))->append(array('show_create_date' => $config->parameters->get('show_create_date', false), 'show_modify_date' => $config->parameters->get('show_modify_date', false))); $article = $config->row; $html = array(); if ($config->show_create_date) { $html[] = '<span class="timestamp">'; $html[] = $this->format(array('date' => $article->ordering_date, 'format' => JText::_('DATE_FORMAT_LC5'))); } if ($config->get('show_modify_date') && $config->show_create_date && ($modified_on = $article->modified_on) && intval($modified_on) != 0) { $html[] = JText::sprintf('LAST_UPDATED2', $this->format(array('date' => $article->modified_on, 'format' => JText::_('DATE_FORMAT_LC5')))); } if ($config->show_create_date) { $html[] = '</span>'; } return implode(' ', $html); }