default page.tpl.php

here is a sample page.tpl.php. note if the template does not exist, a default template is used. Comments are also optional but included here for code clarity

<head>
  <title>
  <?php   print $head_title; //print the page title  ?>
  </title>
  <?php print head; //print header ?>
  <?php print $styles; //print relevant styles ?>
  <?php print $scripts; //print page scripts ?>
</head>

 <?php if($site_slogan); ?>
    <div id='site-slogan'><?php print $site_slogan; ?></div>
 </div>

<?php endif; ?>

 

 

Leave a Reply

Your email address will not be published. Required fields are marked *