/** * Get all theme options. * * @since 3.0.0 * * @return array Theme options. */ function blue_planet_get_option_all() { $defaults = blue_planet_get_default_options(); $output = get_theme_mod('blueplanet_options', $defaults); $output = array_merge($defaults, $output); return $output; }
/** * Add postMessage support for site title and description for the Theme Customizer. * * @param WP_Customize_Manager $wp_customize Theme Customizer object. */ function blue_planet_customize_register($wp_customize) { $new_defaults = blue_planet_get_default_options(); $options = blue_planet_get_option_all(); // Custom Controls. require get_template_directory() . '/inc/customizer-includes/controls.php'; $wp_customize->register_control_type('Blue_Planet_Customize_Heading_Control'); $wp_customize->register_control_type('Blue_Planet_Customize_Dropdown_Taxonomies_Control'); // Theme Settings. require get_template_directory() . '/inc/customizer-includes/theme.php'; // Slider Settings. require get_template_directory() . '/inc/customizer-includes/slider.php'; // Reset Settings. require get_template_directory() . '/inc/customizer-includes/reset.php'; }
/** * Get default theme options. * * @since 1.0.0 * @deprecated 3.0 * * @return array Default theme options. */ function blueplanet_get_default_options() { _deprecated_function('blueplanet_get_default_options', '3.0', 'blue_planet_get_default_options'); return blue_planet_get_default_options(); }