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

Recommend this page to a friend!
  Classes of Haseeb Ahmad Basil  >  PHP Skeleton Framework  >  examples/blog/app/templates/mainlayout.php  >  Download  
File: examples/blog/app/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: 5 years ago
Size: 1,382 bytes


Class file image Download

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
<html xmlns="" xml:lang="en" lang="en">
    <title><?php echo "App: $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" >
    <?php echo $head; ?>
<div id="container">

    <div id="header">
        <h1><?php echo "App: $title"; ?></h1>
        <ul id="mainnav">
            <li><a href="<?php echo $BASE ?>">Home</a></li>
            <li><a href="<?php echo $BASE ?>posts/">Posts</a></li>
            <?php if (isset($user) && $user->isLoggedIn()) { echo "<li><a href=\"{$BASE}admin/\">Admin</a></li>"; } ?>
        <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 } ?>
    <div id="content">
        <?php echo $maincontent; ?>
    <?php if (isset($subcontent)) echo "<div id=\"subcontent\">\n$subcontent\n</div>"; ?>


For more information send a message to info at phpclasses dot org.