The Final pagetplphp File

At this stage, we've assembled all the necessary pieces of a fully functional PHPTemplate theme. All the elements you need are in place, though the styling is lacking. Let's stop here for a moment and get the Big Picture. Below is our raw page. tpl. php file, with only comment tags to enhance readability:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.">

<html xmlns=" 9 9/xhtml" lang="<?php print $language

?>" xml:lang="<?php print $language ?>">

<?php print $head; ?> <?php print $styles; ?> <?php print $scripts; ?>

<script type="text/javascript"> </script> </head> <body>

<div id="page-wrapper">

<?php if ($secondary_links): ?> <div id="secondary-links">

<?php print theme('menu_links', $secondary_links); ?> </div> <?php endif; ?>

<!-- BEGIN Header --> <div id="header-wrapper">

<!-- logo -- > <div id="logo">

<a href="<?php print $base_path; ?>" title="<?php print t('Click to return to the Home page'); ?>"><img src="<?php print $logo; ?>" alt="<?php print t('Click to return to the Home page '); ?>" /></a> <?php endif; ?> </div>

<?php if ($site_name): ?> <div id="sitename">

<hl><a href="<?php print $base_path ?>" title="<?php print t('Home') ?>"><?php print $site_name; ?></a></hl> </div> <?php endif; ?>

<?php if ($search_box): ?> <div id="searchbox"> <?php print $search_box; ?> </div> <?php endif; ?>

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

<?php if ($mission): ?> <div id="mission"> <?php print $mission; ?> </div> <?php endif; ?>

<!-- Region: header --> <?php if ($header): ?>

<div id="header-region"> <?php print $header; ?> </div> <?php endif; ?>

<?php if ($primary_links): ?> <div id="primary-links">

<?php print theme('menu_links', $primary_links); ?> </div> <?php endif; ?>

<!-- BEGIN Center Content --> <div id="main-wrapper">

<!-- Region: sidebar left --> <?php if ($sidebar_left): ?>

<div id="sidebar-left-region"> <?php print $sidebar_left; ?> </div> <?php endif; ?>

<div id="content-region-<?php print $layout ?>">

<?php print $breadcrumb; ?> <?php endif; ?>

<h2 class="content-title"><?php print $title; ?></h2> <?php endif; ?>

<?php if ($tabs): ?> <div class="tabs"> <?php print $tabs; ?> </div> <?php endif; ?>

<!-- Region: sidebar right --> <?php if ($sidebar_right): ?>

<div id="sidebar-right-region"> <?php print $sidebar_right; ?> </div> <?php endif; ?>

<div id="footer-region">

<div id="feed-icons"> <?php print $feed_icons; ?> </div>

<div id="footer-text">

<!-- theme closing tag --> <?php print $closure; ?>

Was this article helpful?

0 0

Post a comment