b0y-101 Mini Shell


Current Path : E:/www/pl/templates/shaper_helix3/html/layouts/joomla/content/comments/
File Upload :
Current File : E:/www/pl/templates/shaper_helix3/html/layouts/joomla/content/comments/comments_count.php

<?php
/**
* @author    JoomShaper http://www.joomshaper.com
* @copyright Copyright (c) 2010 - 2020 JoomShaper
* @license   http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2
*/

//no direct access
defined('_JEXEC') or die('Restricted Access');

$params 	= JFactory::getApplication()->getTemplate(true)->params;

if( ( $params->get('commenting_engine') != 'disabled' ) && ( $params->get('comments_count') ) ) {
	
	$url        =  JRoute::_(ContentHelperRoute::getArticleRoute($displayData['item']->id . ':' . $displayData['item']->alias, $displayData['item']->catid, $displayData['item']->language));
	$root       = JURI::base();
	$root       = new JURI($root);
	$url        = $root->getScheme() . '://' . $root->getHost() . $url;

	?>
	<dd class="comment">
		<i class="fa fa-comments-o"></i>
		<?php echo JLayoutHelper::render( 'joomla.content.comments.engine.count.' . $params->get('commenting_engine'), array( 'item'=>$displayData, 'params'=>$params, 'url'=>$url ) ); ?>
	</dd>
	<?php

}

Copyright © 2019 by b0y-101