PATH:
home
/
centosnipponia
/
public_html
/
sweetrich
/
wp-content
/
themes
/
sydney-pro-ii
<?php /** * Template part for displaying wishlist content * * @package Sydney */ $products = isset( $_COOKIE['woocommerce_items_in_cart_sydney_wishlist'] ) ? sanitize_text_field( wp_unslash( $_COOKIE['woocommerce_items_in_cart_sydney_wishlist'] ) ) : false; if( $products ) : $products = explode( ',', $products ); ?> <div class="sydney-wishlist-wrapper woocommerce-cart-form"> <table class="shop_table shop_table_responsive sydney_wishlist_table" cellspacing="0"> <thead> <tr> <th class="product-remove"> </th> <th class="product-thumbnail"> </th> <th class="product-name"><?php esc_html_e( 'Product Name', 'sydney' ); ?></th> <th class="product-price"><?php esc_html_e( 'Unit Price', 'sydney' ); ?></th> <th class="product-quantity"><?php esc_html_e( 'Stock Status', 'sydney' ); ?></th> <th class="product-subtotal"> </th> </tr> </thead> <tbody> <?php foreach ( $products as $product_id ) { $_product = wc_get_product( $product_id ); if ( $_product && $_product->exists() ) { $product_permalink = $_product->is_visible() ? $_product->get_permalink() : ''; ?> <tr class="sydney-wishlist-row-item woocommerce-cart-form__cart-item"> <td class="product-remove"> <?php // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped echo apply_filters( 'sydney_wishlist_remove_item_button', sprintf( '<a href="#" class="sydney-wishlist-remove-item remove" data-type="remove" aria-label="%s" data-product-id="%s" data-product_sku="%s" data-nonce="%s">×</a>', esc_html__( 'Remove this item', 'sydney' ), esc_attr( $product_id ), esc_attr( $_product->get_sku() ), esc_attr( wp_create_nonce( 'sydney-wishlist-nonce' ) ) ) ); ?> </td> <td class="product-thumbnail"> <?php $thumbnail = $_product->get_image(); if ( ! $product_permalink ) { echo $thumbnail; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped } else { printf( '<a href="%s">%s</a>', esc_url( $product_permalink ), $thumbnail ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped } ?> </td> <td class="product-name" data-title="<?php esc_attr_e( 'Product', 'sydney' ); ?>"> <?php if ( ! $product_permalink ) { echo wp_kses_post( $_product->get_name() . ' ' ); } else { echo wp_kses_post( sprintf( '<a href="%s">%s</a>', esc_url( $product_permalink ), $_product->get_name() ) ); } do_action( 'sydney_wishlist_after_item_name', $_product, $product_id ); ?> </td> <td class="product-price" data-title="<?php esc_attr_e( 'Price', 'sydney' ); ?>"> <?php echo wp_kses_post( wc_price( $_product->get_price() ) ); ?> </td> <td class="product-stock" data-title="<?php esc_attr_e( 'Stock', 'sydney' ); ?>"> <?php if ( ! $_product->is_in_stock() ) { echo apply_filters( 'sydney_wishlist_out_of_stock', esc_html__( 'Out of Stock', 'sydney' ) ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped } else { echo apply_filters( 'sydney_wishlist_in_stock', esc_html__( 'In Stock', 'sydney' ) ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped } ?> </td> <td class="product-addtocart" data-title="<?php esc_attr_e( 'Add to Cart', 'sydney' ); ?>"> <?php switch ( $_product->get_type() ) { case 'grouped': $button_class = ''; $button_text = __( 'View Products', 'sydney' ); $button_url = $_product->add_to_cart_url(); break; case 'variable': $button_class = ''; $button_text = __( 'Select Options', 'sydney' ); $button_url = $_product->add_to_cart_url(); break; case 'external': $button_class = ''; $button_text = $_product->single_add_to_cart_text(); $button_url = $_product->add_to_cart_url(); break; default: $button_class = 'sydney-custom-addtocart'; $button_text = __( 'Add to Cart', 'sydney' ); $button_url = $_product->add_to_cart_url(); break; } echo '<strong><a href="'. esc_url( $button_url ) .'" class="'. esc_attr( $button_class ) .'" data-product-id="'. absint( $product_id ) .'" data-loading-text="'. esc_attr__( 'Loading...', 'sydney' ) .'" data-added-text="'. esc_attr__( 'Added!', 'sydney' ) .'" data-nonce="'. esc_attr( wp_create_nonce( 'sydney-custom-addtocart-nonce' ) ) .'">'. esc_html( $button_text ) .'</a></strong>'; ?> </td> </tr> <?php } } ?> </tbody> </table> <div class="footer-buttons"> <a href="<?php echo esc_url( wc_get_cart_url() ); ?>" class="roll-button"><?php echo esc_html__( 'View Cart', 'sydney' ); ?></a> </div> </div> <?php else : ?> <div class="sydney-wishlist-wrapper woocommerce-cart-form"> <table class="shop_table shop_table_responsive sydney_wishlist_table empty" cellspacing="0"> <thead> <tr> <th class="product-remove"> </th> <th class="product-thumbnail"> </th> <th class="product-name"><?php esc_html_e( 'Product Name', 'sydney' ); ?></th> <th class="product-price"><?php esc_html_e( 'Unit Price', 'sydney' ); ?></th> <th class="product-quantity"><?php esc_html_e( 'Stock Status', 'sydney' ); ?></th> <th class="product-subtotal"> </th> </tr> </thead> <tbody> <tr class="sydney-wishlist-row-item woocommerce-cart-form__cart-item"> <td colspan="6"><?php echo esc_html__( 'No products added to the wishlist', 'sydney' ); ?></td> </tr> </tbody> </table> </div> <?php endif; ?>
[+]
..
[+]
css
[+]
demo-content
[+]
fonts
[+]
images
[+]
inc
[+]
js
[+]
languages
[+]
page-templates
[+]
partials
[+]
plugins
[+]
post-templates
[+]
theme-dashboard
[+]
updater
[+]
vendor
[+]
widgets
[+]
woocommerce
[-] 404.php
[edit]
[-] archive-employees.php
[edit]
[-] archive-services.php
[edit]
[-] archive.php
[edit]
[-] comments.php
[edit]
[-] content-none.php
[edit]
[-] content-page.php
[edit]
[-] content-quick-view.php
[edit]
[-] content-search.php
[edit]
[-] content-single.php
[edit]
[-] content-wishlist.php
[edit]
[-] content.php
[edit]
[-] footer.php
[edit]
[-] functions.php
[edit]
[-] header-contact.php
[edit]
[-] header-featured-image.php
[edit]
[-] header-no-header.php
[edit]
[-] header.php
[edit]
[-] home.php
[edit]
[-] index.php
[edit]
[-] license.txt
[edit]
[-] page.php
[edit]
[-] README.md
[edit]
[-] readme.txt
[edit]
[-] rtl.css
[edit]
[-] screenshot.png
[edit]
[-] search.php
[edit]
[-] searchform.php
[edit]
[-] sidebar-footer.php
[edit]
[-] sidebar-shop.php
[edit]
[-] sidebar.php
[edit]
[-] single-employees.php
[edit]
[-] single-projects.php
[edit]
[-] single.php
[edit]
[-] style.css
[edit]
[-] sydney-gutenberg-editor-styles.css
[edit]
[-] toolset-config.json
[edit]
[-] wpml-config.xml
[edit]
[-] .htaccess.disabled
[edit]