HEX
Server: LiteSpeed
System: Linux eko108.isimtescil.net 4.18.0-477.21.1.lve.1.el8.x86_64 #1 SMP Tue Sep 5 23:08:35 UTC 2023 x86_64
User: uyarreklamcomtr (11202)
PHP: 7.4.33
Disabled: opcache_get_status
Upload Files
File: /var/www/vhosts/uyarreklam.com.tr/httpdocs/plugin-options.tar
customization/labels-options.php000064400000011607151534477340013142 0ustar00<?php
/**
 * Style subtab of customization settings
 *
 * @package YITH\Wishlist\Options
 * @author  YITH <plugins@yithemes.com>
 * @since   4.0.0
 */

defined( 'YITH_WCWL' ) || exit; // Exit if accessed directly

$share_enabled = wc_string_to_bool( get_option( 'yith_wcwl_enable_share', 'yes' ) );
$share_on      = array(
	'pinterest' => $share_enabled && wc_string_to_bool( get_option( 'yith_wcwl_share_pinterest' ) ),
	'twitter'   => $share_enabled && wc_string_to_bool( get_option( 'yith_wcwl_share_twitter' ) ),
);

$add_to_wishlist_section = array(
	'add_to_wishlist_start' => array(
		'name' => __( 'Add to wishlist ', 'yith-woocommerce-wishlist' ),
		'type' => 'title',
	),

	'add_to_wishlist_text' => array(
		'name'    => __( '"Add to wishlist" text', 'yith-woocommerce-wishlist' ),
		'desc'    => __( 'Enter a text for "Add to wishlist" button', 'yith-woocommerce-wishlist' ),
		'id'      => 'yith_wcwl_add_to_wishlist_text',
		'default' => __( 'Add to wishlist', 'yith-woocommerce-wishlist' ),
		'type'    => 'text',
	),

	'product_added_text' => array(
		'name'    => __( '"Product added" text', 'yith-woocommerce-wishlist' ),
		'desc'    => __( 'Enter the text of the message displayed when the user adds a product to the wishlist', 'yith-woocommerce-wishlist' ),
		'id'      => 'yith_wcwl_product_added_text',
		'default' => __( 'Product added!', 'yith-woocommerce-wishlist' ),
		'type'    => 'text',
	),

	'remove_from_wishlist_text' => array(
		'name'    => __( '"Remove from wishlist" text', 'yith-woocommerce-wishlist' ),
		'desc'    => __( 'Enter a text for the "Remove from wishlist" button', 'yith-woocommerce-wishlist' ),
		'id'      => 'yith_wcwl_remove_from_wishlist_text',
		'default' => __( 'Remove from list', 'yith-woocommerce-wishlist' ),
		'type'    => 'text',
	),

	'browse_wishlist_text' => array(
		'name'    => __( '"Browse wishlist" text', 'yith-woocommerce-wishlist' ),
		'desc'    => __( 'Enter a text for the "Browse wishlist" link on the product page', 'yith-woocommerce-wishlist' ),
		'id'      => 'yith_wcwl_browse_wishlist_text',
		'default' => __( 'Browse wishlist', 'yith-woocommerce-wishlist' ),
		'type'    => 'text',
	),

	'already_in_wishlist_text' => array(
		'name'    => __( '"Product already in wishlist" text', 'yith-woocommerce-wishlist' ),
		'desc'    => __( 'Enter the text for the message displayed when the user views a product that is already in the wishlist', 'yith-woocommerce-wishlist' ),
		'id'      => 'yith_wcwl_already_in_wishlist_text',
		'default' => __( 'The product is already in your wishlist!', 'yith-woocommerce-wishlist' ),
		'type'    => 'text',
	),

	'add_to_wishlist_end' => array(
		'type' => 'sectionend',
	),
);

$wishlist_page_section = array(
	'wishlist_page_start' => array(
		'title' => __( 'Wishlist page', 'yith-woocommerce-wishlist' ),
		'type'  => 'title',
	),

	'default_wishlist_title' => array(
		'name'    => __( 'Default wishlist name', 'yith-woocommerce-wishlist' ),
		'desc'    => __( 'Enter a name for the default wishlist. This is the wishlist that will be automatically generated for all users if they do not create any custom one', 'yith-woocommerce-wishlist' ),
		'id'      => 'yith_wcwl_wishlist_title',
		'default' => __( 'My wishlist', 'yith-woocommerce-wishlist' ),
		'type'    => 'text',
	),

	'socials_title' => $share_on[ 'pinterest' ] || $share_on[ 'twitter' ] ? array(
		'name'    => __( 'Sharing title', 'yith-woocommerce-wishlist' ),
		'desc'    => __( 'Wishlist title used for sharing (only used on Twitter and Pinterest)', 'yith-woocommerce-wishlist' ),
		'id'      => 'yith_wcwl_socials_title',
		// translators: 1. Blog name.
		'default' => sprintf( __( 'My wishlist on %s', 'yith-woocommerce-wishlist' ), get_bloginfo( 'name' ) ),
		'type'    => 'text',
	) : array(),

	'socials_text' => $share_on[ 'pinterest' ] || $share_on[ 'twitter' ] ? array(
		'name'      => __( 'Social text', 'yith-woocommerce-wishlist' ),
		'desc'      => __( 'Type the message you want to publish when you share your wishlist on Twitter and Pinterest', 'yith-woocommerce-wishlist' ),
		'id'        => 'yith_wcwl_socials_text',
		'default'   => '',
		'type'      => 'yith-field',
		'yith-type' => 'textarea',
	) : array(),

	'add_to_cart_text' => array(
		'name'    => __( '"Add to cart" text', 'yith-woocommerce-wishlist' ),
		'desc'    => __( 'Enter a text for the "Add to cart" button', 'yith-woocommerce-wishlist' ),
		'id'      => 'yith_wcwl_add_to_cart_text',
		'default' => __( 'Add to cart', 'yith-woocommerce-wishlist' ),
		'type'    => 'text',
	),

	'wishlist_page_end' => array(
		'type' => 'sectionend',
	),
);

/**
 * APPLY_FILTERS: yith_wcwl_customization_labels_options
 *
 * Filter the options available in the 'Customization > Labels' tab.
 *
 * @param array $options Array of options
 *
 * @return array
 */
return apply_filters(
	'yith_wcwl_customization_labels_options',
	array(
		'customization-labels' => array_merge(
			$add_to_wishlist_section,
			$wishlist_page_section
		),
	)
);
customization/style-options.php000064400000070232151534477340013037 0ustar00<?php
/**
 * Style subtab of customization settings
 *
 * @package YITH\Wishlist\Options
 * @author  YITH <plugins@yithemes.com>
 * @since   4.0.0
 */

defined( 'YITH_WCWL' ) || exit; // Exit if accessed directly

$share_enabled = wc_string_to_bool( get_option( 'yith_wcwl_enable_share', 'yes' ) );

$share_on = array(
	'facebook'  => $share_enabled && wc_string_to_bool( get_option( 'yith_wcwl_share_fb' ) ),
	'pinterest' => $share_enabled && wc_string_to_bool( get_option( 'yith_wcwl_share_pinterest' ) ),
	'twitter'   => $share_enabled && wc_string_to_bool( get_option( 'yith_wcwl_share_twitter' ) ),
	'email'     => $share_enabled && wc_string_to_bool( get_option( 'yith_wcwl_share_email' ) ),
	'url'       => $share_enabled && wc_string_to_bool( get_option( 'yith_wcwl_share_url' ) ),
	'whatsapp'  => $share_enabled && wc_string_to_bool( get_option( 'yith_wcwl_share_whatsapp' ) ),
);

$add_to_wishlist = array(
	'add_to_wishlist_start' => array(
		'name' => __( 'Add to wishlist', 'yith-woocommerce-wishlist' ),
		'type' => 'title',
		'desc' => '',
	),

	'use_buttons' => array(
		'name'      => __( 'Style of "Add to wishlist"', 'yith-woocommerce-wishlist' ),
		'desc'      => __( 'Choose if you want to show a textual "Add to wishlist" link or a button', 'yith-woocommerce-wishlist' ),
		'id'        => 'yith_wcwl_add_to_wishlist_style',
		'options'   => array(
			'link'           => __( 'Textual (anchor)', 'yith-woocommerce-wishlist' ),
			'button_default' => __( 'Button with theme style', 'yith-woocommerce-wishlist' ),
			'button_custom'  => __( 'Button with custom style', 'yith-woocommerce-wishlist' ),
		),
		'default'   => 'link',
		'type'      => 'yith-field',
		'yith-type' => 'radio',
	),

	'add_to_wishlist_colors' => array(
		'name'         => __( '"Add to wishlist" button style', 'yith-woocommerce-wishlist' ),
		'id'           => 'yith_wcwl_color_add_to_wishlist',
		'type'         => 'yith-field',
		'yith-type'    => 'multi-colorpicker',
		'colorpickers' => array(
			array(
				array(
					'name'    => __( 'Background', 'yith-woocommerce-wishlist' ),
					'id'      => 'background',
					'default' => '#333333',
				),
				array(
					'name'    => __( 'Text', 'yith-woocommerce-wishlist' ),
					'id'      => 'text',
					'default' => '#FFFFFF',
				),
				array(
					'name'    => __( 'Border', 'yith-woocommerce-wishlist' ),
					'id'      => 'border',
					'default' => '#333333',
				),
			),
			array(
				array(
					'name'    => __( 'Background Hover', 'yith-woocommerce-wishlist' ),
					'id'      => 'background_hover',
					'default' => '#333333',
				),
				array(
					'name'    => __( 'Text Hover', 'yith-woocommerce-wishlist' ),
					'id'      => 'text_hover',
					'default' => '#FFFFFF',
				),
				array(
					'name'    => __( 'Border Hover', 'yith-woocommerce-wishlist' ),
					'id'      => 'border_hover',
					'default' => '#333333',
				),
			),
		),
		'deps'         => array(
			'id'    => 'yith_wcwl_add_to_wishlist_style',
			'value' => 'button_custom',
		),
	),

	'add_to_wishlist_rounded_buttons_radius' => array(
		'name'      => __( 'Border radius', 'yith-woocommerce-wishlist' ),
		'desc'      => __( 'Choose radius for the "Add to wishlist" button', 'yith-woocommerce-wishlist' ),
		'id'        => 'yith_wcwl_rounded_corners_radius',
		'default'   => 16,
		'type'      => 'yith-field',
		'yith-type' => 'slider',
		'min'       => 1,
		'max'       => 100,
		'deps'      => array(
			'id'    => 'yith_wcwl_add_to_wishlist_style',
			'value' => 'button_custom',
		),
	),

	'add_to_wishlist_icon_type' => array(
		'name'      => __( '"Add to wishlist" icon', 'yith-woocommerce-wishlist' ),
		'desc'      => __( 'Choose whether to use one of the default icons or a custom one', 'yith-woocommerce-wishlist' ),
		'id'        => 'yith_wcwl_add_to_wishlist_icon_type',
		'default'   => 'default',
		'type'      => 'yith-field',
		'yith-type' => 'radio',
		'options'   => array(
			'default' => __( 'Use default icon', 'yith-woocommerce-wishlist' ),
			'custom'  => __( 'Upload a custom icon', 'yith-woocommerce-wishlist' ),
		),
	),

	'add_to_wishlist_icon' => array(
		'name'      => __( '"Add to wishlist" icon', 'yith-woocommerce-wishlist' ),
		'desc'      => __( 'Select an icon for the "Add to wishlist" button (optional)', 'yith-woocommerce-wishlist' ),
		'id'        => 'yith_wcwl_add_to_wishlist_icon',
		/**
		 * APPLY_FILTERS: yith_wcwl_add_to_wishlist_std_icon
		 *
		 * Filter the default 'Add to wishlist' icon.
		 *
		 * @param string $icon Default icon
		 *
		 * @return array
		 */
		'default'   => apply_filters( 'yith_wcwl_add_to_wishlist_std_icon', 'heart-outline', 'yith_wcwl_add_to_wishlist_icon' ),
		'type'      => 'yith-field',
		'class'     => 'icon-select',
		'yith-type' => 'select',
		'options'   => yith_wcwl_get_plugin_icons_options( 'add-to-wishlist' ),
		'deps'      => array(
			'id'    => 'yith_wcwl_add_to_wishlist_icon_type',
			'value' => 'default',
		),
	),

	'add_to_wishlist_icon_color' => array(
		'name'      => __( 'Icon color', 'yith-woocommerce-wishlist' ),
		'id'        => 'yith_wcwl_add_to_wishlist_icon_color',
		'type'      => 'yith-field',
		'yith-type' => 'colorpicker',
		'default'   => '#000000',
		'deps'      => array(
			'id'    => 'yith_wcwl_add_to_wishlist_icon_type',
			'value' => 'default',
		),
	),

	'add_to_wishlist_custom_icon' => array(
		'name'      => __( '"Add to wishlist" custom icon', 'yith-woocommerce-wishlist' ),
		'desc'      => __( 'Upload an icon you\'d like to use for "Add to wishlist" button (suggested 32px x 32px)', 'yith-woocommerce-wishlist' ),
		'id'        => 'yith_wcwl_add_to_wishlist_custom_icon',
		'default'   => '',
		'type'      => 'yith-field',
		'yith-type' => 'media',
		'deps'      => array(
			'id'    => 'yith_wcwl_add_to_wishlist_icon_type',
			'value' => 'custom',
		),
	),

	'added_to_wishlist_icon_type' => array(
		'name'      => __( '"Added to wishlist" icon', 'yith-woocommerce-wishlist' ),
		'desc'      => __( 'Select an icon for the "Added to wishlist" button (optional)', 'yith-woocommerce-wishlist' ),
		'id'        => 'yith_wcwl_added_to_wishlist_icon_type',
		'default'   => 'default',
		'type'      => 'yith-field',
		'yith-type' => 'radio',
		'options'   => array(
			'same'    => __( 'Same used for Add to wishlist', 'yith-woocommerce-wishlist' ),
			'default' => __( 'Use default icon', 'yith-woocommerce-wishlist' ),
			'custom'  => __( 'Upload a custom icon', 'yith-woocommerce-wishlist' ),
		),
	),

	'added_to_wishlist_icon' => array(
		'name'      => __( '"Added to wishlist" icon', 'yith-woocommerce-wishlist' ),
		'desc'      => __( 'Select an icon for the "Added to wishlist" button (optional)', 'yith-woocommerce-wishlist' ),
		'id'        => 'yith_wcwl_added_to_wishlist_icon',
		/**
		 * APPLY_FILTERS: yith_wcwl_add_to_wishlist_std_icon
		 *
		 * Filter the default 'Added to wishlist' icon.
		 *
		 * @param string $icon Default icon
		 *
		 * @return array
		 */
		'default'   => apply_filters( 'yith_wcwl_add_to_wishlist_std_icon', 'heart', 'yith_wcwl_added_to_wishlist_icon' ),
		'type'      => 'yith-field',
		'class'     => 'icon-select',
		'yith-type' => 'select',
		'options'   => yith_wcwl_get_plugin_icons_options( 'added-to-wishlist' ),
		'deps'      => array(
			'id'    => 'yith_wcwl_added_to_wishlist_icon_type',
			'value' => 'default',
		),
	),

	'added_to_wishlist_custom_icon' => array(
		'name'      => __( '"Added to wishlist" custom icon', 'yith-woocommerce-wishlist' ),
		'desc'      => __( 'Upload an icon you\'d like to use for "Add to wishlist" button (suggested 32px x 32px)', 'yith-woocommerce-wishlist' ),
		'id'        => 'yith_wcwl_added_to_wishlist_custom_icon',
		'default'   => '',
		'type'      => 'yith-field',
		'yith-type' => 'media',
		'deps'      => array(
			'id'    => 'yith_wcwl_added_to_wishlist_icon_type',
			'value' => 'custom',
		),
	),

	'added_to_wishlist_icon_color' => array(
		'name'      => __( 'Icon color', 'yith-woocommerce-wishlist' ),
		'id'        => 'yith_wcwl_added_to_wishlist_icon_color',
		'type'      => 'yith-field',
		'yith-type' => 'colorpicker',
		'default'   => '#000000',
	),

	'custom_css' => array(
		'name'      => __( 'Custom CSS', 'yith-woocommerce-wishlist' ),
		'desc'      => __( 'Enter custom CSS to be applied to Wishlist elements (optional)', 'yith-woocommerce-wishlist' ),
		'id'        => 'yith_wcwl_custom_css',
		'default'   => '',
		'type'      => 'yith-field',
		'yith-type' => 'textarea',
	),

	'add_to_wishlist_end' => array(
		'type' => 'sectionend',
	),
);

$wishlist_page = array(
	'wishlist_page_start' => array(
		'title' => __( 'Wishlist page', 'yith-woocommerce-wishlist' ),
		'type'  => 'title',
	),

	'wishlist_use_buttons' => array(
		'name'      => __( 'Style of "Add to cart"', 'yith-woocommerce-wishlist' ),
		'desc'      => __( 'Choose whether to show a textual "Add to cart" link or a button', 'yith-woocommerce-wishlist' ),
		'id'        => 'yith_wcwl_add_to_cart_style',
		'options'   => array(
			'link'           => __( 'Textual (anchor)', 'yith-woocommerce-wishlist' ),
			'button_default' => __( 'Button with theme style', 'yith-woocommerce-wishlist' ),
			'button_custom'  => __( 'Button with custom style', 'yith-woocommerce-wishlist' ),
		),
		'default'   => 'link',
		'type'      => 'yith-field',
		'yith-type' => 'radio',
	),

	'add_to_cart_colors' => array(
		'name'         => __( '"Add to cart" button style', 'yith-woocommerce-wishlist' ),
		'id'           => 'yith_wcwl_color_add_to_cart',
		'type'         => 'yith-field',
		'yith-type'    => 'multi-colorpicker',
		'colorpickers' => array(
			array(
				'desc' => '<br>' . __( 'Choose the colors for the "Add to cart" button', 'yith-woocommerce-wishlist' ),
				array(
					'name'    => __( 'Background', 'yith-woocommerce-wishlist' ),
					'id'      => 'background',
					'default' => '#333333',
				),
				array(
					'name'    => __( 'Text', 'yith-woocommerce-wishlist' ),
					'id'      => 'text',
					'default' => '#FFFFFF',
				),
				array(
					'name'    => __( 'Border', 'yith-woocommerce-wishlist' ),
					'id'      => 'border',
					'default' => '#333333',
				),
			),
			array(
				'desc' => '<br>' . __( 'Choose colors for the "Add to cart" button on hover state', 'yith-woocommerce-wishlist' ),
				array(
					'name'    => __( 'Background Hover', 'yith-woocommerce-wishlist' ),
					'id'      => 'background_hover',
					'default' => '#4F4F4F',
				),
				array(
					'name'    => __( 'Text Hover', 'yith-woocommerce-wishlist' ),
					'id'      => 'text_hover',
					'default' => '#FFFFFF',
				),
				array(
					'name'    => __( 'Border Hover', 'yith-woocommerce-wishlist' ),
					'id'      => 'border_hover',
					'default' => '#4F4F4F',
				),
			),
		),
		'deps'         => array(
			'id'    => 'yith_wcwl_add_to_cart_style',
			'value' => 'button_custom',
		),
	),

	'wishlist_page_rounded_buttons_radius' => array(
		'name'      => __( 'Border radius', 'yith-woocommerce-wishlist' ),
		'desc'      => __( 'Set the radius for the "Add to cart" button', 'yith-woocommerce-wishlist' ),
		'id'        => 'yith_wcwl_add_to_cart_rounded_corners_radius',
		'default'   => 16,
		'type'      => 'yith-field',
		'yith-type' => 'slider',
		'min'       => 1,
		'max'       => 100,
		'deps'      => array(
			'id'    => 'yith_wcwl_add_to_cart_style',
			'value' => 'button_custom',
		),
	),

	'add_to_cart_icon' => array(
		'name'      => __( '"Add to cart" icon', 'yith-woocommerce-wishlist' ),
		'desc'      => __( 'Select an icon for the "Add to cart" button (optional)', 'yith-woocommerce-wishlist' ),
		'id'        => 'yith_wcwl_add_to_cart_icon',
		/**
		 * APPLY_FILTERS: yith_wcwl_add_to_cart_std_icon
		 *
		 * Filter the default 'Add to cart' icon in the Wishlist page.
		 *
		 * @param string $icon Default icon
		 *
		 * @return string
		 */
		'default'   => apply_filters( 'yith_wcwl_add_to_cart_std_icon', 'fa-shopping-cart' ),
		'type'      => 'yith-field',
		'yith-type' => 'select',
		'class'     => 'icon-select',
		'options'   => yith_wcwl_get_plugin_icons_options( 'add-to-cart' ),
		'deps'      => array(
			'id'    => 'yith_wcwl_add_to_cart_style',
			'value' => 'button_custom',
		),

	),

	'add_to_cart_custom_icon' => array(
		'name'      => __( '"Add to cart" custom icon', 'yith-woocommerce-wishlist' ),
		'desc'      => __( 'Upload an icon you\'d like to use for the "Add to cart" button (suggested 32px x 32px)', 'yith-woocommerce-wishlist' ),
		'id'        => 'yith_wcwl_add_to_cart_custom_icon',
		'default'   => '',
		'type'      => 'yith-field',
		'yith-type' => 'media',
		'deps'      => array(
			'id'    => 'yith_wcwl_add_to_cart_icon', // TODO: handle the double dependency for 'yith_wcwl_add_to_cart_icon' and 'yith_wcwl_add_to_cart_style'
			'value' => 'custom',
		),
	),

	'style_1_button_colors' => array(
		'name'         => __( 'Primary button style', 'yith-woocommerce-wishlist' ),
		'id'           => 'yith_wcwl_color_button_style_1',
		'type'         => 'yith-field',
		'yith-type'    => 'multi-colorpicker',
		'colorpickers' => array(
			array(
				'desc' => '<br>' . __( 'Choose colors for the primary button<br/><small>This style will be applied to "Edit title" button on Wishlist view, "Submit Changes" button on Manage view and "Search wishlist" button on Search view</small>', 'yith-woocommerce-wishlist' ),
				array(
					'name'    => __( 'Background', 'yith-woocommerce-wishlist' ),
					'id'      => 'background',
					'default' => '#333333',
				),
				array(
					'name'    => __( 'Text', 'yith-woocommerce-wishlist' ),
					'id'      => 'text',
					'default' => '#FFFFFF',
				),
				array(
					'name'    => __( 'Border', 'yith-woocommerce-wishlist' ),
					'id'      => 'border',
					'default' => '#333333',
				),
			),
			array(
				'desc' => '<br>' . __( 'Choose colors for the primary button on hover state<br/><small>This style will be applied to "Edit title" button on Wishlist view, "Submit Changes" button on Manage view and "Search wishlist" button on Search view</small>', 'yith-woocommerce-wishlist' ),
				array(
					'name'    => __( 'Background Hover', 'yith-woocommerce-wishlist' ),
					'id'      => 'background_hover',
					'default' => '#4F4F4F',
				),
				array(
					'name'    => __( 'Text Hover', 'yith-woocommerce-wishlist' ),
					'id'      => 'text_hover',
					'default' => '#FFFFFF',
				),
				array(
					'name'    => __( 'Border Hover', 'yith-woocommerce-wishlist' ),
					'id'      => 'border_hover',
					'default' => '#4F4F4F',
				),
			),
		),
		'deps'         => array(
			'id'    => 'yith_wcwl_add_to_cart_style',
			'value' => 'button_custom',
		),
	),

	'style_2_button_colors' => array(
		'name'         => __( 'Secondary button style', 'yith-woocommerce-wishlist' ),
		'id'           => 'yith_wcwl_color_button_style_2',
		'type'         => 'yith-field',
		'yith-type'    => 'multi-colorpicker',
		'colorpickers' => array(
			array(
				'desc' => '<br>' . __( 'Choose colors of the secondary button<br/><small>This style will be applied to the buttons that allow showing and hiding the Edit title form on Wishlist view and "Create new Wishlist" button on Manage view</small>', 'yith-woocommerce-wishlist' ),
				array(
					'name'    => __( 'Background', 'yith-woocommerce-wishlist' ),
					'id'      => 'background',
					'default' => '#333333',
				),
				array(
					'name'    => __( 'Text', 'yith-woocommerce-wishlist' ),
					'id'      => 'text',
					'default' => '#FFFFFF',
				),
				array(
					'name'    => __( 'Border', 'yith-woocommerce-wishlist' ),
					'id'      => 'border',
					'default' => '#333333',
				),
			),
			array(
				'desc' => '<br>' . __( 'Choose colors of the secondary button<br/><small>This style will be applied to the buttons that allow showing and hiding the Edit title form on Wishlist view and "Create new Wishlist" button on Manage view</small>', 'yith-woocommerce-wishlist' ),
				array(
					'name'    => __( 'Background Hover', 'yith-woocommerce-wishlist' ),
					'id'      => 'background_hover',
					'default' => '#4F4F4F',
				),
				array(
					'name'    => __( 'Text Hover', 'yith-woocommerce-wishlist' ),
					'id'      => 'text_hover',
					'default' => '#FFFFFF',
				),
				array(
					'name'    => __( 'Border Hover', 'yith-woocommerce-wishlist' ),
					'id'      => 'border_hover',
					'default' => '#4F4F4F',
				),
			),
		),
		'deps'         => array(
			'id'    => 'yith_wcwl_add_to_cart_style',
			'value' => 'button_custom',
		),
	),

	'wishlist_table_style' => array(
		'name'         => __( 'Wishlist table style', 'yith-woocommerce-wishlist' ),
		'desc'         => __( 'Choose the colors for the wishlist table (when set to "Traditional" layout)', 'yith-woocommerce-wishlist' ),
		'id'           => 'yith_wcwl_color_wishlist_table',
		'type'         => 'yith-field',
		'yith-type'    => 'multi-colorpicker',
		'colorpickers' => array(
			array(
				'name'    => __( 'Background', 'yith-woocommerce-wishlist' ),
				'id'      => 'background',
				'default' => '#ffffff',
			),
			array(
				'name'    => __( 'Text', 'yith-woocommerce-wishlist' ),
				'id'      => 'text',
				'default' => '#6d6c6c',
			),
			array(
				'name'    => __( 'Border', 'yith-woocommerce-wishlist' ),
				'id'      => 'border',
				'default' => '#cccccc',
			),
		),
		'deps'         => array(
			'id'    => 'yith_wcwl_add_to_cart_style',
			'value' => 'button_custom',
		),
	),

	'headings_style' => array(
		'name'      => __( 'Highlight color', 'yith-woocommerce-wishlist' ),
		'desc'      => '<br>' . __( 'Choose the color for all sections with background<br/><small>This color will be used as background for the wishlist table heading and footer (when set to "Traditional" layout), and for various form across wishlist views</small>', 'yith-woocommerce-wishlist' ),
		'id'        => 'yith_wcwl_color_headers_background',
		'type'      => 'yith-field',
		'yith-type' => 'colorpicker',
		'default'   => '#F4F4F4',
		'deps'      => array(
			'id'    => 'yith_wcwl_add_to_cart_style',
			'value' => 'button_custom',
		),
	),

	'share_colors' => $share_enabled ? array(
		'name'         => __( 'Share button text color', 'yith-woocommerce-wishlist' ),
		'desc'         => __( 'Choose colors for share buttons text', 'yith-woocommerce-wishlist' ),
		'id'           => 'yith_wcwl_color_share_button',
		'type'         => 'yith-field',
		'yith-type'    => 'multi-colorpicker',
		'colorpickers' => array(
			array(
				'name'    => __( 'Text', 'yith-woocommerce-wishlist' ),
				'id'      => 'color',
				'default' => '#FFFFFF',
			),
			array(
				'name'    => __( 'Text hover', 'yith-woocommerce-wishlist' ),
				'id'      => 'color_hover',
				'default' => '#FFFFFF',
			),
		),
	) : false,

	'fb_button_icon' => $share_on[ 'facebook' ] ? array(
		'name'      => __( 'Facebook share button icon', 'yith-woocommerce-wishlist' ),
		'desc'      => __( 'Select an icon for the Facebook share button', 'yith-woocommerce-wishlist' ),
		'id'        => 'yith_wcwl_fb_button_icon',
		'default'   => 'default',
		'type'      => 'yith-field',
		'yith-type' => 'radio',
		'options'   => array(
			'none'    => __( 'Show social label without icon', 'yith-woocommerce-wishlist' ),
			'default' => __( 'Social default icon', 'yith-woocommerce-wishlist' ),
			'custom'  => __( 'Upload a custom icon', 'yith-woocommerce-wishlist' ),
		),
	) : false,

	'fb_button_custom_icon' => $share_on[ 'facebook' ] ? array(
		'name'      => __( 'Facebook share button custom icon', 'yith-woocommerce-wishlist' ),
		'desc'      => __( 'Upload an icon you\'d like to use for Facebook share button (suggested 32px x 32px)', 'yith-woocommerce-wishlist' ),
		'id'        => 'yith_wcwl_fb_button_custom_icon',
		'default'   => '',
		'type'      => 'yith-field',
		'yith-type' => 'media',
		'deps'      => array(
			'id'    => 'yith_wcwl_fb_button_icon',
			'value' => 'custom',
		),
	) : false,

	'fb_button_colors' => $share_on[ 'facebook' ] ? array(
		'name'         => __( 'Facebook share button style', 'yith-woocommerce-wishlist' ),
		'desc'         => __( 'Choose colors for Facebook share button', 'yith-woocommerce-wishlist' ),
		'id'           => 'yith_wcwl_color_fb_button',
		'type'         => 'yith-field',
		'yith-type'    => 'multi-colorpicker',
		'colorpickers' => array(
			array(
				'name'    => __( 'Background', 'yith-woocommerce-wishlist' ),
				'id'      => 'background',
				'default' => '#39599E',
			),
			array(
				'name'    => __( 'Background hover', 'yith-woocommerce-wishlist' ),
				'id'      => 'background_hover',
				'default' => '#595A5A',
			),
		),
	) : false,

	'tw_button_icon' => $share_on[ 'twitter' ] ? array(
		'name'      => __( 'Twitter (X) share button icon', 'yith-woocommerce-wishlist' ),
		'desc'      => __( 'Select an icon for the Twitter (X) share button', 'yith-woocommerce-wishlist' ),
		'id'        => 'yith_wcwl_tw_button_icon',
		'default'   => 'default',
		'type'      => 'yith-field',
		'yith-type' => 'radio',
		'options'   => array(
			'none'    => __( 'Show social label without icon', 'yith-woocommerce-wishlist' ),
			'default' => __( 'Social default icon', 'yith-woocommerce-wishlist' ),
			'custom'  => __( 'Upload a custom icon', 'yith-woocommerce-wishlist' ),
		),
	) : false,

	'tw_button_custom_icon' => $share_on[ 'twitter' ] ? array(
		'name'      => __( 'Twitter (X) share button custom icon', 'yith-woocommerce-wishlist' ),
		'desc'      => __( 'Upload an icon you\'d like to use for Twitter (X) share button (suggested 32px x 32px)', 'yith-woocommerce-wishlist' ),
		'id'        => 'yith_wcwl_tw_button_custom_icon',
		'default'   => '',
		'type'      => 'yith-field',
		'yith-type' => 'media',
		'deps'      => array(
			'id'    => 'yith_wcwl_tw_button_icon',
			'value' => 'custom',
		),
	) : false,

	'tw_button_colors' => $share_on[ 'twitter' ] ? array(
		'name'         => __( 'Twitter (X) share button style', 'yith-woocommerce-wishlist' ),
		'desc'         => __( 'Choose colors for Twitter (X) share button', 'yith-woocommerce-wishlist' ),
		'id'           => 'yith_wcwl_color_tw_button',
		'type'         => 'yith-field',
		'yith-type'    => 'multi-colorpicker',
		'colorpickers' => array(
			array(
				'name'    => __( 'Background', 'yith-woocommerce-wishlist' ),
				'id'      => 'background',
				'default' => '#45AFE2',
			),
			array(
				'name'    => __( 'Background hover', 'yith-woocommerce-wishlist' ),
				'id'      => 'background_hover',
				'default' => '#595A5A',
			),
		),
	) : false,

	'socials_image' => array(
		'name'    => __( 'Pinterest image', 'yith-woocommerce-wishlist' ),
		'desc'    => __( 'Set an image to share the list on Pinterest', 'yith-woocommerce-wishlist' ),
		'id'      => 'yith_wcwl_socials_image_url',
		'default' => '',
		'type'    => 'text', // TODO: transform into an upload field.
	),

	'pr_button_icon' => $share_on[ 'pinterest' ] ? array(
		'name'      => __( 'Pinterest share button icon', 'yith-woocommerce-wishlist' ),
		'desc'      => __( 'Select an icon for the Pinterest share button', 'yith-woocommerce-wishlist' ),
		'id'        => 'yith_wcwl_pr_button_icon',
		'default'   => 'default',
		'type'      => 'yith-field',
		'yith-type' => 'radio',
		'options'   => array(
			'none'    => __( 'Show social label without icon', 'yith-woocommerce-wishlist' ),
			'default' => __( 'Social default icon', 'yith-woocommerce-wishlist' ),
			'custom'  => __( 'Upload a custom icon', 'yith-woocommerce-wishlist' ),
		),
	) : false,

	'pr_button_custom_icon' => $share_on[ 'pinterest' ] ? array(
		'name'      => __( 'Pinterest share button custom icon', 'yith-woocommerce-wishlist' ),
		'desc'      => __( 'Upload an icon you\'d like to use for Pinterest share button (suggested 32px x 32px)', 'yith-woocommerce-wishlist' ),
		'id'        => 'yith_wcwl_pr_button_custom_icon',
		'default'   => '',
		'type'      => 'yith-field',
		'yith-type' => 'media',
		'deps'      => array(
			'id'    => 'yith_wcwl_pr_button_icon',
			'value' => 'custom',
		),
	) : false,

	'pr_button_colors' => $share_on[ 'pinterest' ] ? array(
		'name'         => __( 'Pinterest share button style', 'yith-woocommerce-wishlist' ),
		'desc'         => __( 'Choose colors for Pinterest share button', 'yith-woocommerce-wishlist' ),
		'id'           => 'yith_wcwl_color_pr_button',
		'type'         => 'yith-field',
		'yith-type'    => 'multi-colorpicker',
		'colorpickers' => array(
			array(
				'name'    => __( 'Background', 'yith-woocommerce-wishlist' ),
				'id'      => 'background',
				'default' => '#AB2E31',
			),
			array(
				'name'    => __( 'Background hover', 'yith-woocommerce-wishlist' ),
				'id'      => 'background_hover',
				'default' => '#595A5A',
			),
		),
	) : false,

	'em_button_icon' => $share_on[ 'email' ] ? array(
		'name'      => __( 'Email share button icon', 'yith-woocommerce-wishlist' ),
		'desc'      => __( 'Select an icon for the Email share button', 'yith-woocommerce-wishlist' ),
		'id'        => 'yith_wcwl_em_button_icon',
		'default'   => 'default',
		'type'      => 'yith-field',
		'yith-type' => 'radio',
		'options'   => array(
			'none'    => __( 'Show email label without icon', 'yith-woocommerce-wishlist' ),
			'default' => __( 'Email default icon', 'yith-woocommerce-wishlist' ),
			'custom'  => __( 'Upload a custom icon', 'yith-woocommerce-wishlist' ),
		),
	) : false,

	'em_button_custom_icon' => $share_on[ 'email' ] ? array(
		'name'      => __( 'Email share button custom icon', 'yith-woocommerce-wishlist' ),
		'desc'      => __( 'Upload an icon you\'d like to use for the Email share button (suggested 32px x 32px)', 'yith-woocommerce-wishlist' ),
		'id'        => 'yith_wcwl_em_button_custom_icon',
		'default'   => '',
		'type'      => 'yith-field',
		'yith-type' => 'media',
		'deps'      => array(
			'id'    => 'yith_wcwl_em_button_icon',
			'value' => 'custom',
		),
	) : false,

	'em_button_colors' => $share_on[ 'email' ] ? array(
		'name'         => __( 'Email share button style', 'yith-woocommerce-wishlist' ),
		'desc'         => __( 'Choose colors for the Email share button', 'yith-woocommerce-wishlist' ),
		'id'           => 'yith_wcwl_color_em_button',
		'type'         => 'yith-field',
		'yith-type'    => 'multi-colorpicker',
		'colorpickers' => array(
			array(
				'name'    => __( 'Background', 'yith-woocommerce-wishlist' ),
				'id'      => 'background',
				'default' => '#FBB102',
			),
			array(
				'name'    => __( 'Background hover', 'yith-woocommerce-wishlist' ),
				'id'      => 'background_hover',
				'default' => '#595A5A',
			),
		),
	) : false,

	'wa_button_icon' => $share_on[ 'whatsapp' ] ? array(
		'name'      => __( 'WhatsApp share button icon', 'yith-woocommerce-wishlist' ),
		'desc'      => __( 'Select an icon for the WhatsApp share button', 'yith-woocommerce-wishlist' ),
		'id'        => 'yith_wcwl_wa_button_icon',
		'default'   => 'default',
		'type'      => 'yith-field',
		'yith-type' => 'radio',
		'options'   => array(
			'none'    => __( 'Show social label without icon', 'yith-woocommerce-wishlist' ),
			'default' => __( 'Social default icon', 'yith-woocommerce-wishlist' ),
			'custom'  => __( 'Upload a custom icon', 'yith-woocommerce-wishlist' ),
		),
	) : false,

	'wa_button_custom_icon' => $share_on[ 'whatsapp' ] ? array(
		'name'      => __( 'WhatsApp share button custom icon', 'yith-woocommerce-wishlist' ),
		'desc'      => __( 'Upload an icon you\'d like to use for WhatsApp share button (suggested 32px x 32px)', 'yith-woocommerce-wishlist' ),
		'id'        => 'yith_wcwl_wa_button_custom_icon',
		'default'   => '',
		'type'      => 'yith-field',
		'yith-type' => 'media',
		'deps'      => array(
			'id'    => 'yith_wcwl_wa_button_icon',
			'value' => 'custom',
		),
	) : false,

	'wa_button_colors' => $share_on[ 'whatsapp' ] ? array(
		'name'         => __( 'WhatsApp share button style', 'yith-woocommerce-wishlist' ),
		'desc'         => __( 'Choose colors for WhatsApp share button', 'yith-woocommerce-wishlist' ),
		'id'           => 'yith_wcwl_color_wa_button',
		'type'         => 'yith-field',
		'yith-type'    => 'multi-colorpicker',
		'colorpickers' => array(
			array(
				'name'    => __( 'Background', 'yith-woocommerce-wishlist' ),
				'id'      => 'background',
				'default' => '#00A901',
			),
			array(
				'name'    => __( 'Background hover', 'yith-woocommerce-wishlist' ),
				'id'      => 'background_hover',
				'default' => '#595A5A',
			),
		),
	) : false,

	'wishlist_page_end' => array(
		'type' => 'sectionend',
	),
);

/**
 * APPLY_FILTERS: yith_wcwl_customization_style_options
 *
 * Filter the options available in the 'Customization > Customization' tab.
 *
 * @param array $options Array of options
 *
 * @return array
 */
return apply_filters(
	'yith_wcwl_customization_style_options',
	array(
		'customization-style' => array_merge(
			$add_to_wishlist,
			$wishlist_page
		),
	)
);
customization-options.php000064400000001676151534477340011705 0ustar00<?php
/**
 * Customization options
 *
 * @package YITH\Wishlist\PluginOptions
 */

defined( 'YITH_WCWL' ) || exit; // Exit if accessed directly.

$sub_tabs = array(
	'customization-style'  => array(
		'title'       => _x( 'Customization', 'Tab title in plugin settings panel', 'yith-woocommerce-wishlist' ),
		'description' => __( 'Customize the style of the whole plugin.', 'yith-woocommerce-wishlist' ),
	),
	'customization-labels' => array(
		'title'       => _x( 'Labels', 'Tab title in plugin settings panel', 'yith-woocommerce-wishlist' ),
		'description' => _x( 'Customize the labels of the whole plugin.', 'Tab description in plugin settings panel', 'yith-woocommerce-wishlist' ),
	),
);

$options = array(
	'customization' => array(
		'customization-tabs' => array(
			'nav-layout' => 'horizontal',
			'type'       => 'multi_tab',
			'sub-tabs'   => $sub_tabs,
		),
	),
);

return apply_filters( 'yith_wcwl_panel_customization_options', $options );
icons-list.php000064400000015735151534477340007371 0ustar00<?php
/**
 * The list of icons included within the plugin
 *
 * @package YITH|Wishlist\PluginOptions
 */

/**
 * APPLY_FILTERS: yith_wcwl_icons_list_array
 *
 * Filter the array with all icons' information.
 *
 * @param array $icons Icons list.
 *
 * @return array
 */
return apply_filters(
	'yith_wcwl_icons_list_array',
	array(
		'bookmark'                          => array(
			'label' => _x( 'Bookmark', '[Admin] The icon label show in the select', 'yith-woocommerce-wishlist' ),
			'tags'  => array(
				'add-to-wishlist',
				'added-to-wishlist',
			),
		),
		'bookmark-outline'                  => array(
			'label' => _x( 'Bookmark outline', '[Admin] The icon label show in the select', 'yith-woocommerce-wishlist' ),
			'tags'  => array(
				'add-to-wishlist',
				'added-to-wishlist',
			),
		),
		'heart'                             => array(
			'label' => _x( 'Heart', '[Admin] The icon label show in the select', 'yith-woocommerce-wishlist' ),
			'tags'  => array(
				'add-to-wishlist',
				'added-to-wishlist',
			),
		),
		'heart-outline'                     => array(
			'label' => _x( 'Heart outline', '[Admin] The icon label show in the select', 'yith-woocommerce-wishlist' ),
			'tags'  => array(
				'add-to-wishlist',
				'added-to-wishlist',
			),
		),
		'heart-remove'                      => array(
			'label' => _x( 'Heart remove', '[Admin] The icon label show in the select', 'yith-woocommerce-wishlist' ),
			'tags'  => array(
				'add-to-wishlist',
				'added-to-wishlist',
			),
		),
		'heart-arrows'                      => array(
			'label' => _x( 'Heart arrows', '[Admin] The icon label show in the select', 'yith-woocommerce-wishlist' ),
			'tags'  => array(
				'add-to-wishlist',
				'added-to-wishlist',
				'move-to-another-wishlist',
			),
		),
		'heart-check'                       => array(
			'label' => _x( 'Heart check', '[Admin] The icon label show in the select', 'yith-woocommerce-wishlist' ),
			'tags'  => array(
				'add-to-wishlist',
				'added-to-wishlist',
			),
		),
		'star'                              => array(
			'label' => _x( 'Star', '[Admin] The icon label show in the select', 'yith-woocommerce-wishlist' ),
			'tags'  => array(
				'add-to-wishlist',
				'added-to-wishlist',
			),
		),
		'star-outline'                      => array(
			'label' => _x( 'Star outline', '[Admin] The icon label show in the select', 'yith-woocommerce-wishlist' ),
			'tags'  => array(
				'add-to-wishlist',
				'added-to-wishlist',
			),
		),
		'plus'                              => array(
			'label' => _x( 'Plus', '[Admin] The icon label show in the select', 'yith-woocommerce-wishlist' ),
			'tags'  => array(
				'add-to-cart',
			),
		),
		'plus-circle'                       => array(
			'label' => _x( 'Plus circle', '[Admin] The icon label show in the select', 'yith-woocommerce-wishlist' ),
			'tags'  => array(
				'added-to-wishlist',
				'add-to-wishlist',
				'add-to-cart',
			),
		),
		'plus-circle-outline'               => array(
			'label' => _x( 'Plus circle outline', '[Admin] The icon label show in the select', 'yith-woocommerce-wishlist' ),
			'tags'  => array(
				'added-to-wishlist',
				'add-to-wishlist',
				'add-to-cart',
			),
		),
		'shopping-bag'                      => array(
			'label' => _x( 'Shopping bag', '[Admin] The icon label show in the select', 'yith-woocommerce-wishlist' ),
			'tags'  => array(
				'add-to-cart',
			),
		),
		'shopping-bag-outline'              => array(
			'label' => _x( 'Shopping bag outline', '[Admin] The icon label show in the select', 'yith-woocommerce-wishlist' ),
			'tags'  => array(
				'add-to-cart',
			),
		),
		'shopping-cart'                     => array(
			'label' => _x( 'Shopping cart', '[Admin] The icon label show in the select', 'yith-woocommerce-wishlist' ),
			'tags'  => array(
				'add-to-cart',
			),
		),
		'shopping-cart-outline'             => array(
			'label' => _x( 'Shopping cart outline', '[Admin] The icon label show in the select', 'yith-woocommerce-wishlist' ),
			'tags'  => array(
				'add-to-cart',
			),
		),
		'calculator'                        => array(
			'label' => _x( 'Calculator', '[Admin] The icon label show in the select', 'yith-woocommerce-wishlist' ),
			'tags'  => array(
				'ask-an-estimate',
			),
		),
		'calculator-outline'                => array(
			'label' => _x( 'Calculator outline', '[Admin] The icon label show in the select', 'yith-woocommerce-wishlist' ),
			'tags'  => array(
				'ask-an-estimate',
			),
		),
		'chat-bubble-left-ellipsis'         => array(
			'label' => _x( 'Chat bubble', '[Admin] The icon label show in the select', 'yith-woocommerce-wishlist' ),
			'tags'  => array(
				'ask-an-estimate',
			),
		),
		'chat-bubble-left-ellipsis-outline' => array(
			'label' => _x( 'Chat bubble outline', '[Admin] The icon label show in the select', 'yith-woocommerce-wishlist' ),
			'tags'  => array(
				'ask-an-estimate',
			),
		),
		'document-arrow-up'                 => array(
			'label' => _x( 'Document arrow up', '[Admin] The icon label show in the select', 'yith-woocommerce-wishlist' ),
			'tags'  => array(
				'ask-an-estimate',
			),
		),
		'document-arrow-up-outline'         => array(
			'label' => _x( 'Document arrow up outline', '[Admin] The icon label show in the select', 'yith-woocommerce-wishlist' ),
			'tags'  => array(
				'ask-an-estimate',
			),
		),
		'document-chart-bar'                => array(
			'label' => _x( 'Document chart bar', '[Admin] The icon label show in the select', 'yith-woocommerce-wishlist' ),
			'tags'  => array(
				'ask-an-estimate',
			),
		),
		'document-chart-bar-outline'        => array(
			'label' => _x( 'Document chart bar outline', '[Admin] The icon label show in the select', 'yith-woocommerce-wishlist' ),
			'tags'  => array(
				'ask-an-estimate',
			),
		),
		'document-text'                     => array(
			'label' => _x( 'Document text', '[Admin] The icon label show in the select', 'yith-woocommerce-wishlist' ),
			'tags'  => array(
				'ask-an-estimate',
			),
		),
		'document-text-outline'             => array(
			'label' => _x( 'Document text outline', '[Admin] The icon label show in the select', 'yith-woocommerce-wishlist' ),
			'tags'  => array(
				'ask-an-estimate',
			),
		),
		'question-mark-circle'              => array(
			'label' => _x( 'Question mark', '[Admin] The icon label show in the select', 'yith-woocommerce-wishlist' ),
			'tags'  => array(
				'ask-an-estimate',
			),
		),
		'question-mark-circle-outline'      => array(
			'label' => _x( 'Question mark outline', '[Admin] The icon label show in the select', 'yith-woocommerce-wishlist' ),
			'tags'  => array(
				'ask-an-estimate',
			),
		),
		'receipt-percent'                   => array(
			'label' => _x( 'Receipt percent', '[Admin] The icon label show in the select', 'yith-woocommerce-wishlist' ),
			'tags'  => array(
				'ask-an-estimate',
			),
		),
		'receipt-percent-outline'           => array(
			'label' => _x( 'Receipt percent outline', '[Admin] The icon label show in the select', 'yith-woocommerce-wishlist' ),
			'tags'  => array(
				'ask-an-estimate',
			),
		),
	)
);lists-options.php000064400000002522151534477340010122 0ustar00<?php
/**
 * Lists options page
 *
 * @author YITH <plugins@yithemes.com>
 * @package YITH\Wishlist\Options
 * @version 3.0.0
 */

if ( ! defined( 'YITH_WCWL' ) ) {
	exit;
} // Exit if accessed directly

/**
 * APPLY_FILTERS: yith_wcwl_list_options
 *
 * Filter the options available in the 'All wishlists' tab.
 *
 * @param array $options Array of options
 *
 * @return array
 */
return apply_filters(
	'yith_wcwl_list_options',
	array(
		'lists' => array(
			'lists_section_start' => array(
				'type' => 'title',
				'desc' => '',
				'id'   => 'yith_wcwl_lists_settings',
			),
			'wishlists'           => array(
				'name'                 => __( 'Wishlists', 'yith-woocommerce-wishlist' ),
				'type'                 => 'yith-field',
				'yith-type'            => 'list-table',
				'class'                => '',
				'list_table_class'     => 'YITH_WCWL_Admin_Table',
				'list_table_class_dir' => YITH_WCWL_INC . 'tables/class-yith-wcwl-admin-table.php',
				'title'                => __( 'Wishlists', 'yith-woocommerce-wishlist' ),
				'search_form'          => array(
					'text'     => __( 'Search list', 'yith-woocommerce-wishlist' ),
					'input_id' => 'search_list',
				),
				'id'                   => 'wishlist-filter',
			),
			'lists_section_end'   => array(
				'type' => 'sectionend',
				'id'   => 'yith_wcwl_lists_settings',
			),
		),
	)
);
settings/add_to_wishlist-options.php000064400000011615151534477340014007 0ustar00<?php // phpcs:ignore WordPress.Files.FileName.NotHyphenatedLowercase
/**
 * Add to Wishlist settings
 *
 * @author  YITH <plugins@yithemes.com>
 * @package YITH\Wishlist\Options
 * @version 3.0.0
 */

if ( ! defined( 'YITH_WCWL' ) ) {
	exit;
} // Exit if accessed directly

/**
 * APPLY_FILTERS: yith_wcwl_add_to_wishlist_options
 *
 * Filter the options available in the 'Add to wishlist options' tab.
 *
 * @param array $options Array of options
 *
 * @return array
 */
return apply_filters(
	'yith_wcwl_add_to_wishlist_options',
	array(
		'settings-add_to_wishlist' => array(

			'general_section_start' => array(
				'name' => __( 'General settings', 'yith-woocommerce-wishlist' ),
				'type' => 'title',
				'desc' => '',
				'id'   => 'yith_wcwl_general_settings',
			),

			'after_add_to_wishlist_behaviour' => array(
				'name'      => __( 'After product is added to wishlist', 'yith-woocommerce-wishlist' ),
				'desc'      => __( 'Choose the look of the Wishlist button when the product has already been added to a wishlist', 'yith-woocommerce-wishlist' ),
				'id'        => 'yith_wcwl_after_add_to_wishlist_behaviour',
				'options'   => array(
					'add'    => __( 'Show "Add to wishlist" button', 'yith-woocommerce-wishlist' ),
					'view'   => __( 'Show "View wishlist" link', 'yith-woocommerce-wishlist' ),
					'remove' => __( 'Show "Remove from list" link', 'yith-woocommerce-wishlist' ),
				),
				'default'   => 'view',
				'type'      => 'yith-field',
				'yith-type' => 'radio',
			),

			'general_section_end' => array(
				'type' => 'sectionend',
				'id'   => 'yith_wcwl_general_settings',
			),

			'shop_page_section_start' => array(
				'name' => __( 'Loop settings', 'yith-woocommerce-wishlist' ),
				'type' => 'title',
				'desc' => __( 'Loop options will be visible on Shop page, category pages, product shortcodes, products sliders, and all the other places where the WooCommerce products\' loop is used', 'yith-woocommerce-wishlist' ),
				'id'   => 'yith_wcwl_shop_page_settings',
			),

			'show_on_loop' => array(
				'name'      => __( 'Show "Add to wishlist" in loop', 'yith-woocommerce-wishlist' ),
				'desc'      => __( 'Enable the "Add to wishlist" feature in WooCommerce products\' loop', 'yith-woocommerce-wishlist' ),
				'id'        => 'yith_wcwl_show_on_loop',
				'default'   => 'no',
				'type'      => 'yith-field',
				'yith-type' => 'onoff',
			),

			'loop_position' => array(
				'name'      => __( 'Position of "Add to wishlist" in loop', 'yith-woocommerce-wishlist' ),
				'desc'      => __( 'Choose where to show "Add to wishlist" button or link in WooCommerce products\' loop. <span class="addon">Copy this shortcode <span class="code"><code>[yith_wcwl_add_to_wishlist]</code></span> and paste it where you want to show the "Add to wishlist" link or button</span>', 'yith-woocommerce-wishlist' ),
				'id'        => 'yith_wcwl_loop_position',
				'default'   => 'after_add_to_cart',
				'type'      => 'yith-field',
				'yith-type' => 'select',
				'class'     => 'wc-enhanced-select',
				'options'   => array(
					'before_image'       => __( 'On top of the image', 'yith-woocommerce-wishlist' ),
					'before_add_to_cart' => __( 'Before "Add to cart" button', 'yith-woocommerce-wishlist' ),
					'after_add_to_cart'  => __( 'After "Add to cart" button', 'yith-woocommerce-wishlist' ),
					'shortcode'          => __( 'Use shortcode', 'yith-woocommerce-wishlist' ),
				),
				'deps'      => array(
					'id'    => 'yith_wcwl_show_on_loop',
					'value' => 'yes',
				),
			),

			'shop_page_section_end' => array(
				'type' => 'sectionend',
				'id'   => 'yith_wcwl_shop_page_settings',
			),

			'product_page_section_start' => array(
				'name' => __( 'Product page settings', 'yith-woocommerce-wishlist' ),
				'type' => 'title',
				'desc' => '',
				'id'   => 'yith_wcwl_product_page_settings',
			),

			'add_to_wishlist_position' => array(
				'name'      => __( 'Position of "Add to wishlist" on product page', 'yith-woocommerce-wishlist' ),
				'desc'      => __( 'Choose where to show "Add to wishlist" button or link on the product page. <span class="addon">Copy this shortcode <span class="code"><code>[yith_wcwl_add_to_wishlist]</code></span> and paste it where you want to show the "Add to wishlist" link or button</span>', 'yith-woocommerce-wishlist' ),
				'id'        => 'yith_wcwl_button_position',
				'default'   => 'after_add_to_cart',
				'type'      => 'yith-field',
				'yith-type' => 'select',
				'class'     => 'wc-enhanced-select',
				'options'   => array(
					'add-to-cart' => __( 'After "Add to cart"', 'yith-woocommerce-wishlist' ),
					'thumbnails'  => __( 'After thumbnails', 'yith-woocommerce-wishlist' ),
					'summary'     => __( 'After summary', 'yith-woocommerce-wishlist' ),
					'shortcode'   => __( 'Use shortcode', 'yith-woocommerce-wishlist' ),
				),
			),

			'product_page_section_end' => array(
				'type' => 'sectionend',
				'id'   => 'yith_wcwl_product_page_settings',
			),
		),
	)
);
settings/general-options.php000064400000003715151534477340012246 0ustar00<?php
/**
 * General settings page
 *
 * @author YITH
 * @package YITH\Wishlist\Options
 * @version 3.0.0
 */

defined( 'YITH_WCWL' ) || exit; // Exit if accessed directly.

$yith_wfbt_installed = ( defined( 'YITH_WFBT' ) && YITH_WFBT );

/**
 * APPLY_FILTERS: yith_wcwl_settings_options
 *
 * Filter the options available in the 'General settings' tab.
 *
 * @param array $options Array of options
 *
 * @return array
 */

return apply_filters(
	'yith_wcwl_settings_options',
	array(
		'settings-general' => array(
			/**
			 * General settings
			 */
			'general_section_start' => array(
				'name' => __( 'General settings', 'yith-woocommerce-wishlist' ),
				'type' => 'title',
				'desc' => '',
				'id'   => 'yith_wcwl_general_settings',
			),
			'enable_ajax_loading'   => array(
				'name'      => __( 'Enable AJAX loading', 'yith-woocommerce-wishlist' ),
				'desc'      => __( 'Load any cacheable wishlist item via AJAX', 'yith-woocommerce-wishlist' ),
				'id'        => 'yith_wcwl_ajax_enable',
				'default'   => 'no',
				'type'      => 'yith-field',
				'yith-type' => 'onoff',
			),

			'general_section_end'   => array(
				'type' => 'sectionend',
				'id'   => 'yith_wcwl_general_settings',
			),
		),
		$yith_wfbt_installed ? array(
			'yith_wfbt_start'              => array(
				'name' => __( 'YITH WooCommerce Frequently Bought Together Integration', 'yith-woocommerce-wishlist' ),
				'type' => 'title',
				'id'   => 'yith_wcwl_yith_wfbt',
			),

			'yith_wfbt_enable_integration' => array(
				'name'      => __( 'Enable slider in wishlist', 'yith-woocommerce-wishlist' ),
				'desc'      => __( 'Enable the slider with linked products on the Wishlist page.', 'yith-woocommerce-wishlist' ),
				'id'        => 'yith_wfbt_enable_integration',
				'default'   => 'yes',
				'type'      => 'yith-field',
				'yith-type' => 'onoff',
			),

			'yith_wfbt_end'                => array(
				'type' => 'sectionend',
				'id'   => 'yith_wcwl_yith_wfbt',
			),
		) : array(),
	)
);
settings/wishlist_page-options.php000064400000017234151534477340013474 0ustar00<?php // phpcs:ignore WordPress.Files.FileName.NotHyphenatedLowercase
/**
 * Wishlist Page settings
 *
 * @author YITH <plugins@yithemes.com>
 * @package YITH\Wishlist\Options
 * @version 3.0.0
 */

if ( ! defined( 'YITH_WCWL' ) ) {
	exit;
} // Exit if accessed directly

/**
 * APPLY_FILTERS: yith_wcwl_wishlist_page_options
 *
 * Filter the options available in the 'Wishlist page options' tab.
 *
 * @param array $options Array of options
 *
 * @return array
 */
return apply_filters(
	'yith_wcwl_wishlist_page_options',
	array(
		'settings-wishlist_page' => array(
			'manage_section_start'     => array(
				'name' => __( 'Wishlist page', 'yith-woocommerce-wishlist' ),
				'type' => 'title',
				'desc' => '',
				'id'   => 'yith_wcwl_manage_settings',
			),

			'wishlist_page'            => array(
				'name'    => __( 'Wishlist page', 'yith-woocommerce-wishlist' ),
				'desc'    => __( 'Pick a page as the main Wishlist page; make sure you add the <span class="code"><code>[yith_wcwl_wishlist]</code></span> shortcode into the page content', 'yith-woocommerce-wishlist' ),
				'id'      => 'yith_wcwl_wishlist_page_id',
				'type'    => 'single_select_page',
				'default' => '',
				'class'   => 'chosen_select_nostd',
			),

			'manage_section_end'       => array(
				'type' => 'sectionend',
				'id'   => 'yith_wcwl_manage_settings',
			),

			'wishlist_section_start'   => array(
				'name' => __( 'Wishlist detail page', 'yith-woocommerce-wishlist' ),
				'type' => 'title',
				'desc' => '',
				'id'   => 'yith_wcwl_wishlist_settings',
			),

			'show_product_variation'   => array(
				'name'          => __( 'In wishlist table show', 'yith-woocommerce-wishlist' ),
				'desc'          => __( 'Product variations selected by the user (example: size or color)', 'yith-woocommerce-wishlist' ),
				'id'            => 'yith_wcwl_variation_show',
				'type'          => 'checkbox',
				'default'       => '',
				'checkboxgroup' => 'start',
			),

			'show_unit_price'          => array(
				'name'          => __( 'In wishlist table show', 'yith-woocommerce-wishlist' ),
				'desc'          => __( 'Product price', 'yith-woocommerce-wishlist' ),
				'id'            => 'yith_wcwl_price_show',
				'type'          => 'checkbox',
				'default'       => 'yes',
				'checkboxgroup' => 'wishlist_info',
			),

			'show_stock_status'        => array(
				'name'          => __( 'In wishlist table show', 'yith-woocommerce-wishlist' ),
				'desc'          => __( 'Product stock (show if the product is available or not)', 'yith-woocommerce-wishlist' ),
				'id'            => 'yith_wcwl_stock_show',
				'type'          => 'checkbox',
				'default'       => 'yes',
				'checkboxgroup' => 'wishlist_info',
			),

			'show_dateadded'           => array(
				'name'          => __( 'In wishlist table show', 'yith-woocommerce-wishlist' ),
				'desc'          => __( 'Date on which the product was added to the wishlist', 'yith-woocommerce-wishlist' ),
				'id'            => 'yith_wcwl_show_dateadded',
				'type'          => 'checkbox',
				'default'       => '',
				'checkboxgroup' => 'wishlist_info',
			),

			'show_add_to_cart'         => array(
				'name'          => __( 'In wishlist table show', 'yith-woocommerce-wishlist' ),
				'desc'          => __( 'Add to cart option for each product', 'yith-woocommerce-wishlist' ),
				'id'            => 'yith_wcwl_add_to_cart_show',
				'type'          => 'checkbox',
				'default'       => 'yes',
				'checkboxgroup' => 'wishlist_info',
			),

			'show_remove_button'       => array(
				'name'          => __( 'In wishlist table show', 'yith-woocommerce-wishlist' ),
				'desc'          => __( 'Icon to remove the product from the wishlist - to the left of the product', 'yith-woocommerce-wishlist' ),
				'id'            => 'yith_wcwl_show_remove',
				'type'          => 'checkbox',
				'default'       => 'yes',
				'checkboxgroup' => 'wishlist_info',
			),

			'repeat_remove_button'     => array(
				'name'          => __( 'In wishlist table show', 'yith-woocommerce-wishlist' ),
				'desc'          => __( 'Button to remove the product from the wishlist - to the right of the product', 'yith-woocommerce-wishlist' ),
				'id'            => 'yith_wcwl_repeat_remove_button',
				'type'          => 'checkbox',
				'default'       => '',
				'checkboxgroup' => 'end',
			),

			'redirect_to_cart'         => array(
				'name'      => __( 'Redirect to cart', 'yith-woocommerce-wishlist' ),
				'desc'      => __( 'Redirect users to the cart page when they add a product to the cart from the wishlist page', 'yith-woocommerce-wishlist' ),
				'id'        => 'yith_wcwl_redirect_cart',
				'default'   => 'no',
				'type'      => 'yith-field',
				'yith-type' => 'onoff',
			),

			'remove_after_add_to_cart' => array(
				'name'      => __( 'Remove items when added to the cart', 'yith-woocommerce-wishlist' ),
				'desc'      => __( 'Remove the product from the wishlist after it has been added to the cart', 'yith-woocommerce-wishlist' ),
				'id'        => 'yith_wcwl_remove_after_add_to_cart',
				'default'   => 'yes',
				'type'      => 'yith-field',
				'yith-type' => 'onoff',
			),

			'enable_wishlist_share'    => array(
				'name'      => __( 'Share wishlist', 'yith-woocommerce-wishlist' ),
				'desc'      => __( 'Enable this option to let users share their wishlist on social media', 'yith-woocommerce-wishlist' ),
				'id'        => 'yith_wcwl_enable_share',
				'type'      => 'yith-field',
				'yith-type' => 'onoff',
				'default'   => 'yes',
			),

			'share_on_facebook'        => array(
				'name'          => __( 'Share on social media', 'yith-woocommerce-wishlist' ),
				'desc'          => __( 'Share on Facebook', 'yith-woocommerce-wishlist' ),
				'id'            => 'yith_wcwl_share_fb',
				'default'       => 'yes',
				'type'          => 'checkbox',
				'checkboxgroup' => 'start',
			),

			'share_on_twitter'         => array(
				'name'          => __( 'Share on social media', 'yith-woocommerce-wishlist' ),
				'desc'          => __( 'Tweet on Twitter (X)', 'yith-woocommerce-wishlist' ),
				'id'            => 'yith_wcwl_share_twitter',
				'default'       => 'yes',
				'type'          => 'checkbox',
				'checkboxgroup' => 'wishlist_share',
			),

			'share_on_pinterest'       => array(
				'name'          => __( 'Share on social media', 'yith-woocommerce-wishlist' ),
				'desc'          => __( 'Pin on Pinterest', 'yith-woocommerce-wishlist' ),
				'id'            => 'yith_wcwl_share_pinterest',
				'default'       => 'yes',
				'type'          => 'checkbox',
				'checkboxgroup' => 'wishlist_share',
			),

			'share_by_email'           => array(
				'name'          => __( 'Share on social media', 'yith-woocommerce-wishlist' ),
				'desc'          => __( 'Share by email', 'yith-woocommerce-wishlist' ),
				'id'            => 'yith_wcwl_share_email',
				'default'       => 'yes',
				'type'          => 'checkbox',
				'checkboxgroup' => 'wishlist_share',
			),

			'share_by_whatsapp'        => array(
				'name'          => __( 'Share on social media', 'yith-woocommerce-wishlist' ),
				'desc'          => __( 'Share on WhatsApp', 'yith-woocommerce-wishlist' ),
				'id'            => 'yith_wcwl_share_whatsapp',
				'default'       => 'yes',
				'type'          => 'checkbox',
				'checkboxgroup' => 'wishlist_share',
			),

			'share_by_url'             => array(
				'name'          => __( 'Share by URL', 'yith-woocommerce-wishlist' ),
				'desc'          => __( 'Show "Share URL" field on wishlist page', 'yith-woocommerce-wishlist' ),
				'id'            => 'yith_wcwl_share_url',
				'default'       => 'no',
				'type'          => 'checkbox',
				'checkboxgroup' => 'end',
			),

			'wishlist_section_end'     => array(
				'type' => 'sectionend',
				'id'   => 'yith_wcwl_wishlist_settings',
			),
		),
	)
);
settings-options.php000064400000002624151534477340010627 0ustar00<?php
/**
 * Settings options
 *
 * @package YITH\Wishlist\PluginOptions
 */

defined( 'YITH_WCWL' ) || exit; // Exit if accessed directly

$sub_tabs = array(
	'settings-general'         => array(
		'title'              => _x( 'General', 'Tab title in plugin settings panel', 'yith-woocommerce-wishlist' ),
		'yith-wcwl-priority' => 20,
		'description'        => _x( 'Configure the plugin general settings.', 'Tab description in plugin settings panel', 'yith-woocommerce-wishlist' ),
	),
	'settings-add_to_wishlist' => array(
		'title'              => _x( 'Add to wishlist', 'Tab title in plugin settings panel', 'yith-woocommerce-wishlist' ),
		'yith-wcwl-priority' => 20,
		'description'        => _x( 'Configure the Add to wishlist settings.', 'Tab description in plugin settings panel', 'yith-woocommerce-wishlist' ),
	),
	'settings-wishlist_page'   => array(
		'title'              => _x( 'Wishlist page', 'Tab title in plugin settings panel', 'yith-woocommerce-wishlist' ),
		'yith-wcwl-priority' => 20,
		'description'        => _x( 'Configure the wishlist page settings.', 'Tab description in plugin settings panel', 'yith-woocommerce-wishlist' ),
	),
);

$options = array(
	'settings' => array(
		'settings-tabs' => array(
			'type'     => 'multi_tab',
			'sub-tabs' => apply_filters( 'yith_wcwl_setting_options_sub_tabs', $sub_tabs ),
		),
	),
);

return apply_filters( 'yith_wcwl_panel_settings_options', $options );