• 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;?>
  • 相关阅读:
    力扣背包型动态规划
    并查集
    位运算题目
    随机采样题目
    单调栈题目
    前缀和题目
    贪心题目
    堆排序
    python装饰器
    状态机题目
  • 原文地址:https://www.cnblogs.com/focai/p/4484814.html
Copyright © 2020-2023  润新知