Beispiel #1
0
            ?>
 </a>
				</h3>
				<?php 
            if ($this->params->get('allow_voting') || $this->params->get('allow_comment')) {
                ?>
				<div class="btp-item-voting">
					<?php 
                if ($this->params->get('allow_voting')) {
                    ?>
					<span style="float: left; margin-right: 10px;"><?php 
                    echo JText::_('COM_BT_PORTFOLIO_VOTE_IT');
                    ?>
</span>
					<?php 
                    echo Bt_portfolioHelper::getRatingPanel($item->id, $item->vote_sum, $item->vote_count);
                    ?>
					<?php 
                }
                ?>
					<?php 
                if ($this->params->get('comment_system') == 'none' && $this->params->get('allow_comment')) {
                    ?>
						<a class="review_count" href="<?php 
                    echo $link;
                    ?>
#reviews"> <?php 
                    echo $item->review_count;
                    ?>
							<?php 
                    echo $item->review_count > 1 ? JText::_('COM_BT_PORTFOLIO_REVIEWS') : JText::_('COM_BT_PORTFOLIO_REVIEW');
Beispiel #2
0
// no direct access
defined('_JEXEC') or die;
// Get default image
$default_image = '';
foreach ($this->images as $image) {
    if ($image->default) {
        $default_image = $image->filename;
        break;
    }
}
$default_image = Bt_portfolioHelper::getPathImage($this->item->id, 'large', $default_image, $this->category->id);
// get review summary:
$review_summary = '';
if ($this->params->get('allow_voting')) {
    //$review_summary .= '<span style="float: left; margin-right: 10px;">'.JText::_('COM_BT_PORTFOLIO_VOTE_IT').'</span>';
    $review_summary .= Bt_portfolioHelper::getRatingPanel($this->item->id, $this->item->vote_sum, $this->item->vote_count, 0);
}
if ($this->params->get('comment_system') == 'none' && $this->params->get('allow_comment')) {
    $review_summary .= '<span class="review_count">' . $this->item->review_count . ' ';
    $review_summary .= ' ';
    $review_summary .= $this->item->review_count > 1 ? JText::_('COM_BT_PORTFOLIO_REVIEWS') : JText::_('COM_BT_PORTFOLIO_REVIEW');
    $review_summary .= '</span>';
}
$review_summary .= '<div class="clr"></div>';
// Get extra fields
$extra_fields = '';
//$extra_fields = '<div class="btp-detail-extrafields">';
foreach ($this->item->extra_fields as $field) {
    if (count($field) == 0) {
        continue;
    }