Conditional section in myTheme/elements/.footer.php

Permalink
I have a certain section of the footer that I would only like to appear on the "home" page type. What's the proper way to do this in the template?

The Logic:
if (pagetype == "home") {
# the areas I want to render
}

bengenares
 
jordanlev replied on at Permalink Best Answer Reply
jordanlev
<?php
if ($c->getCollectionTypeHandle() == 'home') {
  //stuff goes here
}
?>
bengenares replied on at Permalink Reply
bengenares
Thanks! That's exactly what I needed.