ecoco/magento_profiler

View on GitHub
app/design/frontend/base/default/template/ecocode_profiler/collector/rewrite/menu.phtml

Summary

Maintainability
Test Coverage
<?php
/** @var Ecocode_Profiler_Model_Collector_RewriteDataCollector $collector */
$collector   = $this->getCollector();
$conflictCount = $collector->getModuleRewriteConflictCount();
$statusColor = $conflictCount ? 'error' :  'normal';
?>

<span class="label label-status-<?php echo $statusColor ?>">
    <span class="icon">
        <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
            <path style="fill:#aaa" d="M23.61,11.07L17.07,4.35A1.2,1.2,0,0,0,15,5.28V9H1.4A1.82,1.82,0,0,0,0,10.82v2.61A1.55,
                1.55,0,0,0,1.4,15H15v3.72a1.2,1.2,0,0,0,2.07.93l6.63-6.72A1.32,1.32,0,0,0,23.61,11.07Z"/>
        </svg>

    </span>
    <strong>Rewrites</strong>
    <?php if ($conflictCount): ?>
        <span class="count">
            <span><?php echo $conflictCount ?> </span>
        </span>
    <?php endif ?>
</span>