| Server IP : 146.59.209.152 / Your IP : 216.73.216.46 Web Server : Apache System : Linux webm005.cluster131.gra.hosting.ovh.net 5.15.167-ovh-vps-grsec-zfs-classid #1 SMP Tue Sep 17 08:14:20 UTC 2024 x86_64 User : infrafs ( 43850) PHP Version : 8.2.29 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/infrafs/www/wp-content/themes/trackstore/framework/admin/meta-boxes/general/ |
Upload File : |
<?php
if ( ! function_exists( 'trackstore_elated_map_general_meta' ) ) {
function trackstore_elated_map_general_meta() {
$general_meta_box = trackstore_elated_create_meta_box(
array(
'scope' => apply_filters( 'trackstore_elated_set_scope_for_meta_boxes', array( 'page', 'post' ) ),
'title' => esc_html__( 'General', 'trackstore' ),
'name' => 'general_meta'
)
);
/***************** Slider Layout - begin **********************/
trackstore_elated_create_meta_box_field(
array(
'name' => 'eltd_page_slider_meta',
'type' => 'text',
'label' => esc_html__( 'Slider Shortcode', 'trackstore' ),
'description' => esc_html__( 'Paste your slider shortcode here', 'trackstore' ),
'parent' => $general_meta_box
)
);
/***************** Slider Layout - begin **********************/
/***************** Content Layout - begin **********************/
trackstore_elated_create_meta_box_field(
array(
'name' => 'eltd_page_content_behind_header_meta',
'type' => 'yesno',
'default_value' => 'no',
'label' => esc_html__( 'Always put content behind header', 'trackstore' ),
'description' => esc_html__( 'Enabling this option will put page content behind page header', 'trackstore' ),
'parent' => $general_meta_box
)
);
$eltd_content_padding_group = trackstore_elated_add_admin_group(
array(
'name' => 'content_padding_group',
'title' => esc_html__( 'Content Style', 'trackstore' ),
'description' => esc_html__( 'Define styles for Content area', 'trackstore' ),
'parent' => $general_meta_box
)
);
$eltd_content_padding_row = trackstore_elated_add_admin_row(
array(
'name' => 'eltd_content_padding_row',
'next' => true,
'parent' => $eltd_content_padding_group
)
);
trackstore_elated_create_meta_box_field(
array(
'name' => 'eltd_page_content_top_padding',
'type' => 'textsimple',
'label' => esc_html__( 'Content Top Padding', 'trackstore' ),
'parent' => $eltd_content_padding_row,
'args' => array(
'suffix' => 'px'
)
)
);
trackstore_elated_create_meta_box_field(
array(
'name' => 'eltd_page_content_top_padding_mobile',
'type' => 'selectsimple',
'label' => esc_html__( 'Set this top padding for mobile header', 'trackstore' ),
'parent' => $eltd_content_padding_row,
'options' => trackstore_elated_get_yes_no_select_array( false )
)
);
trackstore_elated_create_meta_box_field(
array(
'name' => 'eltd_page_background_color_meta',
'type' => 'color',
'label' => esc_html__( 'Page Background Color', 'trackstore' ),
'description' => esc_html__( 'Choose background color for page content', 'trackstore' ),
'parent' => $general_meta_box
)
);
/***************** Content Layout - end **********************/
/***************** Boxed Layout - begin **********************/
trackstore_elated_create_meta_box_field(
array(
'name' => 'eltd_boxed_meta',
'type' => 'select',
'label' => esc_html__( 'Boxed Layout', 'trackstore' ),
'parent' => $general_meta_box,
'options' => trackstore_elated_get_yes_no_select_array(),
'args' => array(
'dependence' => true,
'hide' => array(
'' => '#eltd_boxed_container_meta',
'no' => '#eltd_boxed_container_meta',
'yes' => ''
),
'show' => array(
'' => '',
'no' => '',
'yes' => '#eltd_boxed_container_meta'
)
)
)
);
$boxed_container_meta = trackstore_elated_add_admin_container(
array(
'parent' => $general_meta_box,
'name' => 'boxed_container_meta',
'hidden_property' => 'eltd_boxed_meta',
'hidden_values' => array(
'',
'no'
)
)
);
trackstore_elated_create_meta_box_field(
array(
'name' => 'eltd_page_background_color_in_box_meta',
'type' => 'color',
'label' => esc_html__( 'Page Background Color', 'trackstore' ),
'description' => esc_html__( 'Choose the page background color outside box', 'trackstore' ),
'parent' => $boxed_container_meta
)
);
trackstore_elated_create_meta_box_field(
array(
'name' => 'eltd_boxed_background_image_meta',
'type' => 'image',
'label' => esc_html__( 'Background Image', 'trackstore' ),
'description' => esc_html__( 'Choose an image to be displayed in background', 'trackstore' ),
'parent' => $boxed_container_meta
)
);
trackstore_elated_create_meta_box_field(
array(
'name' => 'eltd_boxed_pattern_background_image_meta',
'type' => 'image',
'label' => esc_html__( 'Background Pattern', 'trackstore' ),
'description' => esc_html__( 'Choose an image to be used as background pattern', 'trackstore' ),
'parent' => $boxed_container_meta
)
);
trackstore_elated_create_meta_box_field(
array(
'name' => 'eltd_boxed_background_image_attachment_meta',
'type' => 'select',
'default_value' => 'fixed',
'label' => esc_html__( 'Background Image Attachment', 'trackstore' ),
'description' => esc_html__( 'Choose background image attachment', 'trackstore' ),
'parent' => $boxed_container_meta,
'options' => array(
'' => esc_html__( 'Default', 'trackstore' ),
'fixed' => esc_html__( 'Fixed', 'trackstore' ),
'scroll' => esc_html__( 'Scroll', 'trackstore' )
)
)
);
/***************** Boxed Layout - end **********************/
/***************** Passepartout Layout - begin **********************/
trackstore_elated_create_meta_box_field(
array(
'name' => 'eltd_paspartu_meta',
'type' => 'select',
'default_value' => '',
'label' => esc_html__( 'Passepartout', 'trackstore' ),
'description' => esc_html__( 'Enabling this option will display passepartout around site content', 'trackstore' ),
'parent' => $general_meta_box,
'options' => trackstore_elated_get_yes_no_select_array(),
'args' => array(
'dependence' => true,
'hide' => array(
'' => '#eltd_eltd_paspartu_container_meta',
'no' => '#eltd_eltd_paspartu_container_meta',
'yes' => ''
),
'show' => array(
'' => '',
'no' => '',
'yes' => '#eltd_eltd_paspartu_container_meta'
)
)
)
);
$paspartu_container_meta = trackstore_elated_add_admin_container(
array(
'parent' => $general_meta_box,
'name' => 'eltd_paspartu_container_meta',
'hidden_property' => 'eltd_paspartu_meta',
'hidden_values' => array(
'',
'no'
)
)
);
trackstore_elated_create_meta_box_field(
array(
'name' => 'eltd_paspartu_color_meta',
'type' => 'color',
'label' => esc_html__( 'Passepartout Color', 'trackstore' ),
'description' => esc_html__( 'Choose passepartout color, default value is #ffffff', 'trackstore' ),
'parent' => $paspartu_container_meta
)
);
trackstore_elated_create_meta_box_field(
array(
'name' => 'eltd_paspartu_width_meta',
'type' => 'text',
'label' => esc_html__( 'Passepartout Size', 'trackstore' ),
'description' => esc_html__( 'Enter size amount for passepartout', 'trackstore' ),
'parent' => $paspartu_container_meta,
'args' => array(
'col_width' => 2,
'suffix' => 'px or %'
)
)
);
trackstore_elated_create_meta_box_field(
array(
'name' => 'eltd_paspartu_responsive_width_meta',
'type' => 'text',
'label' => esc_html__( 'Responsive Passepartout Size', 'trackstore' ),
'description' => esc_html__( 'Enter size amount for passepartout for smaller screens (tablets and mobiles view)', 'trackstore' ),
'parent' => $paspartu_container_meta,
'args' => array(
'col_width' => 2,
'suffix' => 'px or %'
)
)
);
trackstore_elated_create_meta_box_field(
array(
'parent' => $paspartu_container_meta,
'type' => 'select',
'default_value' => '',
'name' => 'eltd_disable_top_paspartu_meta',
'label' => esc_html__( 'Disable Top Passepartout', 'trackstore' ),
'options' => trackstore_elated_get_yes_no_select_array(),
)
);
/***************** Passepartout Layout - end **********************/
/***************** Content Width Layout - begin **********************/
trackstore_elated_create_meta_box_field(
array(
'name' => 'eltd_initial_content_width_meta',
'type' => 'select',
'default_value' => '',
'label' => esc_html__( 'Initial Width of Content', 'trackstore' ),
'description' => esc_html__( 'Choose the initial width of content which is in grid (Applies to pages set to "Default Template" and rows set to "In Grid")', 'trackstore' ),
'parent' => $general_meta_box,
'options' => array(
'' => esc_html__( 'Default', 'trackstore' ),
'eltd-grid-1100' => esc_html__( '1100px', 'trackstore' ),
'eltd-grid-1300' => esc_html__( '1300px', 'trackstore' ),
'eltd-grid-1200' => esc_html__( '1200px', 'trackstore' ),
'eltd-grid-1000' => esc_html__( '1000px', 'trackstore' ),
'eltd-grid-800' => esc_html__( '800px', 'trackstore' )
)
)
);
/***************** Content Width Layout - end **********************/
/***************** Smooth Page Transitions Layout - begin **********************/
trackstore_elated_create_meta_box_field(
array(
'name' => 'eltd_smooth_page_transitions_meta',
'type' => 'select',
'default_value' => '',
'label' => esc_html__( 'Smooth Page Transitions', 'trackstore' ),
'description' => esc_html__( 'Enabling this option will perform a smooth transition between pages when clicking on links', 'trackstore' ),
'parent' => $general_meta_box,
'options' => trackstore_elated_get_yes_no_select_array(),
'args' => array(
'dependence' => true,
'hide' => array(
'' => '#eltd_page_transitions_container_meta',
'no' => '#eltd_page_transitions_container_meta',
'yes' => ''
),
'show' => array(
'' => '',
'no' => '',
'yes' => '#eltd_page_transitions_container_meta'
)
)
)
);
$page_transitions_container_meta = trackstore_elated_add_admin_container(
array(
'parent' => $general_meta_box,
'name' => 'page_transitions_container_meta',
'hidden_property' => 'eltd_smooth_page_transitions_meta',
'hidden_values' => array(
'',
'no'
)
)
);
trackstore_elated_create_meta_box_field(
array(
'name' => 'eltd_page_transition_preloader_meta',
'type' => 'select',
'label' => esc_html__( 'Enable Preloading Animation', 'trackstore' ),
'description' => esc_html__( 'Enabling this option will display an animated preloader while the page content is loading', 'trackstore' ),
'parent' => $page_transitions_container_meta,
'options' => trackstore_elated_get_yes_no_select_array(),
'args' => array(
'dependence' => true,
'hide' => array(
'' => '#eltd_page_transition_preloader_container_meta',
'no' => '#eltd_page_transition_preloader_container_meta',
'yes' => ''
),
'show' => array(
'' => '',
'no' => '',
'yes' => '#eltd_page_transition_preloader_container_meta'
)
)
)
);
$page_transition_preloader_container_meta = trackstore_elated_add_admin_container(
array(
'parent' => $page_transitions_container_meta,
'name' => 'page_transition_preloader_container_meta',
'hidden_property' => 'eltd_page_transition_preloader_meta',
'hidden_values' => array(
'',
'no'
)
)
);
trackstore_elated_create_meta_box_field(
array(
'name' => 'eltd_smooth_pt_bgnd_color_meta',
'type' => 'color',
'label' => esc_html__( 'Page Loader Background Color', 'trackstore' ),
'parent' => $page_transition_preloader_container_meta
)
);
$group_pt_spinner_animation_meta = trackstore_elated_add_admin_group(
array(
'name' => 'group_pt_spinner_animation_meta',
'title' => esc_html__( 'Loader Style', 'trackstore' ),
'description' => esc_html__( 'Define styles for loader spinner animation', 'trackstore' ),
'parent' => $page_transition_preloader_container_meta
)
);
$row_pt_spinner_animation_meta = trackstore_elated_add_admin_row(
array(
'name' => 'row_pt_spinner_animation_meta',
'parent' => $group_pt_spinner_animation_meta
)
);
trackstore_elated_create_meta_box_field(
array(
'type' => 'selectsimple',
'name' => 'eltd_smooth_pt_spinner_type_meta',
'label' => esc_html__( 'Spinner Type', 'trackstore' ),
'parent' => $row_pt_spinner_animation_meta,
'options' => array(
'' => esc_html__( 'Default', 'trackstore' ),
'trackstore' => esc_html__( 'Trackstore', 'trackstore' ),
'rotate_circles' => esc_html__( 'Rotate Circles', 'trackstore' ),
'pulse' => esc_html__( 'Pulse', 'trackstore' ),
'double_pulse' => esc_html__( 'Double Pulse', 'trackstore' ),
'cube' => esc_html__( 'Cube', 'trackstore' ),
'rotating_cubes' => esc_html__( 'Rotating Cubes', 'trackstore' ),
'stripes' => esc_html__( 'Stripes', 'trackstore' ),
'wave' => esc_html__( 'Wave', 'trackstore' ),
'two_rotating_circles' => esc_html__( '2 Rotating Circles', 'trackstore' ),
'five_rotating_circles' => esc_html__( '5 Rotating Circles', 'trackstore' ),
'atom' => esc_html__( 'Atom', 'trackstore' ),
'clock' => esc_html__( 'Clock', 'trackstore' ),
'mitosis' => esc_html__( 'Mitosis', 'trackstore' ),
'lines' => esc_html__( 'Lines', 'trackstore' ),
'fussion' => esc_html__( 'Fussion', 'trackstore' ),
'wave_circles' => esc_html__( 'Wave Circles', 'trackstore' ),
'pulse_circles' => esc_html__( 'Pulse Circles', 'trackstore' )
)
)
);
trackstore_elated_create_meta_box_field(
array(
'type' => 'colorsimple',
'name' => 'eltd_smooth_pt_spinner_color_meta',
'label' => esc_html__( 'Spinner Color', 'trackstore' ),
'parent' => $row_pt_spinner_animation_meta
)
);
trackstore_elated_create_meta_box_field(
array(
'name' => 'eltd_page_transition_fadeout_meta',
'type' => 'select',
'label' => esc_html__( 'Enable Fade Out Animation', 'trackstore' ),
'description' => esc_html__( 'Enabling this option will turn on fade out animation when leaving page', 'trackstore' ),
'options' => trackstore_elated_get_yes_no_select_array(),
'parent' => $page_transitions_container_meta
)
);
/***************** Smooth Page Transitions Layout - end **********************/
/***************** Comments Layout - begin **********************/
trackstore_elated_create_meta_box_field(
array(
'name' => 'eltd_page_comments_meta',
'type' => 'select',
'label' => esc_html__( 'Show Comments', 'trackstore' ),
'description' => esc_html__( 'Enabling this option will show comments on your page', 'trackstore' ),
'parent' => $general_meta_box,
'options' => trackstore_elated_get_yes_no_select_array()
)
);
/***************** Comments Layout - end **********************/
}
add_action( 'trackstore_elated_meta_boxes_map', 'trackstore_elated_map_general_meta', 10 );
}