码迷,mamicode.com
首页 > 其他好文 > 详细

magento additional & details 分解开来

时间:2015-05-07 16:01:13      阅读:116      评论:0      收藏:0      [点我收藏+]

标签:

<?php foreach ($this->getChildGroup(‘detailed_info‘, ‘getChildHtml‘) as $alias => $html):?>
        <div class="box-collateral <?php echo "box-{$alias}"?>">
            <?php if ($title = $this->getChildData($alias, ‘title‘)):?>
            <h2><?php echo $this->escapeHtml($title); ?></h2>
            <?php endif;?>
            <?php echo $html; ?>
        </div>
<?php endforeach;?>

To

<?php if ($_description = $this->getChildHtml(‘description‘)):?>
        <div class="collateral-box">
            <div class="box-collateral box-description">
                <h2><?php echo $this->__(‘Product Description‘) ?></h2>
            </div>
            <?php echo $_description ?>
        </div>
    <?php endif;?>

and

        <?php if ($_additional = $this->getChildHtml(‘additional‘)):?>
        <div class="box-collateral box-additional">
            <h2><?php echo $this->__(‘Additional Information‘) ?></h2>
            <?php echo $_additional ?>
        </div>
        <?php endif;?>

magento additional & details 分解开来

标签:

原文地址:http://www.cnblogs.com/focai/p/4484814.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!