File "mouse_pointer.php"

Full Path: /home/adniftyx/public_html/wp-content/themes/credio/inc/customizer/mouse_pointer.php
File size: 8.17 KB
MIME-type: text/x-php
Charset: utf-8

<?php
function credio_mouse_pointer_panel($credio_customizer, $priority)
{
    $credio_customizer->add_section('credio_mouse_pt_setting', array(
        'title' => esc_html__('Mouse Pointer Setting', 'credio'),
        'priority' => $priority,
        'panel' => 'credio_options_panel',
    ));

    //Start enabal global setting
    $credio_customizer->add_setting('credio_mouse_pt_enabel_pointer',
        array(
            'default' => '1',
            'sanitize_callback' => 'credio_sanitize_integer',
        )
    );
    $credio_customizer->add_control(
        new credio_Customize_Switch_Control(
            $credio_customizer,
            'credio_mouse_pt_enabel_pointer',
            array(
                'type' => 'switch',
                'label' => esc_html__('Show Pointer', 'credio'),
                'description' => esc_html__('You can show or hide Mouse Pointer', 'credio'),
                'section' => 'credio_mouse_pt_setting',
            )
        )
    );
    //End enabal global setting

    //Start separator
    $credio_customizer->add_setting(
        'mouse_pt_hr_0',
        array(
            'default' => '',
            'sanitize_callback' => 'esc_html',
        )
    );
    $credio_customizer->add_control(
        new credio_Separator_Control(
            $credio_customizer,
            'mouse_pt_hr_0',
            array(
                'settings' => 'mouse_pt_hr_0',
                'section' => 'credio_mouse_pt_setting',
            )
        )
    );
    //End separator

    //Start Body Background Color
    $credio_customizer->add_setting(
        'credio_mouse_pt_pointer_border_color'
    );
    $credio_customizer->add_control(
        new WP_Customize_Color_Control(
            $credio_customizer,
            'credio_mouse_pt_pointer_border_color',
            array(
                'label' => esc_html__('Pointer Border', 'credio'),
                'description' => esc_html__('Pick color', 'credio'),
                'section' => 'credio_mouse_pt_setting',
                'settings' => 'credio_mouse_pt_pointer_border_color',
            )
        )
    );
    //End Body Background Color

    //Start separator
    $credio_customizer->add_setting(
        'mouse_pt_hr_1',
        array(
            'default' => '',
            'sanitize_callback' => 'esc_html',
        )
    );
    $credio_customizer->add_control(
        new credio_Separator_Control(
            $credio_customizer,
            'mouse_pt_hr_1',
            array(
                'settings' => 'mouse_pt_hr_1',
                'section' => 'credio_mouse_pt_setting',
            )
        )
    );
    //End separator

	//Start container size
    $credio_customizer->add_setting(
        'credio_mouse_pt_border_width',
        array(
            'default' => esc_html__('2', 'credio'),
            'transport' => 'refresh',
        )
    );

    $credio_customizer->add_control('credio_mouse_pt_border_width', array(
        'section' => 'credio_mouse_pt_setting',
        'label' => esc_html__('Border Width', 'credio'),
        'description' => esc_html__('Enter Pointer Border Width', 'credio'),
        'type' => 'text',
        'setting' => 'credio_mouse_pt_border_width',
    ));
    //End container size

    //Start separator
    $credio_customizer->add_setting(
        'mouse_pt_hr_2',
        array(
            'default' => '',
            'sanitize_callback' => 'esc_html',
        )
    );
    $credio_customizer->add_control(
        new credio_Separator_Control(
            $credio_customizer,
            'mouse_pt_hr_2',
            array(
                'settings' => 'mouse_pt_hr_2',
                'section' => 'credio_mouse_pt_setting',
            )
        )
    );
    //End separator

    //Start Body Background Color
    $credio_customizer->add_setting(
        'credio_mouse_pt_pointer_bg_color'
    );
    $credio_customizer->add_control(
        new WP_Customize_Color_Control(
            $credio_customizer,
            'credio_mouse_pt_pointer_bg_color',
            array(
                'label' => esc_html__('Pointer Background', 'credio'),
                'description' => esc_html__('Enter Pointer Background color', 'credio'),
                'section' => 'credio_mouse_pt_setting',
                'settings' => 'credio_mouse_pt_pointer_bg_color',
            )
        )
    );
    //End Body Background Color

    //Start separator
    $credio_customizer->add_setting(
        'mouse_pt_hr_4',
        array(
            'default' => '',
            'sanitize_callback' => 'esc_html',
        )
    );
    $credio_customizer->add_control(
        new credio_Separator_Control(
            $credio_customizer,
            'mouse_pt_hr_4',
            array(
                'settings' => 'mouse_pt_hr_4',
                'section' => 'credio_mouse_pt_setting',
            )
        )
    );
    //End separator	

	//Start container size
	$credio_customizer->add_setting(
		'credio_mouse_pt_diameter',
		array(
			'default' => esc_html__('40', 'credio'),
			'transport' => 'refresh',
		)
	);

	$credio_customizer->add_control('credio_mouse_pt_diameter', array(
		'section' => 'credio_mouse_pt_setting',
		'label' => esc_html__('Diameter', 'credio'),
		'description' => esc_html__('Enter Pointer diameter Size', 'credio'),
		'type' => 'text',
		'setting' => 'credio_mouse_pt_diameter',
	));
	//End container size

    //Start separator
    $credio_customizer->add_setting(
        'mouse_pt_hr_5',
        array(
            'default' => '',
            'sanitize_callback' => 'esc_html',
        )
    );
    $credio_customizer->add_control(
        new credio_Separator_Control(
            $credio_customizer,
            'mouse_pt_hr_5',
            array(
                'settings' => 'mouse_pt_hr_5',
                'section' => 'credio_mouse_pt_setting',
            )
        )
    );
    //End separator	

	//Start container size
    $credio_customizer->add_setting(
        'credio_mouse_pt_pointer_speed',
        array(
            'default' => esc_html__('4', 'credio'),
            'transport' => 'refresh',
        )
    );

    $credio_customizer->add_control('credio_mouse_pt_pointer_speed', array(
        'section' => 'credio_mouse_pt_setting',
        'label' => esc_html__('Pointer Speed', 'credio'),
        'description' => esc_html__('Enter Pointer Scale Size', 'credio'),
        'type' => 'text',
        'setting' => 'credio_mouse_pt_pointer_speed',
    ));
    //End container size

    //Start separator
    $credio_customizer->add_setting(
        'mouse_pt_hr_6',
        array(
            'default' => '',
            'sanitize_callback' => 'esc_html',
        )
    );
    $credio_customizer->add_control(
        new credio_Separator_Control(
            $credio_customizer,
            'mouse_pt_hr_6',
            array(
                'settings' => 'mouse_pt_hr_6',
                'section' => 'credio_mouse_pt_setting',
            )
        )
    );
    //End separator

	//Start container size
    $credio_customizer->add_setting(
        'credio_mouse_pt_hover_scale',
        array(
            'default' => esc_html__('1.3', 'credio'),
            'transport' => 'refresh',
        )
    );

    $credio_customizer->add_control('credio_mouse_pt_hover_scale', array(
        'section' => 'credio_mouse_pt_setting',
        'label' => esc_html__('Hover Scale', 'credio'),
        'description' => esc_html__('Enter Pointer Scale Size', 'credio'),
        'type' => 'text',
        'setting' => 'credio_mouse_pt_hover_scale',
    ));
    //End container size

    //Start separator
    $credio_customizer->add_setting(
        'mouse_pt_hr_7',
        array(
            'default' => '',
            'sanitize_callback' => 'esc_html',
        )
    );
    $credio_customizer->add_control(
        new credio_Separator_Control(
            $credio_customizer,
            'mouse_pt_hr_7',
            array(
                'settings' => 'mouse_pt_hr_7',
                'section' => 'credio_mouse_pt_setting',
            )
        )
    );
    //End separator

}