| Server IP : 54.36.91.62 / Your IP : 216.73.217.112 Web Server : Apache System : Linux webm013.cluster127.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64 User : coopiak ( 151928) PHP Version : 8.3.23 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/coopiak/amisdesseniors-fr/montpellier/modules/mod_itemrating/tmpl/ |
Upload File : |
<?php
/**
* @version 2.1.6
* @package com_itemrating
* @copyright Copyright (C) 2014. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
* @author Joomunited <contact@joomunited.com> - www.joomunited.com
*/
// No direct access
defined('_JEXEC') or die;
$document=JFactory::getDocument();
$document->addStyleSheet(JURI::root().'components/com_itemrating/assets/rating.css');
$document->addStyleSheet(JURI::root().'components/com_itemrating/assets/circle.css');
?>
<ul class="itemrating <?php echo htmlspecialchars( $params->get( 'moduleclass_sfx' ) );?> nav menu">
<?php foreach($result as $item) {
$item->categoryview=1;
$item->voteallowed=1;
$item->slug = $item->id . ':' . $item->alias;
if($component=="com_k2")
{
require_once (JPATH_SITE .'/components/com_k2/helpers/route.php');
require_once (JPATH_SITE . '/components/com_k2/helpers/utilities.php');
$link = urldecode(JRoute::_(K2HelperRoute::getItemRoute($item->id . ':' . urlencode($item->alias), $item->catid)));
$data=json_decode($item->plugins);
$item->attribs=json_encode(array("groupdata"=>$data->itemratinggroupdata,'textforscore'=>$data->itemratingtextforscore,'reviewsummary'=>$data->itemratingreviewsummary));
$item->authorName=JFactory::getUser($item->created_by)->name;
}
else
{
if (!version_compare(JVERSION, '4.0', 'ge'))
{
$com_path = JPATH_SITE . '/components/com_content/';
require_once $com_path . 'helpers/route.php';
$link=JRoute::_(ContentHelperRoute::getArticleRoute($item->slug, $item->catid, $item->language));
}
else
{
$link=JRoute::_(Joomla\Component\Content\Site\Helper\RouteHelper::getArticleRoute($item->slug, $item->catid, $item->language));
}
}
?>
<li class="pull-left" style="width:100%;">
<a href="<?php echo $link; ?>">
<?php echo $item->title;?>
</a>
<?php
echo ItemratingHelper::getFinalScoreWidget($score_type,$item->final_rate,$item->final_count);?>
</li>
<?php }?>
</ul>