From 5685d3f387d60484b24769844488a866a08c6e6b Mon Sep 17 00:00:00 2001 From: Sean O'Brien Date: Sat, 10 Mar 2012 11:18:49 -0500 Subject: fixes to boostrap, new icons, mobile view works --- themes/default/img/freedombox-logo-250px.png | Bin 0 -> 14880 bytes themes/default/js/menu.js | 19 ++++++++++++++++--- themes/default/js/plugins.js | 23 +++++++++++++++++++++++ themes/default/screenshot.png | Bin 117307 -> 118877 bytes 4 files changed, 39 insertions(+), 3 deletions(-) create mode 100644 themes/default/img/freedombox-logo-250px.png (limited to 'themes/default') diff --git a/themes/default/img/freedombox-logo-250px.png b/themes/default/img/freedombox-logo-250px.png new file mode 100644 index 0000000..b55d3c7 Binary files /dev/null and b/themes/default/img/freedombox-logo-250px.png differ diff --git a/themes/default/js/menu.js b/themes/default/js/menu.js index eb6b5bb..8617d42 100644 --- a/themes/default/js/menu.js +++ b/themes/default/js/menu.js @@ -11,12 +11,16 @@ function main_menu(items) { } // Line break labels - label = i["label"]; + /*label = i["label"]; if (label.search(" ") != -1) { label = label.replace(" ", "
"); } else { label = " 
" + label; - } + }*/ + + // Add icon before labels + icon = ''; + label = icon + i["label"]; output = output +'' + label + ""; } @@ -32,11 +36,20 @@ function render_items(items) { // Handle active page if (i["active"]) { active = ' class="active"'; + + // Add icon before labels + icon = ''; + label = icon + i["label"]; } else { active = ''; + + // Add icon before labels + icon = ''; + label = icon + i["label"]; } - output = output +'' + i['label'] + ""; + output = output +'' + label + ""; + if (i['subs']) { output += render_items(i['subs']); } diff --git a/themes/default/js/plugins.js b/themes/default/js/plugins.js index b79bf73..07c4f2d 100644 --- a/themes/default/js/plugins.js +++ b/themes/default/js/plugins.js @@ -9,3 +9,26 @@ window.log = function f(){ log.history = log.history || []; log.history.push(arg // place any jQuery/helper plugins in here, instead of separate, slower script files. +// remap jQuery to $ +(function($){})(window.jQuery); + + +/* trigger when page is ready */ +$(document).ready(function (){ + + // your functions go here + +}); + + +/* optional triggers + +$(window).load(function() { + +}); + +$(window).resize(function() { + +}); + +*/ diff --git a/themes/default/screenshot.png b/themes/default/screenshot.png index 42c9c52..5e4c621 100644 Binary files a/themes/default/screenshot.png and b/themes/default/screenshot.png differ -- cgit v1.2.3