I am trying to add an if else loop to a file in Magento.
Basically I want it to display different content depending on the body class.
For example, if
<body class="cms-services-test">
display:
<section class="banner banner-inner <?php Mage::helper('function')->convert_category_name( $category_name ); ?>">
<div class="wrapper">
<?php echo $this->getChildHtml('breadcrumbs') ?>
<?php echo $this->getLayout()->getBlock('breadcrumbs')->toHtml(); ?>
</div>
<div class="bottom-rip"></div>
else show:
<div class="no_content">
<?php echo="<h1>No content</h1>"; ?>
</div>
Can someone please help me out and point me in the right direction
Thanks!
Aucun commentaire:
Enregistrer un commentaire