diff options
| author | Bharat Mediratta <bharat@menalto.com> | 2008-11-04 05:02:37 +0000 |
|---|---|---|
| committer | Bharat Mediratta <bharat@menalto.com> | 2008-11-04 05:02:37 +0000 |
| commit | 630b0f26fc5dc970d8634e58489c41c5a40481f1 (patch) | |
| tree | 93dd3699d1681afeff0a41e2c5aded74353cccd8 /themes/default/views/header.html.php | |
| parent | 8709c1965f9b13967e74efddb7ff6c99e734a135 (diff) | |
Restructure the theme code to be more like WordPress / Habari. Now,
the controller initiates a request to a top level page (eg:
album.html.php) which is then free to include whatever other page
chunks it wants with calls like <?= $theme->display('header.html') ?>
Variables like $item and $children are in the global space for all
views.
theme.php helper is now Theme.php library which lets us store the name
of the theme inside the variable itself. This means that the theme
does not have to know its own name because you can use $theme->url()
for all urls to stuff inside the theme itself, which makes it possible
to cline a theme without changing a single line.
Still using the mock album UI.
Diffstat (limited to 'themes/default/views/header.html.php')
| -rw-r--r-- | themes/default/views/header.html.php | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/themes/default/views/header.html.php b/themes/default/views/header.html.php new file mode 100644 index 00000000..797dcb7c --- /dev/null +++ b/themes/default/views/header.html.php @@ -0,0 +1,53 @@ +<? defined("SYSPATH") or die("No direct script access."); ?> +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Tranisitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> + <head> + <title>Browse Photos :: <?= $item->title ?></title> + + <meta http-equiv="content-type" content="text/html; charset=UTF-8" /> + + <link rel="stylesheet" type="text/css" href="http://yui.yahooapis.com/2.5.2/build/reset-fonts-grids/reset-fonts-grids.css" /> + <link rel="stylesheet" type="text/css" href="http://yui.yahooapis.com/2.5.2/build/base/base-min.css" /> + <link rel="stylesheet" type="text/css" href="<?= $theme->url("css/styles.css") ?>" media="screen,projection" /> + + <!-- CSS --> + <link rel="stylesheet" type="text/css" href="http://yui.yahooapis.com/2.6.0/build/container/assets/container.css" /> + <script type="text/javascript" src="http://yui.yahooapis.com/2.6.0/build/yahoo-dom-event/yahoo-dom-event.js"></script> + <script type="text/javascript" src="http://yui.yahooapis.com/2.6.0/build/animation/animation-min.js"></script> + <script type="text/javascript" src="http://yui.yahooapis.com/2.6.0/build/container/container-min.js"></script> + + <link rel="stylesheet" type="text/css" href="http://yui.yahooapis.com/2.6.0/build/treeview/assets/skins/sam/treeview.css" /> + <script type="text/javascript" src="http://yui.yahooapis.com/2.6.0/build/treeview/treeview-min.js"></script> + </head> + + <body class="yui-skin-sam"> + <div id="doc2" class="yui-t5 gAlbumView"> + <div id="gHeader"> + <img id="gLogo" alt="<?= _("Logo") ?>" src="<?= $theme->url("images/logo.png") ?>" /> + + <h1><?= $item->title ?></h1> + + <div id="gLoginMenu"> + <a href="#"><?= _("Register") ?></a> | + <a href="#"><?= _("Login") ?> + </div> + + <ul id="gSiteMenu"> + <li><a href="index.html"><?= _("HOME") ?></a></li> + <li><a class="active" href="browse.html"><?= _("BROWSE") ?></a></li> + <li><a href="upload.html"><?= _("UPLOAD") ?></a></li> + <li><a href="upload.html"><?= _("MY GALLERY") ?></a></li> + <li><a href="#"><?= _("ADMIN") ?></a></li> + </ul> + + <ul id="gBreadcrumbs"> + <li class="root"><a href="#">Home</a></li> + <li><a href="#">Friends & Family</a></li> + <li class="active"><span>Christmas 2007</span></li> + </ul> + + <form id="gSearchForm"> + <input type="text" class="text" value="<?= _("Search Gallery ...") ?>"/> + <input type="submit" class="submit" value="search" /> + </form> + </div> |
