From 303856ce01983feec95539892a908b5d5a88f866 Mon Sep 17 00:00:00 2001 From: tommy tomson Date: Sun, 13 May 2012 20:51:39 +0200 Subject: diabook-theme: small fixes --- view/theme/diabook/bottom.tpl | 11 +++++++++-- view/theme/diabook/theme.php | 31 +++++++++++++++---------------- 2 files changed, 24 insertions(+), 18 deletions(-) (limited to 'view/theme/diabook') diff --git a/view/theme/diabook/bottom.tpl b/view/theme/diabook/bottom.tpl index 0f8e61d97..50a15788d 100644 --- a/view/theme/diabook/bottom.tpl +++ b/view/theme/diabook/bottom.tpl @@ -16,8 +16,13 @@ $(document).ready(function() { }); $("div#pause").attr("style", "position: fixed;bottom: 43px;left: 5px;"); - $(".autocomplete").attr("style", "width: 350px;color: black;background: white;cursor: pointer;text-align: left;max-height: 350px;overflow: auto;"); - + $("div#pause").html("pause"); + $(document).keydown(function(event) { + if (!$("div#pause").html()){ + $("div#pause").html("pause"); + }}); + $(".autocomplete").attr("style", "width: 350px;color: black;border: 1px solid #D2D2D2;background: white;cursor: pointer;text-align: left;max-height: 350px;overflow: auto;"); + }); $(document).ready(function(){ @@ -123,4 +128,6 @@ $(document).ready(function() { function cmtBbClose(id) { $(".comment-edit-bb-" + id).hide(); } + + diff --git a/view/theme/diabook/theme.php b/view/theme/diabook/theme.php index f701d7d83..de7e41841 100755 --- a/view/theme/diabook/theme.php +++ b/view/theme/diabook/theme.php @@ -14,7 +14,7 @@ function diabook_init(&$a) { //print diabook-version for debugging $diabook_version = "Diabook (Version: 1.027)"; -$a->page['htmlhead'] .= sprintf('', $diabook_version); +$a->page['htmlhead'] .= sprintf('', $diabook_version); //init css on network and profilepages $cssFile = null; @@ -167,38 +167,38 @@ if ($color=="dark") $color_path = "/diabook-dark/"; //write js-scripts to the head-section: //load jquery.cookie.js $cookieJS = $a->get_baseurl($ssl_state)."/view/theme/diabook/js/jquery.cookie.js"; - $a->page['htmlhead'] .= sprintf('', $cookieJS); + $a->page['htmlhead'] .= sprintf('', $cookieJS); //load jquery.ae.image.resize.js $imageresizeJS = $a->get_baseurl($ssl_state)."/view/theme/diabook/js/jquery.ae.image.resize.min.js"; - $a->page['htmlhead'] .= sprintf('', $imageresizeJS); + $a->page['htmlhead'] .= sprintf('', $imageresizeJS); //load jquery.ui.js if($ccCookie != "10") { $jqueryuiJS = $a->get_baseurl($ssl_state)."/view/theme/diabook/js/jquery-ui-1.8.20.custom.min.js"; - $a->page['htmlhead'] .= sprintf('', $jqueryuiJS); + $a->page['htmlhead'] .= sprintf('', $jqueryuiJS); $jqueryuicssJS = $a->get_baseurl($ssl_state)."/view/theme/diabook/jquery-ui-1.8.20.custom.css"; $a->page['htmlhead'] .= sprintf('', $jqueryuicssJS); } //load jquery.twitter.search.js if($close_twitter != "1") { $twitterJS = $a->get_baseurl($ssl_state)."/view/theme/diabook/js/jquery.twitter.search.js"; - $a->page['htmlhead'] .= sprintf('', $twitterJS); + $a->page['htmlhead'] .= sprintf('', $twitterJS); } //load jquery.mapquery.js if($close_mapquery != "1") { $mqtmplJS = $a->get_baseurl($ssl_state)."/view/theme/diabook/js/jquery.tmpl.js"; - $a->page['htmlhead'] .= sprintf('', $mqtmplJS); + $a->page['htmlhead'] .= sprintf('', $mqtmplJS); $mapqueryJS = $a->get_baseurl($ssl_state)."/view/theme/diabook/js/jquery.mapquery.core.js"; - $a->page['htmlhead'] .= sprintf('', $mapqueryJS); + $a->page['htmlhead'] .= sprintf('', $mapqueryJS); $openlayersJS = $a->get_baseurl($ssl_state)."/view/theme/diabook/js/OpenLayers.js"; - $a->page['htmlhead'] .= sprintf('', $openlayersJS); + $a->page['htmlhead'] .= sprintf('', $openlayersJS); $mqmouseposJS = $a->get_baseurl($ssl_state)."/view/theme/diabook/js/jquery.mapquery.mqMousePosition.js"; - $a->page['htmlhead'] .= sprintf('', $mqmouseposJS); + $a->page['htmlhead'] .= sprintf('', $mqmouseposJS); $mousewheelJS = $a->get_baseurl($ssl_state)."/view/theme/diabook/js/jquery.mousewheel.js"; - $a->page['htmlhead'] .= sprintf('', $mousewheelJS); + $a->page['htmlhead'] .= sprintf('', $mousewheelJS); $mqlegendJS = $a->get_baseurl($ssl_state)."/view/theme/diabook/js/jquery.mapquery.legend.js"; - $a->page['htmlhead'] .= sprintf('', $mqlegendJS); + $a->page['htmlhead'] .= sprintf('', $mqlegendJS); $mqlayermanagerJS = $a->get_baseurl($ssl_state)."/view/theme/diabook/js/jquery.mapquery.mqLayerManager.js"; - $a->page['htmlhead'] .= sprintf('', $mqlayermanagerJS); + $a->page['htmlhead'] .= sprintf('', $mqlayermanagerJS); } $a->page['htmlhead'] .= ' @@ -236,7 +236,7 @@ if ($color=="dark") $color_path = "/diabook-dark/"; $a->page['htmlhead'] .= ' '; } -- cgit v1.2.3 From b1c58511ad65b0701db881124cbdf5e414643616 Mon Sep 17 00:00:00 2001 From: Thomas Willingham Date: Sat, 19 May 2012 17:20:27 +0100 Subject: Diabook-dark - some more cleaning up --- view/theme/diabook/diabook-dark/style-network.css | 7 ++++--- view/theme/diabook/diabook-dark/style-profile.css | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) (limited to 'view/theme/diabook') diff --git a/view/theme/diabook/diabook-dark/style-network.css b/view/theme/diabook/diabook-dark/style-network.css index 678e8597c..ee2e76d3b 100644 --- a/view/theme/diabook/diabook-dark/style-network.css +++ b/view/theme/diabook/diabook-dark/style-network.css @@ -464,7 +464,7 @@ code { position: absolute; width: 12em; background: #2e2f2e; - color: #2e2f2e; + color: #eec; margin: 0px; padding: 1em; list-style: none; @@ -667,7 +667,7 @@ nav .nav-menu-icon:hover { } nav .nav-menu-icon.selected { - background-color: #fff; + background-color: #308dbf; } nav .nav-menu-icon img { width: 22px; @@ -1434,7 +1434,8 @@ transition: all 0.2s ease-in-out; } .wall-item-comment-wrapper textarea { height: 2.0em; - width: 100%; + /**No idea what's going on here, but at 100%, it's fugly **/ + width: 98% !important; font-size: 10px; color: #999999; border: 1px solid #2e2e2f; diff --git a/view/theme/diabook/diabook-dark/style-profile.css b/view/theme/diabook/diabook-dark/style-profile.css index 4b6bc15b5..216ccfc58 100644 --- a/view/theme/diabook/diabook-dark/style-profile.css +++ b/view/theme/diabook/diabook-dark/style-profile.css @@ -1216,7 +1216,7 @@ right_aside { /* background: #F1F1F1; */ } -right_aside a{color: #1872A2;} +right_aside a{color: #88a9d2;} right_aside h3 {border-bottom: 1px solid #D2D2D2; padding-top: 5px; padding-bottom: 0px; padding-left: 9px; margin-bottom: 0px; margin-top:30px;} right_aside .directory-item { width: 50px; height: 50px; vertical-align: center; text-align: center; } -- cgit v1.2.3 From 8c80fe0bf51fa472ddf9bf225490e47ea1bf4a7f Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Sun, 20 May 2012 00:11:32 +0200 Subject: Performance tests --- view/theme/diabook/theme.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'view/theme/diabook') diff --git a/view/theme/diabook/theme.php b/view/theme/diabook/theme.php index de7e41841..83079782e 100755 --- a/view/theme/diabook/theme.php +++ b/view/theme/diabook/theme.php @@ -18,6 +18,11 @@ $a->page['htmlhead'] .= sprintf('', $diabook_ //init css on network and profilepages $cssFile = null; + +// Preload config +load_config("diabook"); +load_pconfig(local_user(), "diabook"); + //get statuses of boxes at right-hand-column $close_pages = false; $site_close_pages = get_config("diabook", "close_pages" ); -- cgit v1.2.3