Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. <?php
  2. /**
  3.  * @package     Joomla.Site
  4.  * @subpackage  com_content
  5.  * @copyright   Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
  6.  * @license     GNU General Public License version 2 or later; see LICENSE.txt
  7.  */
  8.  
  9. // no direct access
  10. defined('_JEXEC') or die;
  11.  
  12. JHtml::addIncludePath(JPATH_COMPONENT . '/helpers');
  13.  
  14. // Create shortcuts to some parameters.
  15. $params     = $this->item->params;
  16. $images = json_decode($this->item->images);
  17. $urls = json_decode($this->item->urls);
  18. $canEdit    = $this->item->params->get('access-edit');
  19. $user       = JFactory::getUser();
  20.  
  21. ?>
  22.  
  23.  
  24. <?php
  25. $author = $this->item->created_by_alias ? $this->item->created_by_alias : $this->item->author;
  26. $user = JFactory::getUser($this->item->created_by);
  27. $blog_datetime = date_create(JText::sprintf(JHtml::_('date', $this->item->publish_up, JText::_('DATE_FORMAT_LC1'))));
  28. $blog_date = date_format($blog_datetime,'d');
  29. $blog_month = date_format($blog_datetime,'M');
  30. $blog_year = date_format($blog_datetime,'Y');
  31. ?>