コード例 #1
0
&amp;ipa=<?php 
                        echo is_array($_tmp = $this->_tpl_vars['product']['id_product_attribute']) ? $this->_run_mod_handler('intval', true, $_tmp) : intval($_tmp);
                        ?>
&amp;id_customization=<?php 
                        echo $this->_tpl_vars['id_customization'];
                        ?>
&amp;token=<?php 
                        echo $this->_tpl_vars['static_token'];
                        ?>
"> </a></div>
							<span class="quantity-formated"><span class="quantity"><?php 
                        echo $this->_tpl_vars['customization']['quantity'];
                        ?>
</span>x</span><?php 
                        if (isset($this->_tpl_vars['customization']['datas'][$this->_tpl_vars['CUSTOMIZE_TEXTFIELD']]['0'])) {
                            echo smartyTruncate(array('text' => $this->_tpl_vars['customization']['datas'][$this->_tpl_vars['CUSTOMIZE_TEXTFIELD']]['0']['value'], 'length' => '28', 'encode' => 'true'), $this);
                            ?>

							<?php 
                        } else {
                            ?>
							<?php 
                            echo smartyTranslate(array('s' => 'Customization #', 'mod' => 'blockcart'), $this);
                            echo is_array($_tmp = $this->_tpl_vars['id_customization']) ? $this->_run_mod_handler('intval', true, $_tmp) : intval($_tmp);
                            echo smartyTranslate(array('s' => ':', 'mod' => 'blockcart'), $this);
                            ?>

							<?php 
                        }
                        ?>
						</li>
コード例 #2
0
                if ($this->_foreach['myLoop']['iteration'] <= 1) {
                    ?>
first_item<?php 
                } elseif ($this->_foreach['myLoop']['iteration'] == $this->_foreach['myLoop']['total']) {
                    ?>
last_item<?php 
                } else {
                    ?>
item<?php 
                }
                ?>
"><a href="<?php 
                echo $this->_tpl_vars['newproduct']['link'];
                ?>
"><?php 
                echo smartyTruncate(array('text' => $this->_tpl_vars['newproduct']['description_short'], 'length' => '50', 'strip' => 'true', 'encode' => 'true'), $this);
                ?>
</a>&nbsp;<a href="<?php 
                echo $this->_tpl_vars['newproduct']['link'];
                ?>
"><img alt=">>" src="<?php 
                echo $this->_tpl_vars['img_dir'];
                ?>
bullet.gif"/></a></dd><?php 
            }
            ?>
		<?php 
        }
    }
    unset($_from);
    ?>