Permalink
Browse files

Mobile site

  • Loading branch information...
almonk committed Sep 5, 2011
1 parent bd752f9 commit ffefdc3ded268db53f5d53f955c87c8a35b4fa4e
View
@@ -52,3 +52,9 @@
2011-09-02 05:59:13: admin:/graceblue/our-team/jay-haines/:ProcessWire Error:Exception: Method Pageimage::first does not exist or is not callable in this context (in /Applications/XAMPP/xamppfiles/htdocs/graceblue/wire/core/Wire.php line 231) #0 /Applications/XAMPP/xamppfiles/htdocs/graceblue/site/templates/profile.php(20): Wire->__call('first', Array) #1 /Applications/XAMPP/xamppfiles/htdocs/graceblue/site/templates/profile.php(20): Pageimage->first() #2 /Applications/XAMPP/xamppfiles/htdocs/graceblue/wire/core/TemplateFile.php(88): require('/Applications/X...') #3 [internal function]: TemplateFile->___render() #4 /Applications/XAMPP/xamppfiles/htdocs/graceblue/wire/core/Wire.php(267): call_user_func_array(Array, Array) #5 /Applications/XAMPP/xamppfiles/htdocs/graceblue/wire/core/Wire.php(229): Wire->runHooks('render', Array) #6 /Applications/XAMPP/xamppfiles/htdocs/graceblue/wire/modules/PageRender.module(194): Wire->__call('render', Array) #7 /Applications/XAMPP/xamppfiles/htdocs/graceblue/wire/modules/PageRender.module(194):
2011-09-02 06:00:35: admin:/graceblue/our-team/gay-haines/:Error:Call to a member function size() on a non-object (line 24 of /Applications/XAMPP/xamppfiles/htdocs/graceblue/site/templates/profile.php)
2011-09-02 06:03:53: admin:/graceblue/our-team/jay-haines/:Error:Call to a member function size() on a non-object (line 23 of /Applications/XAMPP/xamppfiles/htdocs/graceblue/site/templates/profile.php)
+2011-09-05 08:36:51: admin:/graceblue/contact/:ProcessWire Error:Exception: Page may not be rendered because outputFormatting is set to false. Call $page->setOutputFormatting(true) before rendering the page. (in /Applications/XAMPP/xamppfiles/htdocs/graceblue/wire/modules/PageRender.module line 187) #0 [internal function]: PageRender->___renderPage(Object(HookEvent)) #1 /Applications/XAMPP/xamppfiles/htdocs/graceblue/wire/core/Wire.php(267): call_user_func_array(Array, Array) #2 /Applications/XAMPP/xamppfiles/htdocs/graceblue/wire/core/Wire.php(229): Wire->runHooks('renderPage', Array) #3 /Applications/XAMPP/xamppfiles/htdocs/graceblue/wire/core/Wire.php(289): Wire->__call('renderPage', Array) #4 /Applications/XAMPP/xamppfiles/htdocs/graceblue/wire/core/Wire.php(289): PageRender->renderPage(Object(HookEvent)) #5 /Applications/XAMPP/xamppfiles/htdocs/graceblue/wire/core/Wire.php(229): Wire->runHooks('render', Array) #6 /Applications/XAMPP/xamppfiles/htdocs/graceblue/site/templates/contact.php(46): Wire->__call('render', Array) #
+2011-09-05 08:37:30: admin:/graceblue/contact/:ProcessWire Error:Exception: Page may not be rendered because outputFormatting is set to false. Call $page->setOutputFormatting(true) before rendering the page. (in /Applications/XAMPP/xamppfiles/htdocs/graceblue/wire/modules/PageRender.module line 187) #0 [internal function]: PageRender->___renderPage(Object(HookEvent)) #1 /Applications/XAMPP/xamppfiles/htdocs/graceblue/wire/core/Wire.php(267): call_user_func_array(Array, Array) #2 /Applications/XAMPP/xamppfiles/htdocs/graceblue/wire/core/Wire.php(229): Wire->runHooks('renderPage', Array) #3 /Applications/XAMPP/xamppfiles/htdocs/graceblue/wire/core/Wire.php(289): Wire->__call('renderPage', Array) #4 /Applications/XAMPP/xamppfiles/htdocs/graceblue/wire/core/Wire.php(289): PageRender->renderPage(Object(HookEvent)) #5 /Applications/XAMPP/xamppfiles/htdocs/graceblue/wire/core/Wire.php(229): Wire->runHooks('render', Array) #6 /Applications/XAMPP/xamppfiles/htdocs/graceblue/site/templates/contact.php(47): Wire->__call('render', Array) #
+2011-09-05 08:37:48: admin:/graceblue/contact/:ProcessWire Error:Exception: Page may not be rendered because outputFormatting is set to false. Call $page->setOutputFormatting(true) before rendering the page. (in /Applications/XAMPP/xamppfiles/htdocs/graceblue/wire/modules/PageRender.module line 187) #0 [internal function]: PageRender->___renderPage(Object(HookEvent)) #1 /Applications/XAMPP/xamppfiles/htdocs/graceblue/wire/core/Wire.php(267): call_user_func_array(Array, Array) #2 /Applications/XAMPP/xamppfiles/htdocs/graceblue/wire/core/Wire.php(229): Wire->runHooks('renderPage', Array) #3 /Applications/XAMPP/xamppfiles/htdocs/graceblue/wire/core/Wire.php(289): Wire->__call('renderPage', Array) #4 /Applications/XAMPP/xamppfiles/htdocs/graceblue/wire/core/Wire.php(289): PageRender->renderPage(Object(HookEvent)) #5 /Applications/XAMPP/xamppfiles/htdocs/graceblue/wire/core/Wire.php(229): Wire->runHooks('render', Array) #6 /Applications/XAMPP/xamppfiles/htdocs/graceblue/site/templates/contact.php(47): Wire->__call('render', Array) #
+2011-09-05 08:38:15: admin:/graceblue/contact/:Error:Call to a member function render() on a non-object (line 47 of /Applications/XAMPP/xamppfiles/htdocs/graceblue/site/templates/contact.php)
+2011-09-05 08:38:27: admin:/graceblue/contact/:ProcessWire Error:Exception: Page may not be rendered because outputFormatting is set to false. Call $page->setOutputFormatting(true) before rendering the page. (in /Applications/XAMPP/xamppfiles/htdocs/graceblue/wire/modules/PageRender.module line 187) #0 [internal function]: PageRender->___renderPage(Object(HookEvent)) #1 /Applications/XAMPP/xamppfiles/htdocs/graceblue/wire/core/Wire.php(267): call_user_func_array(Array, Array) #2 /Applications/XAMPP/xamppfiles/htdocs/graceblue/wire/core/Wire.php(229): Wire->runHooks('renderPage', Array) #3 /Applications/XAMPP/xamppfiles/htdocs/graceblue/wire/core/Wire.php(289): Wire->__call('renderPage', Array) #4 /Applications/XAMPP/xamppfiles/htdocs/graceblue/wire/core/Wire.php(289): PageRender->renderPage(Object(HookEvent)) #5 /Applications/XAMPP/xamppfiles/htdocs/graceblue/wire/core/Wire.php(229): Wire->runHooks('render', Array) #6 /Applications/XAMPP/xamppfiles/htdocs/graceblue/site/templates/contact.php(47): Wire->__call('render', Array) #
+2011-09-05 08:38:59: admin:/graceblue/contact/:ProcessWire Error:Exception: Page may not be rendered because outputFormatting is set to false. Call $page->setOutputFormatting(true) before rendering the page. (in /Applications/XAMPP/xamppfiles/htdocs/graceblue/wire/modules/PageRender.module line 187) #0 [internal function]: PageRender->___renderPage(Object(HookEvent)) #1 /Applications/XAMPP/xamppfiles/htdocs/graceblue/wire/core/Wire.php(267): call_user_func_array(Array, Array) #2 /Applications/XAMPP/xamppfiles/htdocs/graceblue/wire/core/Wire.php(229): Wire->runHooks('renderPage', Array) #3 /Applications/XAMPP/xamppfiles/htdocs/graceblue/wire/core/Wire.php(289): Wire->__call('renderPage', Array) #4 /Applications/XAMPP/xamppfiles/htdocs/graceblue/wire/core/Wire.php(289): PageRender->renderPage(Object(HookEvent)) #5 /Applications/XAMPP/xamppfiles/htdocs/graceblue/wire/core/Wire.php(229): Wire->runHooks('render', Array) #6 /Applications/XAMPP/xamppfiles/htdocs/graceblue/site/templates/contact.php(46): Wire->__call('render', Array) #
@@ -0,0 +1 @@
+Session|a:0:{}
@@ -0,0 +1 @@
+Session|a:0:{}
@@ -0,0 +1 @@
+Session|a:0:{}
@@ -0,0 +1 @@
+Session|a:7:{s:8:"_user_id";i:41;s:15:"_user_challenge";s:32:"850e1b6d481dc1ebfb42e73ab7097afb";s:17:"_user_fingerprint";s:118:"::1Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_1) AppleWebKit/534.48.3 (KHTML, like Gecko) Version/5.1 Safari/534.48.3";s:18:"ModulesUninstalled";a:13:{i:0;s:20:"CommentFilterAkismet";i:1;s:14:"FieldtypeCache";i:2;s:17:"FieldtypeComments";i:3;s:10:"Helloworld";i:4;s:23:"InputfieldCommentsAdmin";i:5;s:8:"LazyCron";i:6;s:11:"MarkupCache";i:7;s:16:"MarkupPageFields";i:8;s:9:"MarkupRSS";i:9;s:21:"ProcessForgotPassword";i:10;s:13:"ProcessLogout";i:11;s:22:"TextformatterNewlineUL";i:12;s:22:"TextformatterStripTags";}s:27:"ProcessFieldListTemplatesID";i:0;s:25:"ProcessFieldListFieldtype";s:0:"";s:26:"ProcessFieldListShowSystem";i:0;}
@@ -0,0 +1 @@
+Session|a:0:{}
@@ -0,0 +1 @@
+Session|a:0:{}
@@ -0,0 +1 @@
+Session|a:0:{}
@@ -0,0 +1 @@
+Session|a:6:{s:8:"_user_id";i:41;s:15:"_user_challenge";s:32:"f156b89bc630f4c6c6724c09796a03f4";s:17:"_user_fingerprint";s:118:"::1Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_1) AppleWebKit/534.48.3 (KHTML, like Gecko) Version/5.1 Safari/534.48.3";s:27:"ProcessFieldListTemplatesID";i:0;s:25:"ProcessFieldListFieldtype";s:0:"";s:26:"ProcessFieldListShowSystem";i:0;}
@@ -0,0 +1 @@
+Session|a:0:{}
@@ -0,0 +1 @@
+Session|a:0:{}
@@ -0,0 +1 @@
+Session|a:0:{}
@@ -0,0 +1 @@
+Session|a:0:{}
@@ -0,0 +1 @@
+Session|a:0:{}
View
Binary file not shown.
View
Binary file not shown.
@@ -12,11 +12,16 @@ body {
top: 0;
left: 0;
right: 0;
- height: 40px;
+ height: 28px;
margin: 0;
padding: 0;
- background: white url(sprite.png) repeat-x 0px 1px;
z-index: 999;
+ background-color:#000;
+ background-color:rgba(0,0,0,0.65);
+ border-bottom:1px solid rgba(0,0,0,0.8);
+ -moz-box-shadow: 0 2px 2px rgba(0, 0, 0, 0.25);
+-webkit-box-shadow: 0 2px 2px rgba(0, 0, 0, 0.25);
+
}
#adminbar li {
@@ -25,18 +30,20 @@ body {
list-style: none;
margin: 0;
padding: 0;
- height: 40px;
- border-right: 1px solid #cecece;
+ height: 28px;
}
#adminbar li a {
display: block;
float: left;
- height: 40px;
- line-height: 42px;
- padding: 0 10px 0 36px;
+ height: 28px;
+ line-height: 26px;
+ padding: 0 10px;
font-family: arial, sans-serif;
- color: #505050;
+ color: #fff;
+ text-decoration:none;
+ font-size:11px;
+ font-weight:bold;
}
#adminbar li a:hover {
@@ -45,48 +52,46 @@ body {
#adminbar .admin, #adminbar .admin:hover {
float: right;
- background: url(sprite.png) no-repeat 0px -42px;
}
#adminbar .admin a:hover {
text-decoration: underline;
}
-#adminbar .active, #adminbar li.active:hover {
- background: url(sprite.png) repeat-x 0px -380px;
+#adminbar li.active{
+ background-color:#000;
}
-
-
+/*
#adminbar .browse {
- border-left: 1px solid #cecece;
+ border-left: 1px solid #cecece;
}
-#adminbar .browse a {
- background: transparent url(sprite.png) 10px -182px;
+*//*#adminbar .browse a {
+ background: transparent url(sprite.png) 10px -182px;
}
#adminbar .edit a {
- background: transparent url(sprite.png) 12px -97px;
+ background: transparent url(sprite.png) 12px -97px;
}
#adminbar .add-page a {
- background: transparent url(sprite.png) 12px -140px;
+ background: transparent url(sprite.png) 12px -140px;
}
#adminbar .permissions a {
- background: transparent url(sprite.png) 12px -327px;
-}
+ background: transparent url(sprite.png) 12px -327px;
+}*/
-#adminbar li:hover {
- background: #dde1e4;
-}
+/*#adminbar li:hover {
+ background: #dde1e4;
+}*/
#ab-modal {
z-index: 998;
background: white;
position: fixed;
- top: 40px;
+ top: 29px;
left: 0px;
right: 0px;
}
@@ -60,13 +60,13 @@ jQuery(document).ready(function($) {
function slideDown(link) {
- modalHeight = $(window).height() - 40;
+ modalHeight = $(window).height() - 28;
$modal.animate({
height: modalHeight + 'px'
},
// Animation time
- 300,
+ 10,
// After slide is done
function(){
@@ -84,8 +84,8 @@ jQuery(document).ready(function($) {
$adminbar.data('active', 'browse');
$modal.removeClass('loading').stop().animate({
height: '0px'
- }, 300, function(){
- $modal.addClass('loading');
+ }, 10, function(){
+ // $modal.addClass('loading');
});
document.body.style.overflow='auto';
View
BIN modules/AdminBar/loading.gif 100755 → 100644
Binary file not shown.
View
@@ -1,7 +1,7 @@
<? include ('./head.inc') ?>
<div class="container page">
<div class="row">
- <div class="sidebar column grid_3">
+ <div class="sidebar column grid_3 no_mobile">
<ul>
<? include('./_team_list.inc') ?>
</ul>
@@ -42,5 +42,4 @@
</div>
</div>
-
<? include ('./foot.inc') ?>
View
@@ -1,4 +1,4 @@
-<div class="container footer">
+<div class="container footer no_mobile">
<div class="row">
<div class="column grid_6">
<?=$pages->get('/')->address?>
View
@@ -6,6 +6,9 @@
<!-- Always force latest IE rendering engine (even in intranet) & Chrome Frame -->
<meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible">
<meta name="description" content="<?=$page->summary?>">
+ <meta name="HandheldFriendly" content="True">
+ <meta name="MobileOptimized" content="320"/>
+ <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=true">
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>
<script type="text/javascript" src="<?=$config->urls->templates?>/javascripts/scripts.js"></script>
@@ -27,7 +30,7 @@
</a>
</div>
- <div class="column grid_9">
+ <div class="column grid_9 no_mobile">
<ul class="nav">
<?php
$homepage = $pages->get("/");
@@ -40,6 +43,21 @@
}?>
</ul>
</div>
+
+ <div class="mobile_nav no_desktop">
+ <select>
+ <?php
+ $homepage = $pages->get("/");
+ $children = $homepage->children;
+ $children->prepend($homepage);
+
+ foreach($children as $child) {
+ $class = $child === $page->rootParent ? "selected" : '';
+ echo "<option value='{$child->url}'{$class}>{$child->title}</option>";
+ }?>
+ </select>
+ </div>
+
</div>
</div><!-- End header -->
@@ -1 +1,32 @@
-function redraw(){var a=$(document).width();draw_width=(a-940)/2+10;var b=$(".welcome_box").height();$(".draw").width(draw_width),$(".draw").height(b)}Cufon.replace("h1",{fontFamily:"Baskerville"}),Cufon.replace("h2",{fontFamily:"ITC New Baskerville Std"}),Cufon.replace("h2.page_title",{fontFamily:"Baskerville"}),Cufon.replace("h2.name",{fontFamily:"Baskerville"}),Cufon.replace("ul.nav a",{fontFamily:"ITC New Baskerville Std"}),Cufon.CSS.ready(function(){redraw()}),$(document).ready(function(){redraw()}),$(window).resize(function(){redraw()})
+Cufon.replace('h1', { fontFamily: 'Baskerville' });
+Cufon.replace('h2', { fontFamily: 'ITC New Baskerville Std' });
+Cufon.replace('h2.page_title', { fontFamily: 'Baskerville' });
+Cufon.replace('h2.name', { fontFamily: 'Baskerville' });
+Cufon.replace('ul.nav a', { fontFamily: 'ITC New Baskerville Std' });
+
+Cufon.CSS.ready(function() {
+ redraw();
+});
+
+$(document).ready(function() {
+ redraw();
+ $('.mobile_nav select').change(function() {
+ window.location = $(this).val();
+ });
+});
+
+$(window).resize(function() {
+ redraw();
+});
+
+function redraw(){
+ var welcome_box_left = $(document).width();
+ draw_width = ((welcome_box_left - 940)/2)+10;
+
+ var welcome_box_height = $('.welcome_box').height();
+
+ $('.draw').width(draw_width);
+ $('.draw').height(welcome_box_height);
+}
+
+

Large diffs are not rendered by default.

Oops, something went wrong.
View
@@ -1,11 +1,11 @@
<? include ('./head.inc') ?>
<div class="container page">
- <div class="row">
+ <div class="row no_mobile">
<div class="column grid_12 divider">&nbsp;</div>
</div>
<div class="row">
- <div class="column grid_2">&nbsp;</div>
+ <div class="column grid_2 no_mobile">&nbsp;</div>
<div class="column grid_8 text">
<h2 class="page_title">
<?=$page->headline?>
@@ -1,6 +1,6 @@
<? include ('./head.inc') ?>
<div class="container page">
- <div class="row">
+ <div class="row no_mobile">
<div class="column grid_3 sidebar">
<ul>
<?
View
@@ -1,7 +1,7 @@
<? include ('./head.inc') ?>
<div class="container page">
<div class="row">
- <div class="sidebar column grid_3">
+ <div class="sidebar column grid_3 no_mobile">
<ul>
<? include('./_team_list.inc') ?>
</ul>
Oops, something went wrong.

0 comments on commit ffefdc3

Please sign in to comment.