Uname: Linux premium294.web-hosting.com 4.18.0-553.45.1.lve.el8.x86_64 #1 SMP Wed Mar 26 12:08:09 UTC 2025 x86_64
Software: LiteSpeed
PHP version: 8.1.32 [ PHP INFO ] PHP os: Linux
Server Ip: 104.21.16.1
Your Ip: 216.73.216.223
User: mjbynoyq (1574) | Group: mjbynoyq (1570)
Safe Mode: OFF
Disable Function:
NONE

name : wishlist.php
<?php
/**
 * Customize Wishlist Options
 */
return [
    [
        'type' => 'section',
        'name' => 'zoo_wishlist',
        'title' => esc_html__('Wishlist', 'doma'),
        'panel' => 'woocommerce',
        'theme_supports' => 'woocommerce'
    ],
    [
        'name' => 'zoo_wishlist_general_settings',
        'type' => 'heading',
        'label' => esc_html__('General Settings', 'doma'),
        'section' => 'zoo_wishlist'
    ],
    [
        'name' => 'zoo_enable_wishlist',
        'type' => 'checkbox',
        'section' => 'zoo_wishlist',
        'label' => esc_html__('Enable Wishlist', 'doma'),
        'checkbox_label' => esc_html__('Will be enabled if checked.', 'doma'),
        'theme_supports' => 'woocommerce',
        'default' => 1
    ],
    [
        'name' => 'zoo_enable_shop_loop_wishlist',
        'type' => 'checkbox',
        'section' => 'zoo_wishlist',
        'label' => esc_html__('Enable Shop Wishlist', 'doma'),
        'checkbox_label' => esc_html__('Wishlist button will show in shop loop if checked.', 'doma'),
        'theme_supports' => 'woocommerce',
        'default' => 1
    ],
    [
        'name' => 'zoo_enable_wishlist_redirect',
        'type' => 'checkbox',
        'section' => 'zoo_wishlist',
        'label' => esc_html__('Enable Wishlist Redirect Link', 'doma'),
        'checkbox_label' => esc_html__('Redirect to wishlist page when click to button browse wishlist.', 'doma'),
        'theme_supports' => 'woocommerce',
        'default' => 0
    ],
    [
        'name' => 'zoo_wishlist_page',
        'type' => 'select',
        'section' => 'zoo_wishlist',
        'title' => esc_html__('Wishlist page', 'doma'),
        'default' => '',
        'theme_supports' => 'woocommerce',
        'choices' => zoo_list_pages_by_slug(),
        'required' => ['zoo_enable_wishlist_redirect', '==', 1]
    ],
    [
        'name' => 'zoo_wishlist_add_to_wishlist_settings',
        'type' => 'heading',
        'label' => esc_html__('Add to Wishlist Settings', 'doma'),
        'section' => 'zoo_wishlist',
        'required' => ['zoo_enable_wishlist', '==', 1]
    ],
    [
        'name' => 'zoo_text_add_to_wishlist',
        'type' => 'text',
        'section' => 'zoo_wishlist',
        'label' => esc_html__('Label', 'doma'),
        'default' => esc_html__('Add to Wishlist', 'doma'),
        'required' => ['zoo_enable_wishlist', '==', 1]
    ],
    [
        'name' => 'zoo_icon_add_to_wishlist',
        'type' => 'icon',
        'section' => 'zoo_wishlist',
        'label' => esc_html__('Icon', 'doma'),
        'default' => [
            'type' => 'zoo-icon',
            'icon' => 'zoo-icon-heart-o'
        ],
        'required' => ['zoo_enable_wishlist', '==', 1]
    ],
    [
        'name' => 'zoo_wishlist_browse_to_wishlist_settings',
        'type' => 'heading',
        'label' => esc_html__('Browse to Wishlist Settings', 'doma'),
        'section' => 'zoo_wishlist',
        'required' => ['zoo_enable_wishlist', '==', 1]
    ],
    [
        'name' => 'zoo_text_browse_to_wishlist',
        'type' => 'text',
        'section' => 'zoo_wishlist',
        'label' => esc_html__('Label', 'doma'),
        'default' => esc_html__('Browse Wishlist', 'doma'),
        'required' => ['zoo_enable_wishlist', '==', 1]
    ],
    [
        'name' => 'zoo_icon_browse_to_wishlist',
        'type' => 'icon',
        'section' => 'zoo_wishlist',
        'label' => esc_html__('Icon', 'doma'),
        'default' => [
            'type' => 'zoo-icon',
            'icon' => 'zoo-icon-heart-o'
        ],
        'required' => ['zoo_enable_wishlist', '==', 1]
    ],
    [
        'name' => 'zoo_wishlist_style_settings',
        'type' => 'heading',
        'label' => esc_html__('Wishlist Style', 'doma'),
        'section' => 'zoo_wishlist',
        'required' => ['zoo_enable_wishlist', '==', 1]
    ],
    [
        'name' => 'zoo_wishlist_icon_size',
        'type' => 'slider',
        'label' => esc_html__('Font Size', 'doma'),
        'section' => 'zoo_wishlist',
        'min' => 8,
        'step' => 1,
        'max' => 100,
        'selector' => ".woocommerce ul.products li.product .zoo-wishlist-button>i",
        'css_format' => "font-size: {{value}};",
        'required' => ['zoo_enable_wishlist', '==', 1]
    ],
    [
        'name' => 'zoo_wishlist_shop_style',
        'type' => 'styling',
        'section' => 'zoo_wishlist',
        'title' => esc_html__('Wishlist style', 'doma'),
        'description' => esc_html__('Advanced styling for Wishlist in shop loop', 'doma'),
        'required' => ['zoo_enable_wishlist', '==', 1],
        'selector' => [
            'normal' => '.woocommerce ul.products li.product .zoo-wishlist-button',
            'hover' => '.woocommerce ul.products li.product .zoo-wishlist-button:hover',
        ],
        'css_format' => 'styling',
        'priority' => 11,
        'default' => [],
        'fields' => [
            'normal_fields' => [
                'link_color' => false,
                'margin' => false,
                'padding' => false,
                'bg_image' => false,
                'device_settings' => false,
                'link_hover_color'   => false,
            ],
            'hover_fields' => [
                'link_color' => false
            ]
        ]
    ]
];
© 2025 XylotrechusZ