Current path: home/webdevt/www/cryptoimpot.fr/wp-content/themes/spacious/inc/customizer/options/header/
?? Go up: /home/webdevt/www/cryptoimpot.fr/wp-content/themes/spacious/inc/customizer/options
<?php
/**
* Class to include Header Main Area customize options.
*
* Class Spacious_Customize_Site_Identity_Options
*
* @package ThemeGrill
* @subpackage Spacious
* @since Spacious 1.9.0
*/
// Exit if accessed directly.
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
/**
* Class to include Header Main Area customize options.
*
* Class Spacious_Customize_Site_Identity_Options
*/
class Spacious_Customize_Site_Identity_Options extends Spacious_Customize_Base_Option {
/**
* Include customize options.
*
* @param array $options Customize options provided via the theme.
* @param \WP_Customize_Manager $wp_customize Theme Customizer object.
*
* @return mixed|void Customizer options for registering panels, sections as well as controls.
*/
public function register_options( $options, $wp_customize ) {
$configs = array(
array(
'name' => 'logo_text_visibility_heading',
'type' => 'control',
'control' => 'spacious-title',
'label' => esc_html__( 'Visibility', 'spacious' ),
'section' => 'title_tagline',
'priority' => 0,
),
// Header logo placement option.
array(
'name' => 'spacious_show_header_logo_text',
'default' => 'text_only',
'type' => 'control',
'control' => 'radio',
'label' => esc_html__( 'Choose the option that you want.', 'spacious' ),
'section' => 'title_tagline',
'choices' => array(
'logo_only' => esc_html__( 'Header Logo Only', 'spacious' ),
'text_only' => esc_html__( 'Header Text Only', 'spacious' ),
'both' => esc_html__( 'Show Both', 'spacious' ),
'none' => esc_html__( 'Disable', 'spacious' ),
),
'priority' => 1,
),
array(
'name' => 'site_logo_heading',
'type' => 'control',
'control' => 'spacious-title',
'label' => esc_html__( 'Site Logo', 'spacious' ),
'section' => 'title_tagline',
'priority' => 5,
),
array(
'name' => 'spacious_different_retina_logo',
'type' => 'control',
'control' => 'checkbox',
'default' => 0,
'label' => esc_html__( 'Different Logo for Retina Devices?', 'spacious' ),
'section' => 'title_tagline',
'priority' => 6,
),
array(
'name' => 'spacious_retina_logo_upload',
'type' => 'control',
'control' => 'image',
'label' => esc_html__( 'Retina Logo', 'spacious' ),
'section' => 'title_tagline',
'priority' => 7,
'dependency' => array(
'spacious_different_retina_logo',
'!=',
0,
),
),
array(
'name' => 'site_icon_heading',
'type' => 'control',
'control' => 'spacious-title',
'label' => esc_html__( 'Site Icon', 'spacious' ),
'section' => 'title_tagline',
'priority' => 8,
),
array(
'name' => 'site_title_heading',
'type' => 'control',
'control' => 'spacious-title',
'label' => esc_html__( 'Site Title', 'spacious' ),
'section' => 'title_tagline',
'priority' => 9,
),
array(
'name' => 'site_tagline_heading',
'type' => 'control',
'control' => 'spacious-title',
'label' => esc_html__( 'Site Tagline', 'spacious' ),
'section' => 'title_tagline',
'priority' => 10,
),
/**
* Colors.
*/
array(
'name' => 'header_text_color_heading',
'type' => 'control',
'control' => 'spacious-title',
'label' => esc_html__( 'Colors', 'spacious' ),
'section' => 'title_tagline',
'priority' => 15,
),
);
$options = array_merge( $options, $configs );
return $options;
}
}
return new Spacious_Customize_Site_Identity_Options();