<?php defined('_JEXEC') or die('Restricted access'); $app = JFactory::getApplication(); $amp = PhocaGalleryUtils::setQuestionmarkOrAmp($this->tmpl['action']); if ((int) $this->tmpl['display_rating_img'] == 1 || $this->tmpl['mb_rating']) { // Leave message for already voted images $vote = $app->input->get('vote', 0, 'int'); if ($vote == 1) { $voteMsg = JText::_('COM_PHOCAGALLERY_ALREADY_RATED_IMG_THANKS'); } else { $voteMsg = JText::_('COM_PHOCAGALLERY_ALREADY_RATE_IMG'); } echo '<table style="text-align:left" border="0">' . '<tr>' . '<td><strong>' . JText::_('COM_PHOCAGALLERY_RATING') . '</strong>: ' . $this->tmpl['votesaverageimg'] . ' / ' . $this->tmpl['votescountimg'] . ' ' . JText::_($this->tmpl['votestextimg']) . ' </td>'; if ($this->tmpl['alreay_ratedimg']) { echo '<td style="text-align:left"><ul class="star-rating">' . '<li class="current-rating" style="width:' . $this->tmpl['voteswidthimg'] . 'px"></li>' . '<li><span class="star1"></span></li>'; for ($i = 2; $i < 6; $i++) { echo '<li><span class="stars' . $i . '"></span></li>'; } echo '</ul></td>'; if ($this->tmpl['enable_multibox'] == 1) { echo '<td></td></tr>'; echo '<tr><td style="text-align:left" colspan="4" class="pg-rating-msg">' . $voteMsg . '</td></tr>'; } else { echo '<td style="text-align:left" colspan="4" class="pg-rating-msg"> ' . $voteMsg . '</td></tr>'; } } else { if ($this->tmpl['not_registered_img']) { echo '<td style="text-align:left"><ul class="star-rating">' . '<li class="current-rating" style="width:' . $this->tmpl['voteswidthimg'] . 'px"></li>' . '<li><span class="star1"></span></li>'; for ($i = 2; $i < 6; $i++) { echo '<li><span class="stars' . $i . '"></span></li>';