Файловый менеджер - Редактировать - /home/infrafs/www/wp-content/themes/trackstore/framework/modules/sidebar/admin/options-map/sidebar-map.php
Назад
<?php if ( ! function_exists( 'trackstore_elated_sidebar_options_map' ) ) { function trackstore_elated_sidebar_options_map() { trackstore_elated_add_admin_page( array( 'slug' => '_sidebar_page', 'title' => esc_html__( 'Sidebar Area', 'trackstore' ), 'icon' => 'fa fa-indent' ) ); $sidebar_panel = trackstore_elated_add_admin_panel( array( 'title' => esc_html__( 'Sidebar Area', 'trackstore' ), 'name' => 'sidebar', 'page' => '_sidebar_page' ) ); trackstore_elated_add_admin_field( array( 'name' => 'sidebar_layout', 'type' => 'select', 'label' => esc_html__( 'Sidebar Layout', 'trackstore' ), 'description' => esc_html__( 'Choose a sidebar layout for pages', 'trackstore' ), 'parent' => $sidebar_panel, 'default_value' => 'no-sidebar', 'options' => trackstore_elated_get_custom_sidebars_options() ) ); $trackstore_custom_sidebars = trackstore_elated_get_custom_sidebars(); if ( count( $trackstore_custom_sidebars ) > 0 ) { trackstore_elated_add_admin_field( array( 'name' => 'custom_sidebar_area', 'type' => 'selectblank', 'label' => esc_html__( 'Sidebar to Display', 'trackstore' ), 'description' => esc_html__( 'Choose a sidebar to display on pages. Default sidebar is "Sidebar"', 'trackstore' ), 'parent' => $sidebar_panel, 'options' => $trackstore_custom_sidebars, 'args' => array( 'select2' => true ) ) ); } } add_action( 'trackstore_elated_options_map', 'trackstore_elated_sidebar_options_map', 6 ); }
| ver. 1.4 |
Github
|
.
| PHP 8.2.29 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка