Файловый менеджер - Редактировать - /home/infrafs/www/wp-content/themes/trackstore/framework/modules/footer/admin/options-map/footer-map.php
Назад
<?php if ( ! function_exists( 'trackstore_elated_footer_options_map' ) ) { function trackstore_elated_footer_options_map() { trackstore_elated_add_admin_page( array( 'slug' => '_footer_page', 'title' => esc_html__( 'Footer', 'trackstore' ), 'icon' => 'fa fa-sort-amount-asc' ) ); $footer_panel = trackstore_elated_add_admin_panel( array( 'title' => esc_html__( 'Footer', 'trackstore' ), 'name' => 'footer', 'page' => '_footer_page' ) ); trackstore_elated_add_admin_field( array( 'type' => 'yesno', 'name' => 'footer_in_grid', 'default_value' => 'yes', 'label' => esc_html__( 'Footer in Grid', 'trackstore' ), 'description' => esc_html__( 'Enabling this option will place Footer content in grid', 'trackstore' ), 'parent' => $footer_panel, ) ); trackstore_elated_add_admin_field( array( 'type' => 'yesno', 'name' => 'show_footer_top', 'default_value' => 'yes', 'label' => esc_html__( 'Show Footer Top', 'trackstore' ), 'description' => esc_html__( 'Enabling this option will show Footer Top area', 'trackstore' ), 'args' => array( 'dependence' => true, 'dependence_hide_on_yes' => '', 'dependence_show_on_yes' => '#eltd_show_footer_top_container' ), 'parent' => $footer_panel, ) ); $show_footer_top_container = trackstore_elated_add_admin_container( array( 'name' => 'show_footer_top_container', 'hidden_property' => 'show_footer_top', 'hidden_value' => 'no', 'parent' => $footer_panel ) ); trackstore_elated_add_admin_field( array( 'type' => 'select', 'name' => 'footer_top_columns', 'parent' => $show_footer_top_container, 'default_value' => '4', 'label' => esc_html__( 'Footer Top Columns', 'trackstore' ), 'description' => esc_html__( 'Choose number of columns for Footer Top area', 'trackstore' ), 'options' => array( '1' => '1', '2' => '2', '3' => '3', '4' => '4', '6' => '6' ) ) ); trackstore_elated_add_admin_field( array( 'type' => 'select', 'name' => 'footer_top_columns_alignment', 'default_value' => 'left', 'label' => esc_html__( 'Footer Top Columns Alignment', 'trackstore' ), 'description' => esc_html__( 'Text Alignment in Footer Columns', 'trackstore' ), 'options' => array( '' => esc_html__( 'Default', 'trackstore' ), 'left' => esc_html__( 'Left', 'trackstore' ), 'center' => esc_html__( 'Center', 'trackstore' ), 'right' => esc_html__( 'Right', 'trackstore' ) ), 'parent' => $show_footer_top_container, ) ); trackstore_elated_add_admin_field( array( 'name' => 'footer_top_background_color', 'type' => 'color', 'label' => esc_html__( 'Background Color', 'trackstore' ), 'description' => esc_html__( 'Set background color for top footer area', 'trackstore' ), 'parent' => $show_footer_top_container ) ); trackstore_elated_add_admin_field( array( 'type' => 'yesno', 'name' => 'show_footer_bottom', 'default_value' => 'yes', 'label' => esc_html__( 'Show Footer Bottom', 'trackstore' ), 'description' => esc_html__( 'Enabling this option will show Footer Bottom area', 'trackstore' ), 'args' => array( 'dependence' => true, 'dependence_hide_on_yes' => '', 'dependence_show_on_yes' => '#eltd_show_footer_bottom_container' ), 'parent' => $footer_panel, ) ); $show_footer_bottom_container = trackstore_elated_add_admin_container( array( 'name' => 'show_footer_bottom_container', 'hidden_property' => 'show_footer_bottom', 'hidden_value' => 'no', 'parent' => $footer_panel ) ); trackstore_elated_add_admin_field( array( 'type' => 'select', 'name' => 'footer_bottom_columns', 'default_value' => '2', 'label' => esc_html__( 'Footer Bottom Columns', 'trackstore' ), 'description' => esc_html__( 'Choose number of columns for Footer Bottom area', 'trackstore' ), 'options' => array( '1' => '1', '2' => '2', '3' => '3' ), 'parent' => $show_footer_bottom_container, ) ); trackstore_elated_add_admin_field( array( 'name' => 'footer_bottom_background_color', 'type' => 'color', 'label' => esc_html__( 'Background Color', 'trackstore' ), 'description' => esc_html__( 'Set background color for bottom footer area', 'trackstore' ), 'parent' => $show_footer_bottom_container ) ); } add_action( 'trackstore_elated_options_map', 'trackstore_elated_footer_options_map', 9 ); }
| ver. 1.4 |
Github
|
.
| PHP 8.2.29 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка