title: PHP & Magento If statement based on page url
body: <p>I want to create the following conditional statement based on the cms page url to show a different background image for my magento store. Syntax seems good, but it doesn't show up.</p>
  
  <pre><code>&lt;?php
  if(Mage::app()-&gt;getFrontController()-&gt;getRequest()-&gt;getRouteName() == 'cms'):
         $Page = Mage::getSingleton('cms/page')-&gt;getTitle(); 
  endif;   
  
  if($Page == 'about-us'):
         //echo $this-&gt;getChildHtml('bg_aboutus');
        echo '&lt;div class="bg"&gt;&lt;img src="' . $this-&gt;getSkinUrl("images/about_us.jpg") . '" alt="office interiors" &gt;&lt;/div&gt;';
  endif;                        
  ?&gt;
  </code></pre>