Thread: design tips?
View Single Post
Old 04-26-2009, 09:13 PM   #6 (permalink)
Sam Granger
The Acquainted
 
Join Date: Sep 2007
Posts: 126
Thanks: 4
Sam Granger is on a distinguished road
Default

Example of header.html - also placed in the template dir.

HTML Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>

<head>
	<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
	<meta name="author" content="">

	<title>PHPSauce <?php echo $title; ?> (Powered by PHPSauce Store)</title>
	<link rel="stylesheet" href="<?php echo ROOT_URL; ?>screen.css" type="text/css" />
	<script type="text/javascript" src="<?php echo ROOT_URL; ?>js/jquery.min.js"></script>
	<script type="text/javascript" src="<?php echo ROOT_URL; ?>js/jquery.cart.js"></script>
</head>

<body>
<div id="wrapper">
	<div id="header">
		<div class="cart">
			<span>your cart has 0 items</span>
			<a href="#" id="modal">shopping cart</a> | <a href="/account/create">create account</a> | <a href="/account/login">log in</a>
		</div>
		<h1><a href="<? echo ROOT_URL; ?>" title="<? echo STORE_NAME; ?> Homepage"><? echo STORE_NAME; ?></a></h1>
	</div>
	
	<div id="nav">
		<ul>
			<li<? if($module == null || $module == 'idx') { ?> id="selected"<? } ?>><a href="<? echo ROOT_URL; ?>"><span>home</span></a></li>
			<li<? if($module == 'about') { ?> id="selected"<? } ?>><a href="<? echo ROOT_URL; ?>about"><span>about</span></a></li>
			<li<? if($module == 'product') { ?> id="selected"<? } ?>><a href="#"><span>category</span></a></li>
			<li<? if($module == 'faq') { ?> id="selected"<? } ?>><a href="<? echo ROOT_URL; ?>faq"><span>f.a.q.</span></a></li>
			<li<? if($module == 'clienthome') { ?> id="selected"<? } ?>><a href="<? echo ROOT_URL; ?>account"><span>client area</span></a></li>
			<li<? if($module == 'contact') { ?> id="selected"<? } ?>><a href="<? echo ROOT_URL; ?>contact"><span>contact</span></a></li>
		</ul>
		<br class="clear" />
	</div>
Sam Granger is offline  
Reply With Quote