Skip to content

Commit

Permalink
Changing Nav options
Browse files Browse the repository at this point in the history
Not actually used in any themes yet, will not effect anything.
  • Loading branch information
andrewmbacon committed Apr 14, 2015
1 parent f8f887d commit 1378c89
Showing 1 changed file with 8 additions and 26 deletions.
34 changes: 8 additions & 26 deletions inc/customizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 )
{
Expand Down

0 comments on commit 1378c89

Please sign in to comment.