Skip to content
This repository has been archived by the owner. It is now read-only.

Commit

Permalink
in process, adding nav options.
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewmbacon committed Jun 2, 2015
1 parent 62634c2 commit 1c02927
Show file tree
Hide file tree
Showing 5 changed files with 751 additions and 4 deletions.
1 change: 0 additions & 1 deletion functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -225,5 +225,4 @@ function metaslider_filmstrip_alt_tags( $list_item, $post, $url ) {
return $list_item;
}
add_filter( 'metaslider_filmstrip_list_item', 'metaslider_filmstrip_alt_tags', 10, 3 );

?>
12 changes: 11 additions & 1 deletion header.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,17 @@
<div id="nav-wrapper">
<div class="container">
<?php
include 'inc/nav.php';
if ($navStyle == 'drop-multi'){
include 'inc/nav-drop-multi.php';
} else if ($navStyle == 'tabs'){
include 'inc/nav-tabs.php';
} else if ($navStyle == 'maxmegamenu'){
include 'inc/nav-maxmegamenu.php';
} else if ($navStyle == 'maxmegamenu'){
include 'inc/nav-maxmegamenu.php';
} else {
include 'inc/nav.php';
}
?>
</div>
</div>
Expand Down
6 changes: 4 additions & 2 deletions inc/customizer-nav.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
$wp_customize->add_setting( 'navoption1', //Give it a SERIALIZED name (so all theme settings can live under one db record)
array(
'default' => 'drop', //Default setting/value to save
'type' => 'theme_mod', //Is this an 'option' or a 'theme_mod'?
'type' => 'option', //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)?
)
Expand All @@ -14,7 +14,9 @@
'choices' => array(
'drop'=>'Dropdowns',
'drop-multi' => 'Multi-level Dropdowns',
'tabs'=>'Tabs'
'tabs'=>'Tabs',
'maxmegamenu'=>'Maxmegamenu Dropdown',
'left'=>'Left Only'
)
)
);
Expand Down
12 changes: 12 additions & 0 deletions inc/nav-maxmegamenu.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?php
wp_nav_menu(
array(
'menu_class' => 'nav navbar-nav'.$nav1.' '.$nav2,
'theme_location' => 'primary', /* where in the theme it's assigned */
'container' => false, /* container class */
'fallback_cb' => 'hale_main_nav_fallback',
'items_wrap' => '<ul id="%1$s" class="%2$s"><li><a href="'.home_url().'">Home</a></li>%3$s</ul>'
)
);

?>
Loading

0 comments on commit 1c02927

Please sign in to comment.