Skip to content

Instantly share code, notes, and snippets.

@surefirewebserv
Created September 27, 2012 18:26
Show Gist options
  • Save surefirewebserv/3795553 to your computer and use it in GitHub Desktop.
Save surefirewebserv/3795553 to your computer and use it in GitHub Desktop.
Array for Structural Wraps
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) );
}
@surefirewebserv
Copy link
Author

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' )

@surefirewebserv
Copy link
Author

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