diff options
author | Sean O'Brien <diggity@diggmobile.(none)> | 2012-03-10 11:18:49 -0500 |
---|---|---|
committer | James Vasile <james@jamesvasile.com> | 2012-03-12 14:39:32 -0400 |
commit | 5685d3f387d60484b24769844488a866a08c6e6b (patch) | |
tree | c3d5a49b299f8713eb00f2f4d644e7c1c79b0736 /themes | |
parent | 2f5c98dd6f8ae91a3800a48a549325a4130acce9 (diff) |
fixes to boostrap, new icons, mobile view works
Diffstat (limited to 'themes')
-rw-r--r-- | themes/default/img/freedombox-logo-250px.png | bin | 0 -> 14880 bytes | |||
-rw-r--r-- | themes/default/js/menu.js | 19 | ||||
-rw-r--r-- | themes/default/js/plugins.js | 23 | ||||
-rw-r--r-- | themes/default/screenshot.png | bin | 117307 -> 118877 bytes |
4 files changed, 39 insertions, 3 deletions
diff --git a/themes/default/img/freedombox-logo-250px.png b/themes/default/img/freedombox-logo-250px.png Binary files differnew file mode 100644 index 0000000..b55d3c7 --- /dev/null +++ b/themes/default/img/freedombox-logo-250px.png 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(" ", "<br />"); } else { label = " <br />" + label; - } + }*/ + + // Add icon before labels + icon = '<i class="' + i["icon"] + ' icon-white nav-icon"></i>'; + label = icon + i["label"]; output = output +'<li' + active + '><a href="' + i["url"] + '"' + active + '>' + label + "</a></li>"; } @@ -32,11 +36,20 @@ function render_items(items) { // Handle active page if (i["active"]) { active = ' class="active"'; + + // Add icon before labels + icon = '<i class="' + i["icon"] + ' icon-white sidenav-icon"></i>'; + label = icon + i["label"]; } else { active = ''; + + // Add icon before labels + icon = '<i class="' + i["icon"] + ' sidenav-icon"></i>'; + label = icon + i["label"]; } - output = output +'<li' + active + '><a href="' + i["url"] + '"' + active + '>' + i['label'] + "</a></li>"; + output = output +'<li' + active + '><a href="' + i["url"] + '"' + active + '>' + label + "</a></li>"; + 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 Binary files differindex 42c9c52..5e4c621 100644 --- a/themes/default/screenshot.png +++ b/themes/default/screenshot.png |