Permalink
Browse files

Update layout and css

  • Loading branch information...
1 parent 75e5cd3 commit bfed5a838d97208c976da52c28ca3a9e9afa5a6d @abtris committed Mar 11, 2010
Showing with 68 additions and 1 deletion.
  1. +68 −1 application/layouts/scripts/layout.phtml
@@ -1 +1,68 @@
-<?php echo $this->layout()->content; ?>
+<style>
+ body {
+ font-family: Verdana, Arial;
+ width: 800px;
+ margin: 0 auto;
+
+ }
+
+ #header ul {
+ list-style-type: none;
+ }
+
+ #header ul li {
+ float: left;
+ width: 10em;
+ }
+
+ #content {
+ min-height: 300px;
+ }
+
+ #content dt {
+ font-size: 110%;
+ font-weight: bold;
+ }
+
+ #content dd {
+ padding: 5px;
+ }
+
+ #content dd.comment {
+ font-style: italic;
+ font-size: 90%;
+ border: 1px solid gray;
+ padding: 5px;
+ }
+
+ #content dd.reply { padding-left: 3em; }
+
+ #content dd.comment a {
+ float: right;
+ }
+ #footer {
+ font-size: 80%;
+ text-align: right;
+ }
+
+ .clear { clear: both; }
+</style>
+<div id="header">
+<ul>
+<?php if (Zend_Auth::getInstance()->hasIdentity()) { ?>
+ <li><a href="/">Home</a></li>
+ <li><a href="/post/add">New Post</a></li>
+ <li><a href="/auth/logout">Logout</a></li>
+<?php } else { ?>
+ <li><a href="/">Home</a></li>
+ <li><a href="/auth/login">Login</a></li>
+<?php } ?>
+</ul>
+ <br class="clear" />
+</div>
+<div id="content">
+<?php echo $this->layout()->content; ?>
+</div>
+<div id="footer">
+ 2010 &copy; Powered by Zend Framework <?php echo Zend_Version::VERSION; ?>
+</div>

0 comments on commit bfed5a8

Please sign in to comment.