<?php

include_once 'header.php';
$dts = get_next_dates();
?>
              <?php 
if (isset($rec) && count($rec) && !empty($rec->banner_file)) {
    echo '';
    if ($this->session->userdata('language') == 'french') {
        echo '<div id="bannerhead" style="background: url(' . img_resized('/banners/' . $rec->banner_file_fr, '978x100') . ');">';
    } else {
        echo '<div id="bannerhead" style="background: url(' . img_resized('/banners/' . $rec->banner_file, '978x100') . ');">';
    }
    /*
    if(!empty($rec->description)) :
        echo '<div class="category-desc"><div class="innerbox"><h3>'.lang($rec->name).'</h3>';
                            
                            if($this->session->userdata('language')=='french') :
                                echo '<p>'.$rec->description_fr.'</p>';
                            else :
                                echo '<p>'.$rec->description.'</p>';
                            endif;
                            
                            echo '</div></div>';
    endif;
    */
    echo '</div>';
} else {
    echo '';
}
?>
Beispiel #2
0
		<div id="tb-1">
                    
                    <div class="clearfix">

		 <?php 
foreach ($product->related as $row) {
    ?>
                              
                <div class="product-item">
                  <center>
                    <div class="item">
                  <a href="/<?php 
    echo $row->url;
    ?>
" class="im"><img src="<?php 
    echo img_resized('productres/' . $row->product_picture, '120x100');
    ?>
" alt="<?php 
    echo $row->alternate_text;
    ?>
"  title="<?php 
    echo $row->alternate_text;
    ?>
"  /></a>
                    <a class="product-name" href="/<?php 
    echo $row->url;
    ?>
"><?php 
    echo rightLang($row->product_name, $row->product_name_fr);
    ?>
</a>
            $d = 'background-color:#FCDC3B; color:#fff;';
        }
        if ($in[2] == 'peach') {
            $d = 'background-color:#D98719; color:#fff;';
        }
    } else {
    }
}
if ($as1 != 'subcategory') {
    // echo "products list";
    if (isset($rec) && count($rec) && !empty($rec->banner_file)) {
        echo '';
        if ($this->session->userdata('language') == 'french') {
            echo '<div id="bannerhead" style="height:110px; background: url(' . img_resized('/banners/' . $rec->banner_file_fr, '1500x100') . '); background-size:1165px 110px;">';
        } else {
            echo '<div id="bannerhead" style="height:110px; background: url(' . img_resized('/banners/' . $rec->banner_file, '1500x100') . '); background-size:1165px 110px;">';
        }
        if (!empty($rec->description)) {
            echo '<div class="category-desc" style="margin-top:2px;"><div class="innerbox" style="margin: 0px 0px 0px 470px; width:410px; padding-top:15px;">';
            if ($this->session->userdata('language') == 'french') {
                echo '<p>' . $rec->description_fr . '</p>';
            } else {
                echo '<p>' . $rec->description . '</p>';
            }
            echo '</div></div>';
        }
        echo '</div>';
    } else {
        echo '';
    }
} else {
Beispiel #4
0
function getimg($image, $size, $attributes = '')
{
    return '<img src="' . img_resized($image, $size) . '" ' . $attributes . ' />';
}