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. // Create a shortcut for params.
  13. $params = &$this->item->params;
  14. $images = json_decode($this->item->images);
  15. $canEdit    = $this->item->params->get('access-edit');
  16. JHtml::addIncludePath(JPATH_COMPONENT.'/helpers/html');
  17. JHtml::_('behavior.tooltip');
  18. JHtml::_('behavior.framework');
  19.  
  20. $app            = JFactory::getApplication();
  21. $templateparams = $app->getTemplate(true)->params;
  22. if( $templateparams->get ('blog_style') == 'avatar' ){
  23.     include('blog_item_avatar.php');
  24.     return;
  25. }
  26.  
  27. if( $templateparams->get ('blog_style') == 'datetime' ){
  28.     include('blog_item_datetime.php');
  29.     return;
  30. }
  31.  
  32. ?>