Created
September 27, 2012 18:26
-
-
Save surefirewebserv/3795553 to your computer and use it in GitHub Desktop.
Array for Structural Wraps
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if ($gs_theme_support_functions['three']) { | |
$gs_structural_wrap = of_get_option('gs_structural_wraps', 'none' ); | |
add_theme_support( 'genesis-structural-wraps', array_keys($gs_structural_wrap, 1) ); | |
} |
I got the stupid thing to work.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I just want to return the array correctly but it doesn't work, it returns like this: Array ( [header] => 1 [nav] => 1 [subnav] => 0 [inner] => 0 [footer-widgets] => 0 [footer] => 0 ) when I use the following code:
$gs_structural_wrap = of_get_option('gs_structural_wraps', 'none' );
print_r($gs_structural_wrap);
and I need it to return like this:
array ( 'header', 'nav', 'subnav', 'inner', 'footer-widgets', 'footer' )