PluginProbe
ShopBuilder – WooCommerce Builder For Elementor / 1.1.4
ShopBuilder – WooCommerce Builder For Elementor v1.1.4
3.4.2 3.4.1 3.4.0 2.0.1 2.0.2 2.0.3 2.1.0 2.1.1 2.1.10 2.1.11 2.1.12 2.1.13 2.1.14 2.1.15 2.1.2 2.1.3 2.1.4 2.1.5 2.1.6 2.1.7 2.1.8 2.1.9 2.2.0 2.2.1 2.2.2 All 63 releases
← All changes | templates/wishlist/list.php +75 -75 2.1.111.1.4 View file →
@@ -1,75 +1,75 @@
1 -<?php
2 -/**
3 - * Wishlist page template
4 - *
5 - * @author RadiusTheme
6 - * @package RTSB_ABSPATH\Templates\Wishlist\list
7 - * @version 1.0.0
8 - */
9 -
10 -/**
11 - * Template variables:
12 - *
13 - * @var $field_ids array Wishlist page field_ids
14 - * @var $headings array Wishlist page table headings
15 - */
16 -
17 -use RadiusTheme\SB\Modules\WishList\WishlistFns;
18 -
19 -defined( 'ABSPATH' ) || die( 'Keep Silent' );
20 -?>
21 -
22 -<div class="rtsb-wishlist-content">
23 - <table class="rtsb-wishlist-table">
24 - <thead>
25 - <?php
26 - $cell_count = 1;
27 - if ( ! empty( $field_ids ) ) {
28 - $cell_count = count( $field_ids );
29 - echo '<tr>';
30 - foreach ( $field_ids as $field_id ) {
31 - $name = ! empty( $headings[ $field_id ] ) ? $headings[ $field_id ] : WishlistFns::instance()->field_name( $field_id );
32 - echo '<th class="rtsb-wl-product-' . esc_attr( $field_id ) . '">' . ( 'Remove' === $name ? '<i class="rtsb-icon rtsb-icon-trash-empty"></i>' : esc_html( $name ) ). '</th>';
33 - }
34 - echo '</tr>';
35 - }
36 - ?>
37 - </thead>
38 - <tbody>
39 - <?php
40 - if ( ! empty( $products ) ):
41 - foreach ( $products as $product_id => $product ):
42 - ?>
43 - <tr class="rtsb-wl-product" data-product_id="<?php echo absint( $product_id ) ?>">
44 - <?php foreach ( $field_ids as $field_id ) :
45 - $data_label = ! empty( $headings[ $field_id ] ) ? $headings[ $field_id ] : WishlistFns::instance()->field_name( $field_id );
46 - ?>
47 - <td class="rtsb-wl-product-<?php echo esc_attr( $field_id ); ?>"
48 - data-label="<?php echo esc_attr( $data_label ); ?>">
49 - <div class="rtsb-wl-td-wrapper">
50 - <?php WishlistFns::instance()->display_field( $field_id, $product ); ?>
51 - </div>
52 - </td>
53 - <?php endforeach; ?>
54 - </tr>
55 -
56 - <?php endforeach; ?>
57 - <tr class="rtsb-wl-empty-tr">
58 - <td class="rtsb-wl-empty-text" colspan="<?php echo esc_attr( $cell_count ); ?>">
59 - <?php if ( ! empty( $empty_text ) ) {
60 - echo wp_kses_post( $empty_text );
61 - } ?>
62 - </td>
63 - </tr>
64 - <?php else: ?>
65 - <tr>
66 - <td class="rtsb-wl-empty-text" colspan="<?php echo esc_attr( $cell_count ); ?>">
67 - <?php if ( ! empty( $empty_text ) ) {
68 - echo wp_kses_post( $empty_text );
69 - } ?>
70 - </td>
71 - </tr>
72 - <?php endif; ?>
73 - </tbody>
74 - </table>
75 -</div>
1 +<?php
2 +/**
3 + * Wishlist page template
4 + *
5 + * @author RadiusTheme
6 + * @package RTSB_ABSPATH\Templates\Wishlist\list
7 + * @version 1.0.0
8 + */
9 +
10 +/**
11 + * Template variables:
12 + *
13 + * @var $field_ids array Wishlist page field_ids
14 + * @var $headings array Wishlist page table headings
15 + */
16 +
17 +use RadiusTheme\SB\Modules\WishList\WishlistFns;
18 +
19 +defined( 'ABSPATH' ) || die( 'Keep Silent' );
20 +?>
21 +
22 +<div class="rtsb-wishlist-content">
23 + <table class="rtsb-wishlist-table">
24 + <thead>
25 + <?php
26 + $cell_count = 1;
27 + if ( ! empty( $field_ids ) ) {
28 + $cell_count = count( $field_ids );
29 + echo '<tr>';
30 + foreach ( $field_ids as $field_id ) {
31 + $name = ! empty( $headings[ $field_id ] ) ? $headings[ $field_id ] : WishlistFns::instance()->field_name( $field_id );
32 + echo '<th class="rtsb-wl-product-' . esc_attr( $field_id ) . '">' . ( 'Remove' === $name ? '<i class="rtsb-icon-trash-empty"></i>' : esc_html( $name ) ). '</th>';
33 + }
34 + echo '</tr>';
35 + }
36 + ?>
37 + </thead>
38 + <tbody>
39 + <?php
40 + if ( ! empty( $products ) ):
41 + foreach ( $products as $product_id => $product ):
42 + ?>
43 + <tr class="rtsb-wl-product" data-product_id="<?php echo absint( $product_id ) ?>">
44 + <?php foreach ( $field_ids as $field_id ) :
45 + $data_label = ! empty( $headings[ $field_id ] ) ? $headings[ $field_id ] : WishlistFns::instance()->field_name( $field_id );
46 + ?>
47 + <td class="rtsb-wl-product-<?php echo esc_attr( $field_id ); ?>"
48 + data-label="<?php echo esc_attr( $data_label ); ?>">
49 + <div class="rtsb-wl-td-wrapper">
50 + <?php WishlistFns::instance()->display_field( $field_id, $product ); ?>
51 + </div>
52 + </td>
53 + <?php endforeach; ?>
54 + </tr>
55 +
56 + <?php endforeach; ?>
57 + <tr class="rtsb-wl-empty-tr">
58 + <td class="rtsb-wl-empty-text" colspan="<?php echo esc_attr( $cell_count ); ?>">
59 + <?php if ( ! empty( $empty_text ) ) {
60 + echo wp_kses_post( $empty_text );
61 + } ?>
62 + </td>
63 + </tr>
64 + <?php else: ?>
65 + <tr>
66 + <td class="rtsb-wl-empty-text" colspan="<?php echo esc_attr( $cell_count ); ?>">
67 + <?php if ( ! empty( $empty_text ) ) {
68 + echo wp_kses_post( $empty_text );
69 + } ?>
70 + </td>
71 + </tr>
72 + <?php endif; ?>
73 + </tbody>
74 + </table>
75 +</div>