Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * @package Joomla.Site
- * @subpackage com_content
- * @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
- * @license GNU General Public License version 2 or later; see LICENSE.txt
- */
- // no direct access
- defined('_JEXEC') or die;
- JHtml::addIncludePath(JPATH_COMPONENT . '/helpers');
- // Create shortcuts to some parameters.
- $params = $this->item->params;
- $images = json_decode($this->item->images);
- $urls = json_decode($this->item->urls);
- $canEdit = $this->item->params->get('access-edit');
- $user = JFactory::getUser();
- $app = JFactory::getApplication();
- $templateparams = $app->getTemplate(true)->params;
- if( $templateparams->get ('blog_style') == 'avatar' ){
- include('default_avatar.php');
- return;
- }
- if( $templateparams->get ('blog_style') == 'datetime' ){
- include('default_datetime.php');
- return;
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement