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. $app            = JFactory::getApplication();
  22. $templateparams = $app->getTemplate(true)->params;
  23. if( $templateparams->get ('blog_style') == 'avatar' ){
  24.     include('default_avatar.php');
  25.     return;
  26. }
  27.  
  28. if( $templateparams->get ('blog_style') == 'datetime' ){
  29.     include('default_datetime.php');
  30.     return;
  31. }
  32.  
  33. ?>