Файловый менеджер - Редактировать - /home/infrafs/www/wp-content/themes/trackstore/framework/modules/woocommerce/admin/options-map/woocommerce-map.php
Назад
<?php if ( ! function_exists( 'trackstore_elated_woocommerce_options_map' ) ) { /** * Add Woocommerce options page */ function trackstore_elated_woocommerce_options_map() { trackstore_elated_add_admin_page( array( 'slug' => '_woocommerce_page', 'title' => esc_html__( 'Woocommerce', 'trackstore' ), 'icon' => 'fa fa-shopping-cart' ) ); /** * Product List Settings */ $panel_product_list = trackstore_elated_add_admin_panel( array( 'page' => '_woocommerce_page', 'name' => 'panel_product_list', 'title' => esc_html__( 'Product List', 'trackstore' ) ) ); trackstore_elated_add_admin_field( array( 'type' => 'select', 'name' => 'eltd_woo_product_list_columns', 'label' => esc_html__( 'Product List Columns', 'trackstore' ), 'default_value' => 'eltd-woocommerce-columns-4', 'description' => esc_html__( 'Choose number of columns for product listing and related products on single product', 'trackstore' ), 'options' => array( 'eltd-woocommerce-columns-3' => esc_html__( '3 Columns', 'trackstore' ), 'eltd-woocommerce-columns-4' => esc_html__( '4 Columns', 'trackstore' ) ), 'parent' => $panel_product_list, ) ); trackstore_elated_add_admin_field( array( 'type' => 'select', 'name' => 'eltd_woo_product_list_columns_space', 'label' => esc_html__( 'Space Between Items', 'trackstore' ), 'description' => esc_html__( 'Select space between items for product listing and related products on single product', 'trackstore' ), 'default_value' => 'normal', 'options' => trackstore_elated_get_space_between_items_array(), 'parent' => $panel_product_list, ) ); trackstore_elated_add_admin_field( array( 'type' => 'select', 'name' => 'eltd_woo_product_list_info_position', 'label' => esc_html__( 'Product Info Position', 'trackstore' ), 'default_value' => 'info_below_image', 'description' => esc_html__( 'Select product info position for product listing and related products on single product', 'trackstore' ), 'options' => array( 'info_below_image' => esc_html__( 'Info Below Image', 'trackstore' ), 'info_on_image_hover_left' => esc_html__( 'Info On Image Hover Left', 'trackstore' ), 'info_on_image_hover_centered' => esc_html__( 'Info On Image Hover Centered', 'trackstore' ) ), 'parent' => $panel_product_list, ) ); trackstore_elated_add_admin_field( array( 'type' => 'text', 'name' => 'eltd_woo_products_per_page', 'label' => esc_html__( 'Number of products per page', 'trackstore' ), 'description' => esc_html__( 'Set number of products on shop page', 'trackstore' ), 'parent' => $panel_product_list, 'args' => array( 'col_width' => 3 ) ) ); trackstore_elated_add_admin_field( array( 'type' => 'select', 'name' => 'eltd_products_list_title_tag', 'label' => esc_html__( 'Products Title Tag', 'trackstore' ), 'default_value' => 'h4', 'options' => trackstore_elated_get_title_tag(), 'parent' => $panel_product_list, ) ); /** * Single Product Settings */ $panel_single_product = trackstore_elated_add_admin_panel( array( 'page' => '_woocommerce_page', 'name' => 'panel_single_product', 'title' => esc_html__( 'Single Product', 'trackstore' ) ) ); trackstore_elated_add_admin_field(array( 'name' => 'single_product_layout', 'type' => 'select', 'label' => esc_html__('Single Product Layout', 'trackstore'), 'default_value' => 'standard', 'description' => esc_html__('Select single product page layout', 'trackstore'), 'options' => array( 'standard' => esc_html__('Standard', 'trackstore'), 'wide-gallery' => esc_html__('Wide Gallery', 'trackstore') ), 'parent' => $panel_single_product, 'args' => array( 'dependence' => true, 'show' => array( 'standard' => '#eltd_panel_single_product_standard', 'wide-gallery' => '#eltd_panel_single_product_wide_gallery', ), 'hide' => array( 'standard' => '#eltd_panel_single_product_wide_gallery', 'wide-gallery' => '#eltd_panel_single_product_standard', ) ) )); trackstore_elated_add_admin_field( array( 'type' => 'select', 'name' => 'show_title_area_woo', 'default_value' => '', 'label' => esc_html__( 'Show Title Area', 'trackstore' ), 'description' => esc_html__( 'Enabling this option will show title area on single post pages', 'trackstore' ), 'parent' => $panel_single_product, 'options' => trackstore_elated_get_yes_no_select_array(), 'args' => array( 'col_width' => 3 ) ) ); trackstore_elated_add_admin_field( array( 'type' => 'select', 'name' => 'eltd_single_product_title_tag', 'default_value' => 'h2', 'label' => esc_html__( 'Single Product Title Tag', 'trackstore' ), 'options' => trackstore_elated_get_title_tag(), 'parent' => $panel_single_product, ) ); $panel_single_product_standard = trackstore_elated_add_admin_container(array( 'name' => 'panel_single_product_standard', 'parent' => $panel_single_product, 'hidden_property' => 'single_product_layout', 'hidden_values' => array( 'wide-gallery' ) )); trackstore_elated_add_admin_field( array( 'type' => 'select', 'name' => 'woo_number_of_thumb_images', 'default_value' => '4', 'label' => esc_html__( 'Number of Thumbnail Images per Row', 'trackstore' ), 'options' => array( '4' => esc_html__( 'Four', 'trackstore' ), '3' => esc_html__( 'Three', 'trackstore' ), '2' => esc_html__( 'Two', 'trackstore' ) ), 'parent' => $panel_single_product_standard ) ); trackstore_elated_add_admin_field( array( 'type' => 'select', 'name' => 'woo_set_thumb_images_position', 'default_value' => 'on-left-side', 'label' => esc_html__( 'Set Thumbnail Images Position', 'trackstore' ), 'options' => array( 'below-image' => esc_html__( 'Below Featured Image', 'trackstore' ), 'on-left-side' => esc_html__( 'On The Left Side Of Featured Image', 'trackstore' ) ), 'parent' => $panel_single_product_standard ) ); trackstore_elated_add_admin_field( array( 'type' => 'select', 'name' => 'woo_enable_single_product_zoom_image', 'default_value' => 'no', 'label' => esc_html__( 'Enable Zoom Maginfier', 'trackstore' ), 'description' => esc_html__( 'Enabling this option will show magnifier image on featured image hover', 'trackstore' ), 'parent' => $panel_single_product_standard, 'options' => trackstore_elated_get_yes_no_select_array( false ), 'args' => array( 'col_width' => 3 ) ) ); trackstore_elated_add_admin_field( array( 'type' => 'select', 'name' => 'woo_set_single_images_behavior', 'default_value' => 'pretty-photo', 'label' => esc_html__( 'Set Images Behavior', 'trackstore' ), 'options' => array( 'pretty-photo' => esc_html__( 'Pretty Photo Lightbox', 'trackstore' ), 'photo-swipe' => esc_html__( 'Photo Swipe Lightbox', 'trackstore' ) ), 'parent' => $panel_single_product_standard ) ); /** * DropDown Cart Widget Settings */ $panel_dropdown_cart = trackstore_elated_add_admin_panel( array( 'page' => '_woocommerce_page', 'name' => 'panel_dropdown_cart', 'title' => esc_html__('Dropdown Cart Widget', 'trackstore') ) ); trackstore_elated_add_admin_field(array( 'name' => 'eltd_woo_dropdown_cart_description', 'type' => 'text', 'label' => esc_html__('Cart Description', 'trackstore'), 'default_value' => '', 'description' => esc_html__('Enter dropdown cart description', 'trackstore'), 'parent' => $panel_dropdown_cart )); /** * Empty Cart upload image option */ $panel_empty_cart = trackstore_elated_add_admin_panel( array( 'page' => '_woocommerce_page', 'name' => 'panel_empty_cart', 'title' => esc_html__('Empty Cart Page', 'trackstore') ) ); trackstore_elated_add_admin_field(array( 'name' => 'eltd_woo_empty_cart_image', 'type' => 'image', 'label' => esc_html__('Empty Cart Page Image', 'trackstore'), 'default_value' => '', 'description' => esc_html__('Upload image which will be displayed on empty cart page.', 'trackstore'), 'parent' => $panel_empty_cart )); } add_action( 'trackstore_elated_options_map', 'trackstore_elated_woocommerce_options_map', 17 ); }
| ver. 1.4 |
Github
|
.
| PHP 8.2.29 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка