0byt3m1n1
Path:
/
home
/
kassiope
/
OLD
/
00-OLD
/
components
/
com_phocagallery
/
views
/
category
/
tmpl
/
[
Home
]
File: default_rating.php
<?php defined('_JEXEC') or die('Restricted access'); // SEF problem $isThereQMR = false; $isThereQMR = preg_match("/\?/i", $this->tmpl['action']); if ($isThereQMR) { $amp = '&'; } else { $amp = '?'; } ?><div id="phocagallery-votes"> <div style="font-size:1px;height:1px;margin:0px;padding:0px;"> </div> <fieldset> <legend><?php echo JText::_('Rate this category'); ?></legend> <?php echo '<p><strong>' . JText::_('Rating'). '</strong>: ' . $this->tmpl['votesaverage'] .' / '.$this->tmpl['votescount'] . ' ' . JText::_($this->tmpl['votestext']). '</p>'; if ($this->tmpl['alreadyrated']) { echo '<ul class="star-rating">' .'<li class="current-rating" style="width:'.$this->tmpl['voteswidth'].'px"></li>' .'<li><span class="star1"></span></li>'; for ($i = 2;$i < 6;$i++) { echo '<li><span class="stars'.$i.'"></span></li>'; } echo '</ul>' .'<p>'.JText::_('You have already rated this category').'</p>'; } else if ($this->tmpl['notregistered']) { echo '<ul class="star-rating">' .'<li class="current-rating" style="width:'.$this->tmpl['voteswidth'].'px"></li>' .'<li><span class="star1"></span></li>'; for ($i = 2;$i < 6;$i++) { echo '<li><span class="stars'.$i.'"></span></li>'; } echo '</ul>' .'<p>'.JText::_('Only registered and logged in user can rate this category').'</p>'; } else { echo '<ul class="star-rating">' .'<li class="current-rating" style="width:'.$this->tmpl['voteswidth'].'px"></li>' .'<li><a href="'.$this->tmpl['action'].$amp.'controller=category&task=rate&rating=1&tab='.$this->tmpl['currenttab']['rating'].$this->tmpl['limitstarturl'].'" title="1 '. JText::_('star out of').' 5" class="star1">1</a></li>'; for ($i = 2;$i < 6;$i++) { echo '<li><a href="'.$this->tmpl['action'].$amp.'controller=category&task=rate&rating='.$i.'&tab='.$this->tmpl['currenttab']['rating'].$this->tmpl['limitstarturl'].'" title="'.$i.' '. JText::_('star out of').' 5" class="stars'.$i.'">'.$i.'</a></li>'; } echo '</ul>'; } ?> </fieldset> </div>