I would like to make different divs in the template, that show up at different parts of a site: eg. div#1 shows at pages from Menu-01 + it's sub-menus; div#2 shows up at pages from Menu-02 + its' sub-menus, div#3 at Blog pages, and so on.
How can this be achieved? Coming from the Wordpress world it is something like
<?php
if ( is_category ('1') ) {
//something for category 1
}
if (is_page ('6') ){
// something for page 6
}
// other functions for descendant checks possible with custom made checkers in functions.php
?>
In Drupal I only found the front page check
drupal_is_front_page()
But I've found no other types of checkings with this method.
Any help please? Thanks.