PHP Classes

File: examples/blog/app/blog/templates/mainlayout.php

Recommend this page to a friend!
  Classes of Haseeb Ahmad Basil   PHP Skeleton Framework   examples/blog/app/blog/templates/mainlayout.php   Download  
File: examples/blog/app/blog/templates/mainlayout.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP Skeleton Framework
Extensive Web application development framework
Author: By
Last change:
Date: 8 years ago
Size: 1,457 bytes
 

Contents

Class file image Download
<?php

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
    <title><?php echo "Blog: $title"; ?></title>
    <meta http-equiv="content-type" content="text/html;charset=utf-8" />
    <base href="<?php echo $BASE; ?>" />
    <link rel="stylesheet" type="text/css" media="screen" href="<?php echo $BASE ?>css/screen.css" >
    <title><?php echo $head; ?></title>
</head>
<body>
<div id="container">

    <div id="header">
        <h1><?php echo "Blog: $title"; ?></h1>
       
        <ul id="mainnav">
            <li><a href="<?php echo $BASE ?>">Home</a></li>
            <li><a href="<?php echo $BASE ?>blog/posts/">Posts</a></li>
            <?php if (isset($user) && $user->isLoggedIn()) { echo "<li><a href=\"{$BASE}admin/\">Admin</a></li>"; } ?>
</ul>
       
        <div id="loginbox">
            <p><?php if (isset($user) && $user->isLoggedIn()) { ?>
                    <a href="<?php echo $BASE ?>user/profile">Profile</a> |
                    <a href="<?php echo $BASE ?>user/logout">Logout</a>
                <?php } else { ?>
                    <a href="<?php echo $BASE ?>user/login/">Login</a> |
                    <a href="<?php echo $BASE ?>user/register/">Register</a>
                <?php } ?>
</p>
        </div>
    </div>
   
    <div id="content">
        <?php echo $maincontent; ?>
</div>
   
    <?php if (isset($subcontent)) echo "<div id=\"subcontent\">\n$subcontent\n</div>"; ?>

    <div id="footer"><p>Copyright &copy; 2010</p></div>

</div>
</body>
</html>