コード例 #1
0
<?php

/* Smarty version 2.6.26, created on 2015-12-01 10:48:33
   compiled from custom:category/productGridItem.tpl */
require_once SMARTY_CORE_DIR . 'core.load_plugins.php';
smarty_core_load_plugins(array('plugins' => array(array('function', 'productUrl', 'custom:category/productGridItem.tpl', 4, false), array('function', 'link', 'custom:category/productGridItem.tpl', 29, false), array('modifier', 'config', 'custom:category/productGridItem.tpl', 22, false))), $this);
$_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "custom:product/block/smallImage.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
?>

<div class="title">
	<a href="<?php 
echo smarty_function_productUrl(array('product' => $this->_tpl_vars['product'], 'filterChainHandle' => $this->_tpl_vars['filterChainHandle']), $this);
?>
"><?php 
echo $this->_tpl_vars['product']['name_lang'];
?>
</a>
</div>

<div class="pricingInfo"><div><div><div>
	<?php 
$_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "custom:product/block/cartButton.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
?>
	<div class="priceAboveCart">
	<?php 
コード例 #2
0
if (!is_array($_from) && !is_object($_from)) {
    settype($_from, 'array');
}
if (count($_from)) {
    foreach ($_from as $this->_tpl_vars['product']) {
        ?>
			<?php 
        if ($this->_tpl_vars['product']['ID']) {
            ?>
				<item>
					<title><![CDATA[<?php 
            echo $this->_tpl_vars['product']['name_lang_safe'];
            ?>
]]></title>
					<link><![CDATA[<?php 
            echo smarty_function_productUrl(array('product' => $this->_tpl_vars['product'], 'full' => true), $this);
            ?>
]]></link> 
					<description><![CDATA[<?php 
            echo $this->_tpl_vars['product']['shortDescription_lang'];
            ?>
]]></description>
									</item>
			<?php 
        }
        ?>
		<?php 
    }
}
unset($_from);
?>
コード例 #3
0
		   </div>
		</td>
		<td class="orderShipmentsItem_info_name_td">
			<div class="orderShipmentsItem_info_name">
				<?php 
if ($this->_tpl_vars['item']['Product']['ID']) {
    ?>
					<a href="<?php 
    echo smarty_function_backendProductUrl(array('product' => $this->_tpl_vars['item']['Product']), $this);
    ?>
"><?php 
    echo $this->_tpl_vars['item']['Product']['name_lang'];
    ?>
</a>
					<a class="external" href="<?php 
    echo smarty_function_productUrl(array('product' => $this->_tpl_vars['item']['Product']), $this);
    ?>
" target="_blank"></a>
				<?php 
} else {
    ?>
					<span><?php 
    echo $this->_tpl_vars['item']['Product']['name_lang'];
    ?>
</span>
				<?php 
}
?>
				<?php 
if ($this->_tpl_vars['allOptions'][$this->_tpl_vars['item']['Product']['ID']] || $this->_tpl_vars['item']['options']) {
    ?>
コード例 #4
0
        ob_start();
        ?>
		<?php 
        if ($this->_tpl_vars['sub']['featuredProduct']['ID']) {
            ?>
			<div class="categoryFeaturedProduct">
				<div class="price">
					<?php 
            $_smarty_tpl_vars = $this->_tpl_vars;
            $this->_smarty_include(array('smarty_include_tpl_file' => "custom:product/block/productPrice.tpl", 'smarty_include_vars' => array('product' => $this->_tpl_vars['sub']['featuredProduct'])));
            $this->_tpl_vars = $_smarty_tpl_vars;
            unset($_smarty_tpl_vars);
            ?>
				</div>
				<a href="<?php 
            echo smarty_function_productUrl(array('product' => $this->_tpl_vars['sub']['featuredProduct']), $this);
            ?>
"><?php 
            echo is_array($_tmp = $this->_tpl_vars['sub']['featuredProduct']['name_lang']) ? $this->_run_mod_handler('truncate', true, $_tmp, 25) : smarty_modifier_truncate($_tmp, 25);
            ?>
</a>
				<?php 
            if ($this->_tpl_vars['sub']['featuredProduct']['DefaultImage']['ID']) {
                ?>
					<?php 
                $_smarty_tpl_vars = $this->_tpl_vars;
                $this->_smarty_include(array('smarty_include_tpl_file' => "custom:product/block/smallImage.tpl", 'smarty_include_vars' => array('product' => $this->_tpl_vars['sub']['featuredProduct'])));
                $this->_tpl_vars = $_smarty_tpl_vars;
                unset($_smarty_tpl_vars);
                ?>
				<?php