Файловый менеджер - Редактировать - /home/infrafs/www/wp-content/themes/trackstore/framework/modules/title/admin/meta-boxes/title-meta-boxes.php
Назад
<?php if ( ! function_exists( 'trackstore_elated_get_title_types_meta_boxes' ) ) { function trackstore_elated_get_title_types_meta_boxes() { $title_type_options = apply_filters( 'trackstore_elated_title_type_meta_boxes', $title_type_options = array( '' => esc_html__( 'Default', 'trackstore' ) ) ); return $title_type_options; } } foreach ( glob( ELATED_FRAMEWORK_MODULES_ROOT_DIR . '/title/types/*/admin/meta-boxes/*.php' ) as $meta_box_load ) { include_once $meta_box_load; } if ( ! function_exists( 'trackstore_elated_map_title_meta' ) ) { function trackstore_elated_map_title_meta() { $title_type_meta_boxes = trackstore_elated_get_title_types_meta_boxes(); $title_meta_box = trackstore_elated_create_meta_box( array( 'scope' => apply_filters( 'trackstore_elated_set_scope_for_meta_boxes', array( 'page', 'post' ) ), 'title' => esc_html__( 'Title', 'trackstore' ), 'name' => 'title_meta' ) ); trackstore_elated_create_meta_box_field( array( 'name' => 'eltd_show_title_area_meta', 'type' => 'select', 'default_value' => '', 'label' => esc_html__( 'Show Title Area', 'trackstore' ), 'description' => esc_html__( 'Disabling this option will turn off page title area', 'trackstore' ), 'parent' => $title_meta_box, 'options' => trackstore_elated_get_yes_no_select_array(), 'args' => array( 'dependence' => true, 'hide' => array( '' => '', 'no' => '#eltd_eltd_show_title_area_meta_container', 'yes' => '' ), 'show' => array( '' => '#eltd_eltd_show_title_area_meta_container', 'no' => '', 'yes' => '#eltd_eltd_show_title_area_meta_container' ) ) ) ); $show_title_area_meta_container = trackstore_elated_add_admin_container( array( 'parent' => $title_meta_box, 'name' => 'eltd_show_title_area_meta_container', 'hidden_property' => 'eltd_show_title_area_meta', 'hidden_value' => 'no' ) ); trackstore_elated_create_meta_box_field( array( 'name' => 'eltd_title_area_type_meta', 'type' => 'select', 'default_value' => '', 'label' => esc_html__( 'Title Area Type', 'trackstore' ), 'description' => esc_html__( 'Choose title type', 'trackstore' ), 'parent' => $show_title_area_meta_container, 'options' => $title_type_meta_boxes ) ); trackstore_elated_create_meta_box_field( array( 'name' => 'eltd_title_area_in_grid_meta', 'type' => 'select', 'default_value' => '', 'label' => esc_html__( 'Title Area In Grid', 'trackstore' ), 'description' => esc_html__( 'Set title area content to be in grid', 'trackstore' ), 'options' => trackstore_elated_get_yes_no_select_array(), 'parent' => $show_title_area_meta_container ) ); trackstore_elated_create_meta_box_field( array( 'name' => 'eltd_title_area_height_meta', 'type' => 'text', 'label' => esc_html__( 'Height', 'trackstore' ), 'description' => esc_html__( 'Set a height for Title Area', 'trackstore' ), 'parent' => $show_title_area_meta_container, 'args' => array( 'col_width' => 2, 'suffix' => 'px' ) ) ); trackstore_elated_create_meta_box_field( array( 'name' => 'eltd_title_area_background_color_meta', 'type' => 'color', 'label' => esc_html__( 'Background Color', 'trackstore' ), 'description' => esc_html__( 'Choose a background color for title area', 'trackstore' ), 'parent' => $show_title_area_meta_container ) ); trackstore_elated_create_meta_box_field( array( 'name' => 'eltd_title_area_background_image_meta', 'type' => 'image', 'label' => esc_html__( 'Background Image', 'trackstore' ), 'description' => esc_html__( 'Choose an Image for title area', 'trackstore' ), 'parent' => $show_title_area_meta_container ) ); trackstore_elated_create_meta_box_field( array( 'name' => 'eltd_title_area_background_image_behavior_meta', 'type' => 'select', 'default_value' => '', 'label' => esc_html__( 'Background Image Behavior', 'trackstore' ), 'description' => esc_html__( 'Choose title area background image behavior', 'trackstore' ), 'parent' => $show_title_area_meta_container, 'options' => array( '' => esc_html__( 'Default', 'trackstore' ), 'hide' => esc_html__( 'Hide Image', 'trackstore' ), 'responsive' => esc_html__( 'Enable Responsive Image', 'trackstore' ), 'responsive-disabled' => esc_html__( 'Disable Responsive Image', 'trackstore' ), 'parallax' => esc_html__( 'Enable Parallax Image', 'trackstore' ), 'parallax-zoom-out' => esc_html__( 'Enable Parallax With Zoom Out Image', 'trackstore' ), 'parallax-disabled' => esc_html__( 'Disable Parallax Image', 'trackstore' ) ) ) ); trackstore_elated_create_meta_box_field( array( 'name' => 'eltd_title_area_vertical_alignment_meta', 'type' => 'select', 'default_value' => '', 'label' => esc_html__( 'Vertical Alignment', 'trackstore' ), 'description' => esc_html__( 'Specify title area content vertical alignment', 'trackstore' ), 'parent' => $show_title_area_meta_container, 'options' => array( '' => esc_html__( 'Default', 'trackstore' ), 'header_bottom' => esc_html__( 'From Bottom of Header', 'trackstore' ), 'window_top' => esc_html__( 'From Window Top', 'trackstore' ) ) ) ); trackstore_elated_create_meta_box_field( array( 'name' => 'eltd_title_area_title_tag_meta', 'type' => 'select', 'default_value' => '', 'label' => esc_html__( 'Title Tag', 'trackstore' ), 'options' => trackstore_elated_get_title_tag( true ), 'parent' => $show_title_area_meta_container ) ); trackstore_elated_create_meta_box_field( array( 'name' => 'eltd_title_text_color_meta', 'type' => 'color', 'label' => esc_html__( 'Title Color', 'trackstore' ), 'description' => esc_html__( 'Choose a color for title text', 'trackstore' ), 'parent' => $show_title_area_meta_container ) ); trackstore_elated_create_meta_box_field( array( 'name' => 'eltd_title_area_subtitle_meta', 'type' => 'text', 'default_value' => '', 'label' => esc_html__( 'Subtitle Text', 'trackstore' ), 'description' => esc_html__( 'Enter your subtitle text', 'trackstore' ), 'parent' => $show_title_area_meta_container, 'args' => array( 'col_width' => 6 ) ) ); trackstore_elated_create_meta_box_field( array( 'name' => 'eltd_title_area_subtitle_tag_meta', 'type' => 'select', 'default_value' => '', 'label' => esc_html__( 'Subtitle Tag', 'trackstore' ), 'options' => trackstore_elated_get_title_tag( true, array( 'p' => 'p' ) ), 'parent' => $show_title_area_meta_container ) ); trackstore_elated_create_meta_box_field( array( 'name' => 'eltd_subtitle_color_meta', 'type' => 'color', 'label' => esc_html__( 'Subtitle Color', 'trackstore' ), 'description' => esc_html__( 'Choose a color for subtitle text', 'trackstore' ), 'parent' => $show_title_area_meta_container ) ); /***************** Additional Title Area Layout - start *****************/ do_action( 'trackstore_elated_additional_title_area_meta_boxes', $show_title_area_meta_container ); /***************** Additional Title Area Layout - end *****************/ } add_action( 'trackstore_elated_meta_boxes_map', 'trackstore_elated_map_title_meta', 60 ); }
| ver. 1.4 |
Github
|
.
| PHP 8.2.29 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка