Jump to content

Need help with echo for mosets tree


Patrick Ryall

Recommended Posts

Hi, I am running slightly modified templates for Mtree I have managed to get the everywhere plugin all working I am just not sue about echoing the Jreview stars to replace the default output please see the below code I think I know but would like some clarification please.

 

<div class="listing-field">
        <div class="caption">Rating</div>
        <div class="data">
          <?php
          echo '<div class="rating">';
          $this->plugin( 'ratableRating', $this->link, $this->link->link_rating, $this->link->link_votes);
      		echo '</div>';
      		echo '<div id="total-votes">';
          if( $this->link->link_votes <= 1 ) {
            echo $this->link->link_votes . " " . strtolower(JText::_( 'Vote' ));
          } elseif ($this->link->link_votes > 1 ) {
            echo $this->link->link_votes . " " . strtolower(JText::_( 'Votes' ));
          }
          echo '</div>';
          ?>
        </div>

Link to comment
×
×
  • Create New...