content-archive.php
3 years ago
content-cart.php
3 years ago
content-checkout-without-account.php
3 years ago
content-checkout.php
3 years ago
content-shop.php
3 years ago
content-single-product.php
3 years ago
gutenberg-default.php
1 year ago
gutenberg-shopengine_canvas_tpl.php
4 years ago
gutenberg-shopengine_full_width_tpl.php
3 years ago
content-cart.php
61 lines
| 1 | <?php |
| 2 | |
| 3 | defined('ABSPATH') || exit; ?> |
| 4 | |
| 5 | <?php echo !wp_is_block_theme() ? '<div class="shopengine">' : ""; ?> |
| 6 | <?php |
| 7 | $editor_mode = \ShopEngine\Utils\Helper::is_elementor_editor_mode(); |
| 8 | |
| 9 | if(WC()->cart->is_empty() && !$editor_mode) { |
| 10 | ?> |
| 11 | <div class="shopengine shopengine-empty-cart-container"> |
| 12 | <div class="woocommerce-notices-wrapper"> |
| 13 | |
| 14 | <article class="page type-page status-publish hentry entry"> |
| 15 | |
| 16 | <header class="entry-header alignwide"> |
| 17 | <h1 class="entry-title"><?php |
| 18 | esc_html_e("Cart", 'shopengine') ?></h1> |
| 19 | </header> |
| 20 | |
| 21 | <div class="entry-content"> |
| 22 | <div class="woocommerce"> |
| 23 | <div class="woocommerce-notices-wrapper"></div> |
| 24 | <?php |
| 25 | do_action('woocommerce_cart_is_empty'); ?> |
| 26 | <a title="<?php esc_html_e('Return To Shop','shopengine')?>" class="button wc-backward" href="<?php |
| 27 | echo esc_url(apply_filters('woocommerce_return_to_shop_redirect', |
| 28 | wc_get_page_permalink('shop'))); ?>"> |
| 29 | <?php |
| 30 | /** |
| 31 | * Filter "Return To Shop" text. |
| 32 | * |
| 33 | * @param string $default_text Default text. |
| 34 | * |
| 35 | * @since 4.6.0 |
| 36 | */ |
| 37 | echo esc_html(apply_filters('woocommerce_return_to_shop_text', |
| 38 | __('Return to shop', 'shopengine'))); |
| 39 | ?> |
| 40 | </a> |
| 41 | </div> |
| 42 | </div> |
| 43 | </article> |
| 44 | </div> |
| 45 | </div> |
| 46 | |
| 47 | <?php |
| 48 | } else { |
| 49 | |
| 50 | while(have_posts()) : the_post(); |
| 51 | if(\ShopEngine\Core\Builders\Action::is_edit_with_gutenberg($this->prod_tpl_id)) { |
| 52 | shopengine_content_render( do_blocks( get_the_content(null, false, $this->prod_tpl_id) ) ); |
| 53 | } else { |
| 54 | \ShopEngine\Core\Page_Templates\Hooks\Base_Content::instance()->load_content_designed_from_builder(); |
| 55 | } |
| 56 | endwhile; |
| 57 | |
| 58 | } |
| 59 | ?> |
| 60 | <?php echo !wp_is_block_theme() ? '</div>' : ''; ?> |
| 61 |