| Server IP : 172.67.147.195 / Your IP : 216.73.216.142 Web Server : Apache/2 System : Linux hosting8537.lvs 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 User : mienphi ( 1014) PHP Version : 8.2.14 Disable Function : exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /home/mienphi/public_html/wp-content/themes/eduma/inc/admin/customizer-sections/ |
Upload File : |
<?php
/**
* Section Header Layout
*
* @package Eduma
*/
thim_customizer()->add_section(
array(
'id' => 'header_layout',
'title' => esc_html__( 'Layouts', 'eduma' ),
'panel' => 'header',
'priority' => 20,
)
);
thim_customizer()->add_field(
array(
'id' => 'thim_desc_header_tpl',
'type' => 'tp_notice',
'description' => sprintf( __( 'This header is built by Thim Elementor Kit, you can edit and configure it in %s.', 'eduma' ), '<a href="' . admin_url( 'edit.php?post_type=thim_elementor_kit&thim_elementor_type=header' ) . '" target="_blank">' . __( 'Thim Elementor Kit', 'eduma' ) . '</a>' ),
'section' => 'header_layout',
'priority' => 11,
'wrapper_attrs' => array(
'class' => '{default_class} hide' . thim_customizer_extral_class( 'header' )
)
)
);
// Select Header Layout
thim_customizer()->add_field(
array(
'id' => 'thim_header_style',
'type' => 'radio-image',
'label' => esc_html__( 'Layout', 'eduma' ),
'tooltip' => esc_html__( 'Allows you can select header layout for header on your site. ', 'eduma' ),
'section' => 'header_layout',
'default' => 'header_v1',
'priority' => 10,
'choices' => apply_filters( 'thim_header_layouts', array(
'header_v1' => THIM_URI . 'images/header/header_v1_thumb.jpg',
'header_v2' => THIM_URI . 'images/header/header_v2_thumb.jpg',
'header_v3' => THIM_URI . 'images/header/header_v3_thumb.jpg',
'header_v4' => THIM_URI . 'images/header/header_v4_thumb.jpg',
'header_v5' => THIM_URI . 'images/header/header_v5_thumb.jpg',
) ),
'wrapper_attrs' => array(
'class' => '{default_class} thim-col-3' . thim_customizer_extral_class( 'header' )
)
)
);
// Select Header Size
thim_customizer()->add_field(
array(
'id' => 'thim_header_size',
'type' => 'select',
'label' => esc_html__( 'Size', 'eduma' ),
'tooltip' => esc_html__( 'Allows you can select size layout for header layout. ', 'eduma' ),
'section' => 'header_layout',
'priority' => 15,
'multiple' => 0,
'default' => 'default',
'choices' => array(
'default' => esc_html__( 'Default', 'eduma' ),
'full_width' => esc_html__( 'Full width', 'eduma' ),
),
'wrapper_attrs' => array(
'class' => '{default_class}' . thim_customizer_extral_class( 'header' )
)
)
);
// Select Header Position
thim_customizer()->add_field(
array(
'id' => 'thim_header_position',
'type' => 'select',
'label' => esc_html__( 'Position', 'eduma' ),
'tooltip' => esc_html__( 'Allows you can select position layout for header layout. ', 'eduma' ),
'section' => 'header_layout',
'priority' => 20,
'multiple' => 0,
'default' => 'header_overlay',
'choices' => array(
'header_default' => esc_html__( 'Default', 'eduma' ),
'header_overlay' => esc_html__( 'Overlay', 'eduma' ),
),
'wrapper_attrs' => array(
'class' => '{default_class}' . thim_customizer_extral_class( 'header' )
)
)
);
thim_customizer()->add_field(
array(
'type' => 'select',
'id' => 'thim_line_active_item_menu',
'label' => esc_html__( 'Line Active Item', 'eduma' ),
'default' => 'bottom',
'priority' => 13,
'multiple' => 0,
'section' => 'header_main_menu',
'choices' => array(
'noline' => esc_html__( 'No line', 'eduma' ),
'top' => esc_html__( 'Top', 'eduma' ),
'bottom' => esc_html__( 'Bottom', 'eduma' ),
),
'active_callback' => array(
array(
'setting' => 'thim_header_style',
'operator' => '!=',
'value' => 'header_v4',
),
),
'wrapper_attrs' => array(
'class' => '{default_class}' . thim_customizer_extral_class( 'header' )
)
)
);