/**
 * @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 )
	) );
}
Ejemplo n.º 2
0
/**
 * Registration of theme scripts and styles
 *
 * @author	Konstantin Obenland
 * @since	1.0.0 - 05.02.2012
 *
 * @return	void
 */
function the_bootstrap_register_scripts_styles()
{
    if (!is_admin()) {
        $theme_version = _the_bootstrap_version();
        $suffix = (defined('SCRIPT_DEBUG') and SCRIPT_DEBUG) ? '' : '.min';
        /**
         * Scripts
         */
        wp_register_script('tw-bootstrap', get_template_directory_uri() . "/js/bootstrap{$suffix}.js", array('jquery'), '2.0.3', true);
        wp_register_script('the-bootstrap', get_template_directory_uri() . "/js/the-bootstrap{$suffix}.js", array('tw-bootstrap'), $theme_version, true);
        /**
         * Styles
         */
        wp_register_style('tw-bootstrap', get_template_directory_uri() . "/css/bootstrap{$suffix}.css", array(), '2.0.3');
        /*		
        		wp_register_style(
        			'the-fonts',
        			get_template_directory_uri() . "/css/fonts.css",
        			array(),
        			'1.0'
        		);
        */
        wp_register_style('the-bootstrap', get_template_directory_uri() . "/style.css", array('tw-bootstrap'), $theme_version);
    }
}
Ejemplo n.º 3
0
/**
 * Properly enqueue styles for theme options page.
 * 
 * @author	Automattic
 * @since	1.3.0 - 06.04.2012
 * 
 * @return	void
 */
function the_bootstrap_admin_enqueue_scripts($hook_suffix)
{
    wp_enqueue_style('the-bootstrap-theme-options', get_template_directory_uri() . '/css/theme-options.css', false, _the_bootstrap_version());
}