Commit Graph

39 Commits

Author SHA1 Message Date
Foxaii
47df2fb3fa Unset menu bugfix. Support for additional classes.
Previous nav walker resulted in an error when no menu is set.
This fix supports supplementary classes i.e. nav-header nav-header-blue. 
N.B. Bootstrap classes (nav-header, divider, divider-vertical) must be added first.
2012-10-15 21:41:51 +02:00
jloosli
a01a1281bb fix roots_fix_duplicate_subfolder_urls isset check
function checked if $matches[1] & $matches[2] were set, but next line operates on $matches[1][0] & $matches[2][0], so under certain circumstances, you get the following Notice: Undefined offset: 0.

Now it checks for the [0] offsets from the start.
2012-10-11 17:18:40 -06:00
Scott Walkinshaw
e0979b7b62 Return instead of echo class names 2012-10-10 16:04:47 -04:00
Scott Walkinshaw
f45f4f5fcb Comment should be consistent 2012-10-03 15:03:20 -04:00
Scott Walkinshaw
a27b194fe6 Allow the sidebar config functions to accepts args 2012-10-03 14:53:30 -04:00
Scott Walkinshaw
3df8d9901e Move Nav customizations into its own file
Considering the nav customization/cleanup code is fairly involved and
important, it shouldn't be hidden in the middle of cleanup.php
2012-10-03 13:44:35 -04:00
Scott Walkinshaw
c02f877b59 Fix callback reference 2012-10-02 15:52:31 -04:00
Scott Walkinshaw
7f5eea8c69 Refactor Roots_Sidebar 2012-10-02 15:37:26 -04:00
Scott Walkinshaw
85596e11d0 Clarity over cleverness 2012-10-02 15:20:28 -04:00
Scott Walkinshaw
a7ab3e0307 Minor naming tweak 2012-10-02 15:20:28 -04:00
Scott Walkinshaw
588ea8afa3 Refactor sidebar configuration
Instead of editing an if statement (which could get ugly quickly), just
edit configuration arrays of conditional tags and page template checks.
2012-10-02 15:20:28 -04:00
Scott Walkinshaw
af1b44e3dc Better comment regarding $content_width 2012-09-26 12:07:06 -04:00
Scott Walkinshaw
eec11c76b9 Re-order init file 2012-09-21 16:27:33 -04:00
Scott Walkinshaw
ba56e0fa4d Re-organize theme configuration and setup
functions.php should not contain any Roots specific code. It's just used
to require files and bootstrap Roots. lib/init.php now handles initial
theme setup and defines helper constants which did not belong in
lib/config.php.

config.php should be limited to strictly configuration settings.
2012-09-21 16:20:03 -04:00
Scott Walkinshaw
81d1c8dd9e Update to jQuery 1.8.2 2012-09-21 08:32:07 -06:00
Scott Walkinshaw
671cb95ebc Replace has_posts with built-in have_posts 2012-09-20 12:42:46 -06:00
Scott Walkinshaw
25d13f4a4d Simplify updating instance 2012-09-20 10:30:48 -06:00
Scott Walkinshaw
0f375836f2 Use PHP5 __construct 2012-09-20 10:30:39 -06:00
Scott Walkinshaw
88f9863cf2 Fix initial display 2012-09-20 10:24:27 -06:00
Scott Walkinshaw
afa059dfa6 DRY up vCard Widget 2012-09-20 00:16:32 -04:00
Scott Walkinshaw
b61a3b0285 Move roots_entry_meta into its own template
No need for this HTML to be in a function. Now instead of calling the
function, just use get_template_part
2012-09-19 16:03:20 -04:00
Scott Walkinshaw
267e24e9a3 Move Google Analytics code into footer template
Once again, HTML tags should be in the templates when possible.

actions.php is no longer needed now as well.
2012-09-19 16:03:20 -04:00
Scott Walkinshaw
e08024b730 Move feed link into template
All HTML should be in the templates whenever possible.
2012-09-19 16:03:20 -04:00
Scott Walkinshaw
b9cb9de4b9 Move is_element_empty function to utils 2012-09-19 14:57:14 -04:00
Scott Walkinshaw
a54850cd44 Formatting 2012-09-19 14:46:06 -04:00
Scott Walkinshaw
c707448a72 Enforce code standards
Correct this is not.
2012-09-18 16:47:46 -03:00
Foxaii
c27b9218b4 Corrected spacing. 2012-09-17 01:24:42 +02:00
Foxaii
83b0984eab Support for dividers & nav header classes 2012-09-16 21:45:33 +02:00
Scott Walkinshaw
d3497a7063 Fixes #542 - Simplify nav & add 3rd level dropdown 2012-09-12 12:34:30 -06:00
Ben Word
580d3f26d1 Add jQuery version to wp_register_script 2012-09-06 19:36:44 -05:00
Ben Word
f9959b4da0 Update to Bootstrap 2.1.1, jQuery 1.8.1, Modernizr 2.6.2 2012-09-04 23:34:13 -05:00
Ben Word
f538aa0116 Cleanup clean up, reorganization 2012-09-03 09:43:38 -05:00
Linus Metzler
b9cc398396 fixed dropdown bug
when a dropdown parent contains a link itself, a data-target="#" is needed
2012-08-26 22:36:30 +03:00
Linus Metzler
181e9f7a68 Revert "fixed dropdown bug"
This reverts commit c89d68fc7c.
2012-08-26 21:34:10 +02:00
Linus Metzler
c89d68fc7c fixed dropdown bug
Due to updates (jQuery and Bootstrap), dropdowns stopped working because
of missing "data-target" (see
http://twitter.github.com/bootstrap/javascript.html#dropdowns)
2012-08-26 12:39:46 +02:00
Ben Word
4a1129bc73 Keep plugins/ rewrite to root 2012-08-21 09:10:05 -05:00
Ben Word
63d3f6185a Ref #525 - Add placeholder files for custom post types & metaboxes 2012-08-20 19:31:59 -05:00
Ben Word
611d4d9f2f Ref #525 - Move css/, img/, and js/ into assets/ 2012-08-20 19:28:36 -05:00
Ben Word
5c777f361b Rename inc/ to lib/ 2012-08-20 19:19:39 -05:00