24. regions[name] = Region Name
D7 Regions D6 Regions
$page['content']: The main content of $content
the current page.
$sidebar_first
$page['sidebar_first']: Items for the first
sidebar.
<?php if ($page[‘sidebar_first’]): ?> <?php if($sidebar_first): ?>
<?php print render($page[‘content’]); ?> <div id=“sidebar-first”>
<?php endif; ?> <?php print $sidebar_first; ?>
</div>
<?php endif; ?>
34. Layout with DIV
<div id=“custom-id”>
<h2> Title </h2>
<p> Body </p>
<div id=“sub-custom-id”>
<div class=“first”> <?php ?> </div>
<div class=“second”></div>
<div class=“third”></div>
</div> <!-- end of #sub-custom-id -->
</div> <!-- end of #custom-id -->