Пример #1
0
/**
 * Adds controls to change settings instantly
 *
 * @author	Konstantin Obenland
 * @since	1.4.0 - 05.05.2012
 *
 * @return	void
 */
function the_bootstrap_customize_enqueue_scripts()
{
    wp_enqueue_script('the-bootstrap-customize', get_template_directory_uri() . '/js/theme-customizer.js', array('customize-preview'), _the_bootstrap_version(), true);
    wp_localize_script('the-bootstrap-customize', 'the_bootstrap_customize', array('sitename' => get_bloginfo('name', 'display'), 'searchform' => the_bootstrap_navbar_searchform(false)));
}
Пример #2
0
									</a>
									<?php 
    if (the_bootstrap_options()->navbar_site_name) {
        ?>
									<span class="brand"><?php 
        bloginfo('name');
        ?>
</span>
									<?php 
    }
    ?>
									<div class="nav-collapse">
										<?php 
    wp_nav_menu(array('theme_location' => 'primary', 'menu_class' => 'nav', 'depth' => 3, 'fallback_cb' => false, 'walker' => new The_Bootstrap_Nav_Walker()));
    if (the_bootstrap_options()->navbar_searchform) {
        the_bootstrap_navbar_searchform();
    }
    ?>
								    </div>
								</div>
							</div>
						</div>
						<?php 
}
?>
					</nav><!-- #access -->
					<?php 
if (function_exists('yoast_breadcrumb')) {
    yoast_breadcrumb('<nav id="breadcrumb" class="breadcrumb">', '</nav>');
}
tha_header_bottom();