
';
$wp_customize->add_section( 'xm_layout_left' , array(
'title' => __( 'Left Layout', 'atmospheres' ),
'description' => sprintf("%s", $img1).__(" The image is on the right and the content on the left", 'atmospheres'),
'priority' => 1,
) );
$wp_customize->add_setting( 'xmlf_activate', array (
'sanitize_callback' => 'atmospheres__sanitize_checkbox',
'default' => false
) );
$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'xmlf_activate', array(
'label' => __( 'Activate Layout on Homepage.', 'atmospheres' ),
'section' => 'xm_layout_left',
'type' => 'checkbox',
) ) );
$wp_customize->add_setting( 'xmlf_title', array (
'sanitize_callback' => 'wp_kses_post',
'default' => 'Left Layout',
) );
$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'xmlf_title', array(
'label' => __( 'Title Text', 'atmospheres' ),
'section' => 'xm_layout_left',
'type' => 'text',
) ) );
$wp_customize->add_setting( 'xmlf_description', array (
'sanitize_callback' => 'wp_kses_post',
'default' => 'Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry’s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.',
) );
$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'xmlf_description', array(
'label' => __( 'Description Text', 'atmospheres' ),
'section' => 'xm_layout_left',
'type' => 'textarea',
) ) );
$wp_customize->add_setting( 'xmlf_button_text', array (
'sanitize_callback' => 'sanitize_text_field',
'default' => 'Read More',
) );
$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'xmlf_button_text', array(
'label' => __( 'Button Text', 'atmospheres' ),
'section' => 'xm_layout_left',
'type' => 'text',
) ) );
$wp_customize->add_setting( 'xmlf_url', array (
'sanitize_callback' => 'esc_url_raw',
) );
$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'xmlf_url', array(
'label' => __( 'Button URL', 'atmospheres' ),
'section' => 'xm_layout_left',
) ) );
$wp_customize->add_setting( 'xmlf_image', array (
'sanitize_callback' => 'esc_url_raw',
'default' => get_template_directory_uri() . '/images/demo_1.webp',
) );
$wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'xmlf_image', array(
'label' => __( 'Load Image', 'atmospheres' ),
'section' => 'xm_layout_left',
) ) );
$wp_customize->add_setting( 'xmlf_image_animation', array (
'sanitize_callback' => 'atmospheres__sanitize_animations',
'default' => 'fade-left',
) );
$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'xmlf_image_animation', array(
'label' => __( 'Image Animation', 'atmospheres' ),
'section' => 'xm_layout_left',
'type' => 'select',
'choices' => atmospheres__animations(),
) ) );
$wp_customize->add_setting( 'xmlf_text_animation', array (
'sanitize_callback' => 'atmospheres__sanitize_animations',
) );
$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'xmlf_text_animation', array(
'label' => __( 'Text Animation', 'atmospheres' ),
'section' => 'xm_layout_left',
'type' => 'select',
'choices' => atmospheres__animations(),
) ) );
$wp_customize->add_setting( 'xmlf_arrow', array (
'sanitize_callback' => 'atmospheres__sanitize_checkbox',
'default' => true
) );
$wp_customize->add_control( new WP_Customize_Control( $wp_customize, 'xmlf_arrow', array(
'label' => __( 'Activate Arrow.', 'atmospheres' ),
'section' => 'xm_layout_left',
'type' => 'checkbox',
) ) );
$wp_customize->add_setting( 'xmlf_text_color', array (
'sanitize_callback' => 'sanitize_hex_color',
'default' => '#dddddd'
) );
$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'xmlf_text_color', array(
'label' => __( 'Layout Text Color', 'atmospheres' ),
'section' => 'xm_layout_left',
) ) );
$wp_customize->add_setting( 'xmlf_background', array (
'sanitize_callback' => 'sanitize_hex_color',
'default' => '#232323'
) );
$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'xmlf_background', array(
'label' => __( 'Layout Background Color', 'atmospheres' ),
'section' => 'xm_layout_left',
) ) );
$wp_customize->add_setting( 'xmlf_but_background', array (
'sanitize_callback' => 'sanitize_hex_color',
'default' => '#cc4604'
) );
$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'xmlf_but_background', array(
'label' => __( 'Button Background Color', 'atmospheres' ),
'section' => 'xm_layout_left',
) ) );
$wp_customize->add_setting( 'xmlf_but_hover_background', array (
'sanitize_callback' => 'sanitize_hex_color',
'default' => '#ad3903'
) );
$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'xmlf_but_hover_background', array(
'label' => __( 'Button Background Hover Color', 'atmospheres' ),
'section' => 'xm_layout_left',
) ) );
$wp_customize->add_setting( 'xmlf_but_color', array (
'sanitize_callback' => 'sanitize_hex_color',
'default' => '#ffffff'
) );
$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'xmlf_but_color', array(
'label' => __( 'Button Tex Color', 'atmospheres' ),
'section' => 'xm_layout_left',
) ) );
}
add_action( 'customize_register', 'atmospheres_layout_left_customize_register' );
// Front-end
function atmospheres_layout_left () {
if( get_theme_mod( 'xmlf_activate', false) ) {
$title = get_theme_mod( 'xmlf_title', 'Left Layout' );
$description = get_theme_mod( 'xmlf_description', 'Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry’s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. ' );
$image = get_theme_mod( 'xmlf_image', SEOS_THEME_URI . '/images/demo_1.webp' );
$button_text = get_theme_mod( 'xmlf_button_text', 'Read More' );
$xmlf_url = get_theme_mod( 'xmlf_url');
$xmlf_arrow = get_theme_mod( 'xmlf_arrow', true );
?>

" />
![]()
alt="" src="">