Skip to content

Commit

Permalink
layout done
Browse files Browse the repository at this point in the history
  • Loading branch information
dogmatic69 committed Dec 5, 2009
1 parent 9ca6c2e commit 4669ef2
Show file tree
Hide file tree
Showing 35 changed files with 522 additions and 0 deletions.
14 changes: 14 additions & 0 deletions app/app_controller.php
@@ -0,0 +1,14 @@
<?php
class AppController extends Controller
{
var $helpers = array( 'Html' );

var $components = array( 'Session' );

function beforeFilter()
{
parent::beforeFilter();
}

}
?>
10 changes: 10 additions & 0 deletions app/app_model.php
@@ -0,0 +1,10 @@
<?php
/**
*
*
*/
class AppModel extends Model
{
var $actsAs = array( 'Containable' );
}
?>
11 changes: 11 additions & 0 deletions app/plugins/blog/controllers/posts_controller.php
@@ -0,0 +1,11 @@
<?php
class PostsController extends BlogAppController
{
var $name = 'Posts';

function index()
{
$this->set('posts', $this->Post->find('all'));
}
}
?>
1 change: 1 addition & 0 deletions app/plugins/blog/controllers/posts_controller.php.LCK
@@ -0,0 +1 @@
dogmatic||carl@sightings-design.co.za
6 changes: 6 additions & 0 deletions app/plugins/blog/models/post.php
@@ -0,0 +1,6 @@
<?php
class Post extends BlogAppModel
{
var $name = 'Post';
}
?>
1 change: 1 addition & 0 deletions app/plugins/blog/models/post.php.LCK
@@ -0,0 +1 @@
dogmatic||carl@sightings-design.co.za
18 changes: 18 additions & 0 deletions app/plugins/blog/views/elements/posts.php
@@ -0,0 +1,18 @@
<div class="post">
<div class="header">
<h3>TerraFirma<sup>1.0</sup> by NodeThirtyThree</h3>
<div class="date">August 1, 2006</div>
</div>
<div class="content">
<img src="../img/terrafirma/pic1.jpg" class="picA floatleft" alt="" />
<p><strong>TerraFirma</strong><sup>1.0</sup> is a free, lightweight, tableless, W3C-compliant website design by <a href="http://www.nodethirtythree.com/">NodeThirtyThree Design</a>. You're free to dissect, manipulate and use it to your heart's content. We only ask that you link back to our site in some way. If you find this design useful, feel free to let us know :)</p>
<p>You can find more of our free work at this site or <a href="http://www.nodethirtythree.com/">our site</a>, or some of our commercial work on <a href="http://www.4templates.com/?aff=n33">4Templates.com</a>, a commercial website template site.</p>
</div>
<div class="footer">
<ul>
<li class="printerfriendly"><a href="#">Printer Friendly</a></li>
<li class="comments"><a href="#">Comments (18)</a></li>
<li class="readmore"><a href="#">Read more</a></li>
</ul>
</div>
</div>
13 changes: 13 additions & 0 deletions app/plugins/blog_app_controller.php
@@ -0,0 +1,13 @@
<?php
/**
*
*
*/
class BlogAppController extends AppController
{
function beforeFilter()
{
parent::beforeFilter();
}
}
?>
1 change: 1 addition & 0 deletions app/plugins/blog_app_controller.php.LCK
@@ -0,0 +1 @@
dogmatic||carl@sightings-design.co.za
6 changes: 6 additions & 0 deletions app/plugins/blog_app_model.php
@@ -0,0 +1,6 @@
<?php
class BlogAppModel extends AppModel
{

}
?>
1 change: 1 addition & 0 deletions app/plugins/blog_app_model.php.LCK
@@ -0,0 +1 @@
dogmatic||carl@sightings-design.co.za
13 changes: 13 additions & 0 deletions app/plugins/core/views/elements/menu/right.ctp
@@ -0,0 +1,13 @@
<h3>Topics</h3>
<div class="content">
<ul class="linklist">
<li class="first"><a href="#">Accumsan congue (32)</a></li>
<li><a href="#">Dignissim nec augue (14)</a></li>
<li><a href="#">Nunc ante elit nulla (83)</a></li>
<li><a href="#">Aliquam suscipit (74)</a></li>
<li><a href="#">Cursus sed arcu sed (14)</a></li>
<li><a href="#">Eu ante cras at risus (24)</a></li>
<li><a href="#">Donec mollis dolore (39)</a></li>
<li><a href="#">Aliquam suscipit (74)</a></li>
</ul>
</div>
10 changes: 10 additions & 0 deletions app/plugins/core/views/elements/menu/top.ctp
@@ -0,0 +1,10 @@
<div id="menu">
<ul>
<li class="first"><a href="#">Home</a></li>
<li><a href="#">Archives</a></li>
<li><a href="#">Links</a></li>
<li><a href="#">Resources</a></li>
<li><a href="#">Contact</a></li>
</ul>
<div id="date"><?php echo date( 'F d, Y' ); ?></div>
</div>
6 changes: 6 additions & 0 deletions app/views/elements/main_content.ctp
@@ -0,0 +1,6 @@
<div id="primarycontent">
<?php
echo $this->Session->flash();
echo $content_for_layout;
?>
</div>
5 changes: 5 additions & 0 deletions app/views/elements/right_bar.ctp
@@ -0,0 +1,5 @@
<div id="secondarycontent">
<?php
echo $this->element( 'menu/right', array( 'plugin' => 'core' ) );
?>
</div>
55 changes: 55 additions & 0 deletions app/views/layouts/default.ctp
@@ -0,0 +1,55 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<?php echo $this->Html->charset(); ?>
<title>
<?php
echo __( 'PhpDev :: ', true ), $title_for_layout;
?>
</title>
<?php
echo $this->Html->meta('icon');
echo $html->css( 'default' );
echo $scripts_for_layout;
?>
</head>
<body>
<!-- terrafirma1.0 by nodethirtythree design http://www.nodethirtythree.com -->
<div id="outer">
<div id="upbg"></div>
<div id="inner">
<div id="header">
<h1><span>Php</span>dev<sup>1.0</sup></h1>
<h2>by dogmatic69</h2>
</div>
<div id="splash"></div>
<?php
echo $this->element( 'menu/top', array( 'plugin' => 'core' ) );
echo $this->element( 'main_content', array( 'content_for_layout' => $content_for_layout ) );
echo $this->element( 'right_bar' );
?>
<div id="footer">
&copy; Php-Dev.co.za. All rights reserved. <?php echo $this->Html->link( 'Hosted by Change Me', 'http://www.changeme.com' ); ?>
<?php
echo $this->Html->link(
$this->Html->image(
'cake.power.gif',
array(
'alt'=> __( 'CakePHP: the rapid development php framework', true),
'border' => '0'
)
),
'http://www.cakephp.org/',
array(
'target' => '_blank',
'escape' => false,
'style' => 'float:right;'
)
);
?>
</div>
</div>
</div>
<?php echo $cakeDebug; ?>
</body>
</html>

0 comments on commit 4669ef2

Please sign in to comment.