diff --git a/header.php b/header.php index b54c548..30e4c0a 100644 --- a/header.php +++ b/header.php @@ -6,7 +6,6 @@ * */ include 'inc/vars.php'; -$top_nav_style = get_theme_mod('top_nav_style'); ?> > @@ -38,7 +37,7 @@
diff --git a/inc/customizer.php b/inc/customizer.php index 4b69066..a6f696e 100644 --- a/inc/customizer.php +++ b/inc/customizer.php @@ -78,27 +78,45 @@ function huskypress_parentSite_register( $wp_customize ) function huskypress_navoption_register( $wp_customize ) { - $wp_customize->add_setting( 'top_nav_style', //Give it a SERIALIZED name (so all theme settings can live under one db record) + $wp_customize->add_setting( 'navoption1', //Give it a SERIALIZED name (so all theme settings can live under one db record) array( - 'default' => 'bootstrap', //Default setting/value to save + 'default' => 'textnav', //Default setting/value to save 'type' => 'theme_mod', //Is this an 'option' or a 'theme_mod'? 'capability' => 'edit_theme_options', //Optional. Special permissions for accessing this setting. 'transport' => 'refresh', //What triggers a refresh of the setting? 'refresh' or 'postMessage' (instant)? ) ); - $wp_customize->add_control('top_nav_style', array( + $wp_customize->add_control('navoption1', array( 'type' => 'select', - 'label' => 'Top Navigation Style', + 'label' => 'Navigation Option 1', 'section' => 'nav', 'choices' => array( - 'bootstrap'=>'Bootstrap Dropdown Menu', - 'maxmegamenu' => 'Mega Dropdown Menu' + 'textnav'=>'Text', + 'bar' => 'Bar', + 'stack-top'=>'Tabs' + ) + ) + ); + $wp_customize->add_setting( 'navoption2', //Give it a SERIALIZED name (so all theme settings can live under one db record) + array( + 'default' => 'with-drop', //Default setting/value to save + 'type' => 'theme_mod', //Is this an 'option' or a 'theme_mod'? + 'capability' => 'edit_theme_options', //Optional. Special permissions for accessing this setting. + 'transport' => 'refresh', //What triggers a refresh of the setting? 'refresh' or 'postMessage' (instant)? + ) + ); + $wp_customize->add_control('navoption2', array( + 'type' => 'select', + 'label' => 'Navigation Option 2', + 'section' => 'nav', + 'choices' => array( + 'with-drop'=>'Dropdowns', + 'with-left' => 'Left Nav' ) ) ); } -add_action( 'customize_register', 'huskypress_navoption_register' ); - + add_action( 'customize_register', 'huskypress_navoption_register' ); function huskypress_layoutoption_register( $wp_customize ) {