<?php include_once($_SERVER[“DOCUMENT_ROOT”] . base_path() . path_to_theme() . “/nav.php”); ?>
Monthly Archives: October 2014
Condition for Login Logout
<?php if (user_is_logged_in()): ?> <p>Hello, logged in user</p>
<?php else:?> <p>Hello, stranger</p>
<?php endif;?>
Call Static image in theme
<img src=”<?php print base_path() . path_to_theme(); ?>/images/banner-side-1.jpg” alt=””>
Condition for home page
<?php if (drupal_is_front_page()){
echo ‘this is home’;
} ?>