%PDF- %PDF-
Direktori : /var/www/cwg/wp-content/themes/cwg/woocommerce/ |
Current File : //var/www/cwg/wp-content/themes/cwg/woocommerce/wishlist-view-header.php |
<?php /** * Wishlist header * * @author Your Inspiration Themes * @package YITH WooCommerce Wishlist * @version 3.0.0 */ /** * Template variables: * * @var $wishlist \YITH_WCWL_Wishlist Current wishlist * @var $is_custom_list bool Whether current wishlist is custom * @var $can_user_edit_title bool Whether current user can edit title * @var $form_action string Action for the wishlist form * @var $page_title string Page title * @var $fragment_options array Array of items to use for fragment generation */ if ( ! defined( 'YITH_WCWL' ) ) { exit; } // Exit if accessed directly ?> <?php do_action( 'yith_wcwl_before_wishlist_form', $wishlist ); ?> <form id="yith-wcwl-form" action="<?php echo esc_attr( $form_action ); ?>" method="post" class="woocommerce pt-7 yith-wcwl-form wishlist-fragment" data-fragment-options="<?php echo esc_attr( json_encode( $fragment_options ) ); ?>"> <!-- TITLE --> <?php do_action( 'yith_wcwl_before_wishlist_title', $wishlist ); if ( ! empty( $page_title ) ) : ?> <div class="wishlist-title-container px-5 lg:px-10"> <div class="flex flex-row justify-between h-6 mb-3"> <h1 class="text-base uppercase font-medium"> WISHLIST </h1> <?php $wlEmpty = count($wishlist["items"]); ?> <?php if($wlEmpty !== 0): ?> <div id="js-editBtn"> <a class="font-light text-xs border-b border-black show-title-form js-btnEditWishlistView cursor-pointer select-none" onclick="editWishlistView()"> Edit </a> <a class="font-bold text-xs hidden border-b border-black show-title-form js-btnEditWishlistView cursor-pointer select-none" onclick="editWishlistView()"> Done </a> </div> <?php endif; ?> </div> <div class="flex flex-row justify-between h-6 mb-6"> <div class="uppercase text-[13px] max-w-[50%] lg:max-w-[50%]"> <?php echo apply_filters( 'yith_wcwl_wishlist_title', '<h2 class="whitespace-nowrap overflow-ellipsis overflow-hidden">' . esc_html( $page_title ) . '</h2>' ); ?> </div> <?php if($wlEmpty !== 0): ?> <div class="flex cursor-pointer js-shareBtn" data-title="Check out my whishlist on CWG" data-text="<?= get_the_title(); ?>" data-link="<?= get_permalink(get_the_ID()); ?>"> <div class="text-xs font-thin flex items-center"> <span><?php include(locate_template('/assets/img/share-black.svg')); ?></span> <span class="ml-1 pt-0.5">SHARE</span> </div> </div> <?php endif; ?> </div> <?php if ( $can_user_edit_title ) : ?> <div class="hidden-title-form"> <input type="text" value="<?php echo esc_attr( $page_title ); ?>" name="wishlist_name"/> <div class="edit-title-buttons"> <a role="button" href="#" class="hide-title-form"> <?php echo apply_filters( 'yith_wcwl_cancel_wishlist_title_icon', '<i class="fa fa-remove"></i>' ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?> </a> <a role="button" href="#" class="save-title-form"> <?php echo apply_filters( 'yith_wcwl_save_wishlist_title_icon', '<i class="fa fa-check"></i>' ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?> </a> </div> </div> <?php endif; ?> </div> <?php endif; do_action( 'yith_wcwl_before_wishlist', $wishlist ); ?>