diff --git a/inc/customizer.php b/inc/customizer.php index a6f696e..4b69066 100644 --- a/inc/customizer.php +++ b/inc/customizer.php @@ -78,45 +78,27 @@ function huskypress_parentSite_register( $wp_customize ) function huskypress_navoption_register( $wp_customize ) { - $wp_customize->add_setting( 'navoption1', //Give it a SERIALIZED name (so all theme settings can live under one db record) + $wp_customize->add_setting( 'top_nav_style', //Give it a SERIALIZED name (so all theme settings can live under one db record) array( - 'default' => 'textnav', //Default setting/value to save + 'default' => 'bootstrap', //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('navoption1', array( + $wp_customize->add_control('top_nav_style', array( 'type' => 'select', - 'label' => 'Navigation Option 1', + 'label' => 'Top Navigation Style', 'section' => 'nav', 'choices' => array( - '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' + 'bootstrap'=>'Bootstrap Dropdown Menu', + 'maxmegamenu' => 'Mega Dropdown Menu' ) ) ); } - add_action( 'customize_register', 'huskypress_navoption_register' ); +add_action( 'customize_register', 'huskypress_navoption_register' ); + function huskypress_layoutoption_register( $wp_customize ) {