Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

error page and footer

  • Loading branch information...
commit 6fed13469c527e71a9aa9dfe7e44e1715f2a27d0 1 parent 11ee6b1
@s3265176 authored
View
15 app/Plugin/Croogo/View/Elements/footer.ctp
@@ -17,8 +17,10 @@
<div class="large-4 columns">
<div class = 'row'>
- <div class ='large-6 large-offset-3 columns panel'>
- <span style="font-size:50%"> i said its good</span>
+ <div class ='large-6 large-offset-3 columns panel radius'>
+ <span style="font-size:60%"> We strongly suggest you to order in front so we can ensure you the most fresh.
+ <a href="contact">contact us</a>
+ </span>
</div>
<div class ='large-3 columns'>
<?php echo $this->Html->image('Croogo.sandy.png',array("class" => "right"));?>
@@ -32,8 +34,13 @@
</div>
</div>
+
+
+
+ <hr >
+
<div class="row ">
- <hr >
+
<div class="large-12 columns">
<div id = 'copyright' class='left'>
© 2013 Jiheng Wang from <?php echo $this->Html->link('RMIT', 'http://www.rmit.edu.au')?> university
@@ -48,6 +55,8 @@
</div>
</div>
</div>
+
+ <div id ='footer-img'></div>
</footer>
View
83 app/Plugin/Croogo/View/Layouts/default.ctp
@@ -1,6 +1,6 @@
<?php
/**
- * Default Theme for Croogo CMS
+ * Default Error Layout for Croogo CMS
*
* @author Fahad Ibnay Heylaal <contact@fahad19.com>
* @link http://www.croogo.org
@@ -12,71 +12,32 @@
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php echo $title_for_layout; ?> &raquo; <?php echo Configure::read('Site.title'); ?></title>
<?php
- echo $this->Meta->meta();
- echo $this->Layout->feed();
- echo $this->Html->css(array(
- '/croogo/css/reset',
- '/croogo/css/960',
- '/croogo/css/theme',
+ echo $this->Html->css(array(
+ '/croogo/css/foundation',
+ '/croogo/css/error',
));
- echo $this->Layout->js();
- echo $this->Html->script(array(
- '/croogo/js/jquery/jquery.min',
- '/croogo/js/jquery/jquery.hoverIntent.minified',
- '/croogo/js/jquery/superfish',
- '/croogo/js/jquery/supersubs',
- '/croogo/js/theme',
- ));
- echo $this->Blocks->get('css');
- echo $this->Blocks->get('script');
- ?>
-</head>
-<body>
- <div id="wrapper">
- <div id="header" class="container_16">
- <div class="grid_16">
- <h1 class="site-title"><?php echo $this->Html->link(Configure::read('Site.title'), '/'); ?></h1>
- <span class="site-tagline"><?php echo Configure::read('Site.tagline'); ?></span>
- </div>
- <div class="clear"></div>
- </div>
-
- <div id="nav">
- <div class="container_16">
- <?php echo $this->Menus->menu('main', array('dropdown' => true)); ?>
- </div>
- </div>
-
- <div id="main" class="container_16">
- <div id="content" class="grid_11">
- <?php
+ ?>
+ </head>
+ <body>
+ <div id ='error_top'>
+ <div id = 'error_center'>
+ <?php
echo $this->Layout->sessionFlash();
echo $content_for_layout;
- ?>
- </div>
- <div id="sidebar" class="grid_5">
- <?php echo $this->Regions->blocks('right'); ?>
- </div>
+ echo $this->Html->image("Croogo.home-icon-l.png", array(
+ "home" => "Brownies",
+ 'url' => '/',
+ ));
+ ?>
- <div class="clear"></div>
- </div>
- <div id="footer">
- <div class="container_16">
- <div class="grid_8 left">
- Powered by <a href="http://www.croogo.org">Croogo</a>.
</div>
- <div class="grid_8 right">
- <a href="http://www.cakephp.org"><?php echo $this->Html->image('/img/cake.power.gif'); ?></a>
- </div>
- <div class="clear"></div>
</div>
- </div>
- </div>
- <?php
- echo $this->Blocks->get('scriptBottom');
- echo $this->Js->writeBuffer();
- ?>
- </body>
-</html>
+
+ <div id = 'error_bottom'>
+ </div>
+
+
+ </body>
+ </html>
View
54 app/Plugin/Croogo/View/Layouts/error.ctp
@@ -12,47 +12,29 @@
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php echo $title_for_layout; ?> &raquo; <?php echo Configure::read('Site.title'); ?></title>
<?php
- echo $this->Html->css(array(
- '/croogo/css/reset',
- '/croogo/css/960',
- '/croogo/css/theme',
+ echo $this->Html->css(array(
+ '/croogo/css/foundation',
+ '/croogo/css/error',
));
- ?>
-</head>
-<body>
- <div id="wrapper">
- <div id="header" class="container_16">
- <div class="grid_16">
- <h1 class="site-title"><?php echo $this->Html->link(Configure::read('Site.title'), '/'); ?></h1>
- <span class="site-tagline"><?php echo Configure::read('Site.tagline'); ?></span>
- </div>
- <div class="clear"></div>
- </div>
-
- <div id="nav"></div>
-
- <div id="main" class="container_16">
- <div id="content" class="grid_16">
- <?php
+ ?>
+ </head>
+ <body>
+ <div id ='error_top'>
+ <div id = 'error_center'>
+ <?php
echo $this->Layout->sessionFlash();
echo $content_for_layout;
- ?>
- </div>
+ ?>
- <div class="clear"></div>
+ <a href="/">
+ <img src="Croogo./img/home-icon-l.png" alt="Home" />
+ </a>
+ </div>
</div>
- <div id="footer">
- <div class="container_16">
- <div class="grid_8 left">
- Powered by <a href="http://www.croogo.org">Croogo</a>.
- </div>
- <div class="grid_8 right">
- <a href="http://www.cakephp.org"><?php echo $this->Html->image('/img/cake.power.gif'); ?></a>
- </div>
- <div class="clear"></div>
- </div>
+ <div id = 'error_bottom'>
</div>
- </div>
+
+
</body>
-</html>
+ </html>
View
56 app/Plugin/Croogo/View/Layouts/foundation_contact.ctp
@@ -6,7 +6,7 @@
* @link http://www.croogo.org
*/
?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" >
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
@@ -37,36 +37,40 @@
echo $this->Blocks->get('css');
echo $this->Blocks->get('script');
?>
+
</head>
<body>
- <div id="wrapper">
+
<?php echo $this->element('header_nav');?>
-
-
-
- <div id="main" >
<!-- Main Page Content and Sidebar -->
<div class="row">
<!-- Contact Details -->
<div class="large-9 columns">
- <h3>Get in Touch!</h3>
+ <h3 >Get in Touch!</h3>
<p>We'd love to hear from you. You can either reach out to us as a whole and one of our awesome team members will get back to you, or if you have a specific question reach out to one of our staff. We love getting email all day <em>all day</em>.</p>
+ <h3>Make a order now!</h3>
+ <p>We'd love to hear from you. You can either reach out to us as a whole and one of our awesome team members will get back to you, or if you have a specific question reach out to one of our staff. We love getting email all day <em>all day</em>.<br /><a class ='success label' href="products"> check out our products</a></p>
+
+
+ <h3>Any other inquiry</h3>
+ <p>We'd love to hear from you. You can either reach out to us as a whole and one of our awesome team members will get back to you, or if you have a specific question reach out to one of our staff. We love getting email all day <em>all day</em>.</p>
+ <hr>
<div class ="row">
- <div class="large-9 columns ">
- <hr>
+ <div class="large-9 columns panel ">
+
<?php
echo $this->Layout->sessionFlash();
echo $content_for_layout;
?>
- <hr>
+
</div>
</div>
-
+ <hr>
</div>
<!-- End Contact Details -->
@@ -76,8 +80,8 @@
<h5>Map</h5>
<!-- Clicking this placeholder fires the mapModal Reveal modal -->
<p>
- <a href="" data-reveal-id="mapModal"><?php echo $this->Html->image("Croogo.map.jpg");?></a><br />
- <a href="" data-reveal-id="mapModal">View Map</a>
+ <a href="" data-reveal-id="mapModal_img"><?php echo $this->Html->image("Croogo.map.jpg");?></a><br />
+ <a href="" data-reveal-id="mapModal_img">View Google Map</a>
</p>
<p>
469 Centre Road<br />
@@ -104,9 +108,9 @@
<div class="large-6 columns ">
<p><?php echo $this->Html->image('Croogo.home-icon.png')?>Open hour:
<hr >
- Monday to Satday: 6:00am -6:00pm<br />
- Sunday: 7:00am -4:00pm <br />
- public holiday: please check our news
+ Monday to Satday: 6:00am -6:00pm<br />
+ Sunday: 7:00am -4:00pm <br />
+ public holiday: please check our news
</p>
</div>
</div>
@@ -117,24 +121,24 @@
</div>
<!-- End Main Content and Sidebar -->
- <!-- Map Modal -->
- <div class="reveal-modal" id="mapModal">
- <h4>Where We Are</h4>
- <p><?php echo $this->html->image("Croogo.map.jpg");?></p>
- <!-- Any anchor with this class will close the modal. This also inherits certain styles, which can be overriden. -->
- <a href="#" class="close-reveal-modal">&times;</a>
- </div>
-
- </div>
+
<!-- Footer -->
<?php echo $this->element('footer');?>
- </div>
+
+ <!-- Map Modal -->
+ <div class="reveal-modal" id="mapModal_img">
+ <h4>Where We Are</h4>
+ <p><?php echo $this->html->image("Croogo.map.jpg");?></p>
+ <!-- Any anchor with this class will close the modal. This also inherits certain styles, which can be overriden. -->
+ <a href="#" class="close-reveal-modal">&times;</a>
+ </div>
+
View
24 app/Plugin/Croogo/webroot/css/theme.css
@@ -168,6 +168,15 @@ body{
footer { height: 300px; background-image: url("../img/footer.png");}
+ #footer-img{
+ position: absolute;
+ bottom: 0px;
+ width: 100%;
+ height: 128px;
+ background-image: url('../img/overview_bg.png');
+ background-repeat: no-repeat;
+ background-position: center;
+ }
#debug-kit-toolbar ul li.panel-tab { display: none; }
#debug-kit-toolbar ul li.icon { display: inline; }
@@ -252,4 +261,17 @@ body{
.home_low_section p{
font-family: Perpetua, Baskerville, "Big Caslon", "Palatino Linotype", Palatino, "URW Palladio L", "Nimbus Roman No9 L", serif;
- }
+ }
+
+ #side_icon{
+ position: fixed;
+
+ left: 10px;
+ top: 300px;
+ }
+ #side_icon img{
+ position: relative;
+ z-index: 99px;
+ }
+
+
View
2  app/Plugin/Nodes/Config/routes.php
@@ -2,7 +2,7 @@
// Basic
CroogoRouter::connect('/', array(
- 'plugin' => 'nodes', 'controller' => 'nodes', 'action' => 'promoted'
+ 'plugin' => 'nodes', 'controller' => 'nodes', 'action' => 'home'
));
CroogoRouter::connect('/promoted/*', array(
View
1  app/Plugin/Nodes/Controller/NodesController.php
@@ -518,6 +518,7 @@ public function term() {
* @access public
*/
public function promoted() {
+ $this->layout = 'foundation_news';
$this->set('title_for_layout', __d('croogo', 'Nodes'));
$this->paginate['Node']['type'] = 'promoted';
View
10 app/Plugin/Nodes/View/Nodes/products.ctp
@@ -143,3 +143,13 @@
</div>
</div>
+<div id='side_icon' >
+ <span style='font-size:70%;'>Order Now</span><br />
+ <?php
+ echo $this->Html->image("Croogo.phone-icon-l.png", array(
+ "alt" => "Order Now",
+ 'url' => '/contact',
+ ));
+ ?>
+</div>
+
Please sign in to comment.
Something went wrong with that request. Please try again.