%PDF- %PDF-
Direktori : /var/www/cwg/wp-content/themes/cwg/woocommerce/ |
Current File : //var/www/cwg/wp-content/themes/cwg/woocommerce/add-to-wishlist-popup.php |
<?php /** * Add to wishlist popup template * * @author Your Inspiration Themes * @package YITH WooCommerce Wishlist * @version 3.0.0 */ /** * Template variables: * * @var $base_url string Current page url * @var $lists YITH_WCWL_Wishlist[] * @var $show_exists bool Whether to show Exists message or not * @var $product_id int Current product id * @var $parent_product_id int Parent for current product * @var $show_count bool Whether to show count of times item was added to wishlist * @var $exists bool Whether the product is already in list * @var $already_in_wishslist_text string Already in wishlist message * @var $browse_wishlist_text string Browse wishlist message * @var $wishlist_url string View wishlist url * @var $link_classes string Classes for the Add to Wishlist link * @var $link_popup_classes string Classes for Open Add to Wishlist Popup link * @var $label_popup string Label for Open Add to Wishlist Popup link * @var $popup_title string Popup title * @var $product_image string Product image url (not is use) * @var $icon string Icon HTML tag * @var $heading_icon string Heading icon HTML tag */ if ( ! defined( 'YITH_WCWL' ) ) { exit; } // Exit if accessed directly $unique_id = mt_rand(); ?> <div class="yith-wcwl-add-button"> <!-- WISHLIST POPUP OPENER --> <a href="#add_to_wishlist_popup_<?php echo esc_attr( $product_id ); ?>_<?php echo esc_attr( $unique_id ); ?>" rel="nofollow" class="<?php echo esc_attr( $link_classes ); ?> open-pretty-photo heart-icon-link" data-rel="prettyPhoto[add_to_wishlist_<?php echo esc_attr( $product_id ); ?>_<?php echo esc_attr( $unique_id ); ?>]" data-title="<?php echo esc_attr( apply_filters( 'yith_wcwl_add_to_wishlist_title', $label ) ); ?>"> <?php echo $icon; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?> </a> <!-- WISHLIST POPUP --> <div id="add_to_wishlist_popup_<?php echo esc_attr( $product_id ); ?>_<?php echo esc_attr( $unique_id ); ?>" class="yith-wcwl-popup py-9"> <form class="js-callback-form yith-wcwl-popup-form" method="post" action="<?php echo esc_url( add_query_arg( 'add_to_wishlist', $product_id, $base_url ) ); ?>"> <div class="yith-wcwl-popup-content"> <div class="text-[13px]"> ADD TO AN EXISTING PROJECT </div> <div class="text-[13px] mb-3" >OR CREATE A NEW ONE:</div> <div class="tab choose lg:pr-[45%]"> <div class="text-[10px] text-grey-textLight italic">To add this piece to a new project, select "Create a new list"</div> <div class="yith-wcwl-wishlist-select-container pr-[10px] border border-grey-separator"> <select name="wishlist_id" class="wishlist-select w-full text-xs font-thin"> <?php if ( empty( $lists ) ) : ?> <option value="0" <?php selected( true ); ?> ><?php echo esc_html( apply_filters( 'yith_wcwl_default_wishlist_name', get_option( 'yith_wcwl_wishlist_title' ) ) ); ?></option> <?php else : ?> <?php foreach ( $lists as $list ) : ?> <?php if ( $list ) : ?> <option value="<?php echo esc_attr( $list->get_id() ); ?>"><?php echo esc_html( $list->get_formatted_name() ); ?></option> <?php endif; ?> <?php endforeach; ?> <?php endif; ?> <option value="new"><?php echo esc_html( apply_filters( 'yith_wcwl_create_new_list_text', __( 'Create a new list', 'yith-woocommerce-wishlist' ) ) ); ?></option> </select> </div> </div> <div class="tab create"> <p class="form-row form-row-wide"> <div class="text-grey-textLight text-[10px] uppercase">Project name *</div> <input name="wishlist_name" class="wishlist-name lg:pr-[45%] lg:w-[45%] text-xs font-thin w-full input-text border border-grey-separator" type="text"/> </p> <p class="form-row form-row-wide hidden"> <label> <input type="radio" name="wishlist_visibility" value="1" class="shared-visibility wishlist-visibility" <?php checked( true ); ?>/> <?php echo yith_wcwl_get_privacy_label( 1, true ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?> </label> </p> </div> </div> <div class="yith-wcwl-popup-footer popup-description mt-4 flex flex-row" onclick="popupInterval()"> <a rel="nofollow" class="btn-stroked-dark uppercase w-[35%] <?php echo esc_attr( $link_popup_classes ); ?>" data-product-id="<?php echo esc_attr( $product_id ); ?>" data-product-type="<?php echo esc_attr( $product_type ); ?>" data-original-product-id="<?php echo esc_attr( $parent_product_id ); ?>"> SAVE </a> </div> </form> </div> <div class="hidden flex-col bg-white absolute bottom-0 justify-center items-center h-[25%] w-full lg:h-full lg:w-[30%] lg:right-0 lg:py-32" id="js-request-sent"> <?php include(locate_template('/assets/img/icon-check-mail.svg')); ?> <div class="text-sm pt-2 lg:text-3xl">ENQUIRY SENT</div> </div> </div>