PHP 8.2.31
Preview: options-woocommerce.php Size: 6.26 KB
/home/nshryvcy/radiantskinclinics.org/wp-content/themes/medizco/components/theme/options/customizer/options-woocommerce.php

<?php if (!defined('ABSPATH')) die('Direct access forbidden.');
/**
 * customizer option: banner
 */
if(!class_exists( 'WooCommerce' )) return;

$options = [
	'xs_woocommerce_setting' => [
		'title' => esc_html__('WooCommerce', 'medizco'),

		'options' => [
			'xs_woo_banner_setting' => [
                'type'        => 'popup',
                'label'       => esc_html__('Shop Banner Settings', 'medizco'),
                'popup-title' => esc_html__('Shop Banner Settings', 'medizco'),
                'button'      => esc_html__('Edit Shop Banner Button', 'medizco'),
                'size'        => 'medium', // small, medium, large
                'popup-options' => [
                    'xs_woo_show_banner' => [
                        'type'  => 'switch',
                        'label' => esc_html__( 'Show Banner?', 'medizco' ),
                        'desc'  => esc_html__('Show or hide the banner', 'medizco'),
                        'value' => 'yes',
                        'left-choice'    => [
                            'value'  => 'yes',
                            'label'  => esc_html__( 'Yes', 'medizco' ),
                        ],
                        'right-choice'   => [
                            'value'  => 'no',
                            'label'  => esc_html__( 'No', 'medizco' ),
                        ],
                    ],
                    'xs_woo_show_breadcrumb' => [
                        'type'  => 'switch',
                        'label' => esc_html__( 'Show Breadcrumb?', 'medizco' ),
                        'desc'  => esc_html__('Show or hide the Breadcrumb', 'medizco'),
                        'value' => 'yes',
                        'left-choice'    => [
                            'value'  => 'yes',
                            'label'  => esc_html__( 'Yes', 'medizco' ),
                        ],
                        'right-choice'   => [
                            'value'  => 'no',
                            'label'  => esc_html__( 'No', 'medizco' ),
                        ],
                    ],
                    'xs_woo_banner_title'  => [
                        'type'   => 'text',
                        'label'  => esc_html__( 'Banner Title', 'medizco' ),
                        'value'  => '',
                    ],

                    'xs_woo_banner_image'  =>array(
                        'label'       => esc_html__( 'Banner Image', 'medizco' ),
                        'type'        => 'upload',
                        'images_only' => true,
                        'files_ext'   => array( 'jpg', 'png', 'jpeg', 'gif', 'svg' ),
                    ),

                    'xs_woo_banner_bg'=>array(
                        'label'       => esc_html__( 'Banner Background Image', 'medizco' ),
                        'type'        => 'upload',
                        'images_only' => true,
                        'files_ext'   => array( 'jpg', 'png', 'jpeg', 'gif', 'svg' ),
                    )
                ],
            ],

			'xs_woo_single_banner_setting' => [
                'type'        => 'popup',
                'label'       => esc_html__('Shop Single Banner Settings', 'medizco'),
                'popup-title' => esc_html__('Shop Single Banner Settings', 'medizco'),
                'button'      => esc_html__('Edit Shop Single Banner Button', 'medizco'),
                'size'        => 'medium', // small, medium, large
                'popup-options' => [
                    'xs_woo_single_show_banner' => [
                        'type'  => 'switch',
                        'label' => esc_html__( 'Show Banner?', 'medizco' ),
                        'desc'  => esc_html__('Show or hide the banner', 'medizco'),
                        'value' => 'yes',
                        'left-choice'  => [
                            'value'    => 'yes',
                            'label'    => esc_html__( 'Yes', 'medizco' ),
                        ],
                        'right-choice' => [
                            'value'    => 'no',
                            'label'    => esc_html__( 'No', 'medizco' ),
                        ],
                    ],
                    'xs_woo_single_show_breadcrumb' => [
                        'type'  => 'switch',
                        'label' => esc_html__( 'Show Breadcrumb?', 'medizco' ),
                        'desc'  => esc_html__('Show or hide the Breadcrumb', 'medizco'),
                        'value' => 'yes',
                        'left-choice'  => [
                            'value'    => 'yes',
                            'label'    => esc_html__( 'Yes', 'medizco' ),
                        ],
                        'right-choice' => [
                            'value'    => 'no',
                            'label'    => esc_html__( 'No', 'medizco' ),
                        ],
                    ],
                    'xs_woo_single_banner_title' => [
                        'type'  => 'text',
                        'label' => esc_html__( 'Banner Title', 'medizco' ),
                        'value' => '',
                    ],

                    'xs_woo_single_banner_image' => array(
                        'label'       => esc_html__( 'Banner Image', 'medizco' ),
                        'type'        => 'upload',
                        'images_only' => true,
                        'files_ext'   => array( 'jpg', 'png', 'jpeg', 'gif', 'svg' ),
                    ),

                    'xs_woo_single_banner_bg' => array(
                        'label'       => esc_html__( 'Banner Background Image', 'medizco' ),
                        'type'        => 'upload',
                        'images_only' => true,
                        'files_ext'   => array( 'jpg', 'png', 'jpeg', 'gif', 'svg' ),
                    )
                ],
            ],

			'xs_woo_shop_page_setting' => [
				'type'         => 'radio',
				'value' => 'fluid',
				'label' => __('Shop Page Layout', 'medizco'),
				'desc'  => __('Select shop page layout style', 'medizco'),
				'choices' => [ // Note: Avoid bool or int keys http://bit.ly/1cQgVzk
					'fluid'   => __('Fluid', '{domain}'),
					'lidebar' => __('Left Sidebar', 'medizco'),
					'rsidbar' => __('Right Sidebar', 'medizco'),
				],
				// Display choices inline instead of list
				'inline' => true,
			],
		],
	],
];

Directory Contents

Dirs: 0 × Files: 10

Name Size Perms Modified Actions
205 B lr--r--r-- 2026-02-23 02:01:28
Edit Download
13.67 KB lrw-r--r-- 2020-12-03 03:41:14
Edit Download
1.46 KB lrw-r--r-- 2019-10-30 02:44:26
Edit Download
3.90 KB lrw-r--r-- 2021-06-07 21:59:42
Edit Download
757 B lrw-r--r-- 2020-05-12 02:34:00
Edit Download
2.39 KB lrw-r--r-- 2020-05-12 02:34:00
Edit Download
686 B lrw-r--r-- 2023-02-07 10:36:42
Edit Download
14.19 KB lrw-r--r-- 2021-06-07 21:59:42
Edit Download
4.69 KB lrw-r--r-- 2019-10-30 02:44:26
Edit Download
6.26 KB lrw-r--r-- 2021-06-07 21:59:42
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).