zoukankan      html  css  js  c++  java
  • magento additional & details 分解开来

    <?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;?>
  • 相关阅读:
    [Leetcode]@python 76. Minimum Window Substring
    [Leetcode]@python 75. Sort Colors
    HTNL表单
    第二天
    开学心德
    HTML表单
    网页制作
    2nd day
    开课心得
    CF10D/POJ2127 LCIS 题解
  • 原文地址:https://www.cnblogs.com/focai/p/4484814.html
Copyright © 2011-2022 走看看