ecoco/magento_profiler

View on GitHub
app/design/frontend/base/default/template/ecocode_profiler/layout/sidebar/menu.phtml

Summary

Maintainability
Test Coverage
<?php /** @var Ecocode_Profiler_Block_Profiler_Sidebar_Menu $this */ ?>
<?php
if ($this->getProfile()): ?>

    <?php
    $token  = $this->getProfile()->getToken();
    $panel  = Mage::registry('current_panel');
    $helper = Mage::helper('ecocode_profiler');
    ?>
    <?php foreach ($this->getMenuBlocks() as $name => $block): ?>
        <?php
        /** @var Ecocode_Profiler_Block_Collector_Base $block */
        $url       = $helper->getUrl($token, $name);
        ?>
        <li class="<?php echo $name ?> <?php echo $name === $panel ? 'selected' : '' ?>">
            <a href="<?php echo $url ?>"><?php echo $block->toHtml(); ?></a>
        </li>
    <?php endforeach; ?>
<?php endif;?>

<?php echo $this->getChildHtml('settings'); ?>