Exemplo n.º 1
0
	<?php 
}
?>
		
	<!-- Show list portfolios -->
	<?php 
if ($this->params->get('show_portcat', 1)) {
    ?>
	<div class="btp-list">
		<?php 
    $i = 0;
    $total = count($this->items);
    if ($total) {
        foreach ($this->items as $item) {
            $i++;
            $img_url = Bt_portfolioHelper::getPathImage($item->id, 'thumb', $item->image, $item->category_id);
            $link = JRoute::_('index.php?option=com_bt_portfolio&view=portfolio&id=' . $item->id . ':' . $item->alias . '&catid_rel=' . $item->category_id . ':' . $item->category_alias);
            ?>
		<div class="btp-item <?php 
            if ($i == 0) {
                echo 'item-first';
            } else {
                if ($i == $total) {
                    echo 'item-last';
                }
            }
            ?>
">
			<div class="btp-item-image">
				<?php 
            if ($this->params->get('enable-slideshow', 'skiterslide') == "mediaslide") {
Exemplo n.º 2
0
}
?>
		
	<!-- Show list portfolios -->
	<?php 
if ($this->params->get('show_portcat', 1)) {
    ?>
		<div class="btp-list">
			<?php 
    $i = 0;
    foreach ($this->items as $item) {
        $img_turl = Bt_portfolioHelper::getPathImage($item->id, 'thumb', $item->image, $item->category_id);
        $rel = '{handler:\'iframe\'}';
        $img_ourl = Bt_portfolioHelper::extractUrl($item->youembed);
        if (!$img_ourl) {
            $img_ourl = Bt_portfolioHelper::getPathImage($item->id, 'original', $item->image, $item->category_id);
            $rel = '{handler:\'image\'}';
        }
        $link = JRoute::_('index.php?option=com_bt_portfolio&view=portfolio&id=' . $item->id . ':' . $item->alias . '&catid_rel=' . $item->category_id . ':' . $item->category_alias);
        ?>
			<div class="bg-custom-btp-item">
			<div class="btp-item" style="width:<?php 
        echo $this->params->get('thumb_width', 336);
        ?>
px;">
			    <div class="btp-item-image">
					<?php 
        if ($this->params->get('enable-slideshow', 'skiterslide') == "mediaslide") {
            ?>
					<?php 
            if ($item->youembed) {
Exemplo n.º 3
0
 * @website		http://bowthemes.com
 * @support		Forum - http://bowthemes.com/forum/
 * @copyright	Copyright (C) 2012 Bowthemes. All rights reserved.
 * @license		http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
 */
// 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 = '';
Exemplo n.º 4
0
?>
        </div>
        <div class="clr"></div>
        </div><!-- end vote-social-share -->
		<br clear="all">
		<?php 
if (count($this->images)) {
    ?>
        <div class="btp-slideshow">
			<div class="box_skitter box_skitter_large">
				<ul>
					<?php 
    foreach ($this->images as $image) {
        $src_image_large = Bt_portfolioHelper::getPathImage($image->item_id, 'large', $image->filename, $this->category->id);
        $src_image_original = Bt_portfolioHelper::getPathImage($image->item_id, 'original', $image->filename, $this->category->id);
        $src_image_thumb = Bt_portfolioHelper::getPathImage($image->item_id, 'ssthumb', $image->filename, $this->category->id);
        ?>
					<li><img alt="<?php 
        echo htmlspecialchars($image->title);
        ?>
" class="block" 	src="<?php 
        echo $src_image_large;
        ?>
" rel="<?php 
        echo $src_image_thumb;
        ?>
" />
						<div class="label_text">
						<?php 
        if ($this->params->get('show_zoom_image', 1)) {
            ?>
Exemplo n.º 5
0
		<!-- Slide show -->			
			<div class="box_skitter box_skitter_large" style="background:#<?php 
echo $this->params->get('ss_background', '000000');
?>
;">
				<ul>
					<?php 
foreach ($this->images as $i => $image) {
    $src_image_large = Bt_portfolioHelper::getPathImage($image->item_id, 'large', $image->filename, $this->category->id);
    $src_image_original = Bt_portfolioHelper::getPathImage($image->item_id, 'original', $image->filename, $this->category->id);
    $src_image_thumb = Bt_portfolioHelper::getPathImage($image->item_id, 'ssthumb', $image->filename, $this->category->id);
    $rel = '{handler:\'iframe\'}';
    $src_image_original = Bt_portfolioHelper::extractUrl($image->youembed);
    if (!$src_image_original) {
        $src_image_original = Bt_portfolioHelper::getPathImage($image->item_id, 'original', $image->filename, $this->category->id);
        $rel = '{handler:\'image\'}';
    }
    ?>
					<li>
					
						<img class="block" 	src="<?php 
    echo $src_image_large;
    ?>
" rel="<?php 
    echo $src_image_thumb;
    ?>
" alt="<?php 
    echo $image->title;
    ?>
"/>