Headline
CVE-2021-24993: Changeset 2650578 – WordPress Plugin Repository
The Ultimate Product Catalog WordPress plugin before 5.0.26 does not have authorisation and CSRF checks in some AJAX actions, which could allow any authenticated users, such as subscriber to call them and add arbitrary products, or change the plugin’s settings for example
ultimate-product-catalogue/tags/5.0.26/assets/js/dashboard-review-ask.js
r2638260
r2650578
3
3
4
4
jQuery(document).on( 'click', '.ewd-upcp-main-dashboard-review-ask .notice-dismiss', function( event ) {
5
var data = 'ask\_review\_time=7&action=ewd\_upcp\_hide\_review\_ask';
6
jQuery.post( ajaxurl, data, function() {} );
7
});
5
var params = {};
6
7
params.nonce = ewd\_upcp\_review\_ask.nonce;
8
params.action = 'ewd\_upcp\_hide\_review\_ask';
9
params.ask\_review\_time = 7;
10
11
var data = jQuery.param( params );
12
jQuery.post( ajaxurl, data, function() {} );
13
});
8
14
9
15
jQuery( '.ewd-upcp-review-ask-yes' ).on( 'click', function() {
…
…
17
23
jQuery( '.ewd-upcp-review-ask-yes' ).addClass( 'ewd-upcp-hidden' );
18
24
19
var data = 'ask\_review\_time=7&action=ewd\_upcp\_hide\_review\_ask';
20
jQuery.post( ajaxurl, data, function() {} );
25
var params = {};
26
27
params.nonce = ewd\_upcp\_review\_ask.nonce;
28
params.action = 'ewd\_upcp\_hide\_review\_ask';
29
params.ask\_review\_time = 7;
30
31
var data = jQuery.param( params );
32
jQuery.post( ajaxurl, data, function() {} );
21
33
});
22
34
…
…
28
40
jQuery( '.ewd-upcp-review-ask-actions' ).addClass( 'ewd-upcp-hidden' );
29
41
30
var data = 'ask\_review\_time=1000&action=ewd\_upcp\_hide\_review\_ask';
31
jQuery.post( ajaxurl, data, function() {} );
42
var params = {};
43
44
params.nonce = ewd\_upcp\_review\_ask.nonce;
45
params.action = 'ewd\_upcp\_hide\_review\_ask';
46
params.ask\_review\_time = 1000;
47
48
var data = jQuery.param( params );
49
jQuery.post( ajaxurl, data, function() {} );
32
50
});
33
51
34
52
jQuery( '.ewd-upcp-review-ask-no-thanks' ).on( 'click', function() {
35
var data = 'ask\_review\_time=1000&action=ewd\_upcp\_hide\_review\_ask';
36
jQuery.post( ajaxurl, data, function() {} );
53
var params = {};
37
54
38
jQuery( '.ewd-upcp-main-dashboard-review-ask' ).css( 'display', 'none' );
55
params.nonce = ewd\_upcp\_review\_ask.nonce;
56
params.action = 'ewd\_upcp\_hide\_review\_ask';
57
params.ask\_review\_time = 1000;
58
59
var data = jQuery.param( params );
60
jQuery.post( ajaxurl, data, function() {} );
61
62
jQuery( '.ewd-upcp-main-dashboard-review-ask' ).css( 'display', 'none' );
39
63
});
40
64
…
…
43
67
jQuery( '.ewd-upcp-review-ask-thank-you-text' ).removeClass( 'ewd-upcp-hidden' );
44
68
45
var data = 'ask\_review\_time=1000&action=ewd\_upcp\_hide\_review\_ask';
46
jQuery.post( ajaxurl, data, function() {} );
69
var params = {};
70
71
params.nonce = ewd\_upcp\_review\_ask.nonce;
72
params.action = 'ewd\_upcp\_hide\_review\_ask';
73
params.ask\_review\_time = 1000;
74
75
var data = jQuery.param( params );
76
jQuery.post( ajaxurl, data, function() {} );
47
77
});
48
78
…
…
50
80
var feedback = jQuery( '.ewd-upcp-review-ask-feedback-explanation textarea' ).val();
51
81
var email\_address = jQuery( '.ewd-upcp-review-ask-feedback-explanation input\[name="feedback\_email\_address"\]' ).val();
52
var data = 'feedback=' + feedback + '&email\_address=' + email\_address + '&action=ewd\_upcp\_send\_feedback';
53
jQuery.post( ajaxurl, data, function() {} );
54
82
55
var data = 'ask\_review\_time=1000&action=ewd\_upcp\_hide\_review\_ask';
56
jQuery.post( ajaxurl, data, function() {} );
83
var params = {};
57
84
58
jQuery( '.ewd-upcp-review-ask-feedback-form' ).addClass( 'ewd-upcp-hidden' );
59
jQuery( '.ewd-upcp-review-ask-review-text' ).addClass( 'ewd-upcp-hidden' );
60
jQuery( '.ewd-upcp-review-ask-thank-you-text' ).removeClass( 'ewd-upcp-hidden' );
85
params.nonce = ewd\_upcp\_review\_ask.nonce;
86
params.action = 'ewd\_upcp\_send\_feedback';
87
params.feedback = feedback;
88
params.email\_address = email\_address;
89
90
var data = jQuery.param( params );
91
jQuery.post( ajaxurl, data, function() {} );
92
93
var params = {};
94
95
params.nonce = ewd\_upcp\_review\_ask.nonce;
96
params.action = 'ewd\_upcp\_hide\_review\_ask';
97
params.ask\_review\_time = 1000;
98
99
var data = jQuery.param( params );
100
jQuery.post( ajaxurl, data, function() {} );
101
102
jQuery( '.ewd-upcp-review-ask-feedback-form' ).addClass( 'ewd-upcp-hidden' );
103
jQuery( '.ewd-upcp-review-ask-review-text' ).addClass( 'ewd-upcp-hidden' );
104
jQuery( '.ewd-upcp-review-ask-thank-you-text' ).removeClass( 'ewd-upcp-hidden' );
61
105
});
62
106
});
ultimate-product-catalogue/tags/5.0.26/assets/js/ewd-upcp-admin.js
r2638260
r2650578
222
222
update: function() {
223
223
224
var data = jQuery( 'table.wp-list-table tbody' ).sortable('serialize') + '&action=ewd\_upcp\_update\_category\_order';
224
var params = {
225
nonce: ewd\_upcp\_php\_admin\_data.nonce,
226
action: 'ewd\_upcp\_update\_category\_order'
227
};
228
229
var query\_string = jQuery( 'table.wp-list-table tbody' ).sortable('serialize');
230
var data = jQuery.param( params ) + '&' + query\_string;
225
231
jQuery.post( ajaxurl, data, function( response ) {});
226
232
}
…
…
234
240
update: function() {
235
241
236
var data = jQuery( 'table.wp-list-table tbody' ).sortable('serialize') + '&action=ewd\_upcp\_update\_tag\_order';
242
var params = {
243
nonce: ewd\_upcp\_php\_admin\_data.nonce,
244
action: 'ewd\_upcp\_update\_tag\_order'
245
};
246
247
var query\_string = jQuery( 'table.wp-list-table tbody' ).sortable('serialize');
248
var data = jQuery.param( params ) + '&' + query\_string;
237
249
jQuery.post( ajaxurl, data, function( response ) {});
238
250
}
…
…
253
265
update: function() {
254
266
255
var data = jQuery( 'table.wp-list-table tbody' ).sortable('serialize') + '&action=ewd\_upcp\_update\_product\_order';
267
var params = {
268
nonce: ewd\_upcp\_php\_admin\_data.nonce,
269
action: 'ewd\_upcp\_update\_product\_order'
270
};
271
272
var query\_string = jQuery( 'table.wp-list-table tbody' ).sortable('serialize');
273
var data = jQuery.param( params ) + '&' + query\_string;
256
274
jQuery.post( ajaxurl, data, function( response ) {});
257
275
}
…
…
620
638
event.preventDefault();
621
639
622
var serialized = gridster\_mobile.serialize();
623
624
var data = 'serialized\_product\_page=' + JSON.stringify( serialized ) + '&action=ewd\_upcp\_save\_serialized\_product\_page&type=mobile';
640
var params = {};
641
642
params.nonce = ewd\_upcp\_php\_admin\_data.nonce;
643
params.type = 'mobile';
644
params.action = 'ewd\_upcp\_save\_serialized\_product\_page';
645
params.serialized\_product\_page = JSON.stringify( gridster\_mobile.serialize() );
646
647
var data = jQuery.param( params );
625
648
jQuery.post( ajaxurl, data, function( response ) {
626
649
627
650
jQuery( '.gridster-mobile-save' ).after( '<div class="ewd-upcp-gridster-response">Layout Saved!</div>' );
628
651
…
…
677
700
event.preventDefault();
678
701
679
var serialized = gridster.serialize();
680
681
var data = 'serialized\_product\_page=' + JSON.stringify( serialized ) + '&action=ewd\_upcp\_save\_serialized\_product\_page&type=large';
702
var params = {};
703
704
params.nonce = ewd\_upcp\_php\_admin\_data.nonce;
705
params.type = 'large';
706
params.action = 'ewd\_upcp\_save\_serialized\_product\_page';
707
params.serialized\_product\_page = JSON.stringify( gridster.serialize() );
708
709
var data = jQuery.param( params );
682
710
jQuery.post( ajaxurl, data, function( response ) {
683
711
684
712
jQuery( '.gridster-large-save' ).after( '<div class="ewd-upcp-gridster-response">Layout Saved!</div>' );
685
713
ultimate-product-catalogue/tags/5.0.26/assets/js/ewd-upcp-welcome-screen.js
r2638260
r2650578
25
25
jQuery('.ewd-upcp-welcome-screen-add-category-description textarea').val('');
26
26
27
var data = 'category\_name=' + category\_name + '&category\_description=' + category\_description + '&action=ewd\_upcp\_welcome\_add\_category';
27
var params = {};
28
29
params.nonce = ewd\_upcp\_getting\_started.nonce;
30
params.action = 'ewd\_upcp\_welcome\_add\_category';
31
params.category\_name = category\_name;
32
params.category\_description = category\_description;
33
34
var data = jQuery.param( params );
28
35
jQuery.post(ajaxurl, data, function(response) {
29
36
var HTML = '<tr class="upcp-welcome-screen-category">';
…
…
50
57
jQuery('.ewd-upcp-welcome-screen-add-catalog-page-name input').val('');
51
58
52
var data = 'catalog\_name=' + catalog\_name + '&categories=' + JSON.stringify(categories) + '&action=ewd\_upcp\_welcome\_add\_catalog';
59
var params = {};
60
61
params.nonce = ewd\_upcp\_getting\_started.nonce;
62
params.action = 'ewd\_upcp\_welcome\_add\_catalog';
63
params.catalog\_name = catalog\_name;
64
params.categories = JSON.stringify(categories);
65
params.categories = JSON.stringify(categories);
66
67
var data = jQuery.param( params );
53
68
jQuery.post(ajaxurl, data, function(response) {});
54
69
…
…
62
77
var product\_search = jQuery.map( jQuery( 'input\[name="product\_search\\\\\[\\\\\]"\]:checked' ), function( n, i ) { return n.value; } ).join( ',' );
63
78
64
var data = 'currency\_symbol=' + currency\_symbol + '&color\_scheme=' + color\_scheme + '&product\_links=' + product\_links + '&product\_search=' + product\_search + '&action=ewd\_upcp\_welcome\_set\_options';
79
var params = {};
80
81
params.nonce = ewd\_upcp\_getting\_started.nonce;
82
params.action = 'ewd\_upcp\_welcome\_set\_options';
83
params.currency\_symbol = currency\_symbol;
84
params.color\_scheme = color\_scheme;
85
params.product\_links = product\_links;
86
params.product\_search = product\_search;
87
88
var data = jQuery.param( params );
65
89
jQuery.post(ajaxurl, data, function(response) {
66
90
jQuery('.ewd-upcp-welcome-screen-save-options-button').after('<div class="ewd-upcp-save-message"><div class="ewd-upcp-save-message-inside">Options have been saved.</div></div>');
…
…
85
109
jQuery('.ewd-upcp-welcome-screen-add-product-price input').val('');
86
110
87
var data = 'product\_name=' + product\_name + '&product\_image=' + product\_image + '&product\_description=' + product\_description + '&product\_category=' + product\_category + '&product\_price=' + product\_price + '&action=ewd\_upcp\_welcome\_add\_product';
111
var params = {};
112
113
params.nonce = ewd\_upcp\_getting\_started.nonce;
114
params.action = 'ewd\_upcp\_welcome\_add\_product';
115
params.product\_price = product\_price;
116
params.product\_name = product\_name;
117
params.product\_image = product\_image;
118
params.product\_description = product\_description;
119
params.product\_category = product\_category;
120
121
var data = jQuery.param( params );
88
122
jQuery.post(ajaxurl, data, function(response) {
89
123
var HTML = '<tr class="upcp-welcome-screen-product">';
ultimate-product-catalogue/tags/5.0.26/assets/js/ewd-upcp.js
r2638260
r2650578
525
525
jQuery( '.ewd-upcp-cart-item-count' ).html( +jQuery( '.ewd-upcp-cart-item-count' ).html() + 1 );
526
526
527
var data = 'product\_id=' + jQuery( this ).data( 'product\_id' ) + '&action=ewd\_upcp\_add\_to\_cart';
527
var params = {
528
nonce: ewd\_upcp\_js.nonce,
529
product\_id: jQuery( this ).data( 'product\_id' ),
530
action: 'ewd\_upcp\_add\_to\_cart'
531
};
532
533
var data = jQuery.param( params );
528
534
jQuery.post( ajaxurl, data, function( response ) {} );
529
535
});
…
…
535
541
jQuery( '.ewd-upcp-cart-item-count' ).html( '0' );
536
542
537
var data = '&action=ewd\_upcp\_clear\_cart';
538
jQuery.post( ajaxurl, data, function( response ) {} );
543
var params = {
544
nonce: ewd\_upcp\_js.nonce,
545
action: 'ewd\_upcp\_clear\_cart'
546
};
547
548
var data = jQuery.param( params );
549
jQuery.post( ajaxurl, data, function( response ) {} );
539
550
});
540
551
}
…
…
867
878
window.history.replaceState( null, null, url );
868
879
869
var data = 'id=' + id + '&excluded\_views=' + excluded\_views + '&orderby=' + orderby + '&order=' + order + '&ajax\_url=' + ajax\_url + '¤t\_page=' + current\_page + '&products\_per\_page=' + products\_per\_page + '&default\_search\_text=' + default\_search\_text + '&product\_name=' + product\_name + '&max\_price=' + max\_price + '&min\_price=' + min\_price + '&category=' + categories + '&subcategory=' + subcategories + '&tags=' + tags + '&custom\_fields=' + encodeURIComponent( custom\_fields ) + '&request\_count=' + request\_count + '&action=ewd\_upcp\_update\_catalog';
880
var params = {};
881
882
params.nonce = ewd\_upcp\_js.nonce;
883
params.id = id;
884
params.excluded\_views = excluded\_views;
885
params.orderby = orderby;
886
params.order = order;
887
params.ajax\_url = ajax\_url;
888
params.current\_page = current\_page;
889
params.products\_per\_page = products\_per\_page;
890
params.default\_search\_text = default\_search\_text;
891
params.product\_name = product\_name;
892
params.max\_price = max\_price;
893
params.min\_price = min\_price;
894
params.category = categories;
895
params.subcategory = subcategories;
896
params.tags = tags;
897
params.custom\_fields = custom\_fields.join(',');
898
params.request\_count = request\_count;
899
params.action = 'ewd\_upcp\_update\_catalog';
900
901
var data = jQuery.param( params );
870
902
871
903
return data;
ultimate-product-catalogue/tags/5.0.26/ewd-upcp-templates/catalog-header-bar.php
r2638260
r2650578
3
3
<?php foreach ( $this->get\_catalog\_views() as $catalog\_view ) { ?>
4
4
5
<div class='ewd-upcp-toggle-icon ewd-upcp-toggle-icon-<?php echo $catalog\_view; ?> ewd-upcp-toggle-icon-<?php echo $this->get\_option( 'color-scheme' ); ?>' data-view='<?php echo $catalog\_view; ?>'></div>
5
<div class='ewd-upcp-toggle-icon ewd-upcp-toggle-icon-<?php echo esc\_attr( $catalog\_view ); ?> ewd-upcp-toggle-icon-<?php echo esc\_attr( $this->get\_option( 'color-scheme' ) ); ?>' data-view='<?php echo esc\_attr( $catalog\_view ); ?>'></div>
6
6
7
7
<?php } ?>
ultimate-product-catalogue/tags/5.0.26/ewd-upcp-templates/catalog-pagination.php
r2638260
r2650578
1
<div class='ewd-upcp-pagination' data-max\_pages='<?php echo $this->max\_pages; ?>'>
1
<div class='ewd-upcp-pagination' data-max\_pages='<?php echo esc\_attr( $this->max\_pages ); ?>'>
2
2
3
3
<span class='displaying-num'>
4
4
5
<span class='product-count'><?php echo $this->product\_count; ?></span>
5
<span class='product-count'><?php echo esc\_html( $this->product\_count ); ?></span>
6
6
7
7
<?php echo esc\_html( $this->get\_label( 'label-products-pagination' ) ); ?>
…
…
18
18
<?php echo esc\_html( $this->get\_label( 'label-page' ) ); ?>
19
19
20
<span class='current-page'><?php echo $this->current\_page; ?></span>
20
<span class='current-page'><?php echo esc\_html( $this->current\_page ); ?></span>
21
21
22
22
<?php echo esc\_html( $this->get\_label( 'label-pagination-of' ) ); ?>
23
23
24
<span class='total-pages'><?php echo $this->max\_pages; ?></span>
24
<span class='total-pages'><?php echo esc\_html( $this->max\_pages ); ?></span>
25
25
26
26
</span>
ultimate-product-catalogue/tags/5.0.26/ewd-upcp-templates/catalog-product-content.php
r2638260
r2650578
2
2
3
3
<div class='ewd-upcp-catalog-product-description'>
4
<?php echo $this->product->description; ?>
4
<?php echo esc\_html( $this->product->description ); ?>
5
5
</div>
6
6
ultimate-product-catalogue/tags/5.0.26/ewd-upcp-templates/catalog-product-rating.php
r2638260
r2650578
3
3
<?php if ( empty( $average\_rating ) ) { return; } ?>
4
4
5
<span class='ewd-upcp-urp-review-score' title='<?php \_e( 'Average Rating: ', 'ultimate-product-catalogue' ); ?> <?php echo $average\_rating; ?>'>
5
<span class='ewd-upcp-urp-review-score' title='<?php \_e( 'Average Rating: ', 'ultimate-product-catalogue' ); ?> <?php echo esc\_attr( $average\_rating ); ?>'>
6
6
7
7
<?php for ( $i = 1; $i <= 5; $i++ ) { ?>
ultimate-product-catalogue/tags/5.0.26/ewd-upcp-templates/catalog-shortcode-attributes.php
r2638260
r2650578
1
<input type='hidden' name='catalog-id' value='<?php echo $this->catalog->ID; ?>' />
2
<input type='hidden' name='catalog-excluded-views' value='<?php echo implode( ',', $this->excluded\_views ); ?>' />
3
<input type='hidden' name='catalog-current-page' value='<?php echo $this->current\_page; ?>' />
4
<input type='hidden' name='catalog-max-page' value='<?php echo $this->max\_pages; ?>' />
5
<input type='hidden' name='catalog-product-per-page' value='<?php echo $this->products\_per\_page; ?>' />
1
<input type='hidden' name='catalog-id' value='<?php echo esc\_attr( $this->catalog->ID ); ?>' />
2
<input type='hidden' name='catalog-excluded-views' value='<?php echo esc\_attr( implode( ',', $this->excluded\_views ) ); ?>' />
3
<input type='hidden' name='catalog-current-page' value='<?php echo esc\_attr( $this->current\_page ); ?>' />
4
<input type='hidden' name='catalog-max-page' value='<?php echo esc\_attr( $this->max\_pages ); ?>' />
5
<input type='hidden' name='catalog-product-per-page' value='<?php echo esc\_attr( $this->products\_per\_page ); ?>' />
6
6
<input type='hidden' name='catalog-default-search-text' value='<?php \_e( 'Search...', 'ultimate-product-catalogue' ); ?>' />
7
<input type='hidden' name='catalog-base-url' value='<?php echo $this->ajax\_url; ?>' />
7
<input type='hidden' name='catalog-base-url' value='<?php echo esc\_attr( $this->ajax\_url ); ?>' />
ultimate-product-catalogue/tags/5.0.26/ewd-upcp-templates/catalog-sidebar-custom-field-checkbox.php
r2638260
r2650578
1
<div class='ewd-upcp-catalog-sidebar-custom-field-div' data-custom\_field\_id='<?php echo $this->custom\_field->id; ?>'>
1
<div class='ewd-upcp-catalog-sidebar-custom-field-div' data-custom\_field\_id='<?php echo esc\_attr( $this->custom\_field->id ); ?>'>
2
2
3
3
<div class='ewd-upcp-catalog-sidebar-title <?php echo ( $this->get\_option( 'styling-sidebar-title-collapse' ) ? 'ewd-upcp-catalog-sidebar-collapsible' : '' ); ?> <?php echo ( $this->get\_option( 'styling-sidebar-start-collapsed' ) ? 'ewd-upcp-sidebar-content-hidden' : '' ); ?>'>
…
…
7
7
<?php foreach ( $this->sidebar\_custom\_fields\[ $this->custom\_field->id \] as $field\_value => $field\_count ) { ?>
8
8
9
<div class='ewd-upcp-catalog-sidebar-custom-field <?php echo ( $this->is\_custom\_field\_value\_selected( $field\_value ) ? 'ewd-upcp-taxonomy-selected' : '' ); ?>' data-custom\_field\_id='<?php echo $this->custom\_field->id; ?>' data-value='<?php echo $field\_value; ?>'>
9
<div class='ewd-upcp-catalog-sidebar-custom-field <?php echo ( $this->is\_custom\_field\_value\_selected( $field\_value ) ? 'ewd-upcp-taxonomy-selected' : '' ); ?>' data-custom\_field\_id='<?php echo esc\_attr( $this->custom\_field->id ); ?>' data-value='<?php echo esc\_attr( $field\_value ); ?>'>
10
10
11
<input type='checkbox' name='<?php echo esc\_attr( $this->custom\_field->id ); ?>' id='<?php echo esc\_attr( $this->custom\_field->id ); ?>-<?php echo $field\_value; ?>' value='<?php echo $field\_value; ?>' <?php echo ( $this->is\_custom\_field\_value\_selected( $field\_value ) ? 'checked' : '' ); ?> >
11
<input type='checkbox' name='<?php echo esc\_attr( $this->custom\_field->id ); ?>' id='<?php echo esc\_attr( $this->custom\_field->id ); ?>-<?php echo esc\_attr( $field\_value ); ?>' value='<?php echo esc\_attr( $field\_value ); ?>' <?php echo ( $this->is\_custom\_field\_value\_selected( $field\_value ) ? 'checked' : '' ); ?> >
12
12
13
<label class='ewd-upcp-catalog-sidebar-custom-field-value-label' for='<?php echo esc\_attr( $this->custom\_field->id ); ?>-<?php echo $field\_value; ?>'>
13
<label class='ewd-upcp-catalog-sidebar-custom-field-value-label' for='<?php echo esc\_attr( $this->custom\_field->id ); ?>-<?php echo esc\_attr( $field\_value ); ?>'>
14
14
15
<span><?php echo $field\_value; ?> <span class='ewd-upcp-catalog-sidebar-custom-field-count'> (<?php echo $field\_count; ?>)</span></span>
15
<span><?php echo esc\_html( $field\_value ); ?> <span class='ewd-upcp-catalog-sidebar-custom-field-count'> (<?php echo esc\_html( $field\_count ); ?>)</span></span>
16
16
17
17
</label>
ultimate-product-catalogue/tags/5.0.26/ewd-upcp-templates/catalog-sidebar-custom-field-dropdown.php
r2638260
r2650578
1
<div class='ewd-upcp-catalog-sidebar-custom-field-div' data-custom\_field\_id='<?php echo $this->custom\_field->id; ?>'>
1
<div class='ewd-upcp-catalog-sidebar-custom-field-div' data-custom\_field\_id='<?php echo esc\_attr( $this->custom\_field->id ); ?>'>
2
2
3
3
<div class='ewd-upcp-catalog-sidebar-title <?php echo ( $this->get\_option( 'styling-sidebar-title-collapse' ) ? 'ewd-upcp-catalog-sidebar-collapsible' : '' ); ?> <?php echo ( $this->get\_option( 'styling-sidebar-start-collapsed' ) ? 'ewd-upcp-sidebar-content-hidden' : '' ); ?>'>
…
…
15
15
<option value='<?php echo esc\_attr( $field\_value ); ?>' <?php echo ( $this->is\_custom\_field\_value\_selected( $field\_value ) ? 'selected' : '' ); ?>>
16
16
17
<?php echo $field\_value; ?> <span class='ewd-upcp-catalog-sidebar-custom-field-count'> (<?php echo $field\_count; ?>)</span>
17
<?php echo esc\_html( $field\_value ); ?> <span class='ewd-upcp-catalog-sidebar-custom-field-count'> (<?php echo esc\_html( $field\_count ); ?>)</span>
18
18
19
19
</option>
ultimate-product-catalogue/tags/5.0.26/ewd-upcp-templates/catalog-sidebar-custom-field-radio.php
r2638260
r2650578
1
<div class='ewd-upcp-catalog-sidebar-custom-field-div' data-custom\_field\_id='<?php echo $this->custom\_field->id; ?>'>
1
<div class='ewd-upcp-catalog-sidebar-custom-field-div' data-custom\_field\_id='<?php echo esc\_attr( $this->custom\_field->id ); ?>'>
2
2
3
3
<div class='ewd-upcp-catalog-sidebar-title <?php echo ( $this->get\_option( 'styling-sidebar-title-collapse' ) ? 'ewd-upcp-catalog-sidebar-collapsible' : '' ); ?> <?php echo ( $this->get\_option( 'styling-sidebar-start-collapsed' ) ? 'ewd-upcp-sidebar-content-hidden' : '' ); ?>'>
…
…
7
7
<?php foreach ( $this->sidebar\_custom\_fields\[ $this->custom\_field->id \] as $field\_value => $field\_count ) { ?>
8
8
9
<div class='ewd-upcp-catalog-sidebar-custom-field <?php echo ( $this->is\_custom\_field\_value\_selected( $field\_value ) ? 'ewd-upcp-taxonomy-selected' : '' ); ?>' data-custom\_field\_id='<?php echo $this->custom\_field->id; ?>' data-value='<?php echo $field\_value; ?>'>
9
<div class='ewd-upcp-catalog-sidebar-custom-field <?php echo ( $this->is\_custom\_field\_value\_selected( $field\_value ) ? 'ewd-upcp-taxonomy-selected' : '' ); ?>' data-custom\_field\_id='<?php echo esc\_attr( $this->custom\_field->id ); ?>' data-value='<?php echo esc\_attr( $field\_value ); ?>'>
10
10
11
<input type='radio' name='<?php echo esc\_attr( $this->custom\_field->id ); ?>' value='<?php echo $field\_value; ?>' <?php echo ( $this->is\_custom\_field\_value\_selected( $field\_value ) ? 'checked' : '' ); ?> >
11
<input type='radio' name='<?php echo esc\_attr( $this->custom\_field->id ); ?>' value='<?php echo esc\_attr( $field\_value ); ?>' <?php echo ( $this->is\_custom\_field\_value\_selected( $field\_value ) ? 'checked' : '' ); ?> >
12
12
13
13
<label class='ewd-upcp-catalog-sidebar-custom-field-value-label'>
14
14
15
<span><?php echo $field\_value; ?> <span class='ewd-upcp-catalog-sidebar-custom-field-count'> (<?php echo $field\_count; ?>)</span></span>
15
<span><?php echo esc\_html( $field\_value ); ?> <span class='ewd-upcp-catalog-sidebar-custom-field-count'> (<?php echo esc\_html( $field\_count ); ?>)</span></span>
16
16
17
17
</label>
ultimate-product-catalogue/tags/5.0.26/ewd-upcp-templates/catalog-sidebar-custom-field-slider.php
r2638260
r2650578
1
<div class='ewd-upcp-catalog-sidebar-custom-field-div' data-custom\_field\_id='<?php echo $this->custom\_field->id; ?>'>
1
<div class='ewd-upcp-catalog-sidebar-custom-field-div' data-custom\_field\_id='<?php echo esc\_attr( $this->custom\_field->id ); ?>'>
2
2
3
3
<div class='ewd-upcp-catalog-sidebar-title <?php echo ( $this->get\_option( 'styling-sidebar-title-collapse' ) ? 'ewd-upcp-catalog-sidebar-collapsible' : '' ); ?> <?php echo ( $this->get\_option( 'styling-sidebar-start-collapsed' ) ? 'ewd-upcp-sidebar-content-hidden' : '' ); ?>'>
…
…
5
5
</div>
6
6
7
<div class='ewd-upcp-catalog-sidebar-custom-field-slider' data-custom\_field\_id='<?php echo $this->custom\_field->id; ?>'></div>
7
<div class='ewd-upcp-catalog-sidebar-custom-field-slider' data-custom\_field\_id='<?php echo esc\_attr( $this->custom\_field->id ); ?>'></div>
8
8
9
9
<div class='ewd-upcp-catalog-sidebar-custom-field-slider-text-inputs'>
ultimate-product-catalogue/tags/5.0.26/ewd-upcp-templates/catalog-sidebar-price-filter.php
r2638260
r2650578
13
13
<?php $this->maybe\_print\_currency\_symbol( 'before' ); ?>
14
14
15
<input type='text' value='<?php echo $this->sidebar\_min\_price; ?>' name='ewd-upcp-price-slider-min' <?php echo ( $this->get\_option( 'disable-slider-filter-text-inputs' ) ? 'disabled' : '' ); ?> data-min\_price='<?php echo $this->sidebar\_min\_price; ?>' />
15
<input type='text' value='<?php echo esc\_attr( $this->sidebar\_min\_price ); ?>' name='ewd-upcp-price-slider-min' <?php echo ( $this->get\_option( 'disable-slider-filter-text-inputs' ) ? 'disabled' : '' ); ?> data-min\_price='<?php echo esc\_attr( $this->sidebar\_min\_price ); ?>' />
16
16
17
17
<?php $this->maybe\_print\_currency\_symbol( 'after' ); ?>
…
…
25
25
<?php $this->maybe\_print\_currency\_symbol( 'before' ); ?>
26
26
27
<input type='text' value='<?php echo $this->sidebar\_max\_price; ?>' name='ewd-upcp-price-slider-max' <?php echo ( $this->get\_option( 'disable-slider-filter-text-inputs' ) ? 'disabled' : '' ); ?> data-max\_price='<?php echo $this->sidebar\_max\_price; ?>' />
27
<input type='text' value='<?php echo esc\_attr( $this->sidebar\_max\_price ); ?>' name='ewd-upcp-price-slider-max' <?php echo ( $this->get\_option( 'disable-slider-filter-text-inputs' ) ? 'disabled' : '' ); ?> data-max\_price='<?php echo esc\_attr( $this->sidebar\_max\_price ); ?>' />
28
28
29
29
<?php $this->maybe\_print\_currency\_symbol( 'after' ); ?>
ultimate-product-catalogue/tags/5.0.26/ewd-upcp-templates/catalog-sidebar-taxonomy-checkbox.php
r2638260
r2650578
1
<div class='ewd-upcp-catalog-sidebar-<?php echo $this->taxonomy\_type; ?> <?php echo ( $this->is\_taxonomy\_selected() ? 'ewd-upcp-taxonomy-selected' : '' ); ?>' data-taxonomy\_id='<?php echo $this->taxonomy\_term->term\_id; ?>'>
1
<div class='ewd-upcp-catalog-sidebar-<?php echo esc\_attr( $this->taxonomy\_type ); ?> <?php echo ( $this->is\_taxonomy\_selected() ? 'ewd-upcp-taxonomy-selected' : '' ); ?>' data-taxonomy\_id='<?php echo esc\_attr( $this->taxonomy\_term->term\_id ); ?>'>
2
2
3
3
<?php $this->maybe\_print\_taxonomy\_image(); ?>
4
4
5
<input type='checkbox' name='<?php echo $this->taxonomy\_type; ?>' id='<?php echo $this->taxonomy\_type; ?>-<?php echo $this->taxonomy\_term->term\_id; ?>' value='<?php echo $this->taxonomy\_term->term\_id; ?>' <?php echo ( $this->is\_taxonomy\_selected() ? 'checked' : '' ); ?> >
5
<input type='checkbox' name='<?php echo esc\_attr( $this->taxonomy\_type ); ?>' id='<?php echo esc\_attr( $this->taxonomy\_type ); ?>-<?php echo esc\_attr( $this->taxonomy\_term->term\_id ); ?>' value='<?php echo esc\_attr( $this->taxonomy\_term->term\_id ); ?>' <?php echo ( $this->is\_taxonomy\_selected() ? 'checked' : '' ); ?> >
6
6
7
<label class='ewd-upcp-catalog-sidebar-taxonomy-label' for='<?php echo $this->taxonomy\_type; ?>-<?php echo $this->taxonomy\_term->term\_id; ?>'>
7
<label class='ewd-upcp-catalog-sidebar-taxonomy-label' for='<?php echo esc\_attr( $this->taxonomy\_type ); ?>-<?php echo esc\_attr( $this->taxonomy\_term->term\_id ); ?>'>
8
8
9
<span><?php echo $this->taxonomy\_term->name; ?> <span class='ewd-upcp-catalog-sidebar-taxonomy-count'> (<?php echo $this->taxonomy\_term->catalog\_count; ?>)</span></span>
9
<span><?php echo esc\_html( $this->taxonomy\_term->name ); ?> <span class='ewd-upcp-catalog-sidebar-taxonomy-count'> (<?php echo esc\_html( $this->taxonomy\_term->catalog\_count ); ?>)</span></span>
10
10
11
11
</label>
ultimate-product-catalogue/tags/5.0.26/ewd-upcp-templates/catalog-sidebar-taxonomy-dropdown.php
r2638260
r2650578
1
<option value='<?php echo $this->taxonomy\_term->term\_id; ?>' <?php echo ( $this->is\_taxonomy\_selected() ? 'selected' : '' ); ?> >
1
<option value='<?php echo esc\_attr( $this->taxonomy\_term->term\_id ); ?>' <?php echo ( $this->is\_taxonomy\_selected() ? 'selected' : '' ); ?> >
2
2
3
<?php echo $this->taxonomy\_term->name; ?> <span class='ewd-upcp-catalog-sidebar-taxonomy-count'> (<?php echo $this->taxonomy\_term->catalog\_count; ?>)</span>
3
<?php echo esc\_html( $this->taxonomy\_term->name ); ?> <span class='ewd-upcp-catalog-sidebar-taxonomy-count'> (<?php echo esc\_html( $this->taxonomy\_term->catalog\_count ); ?>)</span>
4
4
5
5
</option>
ultimate-product-catalogue/tags/5.0.26/ewd-upcp-templates/catalog-sidebar-taxonomy-radio.php
r2638260
r2650578
1
<div class='ewd-upcp-catalog-sidebar-<?php echo $this->taxonomy\_type; ?> <?php echo ( $this->is\_taxonomy\_selected() ? 'ewd-upcp-taxonomy-selected' : '' ); ?>' data-taxonomy\_id='<?php echo $this->taxonomy\_term->term\_id; ?>'>
1
<div class='ewd-upcp-catalog-sidebar-<?php echo esc\_attr( $this->taxonomy\_type ); ?> <?php echo ( $this->is\_taxonomy\_selected() ? 'ewd-upcp-taxonomy-selected' : '' ); ?>' data-taxonomy\_id='<?php echo esc\_attr( $this->taxonomy\_term->term\_id ); ?>'>
2
2
3
3
<?php $this->maybe\_print\_taxonomy\_image(); ?>
4
4
5
<input type='radio' name='<?php echo $this->taxonomy\_type; ?>' id='<?php echo $this->taxonomy\_type; ?>-<?php echo $this->taxonomy\_term->term\_id; ?>' value='<?php echo $this->taxonomy\_term->term\_id; ?>' <?php echo ( $this->is\_taxonomy\_selected() ? 'checked' : '' ); ?> >
5
<input type='radio' name='<?php echo esc\_attr( $this->taxonomy\_type ); ?>' id='<?php echo esc\_attr( $this->taxonomy\_type ); ?>-<?php echo esc\_attr( $this->taxonomy\_term->term\_id ); ?>' value='<?php echo esc\_attr( $this->taxonomy\_term->term\_id ); ?>' <?php echo ( $this->is\_taxonomy\_selected() ? 'checked' : '' ); ?> >
6
6
7
<label class='ewd-upcp-catalog-sidebar-taxonomy-label' for='<?php echo $this->taxonomy\_type; ?>-<?php echo $this->taxonomy\_term->term\_id; ?>'>
7
<label class='ewd-upcp-catalog-sidebar-taxonomy-label' for='<?php echo esc\_attr( $this->taxonomy\_type ); ?>-<?php echo esc\_attr( $this->taxonomy\_term->term\_id ); ?>'>
8
8
9
<?php echo $this->taxonomy\_term->name; ?> <span class='ewd-upcp-catalog-sidebar-taxonomy-count'> (<?php echo $this->taxonomy\_term->catalog\_count; ?>)</span>
9
<?php echo esc\_html( $this->taxonomy\_term->name ); ?> <span class='ewd-upcp-catalog-sidebar-taxonomy-count'> (<?php echo esc\_html( $this->taxonomy\_term->catalog\_count ); ?>)</span>
10
10
11
11
</label>
ultimate-product-catalogue/tags/5.0.26/ewd-upcp-templates/custom-large-single-product.php
r2638260
r2650578
1
<div id='ewd-upcp-single-product-<?php echo $this->product->id; ?>' class='ewd-upcp-custom-product-page ewd-upcp-product-page'>
1
<div id='ewd-upcp-single-product-<?php echo esc\_attr( $this->product->id ); ?>' class='ewd-upcp-custom-product-page ewd-upcp-product-page'>
2
2
3
3
<?php $this->print\_product\_breadcrumbs(); ?>
ultimate-product-catalogue/tags/5.0.26/ewd-upcp-templates/custom-mobile-single-product.php
r2638260
r2650578
1
<div id='ewd-upcp-single-product-<?php echo $this->product->id; ?>' class='ewd-upcp-custom-mobile-product-page ewd-upcp-product-page ewd-upcp-hidden'>
1
<div id='ewd-upcp-single-product-<?php echo esc\_attr( $this->product->id ); ?>' class='ewd-upcp-custom-mobile-product-page ewd-upcp-product-page ewd-upcp-hidden'>
2
2
3
3
<?php foreach ( $this->get\_custom\_product\_page\_elements() as $page\_element ) { ?>
ultimate-product-catalogue/tags/5.0.26/ewd-upcp-templates/custom-single-product.php
r2638260
r2650578
1
<div id='ewd-upcp-single-product-<?php echo $this->product->id; ?>' class='ewd-upcp-custom-product-page ewd-upcp-product-page'>
1
<div id='ewd-upcp-single-product-<?php echo esc\_attr( $this->product->id ); ?>' class='ewd-upcp-custom-product-page ewd-upcp-product-page'>
2
2
3
3
<?php $this->print\_product\_breadcrumbs(); ?>
ultimate-product-catalogue/tags/5.0.26/ewd-upcp-templates/default-single-product.php
r2638260
r2650578
1
<div id='ewd-upcp-single-product-<?php echo $this->product->id; ?>' class='ewd-upcp-standard-product-page ewd-upcp-product-page'>
1
<div id='ewd-upcp-single-product-<?php echo esc\_attr( $this->product->id ); ?>' class='ewd-upcp-standard-product-page ewd-upcp-product-page'>
2
2
3
3
<?php $this->print\_product\_breadcrumbs(); ?>
ultimate-product-catalogue/tags/5.0.26/ewd-upcp-templates/shop-style-single-product.php
r2638260
r2650578
1
<div id='ewd-upcp-single-product-<?php echo $this->product->id; ?>' class='ewd-upcp-tabbed-product-page ewd-upcp-product-page ewd-upcp-shop-style-product-page'>
1
<div id='ewd-upcp-single-product-<?php echo esc\_attr( $this->product->id ); ?>' class='ewd-upcp-tabbed-product-page ewd-upcp-product-page ewd-upcp-shop-style-product-page'>
2
2
3
3
<?php $this->print\_product\_breadcrumbs(); ?>
ultimate-product-catalogue/tags/5.0.26/ewd-upcp-templates/single-product-additional-images.php
r2638260
r2650578
3
3
<?php foreach ( $this->product->get\_all\_images() as $count => $image ) { ?>
4
4
5
<a class='ewd-upcp-thumbnail-anchor <?php echo ( ! empty( $image->video\_key ) ? 'ewd-upcp-video-thumbnail' : '' ); ?> <?php echo $this->get\_additional\_images\_lightbox\_class(); ?>' href='<?php echo esc\_attr( $image->url ); ?>' data-ulbsource='<?php echo esc\_attr( $image->url ); ?>' data-ulbtitle='<?php echo esc\_attr( $image->description ); ?>' data-ulbdescription='<?php echo esc\_attr( $image->description ); ?>' data-video\_key='<?php echo ( ! empty( $image->video\_key ) ? $image->video\_key : '' ); ?>'>
6
<img src='<?php echo esc\_attr( $image->url ); ?>' class='ewd-upcp-single-product-thumbnail'>
5
<a class='ewd-upcp-thumbnail-anchor <?php echo ( ! empty( $image->video\_key ) ? 'ewd-upcp-video-thumbnail' : '' ); ?> <?php echo esc\_attr( $this->get\_additional\_images\_lightbox\_class() ); ?>' href='<?php echo esc\_url( $image->url ); ?>' data-ulbsource='<?php echo esc\_attr( $image->url ); ?>' data-ulbtitle='<?php echo esc\_attr( $image->description ); ?>' data-ulbdescription='<?php echo esc\_attr( $image->description ); ?>' data-video\_key='<?php echo ( ! empty( $image->video\_key ) ? esc\_attr( $image->video\_key ) : '' ); ?>'>
6
<img src='<?php echo esc\_url( $image->url ); ?>' class='ewd-upcp-single-product-thumbnail'>
7
7
</a>
8
8
9
<?php } ?>
9
<?php } ?>
10
10
11
11
</div>
ultimate-product-catalogue/tags/5.0.26/ewd-upcp-templates/single-product-custom-element-additional-images.php
r2638260
r2650578
1
<li data-col='<?php echo $this->element->col; ?>' data-row='<?php echo $this->element->row; ?>' data-sizex='<?php echo $this->element->size\_x; ?>' data-sizey='<?php echo $this->element->size\_y; ?>' class='ewd-upcp-single-product-custom-element'>
1
<li data-col='<?php echo esc\_attr( $this->element->col ); ?>' data-row='<?php echo esc\_attr( $this->element->row ); ?>' data-sizex='<?php echo esc\_attr( $this->element->size\_x ); ?>' data-sizey='<?php echo esc\_attr( $this->element->size\_y ); ?>' class='ewd-upcp-single-product-custom-element'>
2
2
3
3
<?php $this->print\_additional\_images(); ?>
ultimate-product-catalogue/tags/5.0.26/ewd-upcp-templates/single-product-custom-element-back-to-catalog.php
r2638260
r2650578
1
<li data-col='<?php echo $this->element->col; ?>' data-row='<?php echo $this->element->row; ?>' data-sizex='<?php echo $this->element->size\_x; ?>' data-sizey='<?php echo $this->element->size\_y; ?>' class='ewd-upcp-single-product-custom-element'>
1
<li data-col='<?php echo esc\_attr( $this->element->col ); ?>' data-row='<?php echo esc\_attr( $this->element->row ); ?>' data-sizex='<?php echo esc\_attr( $this->element->size\_x ); ?>' data-sizey='<?php echo esc\_attr( $this->element->size\_y ); ?>' class='ewd-upcp-single-product-custom-element'>
2
2
3
3
<a class='ewd-upcp-catalogue-link' href='<?php echo esc\_attr( $this->catalog\_url ); ?>'>
ultimate-product-catalogue/tags/5.0.26/ewd-upcp-templates/single-product-custom-element-blank.php
r2638260
r2650578
1
<li data-col='<?php echo $this->element->col; ?>' data-row='<?php echo $this->element->row; ?>' data-sizex='<?php echo $this->element->size\_x; ?>' data-sizey='<?php echo $this->element->size\_y; ?>' class='ewd-upcp-single-product-custom-element'>
1
<li data-col='<?php echo esc\_attr( $this->element->col ); ?>' data-row='<?php echo esc\_attr( $this->element->row ); ?>' data-sizex='<?php echo esc\_attr( $this->element->size\_x ); ?>' data-sizey='<?php echo esc\_attr( $this->element->size\_y ); ?>' class='ewd-upcp-single-product-custom-element'>
2
2
3
3
</li>
ultimate-product-catalogue/tags/5.0.26/ewd-upcp-templates/single-product-custom-element-categories-label.php
r2638260
r2650578
1
<li data-col='<?php echo $this->element->col; ?>' data-row='<?php echo $this->element->row; ?>' data-sizex='<?php echo $this->element->size\_x; ?>' data-sizey='<?php echo $this->element->size\_y; ?>' class='ewd-upcp-single-product-custom-element'>
1
<li data-col='<?php echo esc\_attr( $this->element->col ); ?>' data-row='<?php echo esc\_attr( $this->element->row ); ?>' data-sizex='<?php echo esc\_attr( $this->element->size\_x ); ?>' data-sizey='<?php echo esc\_attr( $this->element->size\_y ); ?>' class='ewd-upcp-single-product-custom-element'>
2
2
3
3
<?php echo esc\_html( $this->get\_categories\_label() ); ?>
ultimate-product-catalogue/tags/5.0.26/ewd-upcp-templates/single-product-custom-element-categories.php
r2638260
r2650578
1
<li data-col='<?php echo $this->element->col; ?>' data-row='<?php echo $this->element->row; ?>' data-sizex='<?php echo $this->element->size\_x; ?>' data-sizey='<?php echo $this->element->size\_y; ?>' class='ewd-upcp-single-product-custom-element'>
1
<li data-col='<?php echo esc\_attr( $this->element->col ); ?>' data-row='<?php echo esc\_attr( $this->element->row ); ?>' data-sizex='<?php echo esc\_attr( $this->element->size\_x ); ?>' data-sizey='<?php echo esc\_attr( $this->element->size\_y ); ?>' class='ewd-upcp-single-product-custom-element'>
2
2
3
3
<?php echo esc\_html( $this->product->get\_category\_names() ); ?>
ultimate-product-catalogue/tags/5.0.26/ewd-upcp-templates/single-product-custom-element-custom-field.php
r2638260
r2650578
1
<li data-col='<?php echo $this->element->col; ?>' data-row='<?php echo $this->element->row; ?>' data-sizex='<?php echo $this->element->size\_x; ?>' data-sizey='<?php echo $this->element->size\_y; ?>' class='ewd-upcp-single-product-custom-element'>
1
<li data-col='<?php echo esc\_attr( $this->element->col ); ?>' data-row='<?php echo esc\_attr( $this->element->row ); ?>' data-sizex='<?php echo esc\_attr( $this->element->size\_x ); ?>' data-sizey='<?php echo esc\_attr( $this->element->size\_y ); ?>' class='ewd-upcp-single-product-custom-element'>
2
2
3
<?php echo $this->product->custom\_fields\[ $this->element->element\_id \]; ?>
3
<?php echo esc\_html( $this->product->custom\_fields\[ $this->element->element\_id \] ); ?>
4
4
5
5
</li>
ultimate-product-catalogue/tags/5.0.26/ewd-upcp-templates/single-product-custom-element-description.php
r2638260
r2650578
1
<li data-col='<?php echo $this->element->col; ?>' data-row='<?php echo $this->element->row; ?>' data-sizex='<?php echo $this->element->size\_x; ?>' data-sizey='<?php echo $this->element->size\_y; ?>' class='ewd-upcp-single-product-custom-element'>
1
<li data-col='<?php echo esc\_attr( $this->element->col ); ?>' data-row='<?php echo esc\_attr( $this->element->row ); ?>' data-sizex='<?php echo esc\_attr( $this->element->size\_x ); ?>' data-sizey='<?php echo esc\_attr( $this->element->size\_y ); ?>' class='ewd-upcp-single-product-custom-element'>
2
2
3
3
<?php $this->print\_product\_description(); ?>
ultimate-product-catalogue/tags/5.0.26/ewd-upcp-templates/single-product-custom-element-link.php
r2638260
r2650578
1
<li data-col='<?php echo $this->element->col; ?>' data-row='<?php echo $this->element->row; ?>' data-sizex='<?php echo $this->element->size\_x; ?>' data-sizey='<?php echo $this->element->size\_y; ?>' class='ewd-upcp-single-product-custom-element'>
1
<li data-col='<?php echo esc\_attr( $this->element->col ); ?>' data-row='<?php echo esc\_attr( $this->element->row ); ?>' data-sizex='<?php echo esc\_attr( $this->element->size\_x ); ?>' data-sizey='<?php echo esc\_attr( $this->element->size\_y ); ?>' class='ewd-upcp-single-product-custom-element'>
2
2
3
3
<a class='no-underline' href='<?php echo esc\_attr( $this->details\_link ); ?>'>
ultimate-product-catalogue/tags/5.0.26/ewd-upcp-templates/single-product-custom-element-main-image.php
r2638260
r2650578
1
<li data-col='<?php echo $this->element->col; ?>' data-row='<?php echo $this->element->row; ?>' data-sizex='<?php echo $this->element->size\_x; ?>' data-sizey='<?php echo $this->element->size\_y; ?>' class='ewd-upcp-single-product-custom-element'>
1
<li data-col='<?php echo esc\_attr( $this->element->col ); ?>' data-row='<?php echo esc\_attr( $this->element->row ); ?>' data-sizex='<?php echo esc\_attr( $this->element->size\_x ); ?>' data-sizey='<?php echo esc\_attr( $this->element->size\_y ); ?>' class='ewd-upcp-single-product-custom-element'>
2
2
3
3
<?php $this->print\_main\_image(); ?>
ultimate-product-catalogue/tags/5.0.26/ewd-upcp-templates/single-product-custom-element-next-previous.php
r2638260
r2650578
1
<li data-col='<?php echo $this->element->col; ?>' data-row='<?php echo $this->element->row; ?>' data-sizex='<?php echo $this->element->size\_x; ?>' data-sizey='<?php echo $this->element->size\_y; ?>' class='ewd-upcp-single-product-custom-element'>
1
<li data-col='<?php echo esc\_attr( $this->element->col ); ?>' data-row='<?php echo esc\_attr( $this->element->row ); ?>' data-sizex='<?php echo esc\_attr( $this->element->size\_x ); ?>' data-sizey='<?php echo esc\_attr( $this->element->size\_y ); ?>' class='ewd-upcp-single-product-custom-element'>
2
2
3
3
<?php $this->maybe\_print\_next\_previous\_products(); ?>
ultimate-product-catalogue/tags/5.0.26/ewd-upcp-templates/single-product-custom-element-price-label.php
r2638260
r2650578
1
<li data-col='<?php echo $this->element->col; ?>' data-row='<?php echo $this->element->row; ?>' data-sizex='<?php echo $this->element->size\_x; ?>' data-sizey='<?php echo $this->element->size\_y; ?>' class='ewd-upcp-single-product-custom-element'>
1
<li data-col='<?php echo esc\_attr( $this->element->col ); ?>' data-row='<?php echo esc\_attr( $this->element->row ); ?>' data-sizex='<?php echo esc\_attr( $this->element->size\_x ); ?>' data-sizey='<?php echo esc\_attr( $this->element->size\_y ); ?>' class='ewd-upcp-single-product-custom-element'>
2
2
3
3
<?php \_e( 'Price', 'ultimate-product-catalogue' ); ?>:
ultimate-product-catalogue/tags/5.0.26/ewd-upcp-templates/single-product-custom-element-price.php
r2638260
r2650578
1
<li data-col='<?php echo $this->element->col; ?>' data-row='<?php echo $this->element->row; ?>' data-sizex='<?php echo $this->element->size\_x; ?>' data-sizey='<?php echo $this->element->size\_y; ?>' class='ewd-upcp-single-product-custom-element'>
1
<li data-col='<?php echo esc\_attr( $this->element->col ); ?>' data-row='<?php echo esc\_attr( $this->element->row ); ?>' data-sizex='<?php echo esc\_attr( $this->element->size\_x ); ?>' data-sizey='<?php echo esc\_attr( $this->element->size\_y ); ?>' class='ewd-upcp-single-product-custom-element'>
2
2
3
3
<?php $this->maybe\_print\_next\_previous\_products(); ?>
ultimate-product-catalogue/tags/5.0.26/ewd-upcp-templates/single-product-custom-element-related-products.php
r2638260
r2650578
1
<li data-col='<?php echo $this->element->col; ?>' data-row='<?php echo $this->element->row; ?>' data-sizex='<?php echo $this->element->size\_x; ?>' data-sizey='<?php echo $this->element->size\_y; ?>' class='ewd-upcp-single-product-custom-element'>
1
<li data-col='<?php echo esc\_attr( $this->element->col ); ?>' data-row='<?php echo esc\_attr( $this->element->row ); ?>' data-sizex='<?php echo esc\_attr( $this->element->size\_x ); ?>' data-sizey='<?php echo esc\_attr( $this->element->size\_y ); ?>' class='ewd-upcp-single-product-custom-element'>
2
2
3
3
<?php $this->maybe\_print\_related\_products(); ?>
ultimate-product-catalogue/tags/5.0.26/ewd-upcp-templates/single-product-custom-element-subcategories-label.php
r2638260
r2650578
1
<li data-col='<?php echo $this->element->col; ?>' data-row='<?php echo $this->element->row; ?>' data-sizex='<?php echo $this->element->size\_x; ?>' data-sizey='<?php echo $this->element->size\_y; ?>' class='ewd-upcp-single-product-custom-element'>
1
<li data-col='<?php echo esc\_attr( $this->element->col ); ?>' data-row='<?php echo esc\_attr( $this->element->row ); ?>' data-sizex='<?php echo esc\_attr( $this->element->size\_x ); ?>' data-sizey='<?php echo esc\_attr( $this->element->size\_y ); ?>' class='ewd-upcp-single-product-custom-element'>
2
2
3
3
<?php echo esc\_html( $this->get\_subcategories\_label() ); ?>
ultimate-product-catalogue/tags/5.0.26/ewd-upcp-templates/single-product-custom-element-subcategories.php
r2638260
r2650578
1
<li data-col='<?php echo $this->element->col; ?>' data-row='<?php echo $this->element->row; ?>' data-sizex='<?php echo $this->element->size\_x; ?>' data-sizey='<?php echo $this->element->size\_y; ?>' class='ewd-upcp-single-product-custom-element'>
1
<li data-col='<?php echo esc\_attr( $this->element->col ); ?>' data-row='<?php echo esc\_attr( $this->element->row ); ?>' data-sizex='<?php echo esc\_attr( $this->element->size\_x ); ?>' data-sizey='<?php echo esc\_attr( $this->element->size\_y ); ?>' class='ewd-upcp-single-product-custom-element'>
2
2
3
3
<?php echo esc\_html( $this->product->get\_subcategory\_names() ); ?>
ultimate-product-catalogue/tags/5.0.26/ewd-upcp-templates/single-product-custom-element-tags-label.php
r2638260
r2650578
1
<li data-col='<?php echo $this->element->col; ?>' data-row='<?php echo $this->element->row; ?>' data-sizex='<?php echo $this->element->size\_x; ?>' data-sizey='<?php echo $this->element->size\_y; ?>' class='ewd-upcp-single-product-custom-element'>
1
<li data-col='<?php echo esc\_attr( $this->element->col ); ?>' data-row='<?php echo esc\_attr( $this->element->row ); ?>' data-sizex='<?php echo esc\_attr( $this->element->size\_x ); ?>' data-sizey='<?php echo esc\_attr( $this->element->size\_y ); ?>' class='ewd-upcp-single-product-custom-element'>
2
2
3
3
<?php echo esc\_html( $this->get\_tags\_label() ); ?>
ultimate-product-catalogue/tags/5.0.26/ewd-upcp-templates/single-product-custom-element-tags.php
r2638260
r2650578
1
<li data-col='<?php echo $this->element->col; ?>' data-row='<?php echo $this->element->row; ?>' data-sizex='<?php echo $this->element->size\_x; ?>' data-sizey='<?php echo $this->element->size\_y; ?>' class='ewd-upcp-single-product-custom-element'>
1
<li data-col='<?php echo esc\_attr( $this->element->col ); ?>' data-row='<?php echo esc\_attr( $this->element->row ); ?>' data-sizex='<?php echo esc\_attr( $this->element->size\_x ); ?>' data-sizey='<?php echo esc\_attr( $this->element->size\_y ); ?>' class='ewd-upcp-single-product-custom-element'>
2
2
3
3
<?php echo esc\_html( $this->product->get\_tag\_names() ); ?>
ultimate-product-catalogue/tags/5.0.26/ewd-upcp-templates/single-product-custom-element-text.php
r2638260
r2650578
1
<li data-col='<?php echo $this->element->col; ?>' data-row='<?php echo $this->element->row; ?>' data-sizex='<?php echo $this->element->size\_x; ?>' data-sizey='<?php echo $this->element->size\_y; ?>' class='ewd-upcp-single-product-custom-element'>
1
<li data-col='<?php echo esc\_attr( $this->element->col ); ?>' data-row='<?php echo esc\_attr( $this->element->row ); ?>' data-sizex='<?php echo esc\_attr( $this->element->size\_x ); ?>' data-sizey='<?php echo esc\_attr( $this->element->size\_y ); ?>' class='ewd-upcp-single-product-custom-element'>
2
2
3
3
<?php echo do\_shortcode( $this->element->element\_id ); ?>
ultimate-product-catalogue/tags/5.0.26/ewd-upcp-templates/single-product-custom-element-title.php
r2638260
r2650578
1
<li data-col='<?php echo $this->element->col; ?>' data-row='<?php echo $this->element->row; ?>' data-sizex='<?php echo $this->element->size\_x; ?>' data-sizey='<?php echo $this->element->size\_y; ?>' class='ewd-upcp-single-product-custom-element'>
1
<li data-col='<?php echo esc\_attr( $this->element->col ); ?>' data-row='<?php echo esc\_attr( $this->element->row ); ?>' data-sizex='<?php echo esc\_attr( $this->element->size\_x ); ?>' data-sizey='<?php echo esc\_attr( $this->element->size\_y ); ?>' class='ewd-upcp-single-product-custom-element'>
2
2
3
3
<?php $this->print\_title(); ?>
ultimate-product-catalogue/tags/5.0.26/ewd-upcp-templates/single-product-description.php
r2638260
r2650578
1
1
<div class='ewd-upcp-single-product-description'>
2
2
3
<?php echo $this->product->get\_product\_description(); ?>
3
<?php echo wp\_kses\_post( $this->product->get\_product\_description() ); ?>
4
4
5
5
</div>
ultimate-product-catalogue/tags/5.0.26/ewd-upcp-templates/single-product-main-image.php
r2638260
r2650578
1
<div class='ewd-upcp-single-product-main-image <?php echo $this->get\_main\_image\_lightbox\_class(); ?>' data-ulbsource='<?php echo esc\_attr( $this->product->get\_main\_image\_url() ); ?>'>
1
<div class='ewd-upcp-single-product-main-image <?php echo esc\_attr( $this->get\_main\_image\_lightbox\_class() ); ?>' data-ulbsource='<?php echo esc\_attr( $this->product->get\_main\_image\_url() ); ?>'>
2
2
3
3
<?php echo $this->product->get\_image(); ?>
ultimate-product-catalogue/tags/5.0.26/ewd-upcp-templates/single-product-tab-faqs.php
r2638260
r2650578
3
3
<?php $ufaq\_product\_category = get\_term\_by( 'name', $this->product->name, 'ufaq-category' ); ?>
4
4
5
<?php echo do\_shortcode( "\[ultimate-faqs include\_category='". ( ! empty( $ufaq\_product\_category ) ? $ufaq\_product\_category->slug : '' ) . ',' . $this->get\_product\_category\_slugs() . "'\]" ); ?>
5
<?php echo do\_shortcode( "\[ultimate-faqs include\_category='". ( ! empty( $ufaq\_product\_category ) ? sanitize\_text\_field( $ufaq\_product\_category->slug ) : '' ) . ',' . esc\_attr( $this->get\_product\_category\_slugs() ) . "'\]" ); ?>
6
6
7
7
</div>
ultimate-product-catalogue/tags/5.0.26/ewd-upcp-templates/single-product-videos.php
r2638260
r2650578
7
7
</div> \*/ ?>
8
8
9
<div class='ewd-upcp-single-video' data-video\_key='<?php echo ( $key + 1 ); ?>'>
9
<div class='ewd-upcp-single-video' data-video\_key='<?php echo esc\_attr( $key + 1 ); ?>'>
10
10
11
11
<iframe width='300' height='225' src='<?php echo esc\_attr( $video->embed\_url ); ?>' webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>
ultimate-product-catalogue/tags/5.0.26/ewd-upcp-templates/tabbed-single-product.php
r2638260
r2650578
1
<div id='ewd-upcp-single-product-<?php echo $this->product->id; ?>' class='ewd-upcp-tabbed-product-page ewd-upcp-product-page'>
1
<div id='ewd-upcp-single-product-<?php echo esc\_attr( $this->product->id ); ?>' class='ewd-upcp-tabbed-product-page ewd-upcp-product-page'>
2
2
3
3
<?php $this->print\_product\_breadcrumbs(); ?>
ultimate-product-catalogue/tags/5.0.26/includes/AdminCustomFields.class.php
r2638260
r2650578
14
14
// Add the admin menu
15
15
add\_action( 'admin\_menu', array( $this, 'add\_menu\_page' ), 12 );
16
17
// Enqueue admin scripts
18
add\_action( 'admin\_enqueue\_scripts', array( $this, 'enqueue\_scripts' ), 12 );
19
16
}
20
17
…
…
221
218
do\_action( 'ewd\_upcp\_custom\_fields\_updated' );
222
219
}
223
224
public function enqueue\_scripts() {
225
226
$screen = get\_current\_screen();
227
228
if ( $screen->id == 'tracking\_page\_ewd-upcp-custom-fields' ) {
229
230
wp\_enqueue\_style( 'ewd-upcp-admin-css', EWD\_UPCP\_PLUGIN\_URL . '/assets/css/ewd-upcp-admin.css', array(), EWD\_UPCP\_VERSION );
231
wp\_enqueue\_script( 'ewd-upcp-admin-js', EWD\_UPCP\_PLUGIN\_URL . '/assets/js/ewd-upcp-admin.js', array( 'jquery', 'jquery-ui-sortable' ), EWD\_UPCP\_VERSION, true );
232
}
233
}
234
220
}
235
221
} // endif;
ultimate-product-catalogue/tags/5.0.26/includes/AdminProductPage.class.php
r2638260
r2650578
399
399
<li>
400
400
401
<a class='ewd-upcp-custom-product-page-add-element' data-name='<?php echo $element->name; ?>' data-class='<?php echo $element->class; ?>' data-id='<?php echo $element->id; ?>' data-x\_size='<?php echo $element->x\_size; ?>' data-y\_size='<?php echo $element->y\_size; ?>'><?php echo $element->name; ?></a>
401
<a class='ewd-upcp-custom-product-page-add-element' data-name='<?php echo esc\_attr( $element->name ); ?>' data-class='<?php echo esc\_attr( $element->class ); ?>' data-id='<?php echo esc\_attr( $element->id ); ?>' data-x\_size='<?php echo esc\_attr( $element->x\_size ); ?>' data-y\_size='<?php echo esc\_attr( $element->y\_size ); ?>'><?php echo esc\_html( $element->name ); ?></a>
402
402
403
403
</li>
…
…
417
417
<?php foreach ( $gridster as $grid\_element ) { ?>
418
418
419
<li data-col='<?php echo $grid\_element->col; ?>' data-row='<?php echo $grid\_element->row; ?>' data-sizex='<?php echo $grid\_element->size\_x; ?>' data-sizey='<?php echo $grid\_element->size\_y; ?>' data-elementclass='<?php echo $grid\_element->element\_class; ?>' data-elementid='<?php echo $grid\_element->element\_id; ?>' class='prod-page-div gs-w' style='display: list-item; position:absolute;'>
419
<li data-col='<?php echo esc\_attr( $grid\_element->col ); ?>' data-row='<?php echo esc\_attr( $grid\_element->row ); ?>' data-sizex='<?php echo esc\_attr( $grid\_element->size\_x ); ?>' data-sizey='<?php echo esc\_attr( $grid\_element->size\_y); ?>' data-elementclass='<?php echo esc\_attr( $grid\_element->element\_class ); ?>' data-elementid='<?php echo esc\_attr( $grid\_element->element\_id ); ?>' class='prod-page-div gs-w' style='display: list-item; position:absolute;'>
420
420
421
421
<?php echo substr( $grid\_element->element\_type, 0, strpos( $grid\_element->element\_type, '<' ) ); ?>
…
…
426
426
427
427
<textarea class='ewd-upcp-pb-textarea'>
428
<?php echo $grid\_element->element\_id; ?>
428
<?php echo esc\_textarea( $grid\_element->element\_id ); ?>
429
429
</textarea>
430
430
…
…
500
500
<li>
501
501
502
<a class='ewd-upcp-custom-product-page-add-element' data-name='<?php echo $element->name; ?>' data-class='<?php echo $element->class; ?>' data-x\_size='<?php echo $element->x\_size; ?>' data-y\_size='<?php echo $element->y\_size; ?>'><?php echo $element->name; ?></a>
502
<a class='ewd-upcp-custom-product-page-add-element' data-name='<?php echo esc\_attr( $element->name ); ?>' data-class='<?php echo esc\_attr( $element->class ); ?>' data-x\_size='<?php echo esc\_attr( $element->x\_size ); ?>' data-y\_size='<?php echo esc\_attr( $element->y\_size ); ?>'><?php echo esc\_html( $element->name ); ?></a>
503
503
504
504
</li>
…
…
518
518
<?php foreach ( $gridster as $grid\_element ) { ?>
519
519
520
<li data-col='<?php echo $grid\_element->col; ?>' data-row='<?php echo $grid\_element->row; ?>' data-sizex='<?php echo $grid\_element->size\_x; ?>' data-sizey='<?php echo $grid\_element->size\_y; ?>' data-elementclass='<?php echo $grid\_element->element\_class; ?>' data-elementid='<?php echo $grid\_element->element\_id; ?>' class='prod-page-div gs-w' style='display: list-item; position:absolute;'>
520
<li data-col='<?php echo esc\_attr( $grid\_element->col ); ?>' data-row='<?php echo esc\_attr( $grid\_element->row ); ?>' data-sizex='<?php echo esc\_attr( $grid\_element->size\_x ); ?>' data-sizey='<?php echo esc( $grid\_element->size\_y ); ?>' data-elementclass='<?php echo esc\_attr( $grid\_element->element\_class ); ?>' data-elementid='<?php echo esc\_attr( $grid\_element->element\_id ); ?>' class='prod-page-div gs-w' style='display: list-item; position:absolute;'>
521
521
522
522
<?php echo substr( $grid\_element->element\_type, 0, strpos( $grid\_element->element\_type, '<' ) ); ?>
…
…
527
527
528
528
<textarea class='ewd-upcp-pb-textarea'>
529
<?php echo $grid\_element->element\_id; ?>
529
<?php echo esc\_textarea( $grid\_element->element\_id ); ?>
530
530
</textarea>
531
531
…
…
537
537
538
538
</ul>
539
539
540
540
</div>
541
541
…
…
563
563
564
564
</div>
565
565
566
566
</form>
567
567
568
568
</div>
569
569
…
…
611
611
612
612
public function save\_gridster\_layout() {
613
global $ewd\_upcp\_controller;
614
615
// Authenticate request
616
if (
617
! check\_ajax\_referer( 'ewd-upcp-admin-js', 'nonce' )
618
||
619
! current\_user\_can( $ewd\_upcp\_controller->settings->get\_setting( 'access-role' ) )
620
) {
621
ewdUpcpHelper::admin\_nopriv\_ajax();
622
}
613
623
614
624
$option\_name = $\_POST\['type'\] == 'mobile' ? 'UPCP\_Product\_Page\_Serialized\_Mobile' : 'UPCP\_Product\_Page\_Serialized';
ultimate-product-catalogue/tags/5.0.26/includes/Ajax.class.php
r2638260
r2650578
32
32
global $ewd\_upcp\_controller;
33
33
34
// Authenticate request
35
if ( ! check\_ajax\_referer( 'ewd-upcp-js', 'nonce' ) ) {
36
ewdUpcpHelper::bad\_nonce\_ajax();
37
}
38
34
39
$product\_id = intval( $\_POST\['product\_id'\] );
35
40
…
…
43
48
public function update\_catalog() {
44
49
global $ewd\_upcp\_controller;
45
50
51
// Authenticate request
52
if ( ! check\_ajax\_referer( 'ewd-upcp-js', 'nonce' ) ) {
53
ewdUpcpHelper::bad\_nonce\_ajax();
54
}
55
46
56
$args = array(
47
57
'sidebar' => 'no',
…
…
112
122
global $woocommerce;
113
123
124
// Authenticate request
125
if ( ! check\_ajax\_referer( 'ewd-upcp-js', 'nonce' ) ) {
126
ewdUpcpHelper::bad\_nonce\_ajax();
127
}
128
114
129
setcookie( 'upcp\_cart\_products', '', time() - 3600, '/' );
115
130
…
…
129
144
global $ewd\_upcp\_controller;
130
145
global $woocommerce;
146
147
// Authenticate request
148
if ( ! check\_ajax\_referer( 'ewd-upcp-js', 'nonce' ) ) {
149
ewdUpcpHelper::bad\_nonce\_ajax();
150
}
131
151
132
152
if ( ! empty( $ewd\_upcp\_controller->settings->get\_setting( 'woocommerce-checkout' ) ) and ! empty( $ewd\_upcp\_controller->settings->get\_setting( 'woocommerce-sync' ) ) and is\_object( $woocommerce ) ) {
ultimate-product-catalogue/tags/5.0.26/includes/CustomPostTypes.class.php
r2638260
r2650578
389
389
?>
390
390
391
<input type="hidden" name="ewd\_upcp\_nonce" value="<?php echo $this->nonce; ?>">
391
<input type="hidden" name="ewd\_upcp\_nonce" value="<?php echo esc\_attr( $this->nonce ); ?>">
392
392
393
393
<div class='ewd-upcp-meta-field'>
…
…
612
612
613
613
<?php foreach ( $products as $product ) { ?>
614
<option value='<?php echo $product->ID; ?>'><?php echo esc\_html( $product->post\_title ); ?></option>
614
<option value='<?php echo esc\_attr( $product->ID ); ?>'><?php echo esc\_html( $product->post\_title ); ?></option>
615
615
<?php } ?>
616
616
…
…
628
628
629
629
<?php foreach ( $products as $product ) { ?>
630
<option value='<?php echo $product->ID; ?>' <?php echo ( $related\_product == $product->ID ? 'selected' : '' ); ?>><?php echo esc\_html( $product->post\_title ); ?></option>
630
<option value='<?php echo esc\_attr( $product->ID ); ?>' <?php echo ( $related\_product == $product->ID ? 'selected' : '' ); ?>><?php echo esc\_html( $product->post\_title ); ?></option>
631
631
<?php } ?>
632
632
…
…
658
658
659
659
<?php foreach ( $products as $product ) { ?>
660
<option value='<?php echo $product->ID; ?>' <?php echo ( $previous\_product == $product->ID ? 'selected' : '' ); ?>><?php echo esc\_html( $product->post\_title ); ?></option>
660
<option value='<?php echo esc\_attr( $product->ID ); ?>' <?php echo ( $previous\_product == $product->ID ? 'selected' : '' ); ?>><?php echo esc\_html( $product->post\_title ); ?></option>
661
661
<?php } ?>
662
662
…
…
676
676
677
677
<?php foreach ( $products as $product ) { ?>
678
<option value='<?php echo $product->ID; ?>' <?php echo ( $next\_product == $product->ID ? 'selected' : '' ); ?>><?php echo esc\_html( $product->post\_title ); ?></option>
678
<option value='<?php echo esc\_attr( $product->ID ); ?>' <?php echo ( $next\_product == $product->ID ? 'selected' : '' ); ?>><?php echo esc\_html( $product->post\_title ); ?></option>
679
679
<?php } ?>
680
680
…
…
870
870
<?php foreach ( $products as $product ) { ?>
871
871
<label class='ewd-upcp-admin-input-container'>
872
<input type='checkbox' class='ewd-upcp-add-items-product-checkbox' value='<?php echo $product->ID; ?>' />
872
<input type='checkbox' class='ewd-upcp-add-items-product-checkbox' value='<?php echo esc\_attr( $product->ID ); ?>' />
873
873
<span class='ewd-upcp-admin-checkbox'></span> <span><?php echo esc\_html( $product->post\_title ); ?></span>
874
874
</label>
…
…
885
885
<?php foreach ( $categories as $category ) { ?>
886
886
<label class='ewd-upcp-admin-input-container'>
887
<input type='checkbox' class='ewd-upcp-add-items-category-checkbox' value='<?php echo $category->term\_id; ?>' />
887
<input type='checkbox' class='ewd-upcp-add-items-category-checkbox' value='<?php echo esc\_attr( $category->term\_id ); ?>' />
888
888
<span class='ewd-upcp-admin-checkbox'></span> <span><?php echo esc\_html( $category->name ); ?></span>
889
889
</label>
…
…
904
904
<div class='ewd-upcp-catalog-meta-current-items'>
905
905
906
<input type="hidden" name="ewd\_upcp\_nonce" value="<?php echo $this->nonce; ?>">
906
<input type="hidden" name="ewd\_upcp\_nonce" value="<?php echo esc\_attr( $this->nonce ); ?>">
907
907
908
908
<table class='ewd-upcp-catalog-meta-items'>
…
…
936
936
<td>
937
937
938
<input type='hidden' name='catalog\_item\_id\[\]' value='<?php echo $item->id; ?>' />
939
940
<input type='hidden' name='catalog\_item\_type\[\]' value='<?php echo $item->type; ?>' />
938
<input type='hidden' name='catalog\_item\_id\[\]' value='<?php echo esc\_attr( $item->id ); ?>' />
939
940
<input type='hidden' name='catalog\_item\_type\[\]' value='<?php echo esc\_attr( $item->type ); ?>' />
941
941
942
942
<?php echo esc\_html( $item\_name ) ?>
…
…
1257
1257
\*/
1258
1258
public function update\_category\_and\_tag\_order() {
1259
global $ewd\_upcp\_controller;
1260
1261
// Authenticate request
1262
if (
1263
! check\_ajax\_referer( 'ewd-upcp-admin-js', 'nonce' )
1264
||
1265
! current\_user\_can( $ewd\_upcp\_controller->settings->get\_setting( 'access-role' ) )
1266
) {
1267
ewdUpcpHelper::admin\_nopriv\_ajax();
1268
}
1259
1269
1260
1270
$ids = is\_array( $\_POST\['tag'\] ) ? array\_map( 'intval', $\_POST\['tag'\] ) : array();
…
…
1497
1507
\*/
1498
1508
public function update\_product\_order() {
1509
global $ewd\_upcp\_controller;
1510
1511
// Authenticate request
1512
if (
1513
! check\_ajax\_referer( 'ewd-upcp-admin-js', 'nonce' )
1514
||
1515
! current\_user\_can( $ewd\_upcp\_controller->settings->get\_setting( 'access-role' ) )
1516
) {
1517
ewdUpcpHelper::admin\_nopriv\_ajax();
1518
}
1499
1519
1500
1520
$ids = is\_array( $\_POST\['post'\] ) ? array\_map( 'intval', $\_POST\['post'\] ) : array();
ultimate-product-catalogue/tags/5.0.26/includes/Dashboard.class.php
r2638260
r2650578
15
15
public function \_\_construct() {
16
16
add\_action( 'admin\_menu', array( $this, 'add\_dashboard\_to\_menu' ), 99 );
17
18
add\_action( 'admin\_enqueue\_scripts', array( $this, 'enqueue\_scripts' ) );
19
20
add\_action( 'wp\_ajax\_ewd\_upcp\_hide\_upgrade\_box', array($this, 'hide\_upgrade\_box') );
21
add\_action( 'wp\_ajax\_ewd\_upcp\_display\_upgrade\_box', array($this, 'display\_upgrade\_box') );
22
17
23
18
if ( ! empty( $\_POST\['ewd\_upcp\_reset\_settings'\] ) ) {
…
…
62
57
}
63
58
64
// Enqueues the admin script so that our hacky sub-menu opening function can run
65
public function enqueue\_scripts() {
66
global $admin\_page\_hooks;
67
68
$currentScreen = get\_current\_screen();
69
if ( $currentScreen->id == 'upcp\_product\_page\_ewd-upcp-settings' ) {
70
wp\_enqueue\_style( 'ewd-upcp-admin-css', EWD\_UPCP\_PLUGIN\_URL . '/assets/css/ewd-upcp-admin.css', array(), EWD\_UPCP\_VERSION );
71
wp\_enqueue\_script( 'ewd-upcp-admin-js', EWD\_UPCP\_PLUGIN\_URL . '/assets/js/ewd-upcp-admin.js', array( 'jquery' ), EWD\_UPCP\_VERSION, true );
72
}
73
}
74
75
59
public function display\_dashboard\_screen() {
76
60
global $ewd\_upcp\_controller;
…
…
100
84
$premium\_info = apply\_filters( 'ewd\_dashboard\_top', $premium\_info, 'UPCP', 'https://www.etoilewebdesign.com/license-payment/?Selected=UPCP&Quantity=1' );
101
85
102
echo $premium\_info;
86
// This will allow us to disaply the form
87
$tmp\_fun = function( $tags ) {
88
$tags = array\_merge(
89
$tags,
90
\[
91
'input' => \[
92
'class' => true,
93
'name' => true,
94
'type' => true,
95
'value' => true,
96
'placeholder' => true
97
\]
98
\]
99
);
100
if(isset($tags\['form'\])) {
101
$tags\['form'\] = array\_merge($tags\['form'\], \['class' => true\]);
102
}
103
return $tags;
104
};
105
add\_filter( 'wp\_kses\_allowed\_html', $tmp\_fun, 10, 1);
106
echo wp\_kses\_post( $premium\_info );
107
remove\_filter( 'wp\_kses\_allowed\_html', $tmp\_fun, 10 );
103
108
} ?>
104
109
105
110
<div class="ewd-upcp-dashboard-new-widget-box ewd-widget-box-full" id="ewd-upcp-dashboard-support-widget-box">
106
111
<div class="ewd-upcp-dashboard-new-widget-box-top"><?php \_e('Get Support', 'ultimate-product-catalogue'); ?><span id="ewd-upcp-dash-mobile-support-down-caret"> ▼</span><span id="ewd-upcp-dash-mobile-support-up-caret"> ▲</span></div>
…
…
151
156
foreach ( $catalogs as $catalog ) { ?>
152
157
<tr>
153
<td><a href='post.php?post=<?php echo $catalog->ID; ?>&action=edit'><?php echo $catalog->post\_title; ?></a></td>
154
<td>\[product-catalogue id='<?php echo $catalog->ID; ?>'\]</td>
158
<td><a href='post.php?post=<?php echo esc\_url( $catalog->ID ); ?>&action=edit'><?php echo esc\_html( $catalog->post\_title ); ?></a></td>
159
<td>\[product-catalogue id='<?php echo sanitize\_text\_field( $catalog->ID ); ?>'\]</td>
155
160
</tr>
156
161
<?php }
…
…
228
233
229
234
<?php if ( ! get\_option("EWD\_UPCP\_Trial\_Happening") ) {
230
$trial\_info = sprintf( \_\_( '<a href="%s" target="\_blank">Visit our website</a> to learn how to get a free 7-day trial of the premium plugin.'), 'https://www.etoilewebdesign.com/premium-upgrade-instructions/' );
235
$trial\_info = sprintf( \_\_( '<a href="%s" target="\_blank">Visit our website</a> to learn how to get a free 7-day trial of the premium plugin.'), 'https://www.etoilewebdesign.com/premium-upgrade-instructions/' );
231
236
232
237
echo apply\_filters( 'ewd\_trial\_button', $trial\_info, 'UPCP' );
ultimate-product-catalogue/tags/5.0.26/includes/DeactivationSurvey.class.php
r2638260
r2650578
55
55
<div class="ewd-upcp-deactivate-survey-modal" id="ewd-upcp-deactivate-survey-ultimate-product-catalogue">
56
56
<div class="ewd-upcp-deactivate-survey-wrap">
57
<form class="ewd-upcp-deactivate-survey" method="post" data-installtime="<?php echo $install\_time; ?>">
57
<form class="ewd-upcp-deactivate-survey" method="post" data-installtime="<?php echo esc\_attr( $install\_time ); ?>">
58
58
<span class="ewd-upcp-deactivate-survey-title"><span class="dashicons dashicons-testimonial"></span><?php echo ' ' . \_\_( 'Quick Feedback', 'ultimate-product-catalogue' ); ?></span>
59
59
<span class="ewd-upcp-deactivate-survey-desc"><?php echo \_\_('If you have a moment, please share why you are deactivating Ultimate Product Catalog:', 'ultimate-product-catalogue' ); ?></span>
…
…
61
61
<?php foreach ( $options as $id => $option ) : ?>
62
62
<div class="ewd-upcp-deactivate-survey-option">
63
<label for="ewd-upcp-deactivate-survey-option-ultimate-product-catalogue-<?php echo $id; ?>" class="ewd-upcp-deactivate-survey-option-label">
64
<input id="ewd-upcp-deactivate-survey-option-ultimate-product-catalogue-<?php echo $id; ?>" class="ewd-upcp-deactivate-survey-option-input" type="radio" name="code" value="<?php echo $id; ?>" />
65
<span class="ewd-upcp-deactivate-survey-option-reason"><?php echo $option\['title'\]; ?></span>
63
<label for="ewd-upcp-deactivate-survey-option-ultimate-product-catalogue-<?php echo esc\_attr( $id ); ?>" class="ewd-upcp-deactivate-survey-option-label">
64
<input id="ewd-upcp-deactivate-survey-option-ultimate-product-catalogue-<?php echo esc\_attr( $id ); ?>" class="ewd-upcp-deactivate-survey-option-input" type="radio" name="code" value="<?php echo esc\_attr( $id ); ?>" />
65
<span class="ewd-upcp-deactivate-survey-option-reason"><?php echo esc\_html( $option\['title'\] ); ?></span>
66
66
</label>
67
67
<?php if ( ! empty( $option\['details'\] ) ) : ?>
68
<input class="ewd-upcp-deactivate-survey-option-details" type="text" placeholder="<?php echo $option\['details'\]; ?>" />
68
<input class="ewd-upcp-deactivate-survey-option-details" type="text" placeholder="<?php echo esc\_attr( $option\['details'\] ); ?>" />
69
69
<?php endif; ?>
70
70
</div>
ultimate-product-catalogue/tags/5.0.26/includes/Export.class.php
r2638260
r2650578
21
21
22
22
if ( isset( $\_POST\['ewd\_upcp\_export'\] ) ) { add\_action( 'admin\_menu', array($this, 'export\_products' )); }
23
24
add\_action( 'admin\_enqueue\_scripts', array( $this, 'enqueue\_export\_scripts' ) );
25
23
}
26
24
…
…
171
169
}
172
170
173
public function enqueue\_export\_scripts() {
174
175
$screen = get\_current\_screen();
176
177
if ( $screen->id == 'ewd-upcp-tracking\_page\_ewd-upcp-export' ) {
178
179
wp\_enqueue\_style( 'ewd-upcp-admin-css', EWD\_UPCP\_PLUGIN\_URL . '/assets/css/ewd-upcp-admin.css', array(), EWD\_UPCP\_VERSION );
180
wp\_enqueue\_script( 'ewd-upcp-admin-js', EWD\_UPCP\_PLUGIN\_URL . '/assets/js/ewd-upcp-admin.js', array( 'jquery' ), EWD\_UPCP\_VERSION, true );
181
}
182
}
183
184
171
}
185
172
ultimate-product-catalogue/tags/5.0.26/includes/Import.class.php
r2638260
r2650578
19
19
20
20
if ( isset( $\_POST\['ewdupcpImport'\] ) ) { add\_action( 'admin\_init', array($this, 'import\_products' )); }
21
22
add\_action( 'admin\_enqueue\_scripts', array( $this, 'enqueue\_import\_scripts' ) );
23
21
}
24
22
…
…
376
374
}
377
375
378
public function enqueue\_import\_scripts() {
379
380
$screen = get\_current\_screen();
381
382
if ( $screen->id == 'ewd-upcp-tracking\_page\_ewd-upcp-import' ) {
383
384
wp\_enqueue\_style( 'ewd-upcp-admin-css', EWD\_UPCP\_PLUGIN\_URL . '/assets/css/ewd-upcp-admin.css', array(), '5.0.0' );
385
wp\_enqueue\_script( 'ewd-upcp-admin-js', EWD\_UPCP\_PLUGIN\_URL . '/assets/js/ewd-upcp-admin.js', array( 'jquery' ), '5.0.0', true );
386
}
387
}
388
389
376
public function display\_notice() {
390
377
ultimate-product-catalogue/tags/5.0.26/includes/InstallationWalkthrough.class.php
r2638260
r2650578
80
80
\*/
81
81
public function add\_category() {
82
global $ewd\_upcp\_controller;
83
84
// Authenticate request
85
if (
86
! check\_ajax\_referer( 'ewd-upcp-getting-started', 'nonce' )
87
||
88
! current\_user\_can( $ewd\_upcp\_controller->settings->get\_setting( 'access-role' ) )
89
) {
90
ewdUpcpHelper::admin\_nopriv\_ajax();
91
}
82
92
83
93
$category\_name = isset( $\_POST\['category\_name'\] ) ? sanitize\_text\_field( $\_POST\['category\_name'\] ) : '';
84
$category\_description = isset( $\_POST\['category\_description'\] ) ? sanitize\_textarea\_field( $\_POST\['category\_description'\] ) : '';
85
86
$category\_term\_id = wp\_insert\_term( $category\_name, EWD\_UPCP\_PRODUCT\_CATEGORY\_TAXONOMY, array('description' => $category\_description) );
87
88
echo json\_encode ( array( 'category\_name' => $category\_name, 'category\_id' => $category\_term\_id\['term\_id'\] ) );
89
90
exit();
94
$category\_description = isset( $\_POST\['category\_description'\] ) ? sanitize\_textarea\_field( $\_POST\['category\_description'\] ) : '';
95
96
$category\_term\_id = wp\_insert\_term( $category\_name, EWD\_UPCP\_PRODUCT\_CATEGORY\_TAXONOMY, array('description' => $category\_description) );
97
98
echo json\_encode ( array( 'category\_name' => $category\_name, 'category\_id' => $category\_term\_id\['term\_id'\] ) );
99
100
exit();
91
101
}
92
102
…
…
96
106
\*/
97
107
public function add\_catalog() {
108
global $ewd\_upcp\_controller;
109
110
// Authenticate request
111
if (
112
! check\_ajax\_referer( 'ewd-upcp-getting-started', 'nonce' )
113
||
114
! current\_user\_can( $ewd\_upcp\_controller->settings->get\_setting( 'access-role' ) )
115
) {
116
ewdUpcpHelper::admin\_nopriv\_ajax();
117
}
98
118
99
119
$args = array(
100
'post\_title' => isset( $\_POST\['catalog\_name'\] ) ? sanitize\_text\_field( $\_POST\['catalog\_name'\] ) : '',
101
'post\_content' => '',
102
'post\_status' => 'publish',
103
'post\_type' => EWD\_UPCP\_CATALOG\_POST\_TYPE
104
);
105
106
$catalog\_id = wp\_insert\_post( $args );
107
108
if ( $catalog\_id ) {
109
110
$args = array(
111
'taxonomy' => EWD\_UPCP\_PRODUCT\_CATEGORY\_TAXONOMY,
112
'hide\_empty' => false,
113
);
114
115
$categories = get\_terms( $args );
116
117
$items = array();
118
119
foreach ( $categories as $category ) {
120
121
$items\[\] = (object) array(
122
'type' => 'category',
123
'id' => $category->term\_id,
124
);
125
}
126
127
update\_post\_meta( $catalog\_id, 'items', $items );
128
}
129
130
$args = array(
131
'post\_title' => isset( $\_POST\['catalog\_name'\] ) ? sanitize\_text\_field( $\_POST\['catalog\_name'\] ) : '',
132
'post\_content' => '<!-- wp:paragraph --><p> \[product-catalogue id="' . $catalog\_id . '"\] </p><!-- /wp:paragraph -->',
133
'post\_status' => 'publish',
134
'post\_type' => 'page'
135
);
136
137
$post\_id = wp\_insert\_post( $args );
138
139
wp\_send\_json\_success(
140
array(
141
'post\_id' => $post\_id,
142
)
143
);
144
145
exit();
120
'post\_title' => isset( $\_POST\['catalog\_name'\] ) ? sanitize\_text\_field( $\_POST\['catalog\_name'\] ) : '',
121
'post\_content' => '',
122
'post\_status' => 'publish',
123
'post\_type' => EWD\_UPCP\_CATALOG\_POST\_TYPE
124
);
125
126
$catalog\_id = wp\_insert\_post( $args );
127
128
if ( $catalog\_id ) {
129
130
$args = array(
131
'taxonomy' => EWD\_UPCP\_PRODUCT\_CATEGORY\_TAXONOMY,
132
'hide\_empty' => false,
133
);
134
135
$categories = get\_terms( $args );
136
137
$items = array();
138
139
foreach ( $categories as $category ) {
140
141
$items\[\] = (object) array(
142
'type' => 'category',
143
'id' => $category->term\_id,
144
);
145
}
146
147
update\_post\_meta( $catalog\_id, 'items', $items );
148
}
149
150
$args = array(
151
'post\_title' => isset( $\_POST\['catalog\_name'\] ) ? sanitize\_text\_field( $\_POST\['catalog\_name'\] ) : '',
152
'post\_content' => '<!-- wp:paragraph --><p> \[product-catalogue id="' . $catalog\_id . '"\] </p><!-- /wp:paragraph -->',
153
'post\_status' => 'publish',
154
'post\_type' => 'page'
155
);
156
157
$post\_id = wp\_insert\_post( $args );
158
159
wp\_send\_json\_success(
160
array(
161
'post\_id' => $post\_id,
162
)
163
);
164
165
exit();
146
166
}
147
167
…
…
151
171
\*/
152
172
public function set\_options() {
173
global $ewd\_upcp\_controller;
174
175
// Authenticate request
176
if (
177
! check\_ajax\_referer( 'ewd-upcp-getting-started', 'nonce' )
178
||
179
! current\_user\_can( $ewd\_upcp\_controller->settings->get\_setting( 'access-role' ) )
180
) {
181
ewdUpcpHelper::admin\_nopriv\_ajax();
182
}
153
183
154
184
$ewd\_upcp\_options = get\_option( 'ewd-upcp-settings' );
…
…
160
190
161
191
update\_option( 'ewd-upcp-settings', $ewd\_upcp\_options );
162
163
exit();
192
193
exit();
164
194
}
165
195
…
…
169
199
\*/
170
200
public function add\_product() {
201
global $ewd\_upcp\_controller;
202
203
// Authenticate request
204
if (
205
! check\_ajax\_referer( 'ewd-upcp-getting-started', 'nonce' )
206
||
207
! current\_user\_can( $ewd\_upcp\_controller->settings->get\_setting( 'access-role' ) )
208
) {
209
ewdUpcpHelper::admin\_nopriv\_ajax();
210
}
171
211
172
212
$args = array(
…
…
220
260
wp\_enqueue\_script( 'ewd-upcp-admin-settings-js', EWD\_UPCP\_PLUGIN\_URL . '/lib/simple-admin-pages/js/admin-settings.js', array( 'jquery' ), EWD\_UPCP\_VERSION );
221
261
wp\_enqueue\_script( 'ewd-upcp-admin-spectrum-js', EWD\_UPCP\_PLUGIN\_URL . '/lib/simple-admin-pages/js/spectrum.js', array( 'jquery' ), EWD\_UPCP\_VERSION );
262
263
wp\_localize\_script(
264
'ewd-upcp-getting-started',
265
'ewd\_upcp\_getting\_started',
266
array(
267
'nonce' => wp\_create\_nonce( 'ewd-upcp-getting-started' )
268
)
269
);
222
270
}
223
271
…
…
332
380
<fieldset>
333
381
<legend class="screen-reader-text"><span>Currency Symbol</span></legend>
334
<label for='currency\_symbol'></label><input type='text' name='currency\_symbol' value='<?php echo $currency\_symbol; ?>' /><br />
382
<label for='currency\_symbol'></label><input type='text' name='currency\_symbol' value='<?php echo esc\_attr( $currency\_symbol ); ?>' /><br />
335
383
<p><?php \_e('What currency symbol, if any, should be displayed before or after the price? Leave blank for none.', 'ultimate-product-catalogue'); ?></p>
336
384
</fieldset>
ultimate-product-catalogue/tags/5.0.26/includes/Product.class.php
r2638260
r2650578
506
506
$image\_url = $this->get\_main\_image\_url();
507
507
508
return '<img class="ewd-upcp-product-image" src="' . $image\_url . '" />';
508
return '<img class="ewd-upcp-product-image" src="' . esc\_url( $image\_url ) . '" />';
509
509
}
510
510
ultimate-product-catalogue/tags/5.0.26/includes/ReviewAsk.class.php
r2638260
r2650578
74
74
wp\_enqueue\_style( 'ewd-upcp-review-ask-css', EWD\_UPCP\_PLUGIN\_URL . '/assets/css/dashboard-review-ask.css' );
75
75
wp\_enqueue\_script( 'ewd-upcp-review-ask-js', EWD\_UPCP\_PLUGIN\_URL . '/assets/js/dashboard-review-ask.js', array( 'jquery' ), EWD\_UPCP\_VERSION, true );
76
77
wp\_localize\_script(
78
'ewd-upcp-review-ask-js',
79
'ewd\_upcp\_review\_ask',
80
array(
81
'nonce' => wp\_create\_nonce( 'ewd-upcp-review-ask-js' )
82
)
83
);
76
84
}
77
85
78
86
public function hide\_review\_ask() {
87
global $ewd\_upcp\_controller;
88
89
// Authenticate request
90
if (
91
! check\_ajax\_referer( 'ewd-upcp-review-ask-js', 'nonce' )
92
||
93
! current\_user\_can( $ewd\_upcp\_controller->settings->get\_setting( 'access-role' ) )
94
) {
95
ewdUpcpHelper::admin\_nopriv\_ajax();
96
}
79
97
80
98
$ask\_review\_time = sanitize\_text\_field($\_POST\['ask\_review\_time'\]);
81
99
82
if ( get\_option( 'ewd-upcp-review-ask-time' ) < time() + 3600\*24 \* $ask\_review\_time ) {
83
update\_option( 'ewd-upcp-review-ask-time', time() + 3600\*24 \* $ask\_review\_time );
84
}
100
if ( get\_option( 'ewd-upcp-review-ask-time' ) < time() + 3600\*24 \* $ask\_review\_time ) {
101
update\_option( 'ewd-upcp-review-ask-time', time() + 3600\*24 \* $ask\_review\_time );
102
}
85
103
86
die();
104
die();
87
105
}
88
106
89
107
public function send\_feedback() {
108
global $ewd\_upcp\_controller;
109
110
// Authenticate request
111
if (
112
! check\_ajax\_referer( 'ewd-upcp-review-ask-js', 'nonce' )
113
||
114
! current\_user\_can( $ewd\_upcp\_controller->settings->get\_setting( 'access-role' ) )
115
) {
116
ewdUpcpHelper::admin\_nopriv\_ajax();
117
}
118
90
119
$headers = 'Content-type: text/html;charset=utf-8' . "\\r\\n";
91
$feedback = sanitize\_text\_field($\_POST\['feedback'\]);
92
$feedback .= '<br /><br />Email Address: ';
93
$feedback .= sanitize\_text\_field($\_POST\['email\_address'\]);
120
$feedback = sanitize\_text\_field($\_POST\['feedback'\]);
121
$feedback .= '<br /><br />Email Address: ';
122
$feedback .= sanitize\_email($\_POST\['email\_address'\]);
94
123
95
wp\_mail('[email protected]', 'UPCP Feedback - Dashboard Form', $feedback, $headers);
124
wp\_mail('[email protected]', 'UPCP Feedback - Dashboard Form', $feedback, $headers);
96
125
97
die();
126
die();
98
127
}
99
128
}
ultimate-product-catalogue/tags/5.0.26/includes/Widgets.class.php
r2638260
r2650578
60
60
public function widget( $args, $instance ) {
61
61
62
echo $args\['before\_widget'\];
63
echo do\_shortcode( "\[insert-products product\_ids='". $instance\['product\_list'\] . "' catalogue\_url='". $instance\['catalogue\_url'\] . "' products\_wide='". $instance\['products\_per\_row'\] . "'\]" );
64
echo $args\['after\_widget'\];
62
echo esc\_html( $args\['before\_widget'\] );
63
echo do\_shortcode( "\[insert-products product\_ids='". sanitize\_text\_field( $instance\['product\_list'\] ) . "' catalogue\_url='". sanitize\_text\_field( $instance\['catalogue\_url'\] ) . "' products\_wide='". sanitize\_text\_field( $instance\['products\_per\_row'\] ) . "'\]" );
64
echo esc\_html( $args\['after\_widget'\] );
65
65
}
66
66
…
…
79
79
80
80
<p>
81
<label for="<?php echo $this->get\_field\_id( 'product\_list' ); ?>"><?php \_e( 'Comma-separated product IDs:', 'ultimate-product-catalogue' ); ?></label>
82
<input class="widefat" id="<?php echo $this->get\_field\_id( 'product\_list' ); ?>" name="<?php echo $this->get\_field\_name( 'product\_list' ); ?>" type="text" value="<?php echo esc\_attr( $product\_list ); ?>">
83
</p>
84
<p>
85
<label for="<?php echo $this->get\_field\_id( 'catalogue\_url' ); ?>"><?php \_e( 'The URL of your catalog:', 'ultimate-product-catalogue' ); ?></label>
86
<input class="widefat" id="<?php echo $this->get\_field\_id( 'catalogue\_url' ); ?>" name="<?php echo $this->get\_field\_name( 'catalogue\_url' ); ?>" type="text" value="<?php echo esc\_attr( $catalogue\_url ); ?>">
87
</p>
88
<p>
89
<label for="<?php echo $this->get\_field\_id( 'products\_per\_row' ); ?>"><?php \_e( 'The number of products per row:', 'ultimate-product-catalogue' ); ?></label>
90
<input class="widefat" id="<?php echo $this->get\_field\_id( 'products\_per\_row' ); ?>" name="<?php echo $this->get\_field\_name( 'products\_per\_row' ); ?>" type="text" value="<?php echo esc\_attr( $products\_per\_row ); ?>">
81
<label for="<?php echo esc\_attr( $this->get\_field\_id( 'product\_list' ) ); ?>"><?php \_e( 'Comma-separated product IDs:', 'ultimate-product-catalogue' ); ?></label>
82
<input class="widefat" id="<?php echo esc\_attr( $this->get\_field\_id( 'product\_list' ) ); ?>" name="<?php echo esc\_attr( $this->get\_field\_name( 'product\_list' ) ); ?>" type="text" value="<?php echo esc\_attr( $product\_list ); ?>">
83
</p>
84
<p>
85
<label for="<?php echo esc\_attr( $this->get\_field\_id( 'catalogue\_url' ) ); ?>"><?php \_e( 'The URL of your catalog:', 'ultimate-product-catalogue' ); ?></label>
86
<input class="widefat" id="<?php echo esc\_attr( $this->get\_field\_id( 'catalogue\_url' ) ); ?>" name="<?php echo esc\_attr( $this->get\_field\_name( 'catalogue\_url' ) ); ?>" type="text" value="<?php echo esc\_attr( $catalogue\_url ); ?>">
87
</p>
88
<p>
89
<label for="<?php echo esc\_attr( $this->get\_field\_id( 'products\_per\_row' ) ); ?>"><?php \_e( 'The number of products per row:', 'ultimate-product-catalogue' ); ?></label>
90
<input class="widefat" id="<?php echo esc\_attr( $this->get\_field\_id( 'products\_per\_row' ) ); ?>" name="<?php echo esc\_attr( $this->get\_field\_name( 'products\_per\_row' ) ); ?>" type="text" value="<?php echo esc\_attr( $products\_per\_row ); ?>">
91
91
</p>
92
92
…
…
133
133
public function widget( $args, $instance ) {
134
134
135
echo $args\['before\_widget'\];
136
echo do\_shortcode( "\[insert-products catalogue\_id='". $instance\['catalogue\_id'\] . "' product\_count='". $instance\['product\_count'\] . "' catalogue\_url='". $instance\['catalogue\_url'\] . "'\]" );
137
echo $args\['after\_widget'\];
135
echo esc\_html( $args\['before\_widget'\] );
136
echo do\_shortcode( "\[insert-products catalogue\_id='". sanitize\_text\_field( $instance\['catalogue\_id'\] ) . "' product\_count='". sanitize\_text\_field( $instance\['product\_count'\] ) . "' catalogue\_url='". sanitize\_text\_field( $instance\['catalogue\_url'\] ) . "'\]" );
137
echo esc\_html( $args\['after\_widget'\] );
138
138
}
139
139
…
…
152
152
153
153
<p>
154
<label for="<?php echo $this->get\_field\_id( 'catalogue\_id' ); ?>"><?php \_e( 'Catalog ID:', 'ultimate-product-catalogue' ); ?></label>
155
<input class="widefat" id="<?php echo $this->get\_field\_id( 'catalogue\_id' ); ?>" name="<?php echo $this->get\_field\_name( 'catalogue\_id' ); ?>" type="text" value="<?php echo esc\_attr( $catalogue\_id ); ?>">
156
</p>
157
<p>
158
<label for="<?php echo $this->get\_field\_id( 'product\_count' ); ?>"><?php \_e( 'Number of products to display:', 'ultimate-product-catalogue' ); ?></label>
159
<input class="widefat" id="<?php echo $this->get\_field\_id( 'product\_count' ); ?>" name="<?php echo $this->get\_field\_name( 'product\_count' ); ?>" type="text" value="<?php echo esc\_attr( $product\_count ); ?>">
160
</p>
161
<p>
162
<label for="<?php echo $this->get\_field\_id( 'catalogue\_url' ); ?>"><?php \_e( 'The URL of your catalog:', 'ultimate-product-catalogue' ); ?></label>
163
<input class="widefat" id="<?php echo $this->get\_field\_id( 'catalogue\_url' ); ?>" name="<?php echo $this->get\_field\_name( 'catalogue\_url' ); ?>" type="text" value="<?php echo esc\_attr( $catalogue\_url ); ?>">
154
<label for="<?php echo esc\_attr( $this->get\_field\_id( 'catalogue\_id' ) ); ?>"><?php \_e( 'Catalog ID:', 'ultimate-product-catalogue' ); ?></label>
155
<input class="widefat" id="<?php echo esc\_attr( $this->get\_field\_id( 'catalogue\_id' ) ); ?>" name="<?php echo esc\_attr( $this->get\_field\_name( 'catalogue\_id' ) ); ?>" type="text" value="<?php echo esc\_attr( $catalogue\_id ); ?>">
156
</p>
157
<p>
158
<label for="<?php echo esc\_attr( $this->get\_field\_id( 'product\_count' ) ); ?>"><?php \_e( 'Number of products to display:', 'ultimate-product-catalogue' ); ?></label>
159
<input class="widefat" id="<?php echo esc\_attr( $this->get\_field\_id( 'product\_count' ) ); ?>" name="<?php echo esc\_attr( $this->get\_field\_name( 'product\_count' ) ); ?>" type="text" value="<?php echo esc\_attr( $product\_count ); ?>">
160
</p>
161
<p>
162
<label for="<?php echo esc\_attr( $this->get\_field\_id( 'catalogue\_url' ) ); ?>"><?php \_e( 'The URL of your catalog:', 'ultimate-product-catalogue' ); ?></label>
163
<input class="widefat" id="<?php echo esc\_attr( $this->get\_field\_id( 'catalogue\_url' ) ); ?>" name="<?php echo esc\_attr( $this->get\_field\_name( 'catalogue\_url' ) ); ?>" type="text" value="<?php echo esc\_attr( $catalogue\_url ); ?>">
164
164
</p>
165
165
…
…
206
206
public function widget( $args, $instance ) {
207
207
208
echo $args\['before\_widget'\];
209
echo do\_shortcode( "\[insert-products catalogue\_id='". $instance\['catalogue\_id'\] . "' catalogue\_search='recent' product\_count='". $instance\['product\_count'\] . "' catalogue\_url='". $instance\['catalogue\_url'\] . "'\]" );
210
echo $args\['after\_widget'\];
208
echo esc\_html( $args\['before\_widget'\] );
209
echo do\_shortcode( "\[insert-products catalogue\_id='". sanitize\_text\_field( $instance\['catalogue\_id'\] ) . "' catalogue\_search='recent' product\_count='". sanitize\_text\_field( $instance\['product\_count'\] ) . "' catalogue\_url='". sanitize\_text\_field( $instance\['catalogue\_url'\] ) . "'\]" );
210
echo esc\_html( $args\['after\_widget'\] );
211
211
}
212
212
…
…
225
225
226
226
<p>
227
<label for="<?php echo $this->get\_field\_id( 'catalogue\_id' ); ?>"><?php \_e( 'Catalog ID:', 'ultimate-product-catalogue' ); ?></label>
228
<input class="widefat" id="<?php echo $this->get\_field\_id( 'catalogue\_id' ); ?>" name="<?php echo $this->get\_field\_name( 'catalogue\_id' ); ?>" type="text" value="<?php echo esc\_attr( $catalogue\_id ); ?>">
229
</p>
230
<p>
231
<label for="<?php echo $this->get\_field\_id( 'product\_count' ); ?>"><?php \_e( 'Number of products to display:', 'ultimate-product-catalogue' ); ?></label>
232
<input class="widefat" id="<?php echo $this->get\_field\_id( 'product\_count' ); ?>" name="<?php echo $this->get\_field\_name( 'product\_count' ); ?>" type="text" value="<?php echo esc\_attr( $product\_count ); ?>">
233
</p>
234
<p>
235
<label for="<?php echo $this->get\_field\_id( 'catalogue\_url' ); ?>"><?php \_e( 'The URL of your catalog:', 'ultimate-product-catalogue' ); ?></label>
236
<input class="widefat" id="<?php echo $this->get\_field\_id( 'catalogue\_url' ); ?>" name="<?php echo $this->get\_field\_name( 'catalogue\_url' ); ?>" type="text" value="<?php echo esc\_attr( $catalogue\_url ); ?>">
227
<label for="<?php echo esc\_attr( $this->get\_field\_id( 'catalogue\_id' ) ); ?>"><?php \_e( 'Catalog ID:', 'ultimate-product-catalogue' ); ?></label>
228
<input class="widefat" id="<?php echo esc\_attr( $this->get\_field\_id( 'catalogue\_id' ) ); ?>" name="<?php echo esc\_attr( $this->get\_field\_name( 'catalogue\_id' ) ); ?>" type="text" value="<?php echo esc\_attr( $catalogue\_id ); ?>">
229
</p>
230
<p>
231
<label for="<?php echo esc\_attr( $this->get\_field\_id( 'product\_count' ) ); ?>"><?php \_e( 'Number of products to display:', 'ultimate-product-catalogue' ); ?></label>
232
<input class="widefat" id="<?php echo esc\_attr( $this->get\_field\_id( 'product\_count' ) ); ?>" name="<?php echo esc\_attr( $this->get\_field\_name( 'product\_count' ) ); ?>" type="text" value="<?php echo esc\_attr( $product\_count ); ?>">
233
</p>
234
<p>
235
<label for="<?php echo esc\_attr( $this->get\_field\_id( 'catalogue\_url' ) ); ?>"><?php \_e( 'The URL of your catalog:', 'ultimate-product-catalogue' ); ?></label>
236
<input class="widefat" id="<?php echo esc\_attr( $this->get\_field\_id( 'catalogue\_url' ) ); ?>" name="<?php echo esc\_attr( $this->get\_field\_name( 'catalogue\_url' ) ); ?>" type="text" value="<?php echo esc\_attr( $catalogue\_url ); ?>">
237
237
</p>
238
238
…
…
279
279
public function widget( $args, $instance ) {
280
280
281
echo $args\['before\_widget'\];
282
echo do\_shortcode( "\[insert-products catalogue\_id='". $instance\['catalogue\_id'\] . "' catalogue\_search='popular' product\_count='". $instance\['product\_count'\] . "' catalogue\_url='". $instance\['catalogue\_url'\] . "'\]" );
283
echo $args\['after\_widget'\];
281
echo esc\_html( $args\['before\_widget'\] );
282
echo do\_shortcode( "\[insert-products catalogue\_id='". sanitize\_text\_field( $instance\['catalogue\_id'\] ) . "' catalogue\_search='popular' product\_count='". sanitize\_text\_field( $instance\['product\_count'\] ) . "' catalogue\_url='". sanitize\_text\_field( $instance\['catalogue\_url'\] ) . "'\]" );
283
echo esc\_html( $args\['after\_widget'\] );
284
284
}
285
285
…
…
298
298
299
299
<p>
300
<label for="<?php echo $this->get\_field\_id( 'catalogue\_id' ); ?>"><?php \_e( 'Catalog ID:', 'ultimate-product-catalogue' ); ?></label>
301
<input class="widefat" id="<?php echo $this->get\_field\_id( 'catalogue\_id' ); ?>" name="<?php echo $this->get\_field\_name( 'catalogue\_id' ); ?>" type="text" value="<?php echo esc\_attr( $catalogue\_id ); ?>">
302
</p>
303
<p>
304
<label for="<?php echo $this->get\_field\_id( 'product\_count' ); ?>"><?php \_e( 'Number of products to display:', 'ultimate-product-catalogue' ); ?></label>
305
<input class="widefat" id="<?php echo $this->get\_field\_id( 'product\_count' ); ?>" name="<?php echo $this->get\_field\_name( 'product\_count' ); ?>" type="text" value="<?php echo esc\_attr( $product\_count ); ?>">
306
</p>
307
<p>
308
<label for="<?php echo $this->get\_field\_id( 'catalogue\_url' ); ?>"><?php \_e( 'The URL of your catalog:', 'ultimate-product-catalogue' ); ?></label>
309
<input class="widefat" id="<?php echo $this->get\_field\_id( 'catalogue\_url' ); ?>" name="<?php echo $this->get\_field\_name( 'catalogue\_url' ); ?>" type="text" value="<?php echo esc\_attr( $catalogue\_url ); ?>">
300
<label for="<?php echo esc\_attr( $this->get\_field\_id( 'catalogue\_id' ) ); ?>"><?php \_e( 'Catalog ID:', 'ultimate-product-catalogue' ); ?></label>
301
<input class="widefat" id="<?php echo esc\_attr( $this->get\_field\_id( 'catalogue\_id' ) ); ?>" name="<?php echo esc\_attr( $this->get\_field\_name( 'catalogue\_id' ) ); ?>" type="text" value="<?php echo esc\_attr( $catalogue\_id ); ?>">
302
</p>
303
<p>
304
<label for="<?php echo esc\_attr( $this->get\_field\_id( 'product\_count' ) ); ?>"><?php \_e( 'Number of products to display:', 'ultimate-product-catalogue' ); ?></label>
305
<input class="widefat" id="<?php echo esc\_attr( $this->get\_field\_id( 'product\_count' ) ); ?>" name="<?php echo esc\_attr( $this->get\_field\_name( 'product\_count' ) ); ?>" type="text" value="<?php echo esc\_attr( $product\_count ); ?>">
306
</p>
307
<p>
308
<label for="<?php echo esc\_attr( $this->get\_field\_id( 'catalogue\_url' ) ); ?>"><?php \_e( 'The URL of your catalog:', 'ultimate-product-catalogue' ); ?></label>
309
<input class="widefat" id="<?php echo esc\_attr( $this->get\_field\_id( 'catalogue\_url' ) ); ?>" name="<?php echo esc\_attr( $this->get\_field\_name( 'catalogue\_url' ) ); ?>" type="text" value="<?php echo esc\_attr( $catalogue\_url ); ?>">
310
310
</p>
311
311
…
…
352
352
public function widget( $args, $instance ) {
353
353
354
echo $args\['before\_widget'\];
354
echo esc\_html( $args\['before\_widget'\] );
355
355
echo "<div class='ewd-upcp-product-search-widget-div'>";
356
echo "<form method='post' action='" . add\_query\_arg( 'overview\_mode', 'None', $instance\['catalogue\_url'\] ) . "'>";
357
echo "<div class='ewd-upcp-widget-search-label'>" . $instance\['search\_label'\] . "</div>";
358
echo "<div class='ewd-upcp-widget-search-input'><input type='text' name='prod\_name' placeholder='" . $instance\['search\_placeholder'\] . "'/></div>";
359
echo "<input type='submit' class='ewd-upcp-widget-submit' name='upcp\_widget\_search\_submit' value='" . $instance\['search\_label'\] . "' />";
356
echo "<form method='post' action='" . esc\_attr( add\_query\_arg( 'overview\_mode', 'None', $instance\['catalogue\_url'\] ) ) . "'>";
357
echo "<div class='ewd-upcp-widget-search-label'>" . sanitize\_text\_field( $instance\['search\_label'\] ) . "</div>";
358
echo "<div class='ewd-upcp-widget-search-input'><input type='text' name='prod\_name' placeholder='" . esc\_attr( $instance\['search\_placeholder'\] ) . "'/></div>";
359
echo "<input type='submit' class='ewd-upcp-widget-submit' name='upcp\_widget\_search\_submit' value='" . esc\_attr( $instance\['search\_label'\] ) . "' />";
360
360
echo "</form>";
361
361
echo "</div>";
362
echo $args\['after\_widget'\];
362
echo esc\_html( $args\['after\_widget'\] );
363
363
}
364
364
…
…
377
377
378
378
<p>
379
<label for="<?php echo $this->get\_field\_id( 'search\_label' ); ?>"><?php \_e( 'Catalog ID:', 'ultimate-product-catalogue' ); ?></label>
380
<input class="widefat" id="<?php echo $this->get\_field\_id( 'search\_label' ); ?>" name="<?php echo $this->get\_field\_name( 'search\_label' ); ?>" type="text" value="<?php echo esc\_attr( $search\_label ); ?>">
381
</p>
382
<p>
383
<label for="<?php echo $this->get\_field\_id( 'search\_placeholder' ); ?>"><?php \_e( 'Number of products to display:', 'ultimate-product-catalogue' ); ?></label>
384
<input class="widefat" id="<?php echo $this->get\_field\_id( 'search\_placeholder' ); ?>" name="<?php echo $this->get\_field\_name( 'search\_placeholder' ); ?>" type="text" value="<?php echo esc\_attr( $search\_placeholder ); ?>">
385
</p>
386
<p>
387
<label for="<?php echo $this->get\_field\_id( 'catalogue\_url' ); ?>"><?php \_e( 'The URL of your catalog:', 'ultimate-product-catalogue' ); ?></label>
388
<input class="widefat" id="<?php echo $this->get\_field\_id( 'catalogue\_url' ); ?>" name="<?php echo $this->get\_field\_name( 'catalogue\_url' ); ?>" type="text" value="<?php echo esc\_attr( $catalogue\_url ); ?>">
379
<label for="<?php echo esc\_attr( $this->get\_field\_id( 'search\_label' ) ); ?>"><?php \_e( 'Catalog ID:', 'ultimate-product-catalogue' ); ?></label>
380
<input class="widefat" id="<?php echo esc\_attr( $this->get\_field\_id( 'search\_label' ) ); ?>" name="<?php echo esc\_attr( $this->get\_field\_name( 'search\_label' ) ); ?>" type="text" value="<?php echo esc\_attr( $search\_label ); ?>">
381
</p>
382
<p>
383
<label for="<?php echo esc\_attr( $this->get\_field\_id( 'search\_placeholder' ) ); ?>"><?php \_e( 'Number of products to display:', 'ultimate-product-catalogue' ); ?></label>
384
<input class="widefat" id="<?php echo esc\_attr( $this->get\_field\_id( 'search\_placeholder' ) ); ?>" name="<?php echo esc\_attr( $this->get\_field\_name( 'search\_placeholder' ) ); ?>" type="text" value="<?php echo esc\_attr( $search\_placeholder ); ?>">
385
</p>
386
<p>
387
<label for="<?php echo esc\_attr( $this->get\_field\_id( 'catalogue\_url' ) ); ?>"><?php \_e( 'The URL of your catalog:', 'ultimate-product-catalogue' ); ?></label>
388
<input class="widefat" id="<?php echo esc\_attr( $this->get\_field\_id( 'catalogue\_url' ) ); ?>" name="<?php echo esc\_attr( $this->get\_field\_name( 'catalogue\_url' ) ); ?>" type="text" value="<?php echo esc\_attr( $catalogue\_url ); ?>">
389
389
</p>
390
390
ultimate-product-catalogue/tags/5.0.26/includes/template-functions.php
r2638260
r2650578
180
180
181
181
if ( count( $classes ) ) {
182
return ' class="' . join( ' ', $classes ) . '"';
182
return ' class="' . esc\_attr( join( ' ', $classes ) ) . '"';
183
183
}
184
184
}
ultimate-product-catalogue/tags/5.0.26/readme.txt
r2638260
r2650578
5
5
Requires at least: 4.0.0
6
6
Tested up to: 5.8
7
Stable tag: 5.0.26
7
8
License: GPLv3
8
9
License URI: https://www.gnu.org/licenses/gpl-3.0.html
…
…
332
333
333
334
\== Changelog ==
335
336
\= 5.0.26 (2021-12-29) =
337
\- Updating nonce and authorization checks for AJAX calls.
338
\- Updating sanitizing and escaping.
334
339
335
340
\= 5.0.25 (2021-12-01) =
ultimate-product-catalogue/tags/5.0.26/ultimate-product-catalogue.php
r2638260
r2650578
8
8
Terms and Conditions: https://www.etoilewebdesign.com/plugin-terms-and-conditions/
9
9
Text Domain: ultimate-product-catalogue
10
Version: 5.0.25
10
Version: 5.0.26
11
11
\*/
12
12
…
…
48
48
define( 'EWD\_UPCP\_PLUGIN\_FNAME', plugin\_basename( \_\_FILE\_\_ ) );
49
49
define( 'EWD\_UPCP\_TEMPLATE\_DIR', 'ewd-upcp-templates' );
50
define( 'EWD\_UPCP\_VERSION', '5.0.23' );
50
define( 'EWD\_UPCP\_VERSION', '5.0.26' );
51
51
52
52
define( 'EWD\_UPCP\_PRODUCT\_POST\_TYPE', 'upcp\_product' );
…
…
72
72
require\_once( EWD\_UPCP\_PLUGIN\_DIR . '/includes/Dashboard.class.php' );
73
73
require\_once( EWD\_UPCP\_PLUGIN\_DIR . '/includes/DeactivationSurvey.class.php' );
74
require\_once( EWD\_UPCP\_PLUGIN\_DIR . '/includes/Helper.class.php' );
74
75
require\_once( EWD\_UPCP\_PLUGIN\_DIR . '/includes/Export.class.php' );
75
76
require\_once( EWD\_UPCP\_PLUGIN\_DIR . '/includes/Import.class.php' );
…
…
143
144
144
145
add\_action( 'admin\_notices', array( $this, 'display\_header\_area' ) );
146
add\_action( 'admin\_notices', array( $this, 'maybe\_display\_helper\_notice' ) );
145
147
146
148
add\_action( 'admin\_enqueue\_scripts', array( $this, 'enqueue\_admin\_assets' ), 10, 1 );
…
…
150
152
151
153
add\_filter( 'plugin\_action\_links', array( $this, 'plugin\_action\_links' ), 10, 2);
154
155
add\_action( 'wp\_ajax\_ewd\_upcp\_hide\_helper\_notice', array( $this, 'hide\_helper\_notice' ) );
152
156
}
153
157
…
…
259
263
global $post;
260
264
265
wp\_enqueue\_script( 'ewd-upcp-helper-notice', EWD\_UPCP\_PLUGIN\_URL . '/assets/js/ewd-upcp-helper-install-notice.js', array( 'jquery' ), EWD\_UPCP\_VERSION, true );
266
wp\_localize\_script(
267
'ewd-upcp-helper-notice',
268
'ewd\_upcp\_helper\_notice',
269
array( 'nonce' => wp\_create\_nonce( 'ewd-upcp-helper-notice' ) )
270
);
271
272
wp\_enqueue\_style( 'ewd-upcp-helper-notice', EWD\_UPCP\_PLUGIN\_URL . '/assets/css/ewd-upcp-helper-install-notice.css', array(), EWD\_UPCP\_VERSION );
273
261
274
$post\_type = is\_object( $post ) ? $post->post\_type : '';
262
275
263
276
$screen = get\_current\_screen();
264
277
265
// Return if not one of the UASP post types, we're not on a post-type page, or we're not on the settings or widget pages
266
if ( $hook != 'upcp\_product\_page\_ewd-upcp-settings' and $hook != 'upcp\_product\_page\_ewd-upcp-import' and $hook != 'upcp\_product\_page\_ewd-upcp-export' and ( empty( $screen->post\_type ) or $screen->post\_type != 'upcp\_product' ) and ( empty( $screen->post\_type ) or $screen->post\_type != 'upcp\_catalog' ) and $screen->id != 'upcp\_product\_page\_ewd-upcp-dashboard' and $screen->id != 'upcp\_product\_page\_ewd-upcp-custom-fields' ) { return; }
267
268
wp\_enqueue\_media();
278
// Return if not one of the UASP post types, we're not on a post-type page, or we're not on the settings or widget pages
279
$candidates = array(
280
'upcp\_product\_page\_ewd-upcp-dashboard',
281
282
'edit-upcp\_product',
283
'upcp\_product',
284
285
'edit-upcp\_catalog',
286
'upcp\_catalog',
287
288
'edit-upcp-product-category',
289
'edit-upcp-product-tag',
290
'upcp\_product\_page\_ewd-upcp-export',
291
'upcp\_product\_page\_ewd-upcp-import',
292
'upcp\_product\_page\_ewd-upcp-custom-fields',
293
'upcp\_product\_page\_ewd-upcp-product-page',
294
'upcp\_product\_page\_ewd-upcp-settings'
295
);
296
297
if ( ! in\_array( $hook, $candidates )
298
&& ( empty( $screen->post\_type ) or ! in\_array ( $screen->post\_type, $candidates ) )
299
and ! in\_array( $screen->id, $candidates )
300
) {
301
return;
302
}
303
304
wp\_enqueue\_media();
269
305
270
306
wp\_enqueue\_style( 'ewd-upcp-admin-css', EWD\_UPCP\_PLUGIN\_URL . '/assets/css/ewd-upcp-admin.css', array(), EWD\_UPCP\_VERSION );
…
…
279
315
280
316
$args = array(
317
'nonce' => wp\_create\_nonce( 'ewd-upcp-admin-js' ),
281
318
'product\_add' => ( $this->permissions->check\_permission( 'premium' ) or sizeof( $products ) < 100 ),
282
319
);
…
…
301
338
wp\_register\_script( 'ewd-upcp-gridster', EWD\_UPCP\_PLUGIN\_URL . '/assets/js/jquery.gridster.js', array( 'jquery' ), EWD\_UPCP\_VERSION, true );
302
339
wp\_register\_script( 'ewd-upcp-js', EWD\_UPCP\_PLUGIN\_URL . '/assets/js/ewd-upcp.js', array( 'jquery', 'jquery-ui-slider' ), EWD\_UPCP\_VERSION, true );
340
341
wp\_localize\_script(
342
'ewd-upcp-js',
343
'ewd\_upcp\_js',
344
array(
345
'nonce' => wp\_create\_nonce( 'ewd-upcp-js' )
346
)
347
);
303
348
}
304
349
…
…
475
520
}
476
521
522
public function maybe\_display\_helper\_notice() {
523
global $ewd\_upcp\_controller;
524
525
if ( empty( $ewd\_upcp\_controller->permissions->check\_permission( 'premium' ) ) ) { return; }
526
527
if ( is\_plugin\_active( 'ewd-premium-helper/ewd-premium-helper.php' ) ) { return; }
528
529
if ( get\_transient( 'ewd-helper-notice-dismissed' ) ) { return; }
530
531
?>
532
533
<div class='notice notice-error is-dismissible ewd-upcp-helper-install-notice'>
534
535
<div class='ewd-upcp-helper-install-notice-img'>
536
<img src='<?php echo EWD\_UPCP\_PLUGIN\_URL . '/lib/simple-admin-pages/img/options-asset-exclamation.png' ; ?>' />
537
</div>
538
539
<div class='ewd-upcp-helper-install-notice-txt'>
540
<?php \_e( 'You\\'re using the Ultimate Product Catalog premium version, but the premium helper plugin is not active.', 'ultimate-product-catalogue' ); ?>
541
<br />
542
<?php echo sprintf( \_\_( 'Please re-activate the helper plugin, or <a target=\\'\_blank\\' href=\\'%s\\'>download and install it</a> if the plugin is no longer installed to ensure continued access to the premium features of the plugin.', 'ultimate-product-catalogue' ), 'https://www.etoilewebdesign.com/2021/12/11/requiring-premium-helper-plugin/' ); ?>
543
</div>
544
545
<div class='ewd-upcp-clear'></div>
546
547
</div>
548
549
<?php
550
}
551
552
public function hide\_helper\_notice() {
553
global $ewd\_upcp\_controller;
554
555
// Authenticate request
556
if (
557
! check\_ajax\_referer( 'ewd-upcp-helper-notice', 'nonce' )
558
||
559
! current\_user\_can( $ewd\_upcp\_controller->settings->get\_setting( 'access-role' ) )
560
) {
561
ewdUpcpHelper::admin\_nopriv\_ajax();
562
}
563
564
set\_transient( 'ewd-helper-notice-dismissed', true, 3600\*24\*7 );
565
566
die();
567
}
568
477
569
}
478
570
} // endif;
ultimate-product-catalogue/tags/5.0.26/views/View.class.php
r2638260
r2650578
158
158
global $ewd\_upcp\_controller;
159
159
160
echo '<style>';
161
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-action-button-background-color' ) != '' ) { echo '.ewd-upcp-product-action-button { border-color: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-action-button-background-color' ) . ' !important; color: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-action-button-background-color' ) . ' !important; } .ewd-upcp-product-action-button:hover { background: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-action-button-background-color' ) . ' !important; }'; }
162
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-action-button-text-color' ) != '' ) { echo '.ewd-upcp-product-action-button:hover { color: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-action-button-text-color' ) . ' !important; }'; }
163
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-compare-button-background-color' ) != '' ) { echo '.ewd-upcp-product-comparison-button { background: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-compare-button-background-color' ) . ' !important; }'; }
164
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-compare-button-text-color' ) != '' ) { echo '.ewd-upcp-product-comparison-button { color: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-compare-button-text-color' ) . ' !important; }'; }
165
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-compare-button-clicked-background-color' ) != '' ) { echo '.ewd-upcp-product-comparison-button.ewd-upcp-comparison-clicked { background: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-compare-button-clicked-background-color' ) . ' !important; }'; }
166
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-compare-button-clicked-text-color' ) != '' ) { echo '.ewd-upcp-product-comparison-button.ewd-upcp-comparison-clicked { color: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-compare-button-clicked-text-color' ) . ' !important; }'; }
167
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-compare-button-font-size' ) != '' ) { echo '.ewd-upcp-product-comparison-button span { font-size: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-compare-button-font-size' ) . ' !important; }'; }
168
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-sale-button-background-color' ) != '' ) { echo '.ewd-upcp-sale-price { background: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-sale-button-background-color' ) . ' !important; }'; }
169
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-sale-button-text-color' ) != '' ) { echo '.ewd-upcp-sale-price { color: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-sale-button-text-color' ) . ' !important; }'; }
170
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-sale-button-font-size' ) != '' ) { echo '.ewd-upcp-sale-price span { font-size: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-compare-button-font-size' ) . ' !important; }'; }
171
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-product-comparison-title-font-color' ) != '' ) { echo '.ewd-upcp-product-comparison-product a { color: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-product-comparison-title-font-color' ) . ' !important; }'; }
172
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-product-comparison-title-font-size' ) != '' ) { echo '.ewd-upcp-product-comparison-product a { font-size: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-product-comparison-title-font-size' ) . ' !important; }'; }
173
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-product-comparison-price-font-size' ) != '' ) { echo '.ewd-upcp-product-comparison-price { font-size: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-product-comparison-price-font-size' ) . ' !important; }'; }
174
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-product-comparison-price-font-color' ) != '' ) { echo '.ewd-upcp-product-comparison-price { color: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-product-comparison-price-font-color' ) . ' !important; }'; }
175
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-product-comparison-price-background-color' ) != '' ) { echo '.ewd-upcp-product-comparison-price { background: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-product-comparison-price-background-color' ) . ' !important; }'; }
176
177
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-thumbnail-view-image-border-color' ) != '' ) { echo '.ewd-upcp-catalog-product-thumbnail-image-div { border: 5px solid ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-thumbnail-view-image-border-color' ) . ' !important; }'; }
178
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-thumbnail-view-box-min-height' ) != '' ) { echo '.ewd-upcp-catalog-product-thumbnail { min-height: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-thumbnail-view-box-min-height' ) . 'px !important; }'; }
179
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-thumbnail-view-box-max-height' ) != '' ) { echo '.ewd-upcp-catalog-product-thumbnail { max-height: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-thumbnail-view-box-max-height' ) . 'px !important; }'; }
180
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-thumbnail-view-box-padding' ) != '' ) { echo '.ewd-upcp-catalog-main-block .ewd-upcp-catalog-product-thumbnail { padding: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-thumbnail-view-box-padding' ) . 'px !important; }'; }
181
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-thumbnail-view-border-color' ) != '' ) { echo '.ewd-upcp-catalog-main-block .ewd-upcp-catalog-product-thumbnail, .ewd-upcp-catalog-main-block .ewd-upcp-catalog-product-thumbnail .ewd-upcp-product-action-button { border-color: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-thumbnail-view-border-color' ) . ' !important; }'; }
182
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-thumbnail-view-title-font' ) != '' ) { echo '.ewd-upcp-catalog-product-thumbnail-body-div a { font-family: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-thumbnail-view-title-font' ) . ' !important; }'; }
183
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-thumbnail-view-title-font-size' ) != '' ) { echo '.ewd-upcp-catalog-product-thumbnail-body-div a { font-size: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-thumbnail-view-title-font-size' ) . ' !important; }'; }
184
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-thumbnail-view-title-font-color' ) != '' ) { echo '.ewd-upcp-catalog-product-thumbnail-body-div a { color: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-thumbnail-view-title-font-color' ) . ' !important; }'; }
185
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-thumbnail-view-price-font' ) != '' ) { echo '.ewd-upcp-catalog-product-thumbnail .ewd-upcp-catalog-product-price { font-family: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-thumbnail-view-price-font' ) . ' !important; }'; }
186
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-thumbnail-view-price-font-size' ) != '' ) { echo '.ewd-upcp-catalog-product-thumbnail .ewd-upcp-catalog-product-price { font-size: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-thumbnail-view-price-font-size' ) . ' !important; }'; }
187
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-thumbnail-view-price-font-color' ) != '' ) { echo '.ewd-upcp-catalog-product-thumbnail .ewd-upcp-catalog-product-price { color: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-thumbnail-view-price-font-color' ) . ' !important; }'; }
188
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-thumbnail-view-background-color' ) != '' ) { echo '.ewd-upcp-catalog-product-thumbnail { background: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-thumbnail-view-background-color' ) . ' !important; }'; }
189
190
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-list-view-image-border-color' ) != '' ) { echo '.ewd-upcp-catalog-product-list-image-div { border: 5px solid ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-list-view-image-border-color' ) . ' !important; }'; }
191
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-list-view-box-border-color' ) != '' ) { echo '.ewd-upcp-catalog-product-list-content { border: 5px solid ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-list-view-box-border-color' ) . ' !important; }'; }
192
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-list-view-box-padding' ) != '' ) { echo '.ewd-upcp-catalog-product-list-content { padding: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-list-view-box-padding' ) . 'px !important; }'; }
193
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-list-view-box-margin-top' ) != '' ) { echo '.ewd-upcp-catalog-product-list-content { margin-top: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-list-view-box-margin-top' ) . 'px !important; }'; }
194
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-list-view-title-font' ) != '' ) { echo '.ewd-upcp-catalog-product-list a.ewd-upcp-product-title { font-family: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-list-view-title-font' ) . ' !important; }'; }
195
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-list-view-title-font-size' ) != '' ) { echo '.ewd-upcp-catalog-product-list a.ewd-upcp-product-title { font-size: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-list-view-title-font-size' ) . ' !important; }'; }
196
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-list-view-title-font-color' ) != '' ) { echo '.ewd-upcp-catalog-product-list a.ewd-upcp-product-title { color: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-list-view-title-font-color' ) . ' !important; }'; }
197
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-list-view-price-font' ) != '' ) { echo '.ewd-upcp-catalog-product-list .ewd-upcp-catalog-product-price { font-family: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-list-view-price-font' ) . ' !important; }'; }
198
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-list-view-price-font-size' ) != '' ) { echo '.ewd-upcp-catalog-product-list .ewd-upcp-catalog-product-price { font-size: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-list-view-price-font-size' ) . ' !important; }'; }
199
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-list-view-price-font-color' ) != '' ) { echo '.ewd-upcp-catalog-product-list .ewd-upcp-catalog-product-price { color: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-list-view-price-font-color' ) . ' !important; }'; }
200
201
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-detail-view-image-border-color' ) != '' ) { echo '.ewd-upcp-catalog-product-detail-image-div img { border: 5px solid ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-detail-view-image-border-color' ) . ' !important; }'; }
202
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-detail-view-box-padding' ) != '' ) { echo '.ewd-upcp-catalog-main-block .ewd-upcp-catalog-product-detail { padding: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-detail-view-box-padding' ) . 'px !important; }'; }
203
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-detail-view-box-margin' ) != '' ) { echo '.ewd-upcp-catalog-product-detail { margin-top: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-detail-view-box-margin' ) . 'px !important; }'; }
204
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-detail-view-box-background-color' ) != '' ) { echo '.ewd-upcp-catalog-product-detail { background: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-detail-view-box-background-color' ) . ' !important; }'; }
205
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-detail-view-border-color' ) != '' ) { echo '.ewd-upcp-catalog-main-block .ewd-upcp-catalog-product-detail, .ewd-upcp-catalog-main-block .ewd-upcp-catalog-product-detail-mid-div, .ewd-upcp-catalog-main-block .ewd-upcp-catalog-product-detail .ewd-upcp-product-action-button { border-color: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-detail-view-border-color' ) . ' !important; }'; }
206
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-detail-view-title-font' ) != '' ) { echo '.ewd-upcp-catalog-product-detail-mid-div a.ewd-upcp-product-title { font-family: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-detail-view-title-font' ) . ' !important; }'; }
207
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-detail-view-title-font-size' ) != '' ) { echo '.ewd-upcp-catalog-product-detail-mid-div a.ewd-upcp-product-title { font-size: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-detail-view-title-font-size' ) . ' !important; }'; }
208
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-detail-view-title-font-color' ) != '' ) { echo '.ewd-upcp-catalog-product-detail-mid-div a.ewd-upcp-product-title { color: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-detail-view-title-font-color' ) . ' !important; }'; }
209
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-detail-view-price-font' ) != '' ) { echo '.ewd-upcp-catalog-product-detail-end-div .ewd-upcp-catalog-product-price { font-family: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-detail-view-price-font' ) . ' !important; }'; }
210
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-detail-view-price-font-size' ) != '' ) { echo '.ewd-upcp-catalog-product-detail-end-div .ewd-upcp-catalog-product-price { font-size: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-detail-view-price-font-size' ) . ' !important; }'; }
211
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-detail-view-price-font-color' ) != '' ) { echo '.ewd-upcp-catalog-product-detail-end-div .ewd-upcp-catalog-product-price { color: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-detail-view-price-font-color' ) . ' !important; }'; }
212
213
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-sidebar-title-hover' ) == 'underline' ) { echo '.ewd-upcp-catalog-sidebar-sort > span:hover, .ewd-upcp-catalog-sidebar-search > span:hover, .ewd-upcp-catalog-sidebar-price-filter > span:hover, .ewd-upcp-catalog-sidebar-title:hover { text-decoration: underline !important; }'; }
214
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-sidebar-header-font' ) != '' ) { echo '.ewd-upcp-catalog-sidebar-sort > span, .ewd-upcp-catalog-sidebar-search > span, .ewd-upcp-catalog-sidebar-price-filter > span, .ewd-upcp-catalog-sidebar-title { font-family: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-sidebar-header-font' ) . ' !important; }'; }
215
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-sidebar-header-font-size' ) != '' ) { echo '.ewd-upcp-catalog-sidebar-sort > span, .ewd-upcp-catalog-sidebar-search > span, .ewd-upcp-catalog-sidebar-price-filter > span, .ewd-upcp-catalog-sidebar-title { font-size: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-sidebar-header-font-size' ) . ' !important; }'; }
216
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-sidebar-header-font-color' ) != '' ) { echo '.ewd-upcp-catalog-sidebar-sort > span, .ewd-upcp-catalog-sidebar-search > span, .ewd-upcp-catalog-sidebar-price-filter > span, .ewd-upcp-catalog-sidebar-title { color: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-sidebar-header-font-color' ) . ' !important; }'; }
217
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-sidebar-header-font-weight' ) != '' ) { echo '.ewd-upcp-catalog-sidebar-sort > span, .ewd-upcp-catalog-sidebar-search > span, .ewd-upcp-catalog-sidebar-price-filter > span, .ewd-upcp-catalog-sidebar-title { font-weight: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-sidebar-header-font-weight' ) . ' !important; }'; }
218
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-sidebar-checkbox-font' ) != '' ) { echo '.ewd-upcp-catalog-sidebar-content label { font-family: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-sidebar-checkbox-font' ) . ' !important; }'; }
219
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-sidebar-checkbox-font-size' ) != '' ) { echo '.ewd-upcp-catalog-sidebar-content label { font-size: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-sidebar-checkbox-font-size' ) . ' !important; }'; }
220
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-sidebar-checkbox-font-color' ) != '' ) { echo '.ewd-upcp-catalog-sidebar-content label { color: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-sidebar-checkbox-font-color' ) . ' !important; }'; }
221
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-sidebar-checkbox-font-weight' ) != '' ) { echo '.ewd-upcp-catalog-sidebar-content label { font-weight: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-sidebar-checkbox-font-weight' ) . ' !important; }'; }
222
223
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-breadcrumbs-font' ) != '' ) { echo '.ewd-upcp-single-product-breadcrumb-link a { font-family: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-breadcrumbs-font' ) . ' !important; }'; }
224
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-breadcrumbs-font-size' ) != '' ) { echo '.ewd-upcp-single-product-breadcrumb-link a { font-size: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-breadcrumbs-font-size' ) . ' !important; }'; }
225
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-breadcrumbs-font-color' ) != '' ) { echo '.ewd-upcp-single-product-breadcrumb-link a { color: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-breadcrumbs-font-color' ) . ' !important; }'; }
226
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-breadcrumbs-font-hover-color' ) != '' ) { echo '.ewd-upcp-single-product-breadcrumb-link a:hover { color: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-breadcrumbs-font-hover-color' ) . ' !important; }'; }
227
228
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-pagination-background-color' ) != '' ) { echo '.ewd-upcp-pagination .pagination-links a { background: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-pagination-background-color' ) . ' !important; }'; }
229
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-pagination-text-color' ) != '' ) { echo '.ewd-upcp-pagination .pagination-links a { color: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-pagination-text-color' ) . ' !important; }'; }
230
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-pagination-background-color-hover' ) != '' ) { echo '.ewd-upcp-pagination .pagination-links a:hover { background: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-pagination-background-color-hover' ) . ' !important; }'; }
231
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-pagination-text-color-hover' ) != '' ) { echo '.ewd-upcp-pagination .pagination-links a:hover { color: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-pagination-text-color-hover' ) . ' !important; }'; }
232
233
echo '</style>';
160
$css = '';
161
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-action-button-background-color' ) != '' ) { $css .= '.ewd-upcp-product-action-button { border-color: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-action-button-background-color' ) . ' !important; color: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-action-button-background-color' ) . ' !important; } .ewd-upcp-product-action-button:hover { background: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-action-button-background-color' ) . ' !important; }'; }
162
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-action-button-text-color' ) != '' ) { $css .= '.ewd-upcp-product-action-button:hover { color: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-action-button-text-color' ) . ' !important; }'; }
163
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-compare-button-background-color' ) != '' ) { $css .= '.ewd-upcp-product-comparison-button { background: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-compare-button-background-color' ) . ' !important; }'; }
164
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-compare-button-text-color' ) != '' ) { $css .= '.ewd-upcp-product-comparison-button { color: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-compare-button-text-color' ) . ' !important; }'; }
165
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-compare-button-clicked-background-color' ) != '' ) { $css .= '.ewd-upcp-product-comparison-button.ewd-upcp-comparison-clicked { background: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-compare-button-clicked-background-color' ) . ' !important; }'; }
166
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-compare-button-clicked-text-color' ) != '' ) { $css .= '.ewd-upcp-product-comparison-button.ewd-upcp-comparison-clicked { color: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-compare-button-clicked-text-color' ) . ' !important; }'; }
167
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-compare-button-font-size' ) != '' ) { $css .= '.ewd-upcp-product-comparison-button span { font-size: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-compare-button-font-size' ) . ' !important; }'; }
168
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-sale-button-background-color' ) != '' ) { $css .= '.ewd-upcp-sale-price { background: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-sale-button-background-color' ) . ' !important; }'; }
169
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-sale-button-text-color' ) != '' ) { $css .= '.ewd-upcp-sale-price { color: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-sale-button-text-color' ) . ' !important; }'; }
170
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-sale-button-font-size' ) != '' ) { $css .= '.ewd-upcp-sale-price span { font-size: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-compare-button-font-size' ) . ' !important; }'; }
171
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-product-comparison-title-font-color' ) != '' ) { $css .= '.ewd-upcp-product-comparison-product a { color: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-product-comparison-title-font-color' ) . ' !important; }'; }
172
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-product-comparison-title-font-size' ) != '' ) { $css .= '.ewd-upcp-product-comparison-product a { font-size: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-product-comparison-title-font-size' ) . ' !important; }'; }
173
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-product-comparison-price-font-size' ) != '' ) { $css .= '.ewd-upcp-product-comparison-price { font-size: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-product-comparison-price-font-size' ) . ' !important; }'; }
174
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-product-comparison-price-font-color' ) != '' ) { $css .= '.ewd-upcp-product-comparison-price { color: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-product-comparison-price-font-color' ) . ' !important; }'; }
175
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-product-comparison-price-background-color' ) != '' ) { $css .= '.ewd-upcp-product-comparison-price { background: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-product-comparison-price-background-color' ) . ' !important; }'; }
176
177
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-thumbnail-view-image-border-color' ) != '' ) { $css .= '.ewd-upcp-catalog-product-thumbnail-image-div { border: 5px solid ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-thumbnail-view-image-border-color' ) . ' !important; }'; }
178
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-thumbnail-view-box-min-height' ) != '' ) { $css .= '.ewd-upcp-catalog-product-thumbnail { min-height: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-thumbnail-view-box-min-height' ) . 'px !important; }'; }
179
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-thumbnail-view-box-max-height' ) != '' ) { $css .= '.ewd-upcp-catalog-product-thumbnail { max-height: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-thumbnail-view-box-max-height' ) . 'px !important; }'; }
180
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-thumbnail-view-box-padding' ) != '' ) { $css .= '.ewd-upcp-catalog-main-block .ewd-upcp-catalog-product-thumbnail { padding: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-thumbnail-view-box-padding' ) . 'px !important; }'; }
181
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-thumbnail-view-border-color' ) != '' ) { $css .= '.ewd-upcp-catalog-main-block .ewd-upcp-catalog-product-thumbnail, .ewd-upcp-catalog-main-block .ewd-upcp-catalog-product-thumbnail .ewd-upcp-product-action-button { border-color: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-thumbnail-view-border-color' ) . ' !important; }'; }
182
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-thumbnail-view-title-font' ) != '' ) { $css .= '.ewd-upcp-catalog-product-thumbnail-body-div a { font-family: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-thumbnail-view-title-font' ) . ' !important; }'; }
183
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-thumbnail-view-title-font-size' ) != '' ) { $css .= '.ewd-upcp-catalog-product-thumbnail-body-div a { font-size: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-thumbnail-view-title-font-size' ) . ' !important; }'; }
184
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-thumbnail-view-title-font-color' ) != '' ) { $css .= '.ewd-upcp-catalog-product-thumbnail-body-div a { color: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-thumbnail-view-title-font-color' ) . ' !important; }'; }
185
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-thumbnail-view-price-font' ) != '' ) { $css .= '.ewd-upcp-catalog-product-thumbnail .ewd-upcp-catalog-product-price { font-family: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-thumbnail-view-price-font' ) . ' !important; }'; }
186
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-thumbnail-view-price-font-size' ) != '' ) { $css .= '.ewd-upcp-catalog-product-thumbnail .ewd-upcp-catalog-product-price { font-size: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-thumbnail-view-price-font-size' ) . ' !important; }'; }
187
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-thumbnail-view-price-font-color' ) != '' ) { $css .= '.ewd-upcp-catalog-product-thumbnail .ewd-upcp-catalog-product-price { color: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-thumbnail-view-price-font-color' ) . ' !important; }'; }
188
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-thumbnail-view-background-color' ) != '' ) { $css .= '.ewd-upcp-catalog-product-thumbnail { background: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-thumbnail-view-background-color' ) . ' !important; }'; }
189
190
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-list-view-image-border-color' ) != '' ) { $css .= '.ewd-upcp-catalog-product-list-image-div { border: 5px solid ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-list-view-image-border-color' ) . ' !important; }'; }
191
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-list-view-box-border-color' ) != '' ) { $css .= '.ewd-upcp-catalog-product-list-content { border: 5px solid ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-list-view-box-border-color' ) . ' !important; }'; }
192
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-list-view-box-padding' ) != '' ) { $css .= '.ewd-upcp-catalog-product-list-content { padding: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-list-view-box-padding' ) . 'px !important; }'; }
193
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-list-view-box-margin-top' ) != '' ) { $css .= '.ewd-upcp-catalog-product-list-content { margin-top: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-list-view-box-margin-top' ) . 'px !important; }'; }
194
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-list-view-title-font' ) != '' ) { $css .= '.ewd-upcp-catalog-product-list a.ewd-upcp-product-title { font-family: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-list-view-title-font' ) . ' !important; }'; }
195
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-list-view-title-font-size' ) != '' ) { $css .= '.ewd-upcp-catalog-product-list a.ewd-upcp-product-title { font-size: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-list-view-title-font-size' ) . ' !important; }'; }
196
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-list-view-title-font-color' ) != '' ) { $css .= '.ewd-upcp-catalog-product-list a.ewd-upcp-product-title { color: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-list-view-title-font-color' ) . ' !important; }'; }
197
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-list-view-price-font' ) != '' ) { $css .= '.ewd-upcp-catalog-product-list .ewd-upcp-catalog-product-price { font-family: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-list-view-price-font' ) . ' !important; }'; }
198
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-list-view-price-font-size' ) != '' ) { $css .= '.ewd-upcp-catalog-product-list .ewd-upcp-catalog-product-price { font-size: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-list-view-price-font-size' ) . ' !important; }'; }
199
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-list-view-price-font-color' ) != '' ) { $css .= '.ewd-upcp-catalog-product-list .ewd-upcp-catalog-product-price { color: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-list-view-price-font-color' ) . ' !important; }'; }
200
201
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-detail-view-image-border-color' ) != '' ) { $css .= '.ewd-upcp-catalog-product-detail-image-div img { border: 5px solid ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-detail-view-image-border-color' ) . ' !important; }'; }
202
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-detail-view-box-padding' ) != '' ) { $css .= '.ewd-upcp-catalog-main-block .ewd-upcp-catalog-product-detail { padding: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-detail-view-box-padding' ) . 'px !important; }'; }
203
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-detail-view-box-margin' ) != '' ) { $css .= '.ewd-upcp-catalog-product-detail { margin-top: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-detail-view-box-margin' ) . 'px !important; }'; }
204
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-detail-view-box-background-color' ) != '' ) { $css .= '.ewd-upcp-catalog-product-detail { background: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-detail-view-box-background-color' ) . ' !important; }'; }
205
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-detail-view-border-color' ) != '' ) { $css .= '.ewd-upcp-catalog-main-block .ewd-upcp-catalog-product-detail, .ewd-upcp-catalog-main-block .ewd-upcp-catalog-product-detail-mid-div, .ewd-upcp-catalog-main-block .ewd-upcp-catalog-product-detail .ewd-upcp-product-action-button { border-color: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-detail-view-border-color' ) . ' !important; }'; }
206
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-detail-view-title-font' ) != '' ) { $css .= '.ewd-upcp-catalog-product-detail-mid-div a.ewd-upcp-product-title { font-family: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-detail-view-title-font' ) . ' !important; }'; }
207
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-detail-view-title-font-size' ) != '' ) { $css .= '.ewd-upcp-catalog-product-detail-mid-div a.ewd-upcp-product-title { font-size: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-detail-view-title-font-size' ) . ' !important; }'; }
208
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-detail-view-title-font-color' ) != '' ) { $css .= '.ewd-upcp-catalog-product-detail-mid-div a.ewd-upcp-product-title { color: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-detail-view-title-font-color' ) . ' !important; }'; }
209
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-detail-view-price-font' ) != '' ) { $css .= '.ewd-upcp-catalog-product-detail-end-div .ewd-upcp-catalog-product-price { font-family: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-detail-view-price-font' ) . ' !important; }'; }
210
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-detail-view-price-font-size' ) != '' ) { $css .= '.ewd-upcp-catalog-product-detail-end-div .ewd-upcp-catalog-product-price { font-size: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-detail-view-price-font-size' ) . ' !important; }'; }
211
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-detail-view-price-font-color' ) != '' ) { $css .= '.ewd-upcp-catalog-product-detail-end-div .ewd-upcp-catalog-product-price { color: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-detail-view-price-font-color' ) . ' !important; }'; }
212
213
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-sidebar-title-hover' ) == 'underline' ) { $css .= '.ewd-upcp-catalog-sidebar-sort > span:hover, .ewd-upcp-catalog-sidebar-search > span:hover, .ewd-upcp-catalog-sidebar-price-filter > span:hover, .ewd-upcp-catalog-sidebar-title:hover { text-decoration: underline !important; }'; }
214
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-sidebar-header-font' ) != '' ) { $css .= '.ewd-upcp-catalog-sidebar-sort > span, .ewd-upcp-catalog-sidebar-search > span, .ewd-upcp-catalog-sidebar-price-filter > span, .ewd-upcp-catalog-sidebar-title { font-family: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-sidebar-header-font' ) . ' !important; }'; }
215
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-sidebar-header-font-size' ) != '' ) { $css .= '.ewd-upcp-catalog-sidebar-sort > span, .ewd-upcp-catalog-sidebar-search > span, .ewd-upcp-catalog-sidebar-price-filter > span, .ewd-upcp-catalog-sidebar-title { font-size: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-sidebar-header-font-size' ) . ' !important; }'; }
216
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-sidebar-header-font-color' ) != '' ) { $css .= '.ewd-upcp-catalog-sidebar-sort > span, .ewd-upcp-catalog-sidebar-search > span, .ewd-upcp-catalog-sidebar-price-filter > span, .ewd-upcp-catalog-sidebar-title { color: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-sidebar-header-font-color' ) . ' !important; }'; }
217
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-sidebar-header-font-weight' ) != '' ) { $css .= '.ewd-upcp-catalog-sidebar-sort > span, .ewd-upcp-catalog-sidebar-search > span, .ewd-upcp-catalog-sidebar-price-filter > span, .ewd-upcp-catalog-sidebar-title { font-weight: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-sidebar-header-font-weight' ) . ' !important; }'; }
218
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-sidebar-checkbox-font' ) != '' ) { $css .= '.ewd-upcp-catalog-sidebar-content label { font-family: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-sidebar-checkbox-font' ) . ' !important; }'; }
219
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-sidebar-checkbox-font-size' ) != '' ) { $css .= '.ewd-upcp-catalog-sidebar-content label { font-size: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-sidebar-checkbox-font-size' ) . ' !important; }'; }
220
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-sidebar-checkbox-font-color' ) != '' ) { $css .= '.ewd-upcp-catalog-sidebar-content label { color: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-sidebar-checkbox-font-color' ) . ' !important; }'; }
221
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-sidebar-checkbox-font-weight' ) != '' ) { $css .= '.ewd-upcp-catalog-sidebar-content label { font-weight: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-sidebar-checkbox-font-weight' ) . ' !important; }'; }
222
223
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-breadcrumbs-font' ) != '' ) { $css .= '.ewd-upcp-single-product-breadcrumb-link a { font-family: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-breadcrumbs-font' ) . ' !important; }'; }
224
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-breadcrumbs-font-size' ) != '' ) { $css .= '.ewd-upcp-single-product-breadcrumb-link a { font-size: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-breadcrumbs-font-size' ) . ' !important; }'; }
225
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-breadcrumbs-font-color' ) != '' ) { $css .= '.ewd-upcp-single-product-breadcrumb-link a { color: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-breadcrumbs-font-color' ) . ' !important; }'; }
226
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-breadcrumbs-font-hover-color' ) != '' ) { $css .= '.ewd-upcp-single-product-breadcrumb-link a:hover { color: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-breadcrumbs-font-hover-color' ) . ' !important; }'; }
227
228
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-pagination-background-color' ) != '' ) { $css .= '.ewd-upcp-pagination .pagination-links a { background: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-pagination-background-color' ) . ' !important; }'; }
229
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-pagination-text-color' ) != '' ) { $css .= '.ewd-upcp-pagination .pagination-links a { color: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-pagination-text-color' ) . ' !important; }'; }
230
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-pagination-background-color-hover' ) != '' ) { $css .= '.ewd-upcp-pagination .pagination-links a:hover { background: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-pagination-background-color-hover' ) . ' !important; }'; }
231
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-pagination-text-color-hover' ) != '' ) { $css .= '.ewd-upcp-pagination .pagination-links a:hover { color: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-pagination-text-color-hover' ) . ' !important; }'; }
232
233
if( ! empty( $css ) ) {
234
echo '<style>';
235
echo wp\_strip\_all\_tags( $css );
236
echo '</style>';
237
}
234
238
}
235
239
ultimate-product-catalogue/trunk/assets/js/dashboard-review-ask.js
r2638260
r2650578
3
3
4
4
jQuery(document).on( 'click', '.ewd-upcp-main-dashboard-review-ask .notice-dismiss', function( event ) {
5
var data = 'ask\_review\_time=7&action=ewd\_upcp\_hide\_review\_ask';
6
jQuery.post( ajaxurl, data, function() {} );
7
});
5
var params = {};
6
7
params.nonce = ewd\_upcp\_review\_ask.nonce;
8
params.action = 'ewd\_upcp\_hide\_review\_ask';
9
params.ask\_review\_time = 7;
10
11
var data = jQuery.param( params );
12
jQuery.post( ajaxurl, data, function() {} );
13
});
8
14
9
15
jQuery( '.ewd-upcp-review-ask-yes' ).on( 'click', function() {
…
…
17
23
jQuery( '.ewd-upcp-review-ask-yes' ).addClass( 'ewd-upcp-hidden' );
18
24
19
var data = 'ask\_review\_time=7&action=ewd\_upcp\_hide\_review\_ask';
20
jQuery.post( ajaxurl, data, function() {} );
25
var params = {};
26
27
params.nonce = ewd\_upcp\_review\_ask.nonce;
28
params.action = 'ewd\_upcp\_hide\_review\_ask';
29
params.ask\_review\_time = 7;
30
31
var data = jQuery.param( params );
32
jQuery.post( ajaxurl, data, function() {} );
21
33
});
22
34
…
…
28
40
jQuery( '.ewd-upcp-review-ask-actions' ).addClass( 'ewd-upcp-hidden' );
29
41
30
var data = 'ask\_review\_time=1000&action=ewd\_upcp\_hide\_review\_ask';
31
jQuery.post( ajaxurl, data, function() {} );
42
var params = {};
43
44
params.nonce = ewd\_upcp\_review\_ask.nonce;
45
params.action = 'ewd\_upcp\_hide\_review\_ask';
46
params.ask\_review\_time = 1000;
47
48
var data = jQuery.param( params );
49
jQuery.post( ajaxurl, data, function() {} );
32
50
});
33
51
34
52
jQuery( '.ewd-upcp-review-ask-no-thanks' ).on( 'click', function() {
35
var data = 'ask\_review\_time=1000&action=ewd\_upcp\_hide\_review\_ask';
36
jQuery.post( ajaxurl, data, function() {} );
53
var params = {};
37
54
38
jQuery( '.ewd-upcp-main-dashboard-review-ask' ).css( 'display', 'none' );
55
params.nonce = ewd\_upcp\_review\_ask.nonce;
56
params.action = 'ewd\_upcp\_hide\_review\_ask';
57
params.ask\_review\_time = 1000;
58
59
var data = jQuery.param( params );
60
jQuery.post( ajaxurl, data, function() {} );
61
62
jQuery( '.ewd-upcp-main-dashboard-review-ask' ).css( 'display', 'none' );
39
63
});
40
64
…
…
43
67
jQuery( '.ewd-upcp-review-ask-thank-you-text' ).removeClass( 'ewd-upcp-hidden' );
44
68
45
var data = 'ask\_review\_time=1000&action=ewd\_upcp\_hide\_review\_ask';
46
jQuery.post( ajaxurl, data, function() {} );
69
var params = {};
70
71
params.nonce = ewd\_upcp\_review\_ask.nonce;
72
params.action = 'ewd\_upcp\_hide\_review\_ask';
73
params.ask\_review\_time = 1000;
74
75
var data = jQuery.param( params );
76
jQuery.post( ajaxurl, data, function() {} );
47
77
});
48
78
…
…
50
80
var feedback = jQuery( '.ewd-upcp-review-ask-feedback-explanation textarea' ).val();
51
81
var email\_address = jQuery( '.ewd-upcp-review-ask-feedback-explanation input\[name="feedback\_email\_address"\]' ).val();
52
var data = 'feedback=' + feedback + '&email\_address=' + email\_address + '&action=ewd\_upcp\_send\_feedback';
53
jQuery.post( ajaxurl, data, function() {} );
54
82
55
var data = 'ask\_review\_time=1000&action=ewd\_upcp\_hide\_review\_ask';
56
jQuery.post( ajaxurl, data, function() {} );
83
var params = {};
57
84
58
jQuery( '.ewd-upcp-review-ask-feedback-form' ).addClass( 'ewd-upcp-hidden' );
59
jQuery( '.ewd-upcp-review-ask-review-text' ).addClass( 'ewd-upcp-hidden' );
60
jQuery( '.ewd-upcp-review-ask-thank-you-text' ).removeClass( 'ewd-upcp-hidden' );
85
params.nonce = ewd\_upcp\_review\_ask.nonce;
86
params.action = 'ewd\_upcp\_send\_feedback';
87
params.feedback = feedback;
88
params.email\_address = email\_address;
89
90
var data = jQuery.param( params );
91
jQuery.post( ajaxurl, data, function() {} );
92
93
var params = {};
94
95
params.nonce = ewd\_upcp\_review\_ask.nonce;
96
params.action = 'ewd\_upcp\_hide\_review\_ask';
97
params.ask\_review\_time = 1000;
98
99
var data = jQuery.param( params );
100
jQuery.post( ajaxurl, data, function() {} );
101
102
jQuery( '.ewd-upcp-review-ask-feedback-form' ).addClass( 'ewd-upcp-hidden' );
103
jQuery( '.ewd-upcp-review-ask-review-text' ).addClass( 'ewd-upcp-hidden' );
104
jQuery( '.ewd-upcp-review-ask-thank-you-text' ).removeClass( 'ewd-upcp-hidden' );
61
105
});
62
106
});
ultimate-product-catalogue/trunk/assets/js/ewd-upcp-admin.js
r2638260
r2650578
222
222
update: function() {
223
223
224
var data = jQuery( 'table.wp-list-table tbody' ).sortable('serialize') + '&action=ewd\_upcp\_update\_category\_order';
224
var params = {
225
nonce: ewd\_upcp\_php\_admin\_data.nonce,
226
action: 'ewd\_upcp\_update\_category\_order'
227
};
228
229
var query\_string = jQuery( 'table.wp-list-table tbody' ).sortable('serialize');
230
var data = jQuery.param( params ) + '&' + query\_string;
225
231
jQuery.post( ajaxurl, data, function( response ) {});
226
232
}
…
…
234
240
update: function() {
235
241
236
var data = jQuery( 'table.wp-list-table tbody' ).sortable('serialize') + '&action=ewd\_upcp\_update\_tag\_order';
242
var params = {
243
nonce: ewd\_upcp\_php\_admin\_data.nonce,
244
action: 'ewd\_upcp\_update\_tag\_order'
245
};
246
247
var query\_string = jQuery( 'table.wp-list-table tbody' ).sortable('serialize');
248
var data = jQuery.param( params ) + '&' + query\_string;
237
249
jQuery.post( ajaxurl, data, function( response ) {});
238
250
}
…
…
253
265
update: function() {
254
266
255
var data = jQuery( 'table.wp-list-table tbody' ).sortable('serialize') + '&action=ewd\_upcp\_update\_product\_order';
267
var params = {
268
nonce: ewd\_upcp\_php\_admin\_data.nonce,
269
action: 'ewd\_upcp\_update\_product\_order'
270
};
271
272
var query\_string = jQuery( 'table.wp-list-table tbody' ).sortable('serialize');
273
var data = jQuery.param( params ) + '&' + query\_string;
256
274
jQuery.post( ajaxurl, data, function( response ) {});
257
275
}
…
…
620
638
event.preventDefault();
621
639
622
var serialized = gridster\_mobile.serialize();
623
624
var data = 'serialized\_product\_page=' + JSON.stringify( serialized ) + '&action=ewd\_upcp\_save\_serialized\_product\_page&type=mobile';
640
var params = {};
641
642
params.nonce = ewd\_upcp\_php\_admin\_data.nonce;
643
params.type = 'mobile';
644
params.action = 'ewd\_upcp\_save\_serialized\_product\_page';
645
params.serialized\_product\_page = JSON.stringify( gridster\_mobile.serialize() );
646
647
var data = jQuery.param( params );
625
648
jQuery.post( ajaxurl, data, function( response ) {
626
649
627
650
jQuery( '.gridster-mobile-save' ).after( '<div class="ewd-upcp-gridster-response">Layout Saved!</div>' );
628
651
…
…
677
700
event.preventDefault();
678
701
679
var serialized = gridster.serialize();
680
681
var data = 'serialized\_product\_page=' + JSON.stringify( serialized ) + '&action=ewd\_upcp\_save\_serialized\_product\_page&type=large';
702
var params = {};
703
704
params.nonce = ewd\_upcp\_php\_admin\_data.nonce;
705
params.type = 'large';
706
params.action = 'ewd\_upcp\_save\_serialized\_product\_page';
707
params.serialized\_product\_page = JSON.stringify( gridster.serialize() );
708
709
var data = jQuery.param( params );
682
710
jQuery.post( ajaxurl, data, function( response ) {
683
711
684
712
jQuery( '.gridster-large-save' ).after( '<div class="ewd-upcp-gridster-response">Layout Saved!</div>' );
685
713
ultimate-product-catalogue/trunk/assets/js/ewd-upcp-welcome-screen.js
r2638260
r2650578
25
25
jQuery('.ewd-upcp-welcome-screen-add-category-description textarea').val('');
26
26
27
var data = 'category\_name=' + category\_name + '&category\_description=' + category\_description + '&action=ewd\_upcp\_welcome\_add\_category';
27
var params = {};
28
29
params.nonce = ewd\_upcp\_getting\_started.nonce;
30
params.action = 'ewd\_upcp\_welcome\_add\_category';
31
params.category\_name = category\_name;
32
params.category\_description = category\_description;
33
34
var data = jQuery.param( params );
28
35
jQuery.post(ajaxurl, data, function(response) {
29
36
var HTML = '<tr class="upcp-welcome-screen-category">';
…
…
50
57
jQuery('.ewd-upcp-welcome-screen-add-catalog-page-name input').val('');
51
58
52
var data = 'catalog\_name=' + catalog\_name + '&categories=' + JSON.stringify(categories) + '&action=ewd\_upcp\_welcome\_add\_catalog';
59
var params = {};
60
61
params.nonce = ewd\_upcp\_getting\_started.nonce;
62
params.action = 'ewd\_upcp\_welcome\_add\_catalog';
63
params.catalog\_name = catalog\_name;
64
params.categories = JSON.stringify(categories);
65
params.categories = JSON.stringify(categories);
66
67
var data = jQuery.param( params );
53
68
jQuery.post(ajaxurl, data, function(response) {});
54
69
…
…
62
77
var product\_search = jQuery.map( jQuery( 'input\[name="product\_search\\\\\[\\\\\]"\]:checked' ), function( n, i ) { return n.value; } ).join( ',' );
63
78
64
var data = 'currency\_symbol=' + currency\_symbol + '&color\_scheme=' + color\_scheme + '&product\_links=' + product\_links + '&product\_search=' + product\_search + '&action=ewd\_upcp\_welcome\_set\_options';
79
var params = {};
80
81
params.nonce = ewd\_upcp\_getting\_started.nonce;
82
params.action = 'ewd\_upcp\_welcome\_set\_options';
83
params.currency\_symbol = currency\_symbol;
84
params.color\_scheme = color\_scheme;
85
params.product\_links = product\_links;
86
params.product\_search = product\_search;
87
88
var data = jQuery.param( params );
65
89
jQuery.post(ajaxurl, data, function(response) {
66
90
jQuery('.ewd-upcp-welcome-screen-save-options-button').after('<div class="ewd-upcp-save-message"><div class="ewd-upcp-save-message-inside">Options have been saved.</div></div>');
…
…
85
109
jQuery('.ewd-upcp-welcome-screen-add-product-price input').val('');
86
110
87
var data = 'product\_name=' + product\_name + '&product\_image=' + product\_image + '&product\_description=' + product\_description + '&product\_category=' + product\_category + '&product\_price=' + product\_price + '&action=ewd\_upcp\_welcome\_add\_product';
111
var params = {};
112
113
params.nonce = ewd\_upcp\_getting\_started.nonce;
114
params.action = 'ewd\_upcp\_welcome\_add\_product';
115
params.product\_price = product\_price;
116
params.product\_name = product\_name;
117
params.product\_image = product\_image;
118
params.product\_description = product\_description;
119
params.product\_category = product\_category;
120
121
var data = jQuery.param( params );
88
122
jQuery.post(ajaxurl, data, function(response) {
89
123
var HTML = '<tr class="upcp-welcome-screen-product">';
ultimate-product-catalogue/trunk/assets/js/ewd-upcp.js
r2638260
r2650578
525
525
jQuery( '.ewd-upcp-cart-item-count' ).html( +jQuery( '.ewd-upcp-cart-item-count' ).html() + 1 );
526
526
527
var data = 'product\_id=' + jQuery( this ).data( 'product\_id' ) + '&action=ewd\_upcp\_add\_to\_cart';
527
var params = {
528
nonce: ewd\_upcp\_js.nonce,
529
product\_id: jQuery( this ).data( 'product\_id' ),
530
action: 'ewd\_upcp\_add\_to\_cart'
531
};
532
533
var data = jQuery.param( params );
528
534
jQuery.post( ajaxurl, data, function( response ) {} );
529
535
});
…
…
535
541
jQuery( '.ewd-upcp-cart-item-count' ).html( '0' );
536
542
537
var data = '&action=ewd\_upcp\_clear\_cart';
538
jQuery.post( ajaxurl, data, function( response ) {} );
543
var params = {
544
nonce: ewd\_upcp\_js.nonce,
545
action: 'ewd\_upcp\_clear\_cart'
546
};
547
548
var data = jQuery.param( params );
549
jQuery.post( ajaxurl, data, function( response ) {} );
539
550
});
540
551
}
…
…
867
878
window.history.replaceState( null, null, url );
868
879
869
var data = 'id=' + id + '&excluded\_views=' + excluded\_views + '&orderby=' + orderby + '&order=' + order + '&ajax\_url=' + ajax\_url + '¤t\_page=' + current\_page + '&products\_per\_page=' + products\_per\_page + '&default\_search\_text=' + default\_search\_text + '&product\_name=' + product\_name + '&max\_price=' + max\_price + '&min\_price=' + min\_price + '&category=' + categories + '&subcategory=' + subcategories + '&tags=' + tags + '&custom\_fields=' + encodeURIComponent( custom\_fields ) + '&request\_count=' + request\_count + '&action=ewd\_upcp\_update\_catalog';
880
var params = {};
881
882
params.nonce = ewd\_upcp\_js.nonce;
883
params.id = id;
884
params.excluded\_views = excluded\_views;
885
params.orderby = orderby;
886
params.order = order;
887
params.ajax\_url = ajax\_url;
888
params.current\_page = current\_page;
889
params.products\_per\_page = products\_per\_page;
890
params.default\_search\_text = default\_search\_text;
891
params.product\_name = product\_name;
892
params.max\_price = max\_price;
893
params.min\_price = min\_price;
894
params.category = categories;
895
params.subcategory = subcategories;
896
params.tags = tags;
897
params.custom\_fields = custom\_fields.join(',');
898
params.request\_count = request\_count;
899
params.action = 'ewd\_upcp\_update\_catalog';
900
901
var data = jQuery.param( params );
870
902
871
903
return data;
ultimate-product-catalogue/trunk/ewd-upcp-templates/catalog-header-bar.php
r2638260
r2650578
3
3
<?php foreach ( $this->get\_catalog\_views() as $catalog\_view ) { ?>
4
4
5
<div class='ewd-upcp-toggle-icon ewd-upcp-toggle-icon-<?php echo $catalog\_view; ?> ewd-upcp-toggle-icon-<?php echo $this->get\_option( 'color-scheme' ); ?>' data-view='<?php echo $catalog\_view; ?>'></div>
5
<div class='ewd-upcp-toggle-icon ewd-upcp-toggle-icon-<?php echo esc\_attr( $catalog\_view ); ?> ewd-upcp-toggle-icon-<?php echo esc\_attr( $this->get\_option( 'color-scheme' ) ); ?>' data-view='<?php echo esc\_attr( $catalog\_view ); ?>'></div>
6
6
7
7
<?php } ?>
ultimate-product-catalogue/trunk/ewd-upcp-templates/catalog-pagination.php
r2638260
r2650578
1
<div class='ewd-upcp-pagination' data-max\_pages='<?php echo $this->max\_pages; ?>'>
1
<div class='ewd-upcp-pagination' data-max\_pages='<?php echo esc\_attr( $this->max\_pages ); ?>'>
2
2
3
3
<span class='displaying-num'>
4
4
5
<span class='product-count'><?php echo $this->product\_count; ?></span>
5
<span class='product-count'><?php echo esc\_html( $this->product\_count ); ?></span>
6
6
7
7
<?php echo esc\_html( $this->get\_label( 'label-products-pagination' ) ); ?>
…
…
18
18
<?php echo esc\_html( $this->get\_label( 'label-page' ) ); ?>
19
19
20
<span class='current-page'><?php echo $this->current\_page; ?></span>
20
<span class='current-page'><?php echo esc\_html( $this->current\_page ); ?></span>
21
21
22
22
<?php echo esc\_html( $this->get\_label( 'label-pagination-of' ) ); ?>
23
23
24
<span class='total-pages'><?php echo $this->max\_pages; ?></span>
24
<span class='total-pages'><?php echo esc\_html( $this->max\_pages ); ?></span>
25
25
26
26
</span>
ultimate-product-catalogue/trunk/ewd-upcp-templates/catalog-product-content.php
r2638260
r2650578
2
2
3
3
<div class='ewd-upcp-catalog-product-description'>
4
<?php echo $this->product->description; ?>
4
<?php echo esc\_html( $this->product->description ); ?>
5
5
</div>
6
6
ultimate-product-catalogue/trunk/ewd-upcp-templates/catalog-product-rating.php
r2638260
r2650578
3
3
<?php if ( empty( $average\_rating ) ) { return; } ?>
4
4
5
<span class='ewd-upcp-urp-review-score' title='<?php \_e( 'Average Rating: ', 'ultimate-product-catalogue' ); ?> <?php echo $average\_rating; ?>'>
5
<span class='ewd-upcp-urp-review-score' title='<?php \_e( 'Average Rating: ', 'ultimate-product-catalogue' ); ?> <?php echo esc\_attr( $average\_rating ); ?>'>
6
6
7
7
<?php for ( $i = 1; $i <= 5; $i++ ) { ?>
ultimate-product-catalogue/trunk/ewd-upcp-templates/catalog-shortcode-attributes.php
r2638260
r2650578
1
<input type='hidden' name='catalog-id' value='<?php echo $this->catalog->ID; ?>' />
2
<input type='hidden' name='catalog-excluded-views' value='<?php echo implode( ',', $this->excluded\_views ); ?>' />
3
<input type='hidden' name='catalog-current-page' value='<?php echo $this->current\_page; ?>' />
4
<input type='hidden' name='catalog-max-page' value='<?php echo $this->max\_pages; ?>' />
5
<input type='hidden' name='catalog-product-per-page' value='<?php echo $this->products\_per\_page; ?>' />
1
<input type='hidden' name='catalog-id' value='<?php echo esc\_attr( $this->catalog->ID ); ?>' />
2
<input type='hidden' name='catalog-excluded-views' value='<?php echo esc\_attr( implode( ',', $this->excluded\_views ) ); ?>' />
3
<input type='hidden' name='catalog-current-page' value='<?php echo esc\_attr( $this->current\_page ); ?>' />
4
<input type='hidden' name='catalog-max-page' value='<?php echo esc\_attr( $this->max\_pages ); ?>' />
5
<input type='hidden' name='catalog-product-per-page' value='<?php echo esc\_attr( $this->products\_per\_page ); ?>' />
6
6
<input type='hidden' name='catalog-default-search-text' value='<?php \_e( 'Search...', 'ultimate-product-catalogue' ); ?>' />
7
<input type='hidden' name='catalog-base-url' value='<?php echo $this->ajax\_url; ?>' />
7
<input type='hidden' name='catalog-base-url' value='<?php echo esc\_attr( $this->ajax\_url ); ?>' />
ultimate-product-catalogue/trunk/ewd-upcp-templates/catalog-sidebar-custom-field-checkbox.php
r2638260
r2650578
1
<div class='ewd-upcp-catalog-sidebar-custom-field-div' data-custom\_field\_id='<?php echo $this->custom\_field->id; ?>'>
1
<div class='ewd-upcp-catalog-sidebar-custom-field-div' data-custom\_field\_id='<?php echo esc\_attr( $this->custom\_field->id ); ?>'>
2
2
3
3
<div class='ewd-upcp-catalog-sidebar-title <?php echo ( $this->get\_option( 'styling-sidebar-title-collapse' ) ? 'ewd-upcp-catalog-sidebar-collapsible' : '' ); ?> <?php echo ( $this->get\_option( 'styling-sidebar-start-collapsed' ) ? 'ewd-upcp-sidebar-content-hidden' : '' ); ?>'>
…
…
7
7
<?php foreach ( $this->sidebar\_custom\_fields\[ $this->custom\_field->id \] as $field\_value => $field\_count ) { ?>
8
8
9
<div class='ewd-upcp-catalog-sidebar-custom-field <?php echo ( $this->is\_custom\_field\_value\_selected( $field\_value ) ? 'ewd-upcp-taxonomy-selected' : '' ); ?>' data-custom\_field\_id='<?php echo $this->custom\_field->id; ?>' data-value='<?php echo $field\_value; ?>'>
9
<div class='ewd-upcp-catalog-sidebar-custom-field <?php echo ( $this->is\_custom\_field\_value\_selected( $field\_value ) ? 'ewd-upcp-taxonomy-selected' : '' ); ?>' data-custom\_field\_id='<?php echo esc\_attr( $this->custom\_field->id ); ?>' data-value='<?php echo esc\_attr( $field\_value ); ?>'>
10
10
11
<input type='checkbox' name='<?php echo esc\_attr( $this->custom\_field->id ); ?>' id='<?php echo esc\_attr( $this->custom\_field->id ); ?>-<?php echo $field\_value; ?>' value='<?php echo $field\_value; ?>' <?php echo ( $this->is\_custom\_field\_value\_selected( $field\_value ) ? 'checked' : '' ); ?> >
11
<input type='checkbox' name='<?php echo esc\_attr( $this->custom\_field->id ); ?>' id='<?php echo esc\_attr( $this->custom\_field->id ); ?>-<?php echo esc\_attr( $field\_value ); ?>' value='<?php echo esc\_attr( $field\_value ); ?>' <?php echo ( $this->is\_custom\_field\_value\_selected( $field\_value ) ? 'checked' : '' ); ?> >
12
12
13
<label class='ewd-upcp-catalog-sidebar-custom-field-value-label' for='<?php echo esc\_attr( $this->custom\_field->id ); ?>-<?php echo $field\_value; ?>'>
13
<label class='ewd-upcp-catalog-sidebar-custom-field-value-label' for='<?php echo esc\_attr( $this->custom\_field->id ); ?>-<?php echo esc\_attr( $field\_value ); ?>'>
14
14
15
<span><?php echo $field\_value; ?> <span class='ewd-upcp-catalog-sidebar-custom-field-count'> (<?php echo $field\_count; ?>)</span></span>
15
<span><?php echo esc\_html( $field\_value ); ?> <span class='ewd-upcp-catalog-sidebar-custom-field-count'> (<?php echo esc\_html( $field\_count ); ?>)</span></span>
16
16
17
17
</label>
ultimate-product-catalogue/trunk/ewd-upcp-templates/catalog-sidebar-custom-field-dropdown.php
r2638260
r2650578
1
<div class='ewd-upcp-catalog-sidebar-custom-field-div' data-custom\_field\_id='<?php echo $this->custom\_field->id; ?>'>
1
<div class='ewd-upcp-catalog-sidebar-custom-field-div' data-custom\_field\_id='<?php echo esc\_attr( $this->custom\_field->id ); ?>'>
2
2
3
3
<div class='ewd-upcp-catalog-sidebar-title <?php echo ( $this->get\_option( 'styling-sidebar-title-collapse' ) ? 'ewd-upcp-catalog-sidebar-collapsible' : '' ); ?> <?php echo ( $this->get\_option( 'styling-sidebar-start-collapsed' ) ? 'ewd-upcp-sidebar-content-hidden' : '' ); ?>'>
…
…
15
15
<option value='<?php echo esc\_attr( $field\_value ); ?>' <?php echo ( $this->is\_custom\_field\_value\_selected( $field\_value ) ? 'selected' : '' ); ?>>
16
16
17
<?php echo $field\_value; ?> <span class='ewd-upcp-catalog-sidebar-custom-field-count'> (<?php echo $field\_count; ?>)</span>
17
<?php echo esc\_html( $field\_value ); ?> <span class='ewd-upcp-catalog-sidebar-custom-field-count'> (<?php echo esc\_html( $field\_count ); ?>)</span>
18
18
19
19
</option>
ultimate-product-catalogue/trunk/ewd-upcp-templates/catalog-sidebar-custom-field-radio.php
r2638260
r2650578
1
<div class='ewd-upcp-catalog-sidebar-custom-field-div' data-custom\_field\_id='<?php echo $this->custom\_field->id; ?>'>
1
<div class='ewd-upcp-catalog-sidebar-custom-field-div' data-custom\_field\_id='<?php echo esc\_attr( $this->custom\_field->id ); ?>'>
2
2
3
3
<div class='ewd-upcp-catalog-sidebar-title <?php echo ( $this->get\_option( 'styling-sidebar-title-collapse' ) ? 'ewd-upcp-catalog-sidebar-collapsible' : '' ); ?> <?php echo ( $this->get\_option( 'styling-sidebar-start-collapsed' ) ? 'ewd-upcp-sidebar-content-hidden' : '' ); ?>'>
…
…
7
7
<?php foreach ( $this->sidebar\_custom\_fields\[ $this->custom\_field->id \] as $field\_value => $field\_count ) { ?>
8
8
9
<div class='ewd-upcp-catalog-sidebar-custom-field <?php echo ( $this->is\_custom\_field\_value\_selected( $field\_value ) ? 'ewd-upcp-taxonomy-selected' : '' ); ?>' data-custom\_field\_id='<?php echo $this->custom\_field->id; ?>' data-value='<?php echo $field\_value; ?>'>
9
<div class='ewd-upcp-catalog-sidebar-custom-field <?php echo ( $this->is\_custom\_field\_value\_selected( $field\_value ) ? 'ewd-upcp-taxonomy-selected' : '' ); ?>' data-custom\_field\_id='<?php echo esc\_attr( $this->custom\_field->id ); ?>' data-value='<?php echo esc\_attr( $field\_value ); ?>'>
10
10
11
<input type='radio' name='<?php echo esc\_attr( $this->custom\_field->id ); ?>' value='<?php echo $field\_value; ?>' <?php echo ( $this->is\_custom\_field\_value\_selected( $field\_value ) ? 'checked' : '' ); ?> >
11
<input type='radio' name='<?php echo esc\_attr( $this->custom\_field->id ); ?>' value='<?php echo esc\_attr( $field\_value ); ?>' <?php echo ( $this->is\_custom\_field\_value\_selected( $field\_value ) ? 'checked' : '' ); ?> >
12
12
13
13
<label class='ewd-upcp-catalog-sidebar-custom-field-value-label'>
14
14
15
<span><?php echo $field\_value; ?> <span class='ewd-upcp-catalog-sidebar-custom-field-count'> (<?php echo $field\_count; ?>)</span></span>
15
<span><?php echo esc\_html( $field\_value ); ?> <span class='ewd-upcp-catalog-sidebar-custom-field-count'> (<?php echo esc\_html( $field\_count ); ?>)</span></span>
16
16
17
17
</label>
ultimate-product-catalogue/trunk/ewd-upcp-templates/catalog-sidebar-custom-field-slider.php
r2638260
r2650578
1
<div class='ewd-upcp-catalog-sidebar-custom-field-div' data-custom\_field\_id='<?php echo $this->custom\_field->id; ?>'>
1
<div class='ewd-upcp-catalog-sidebar-custom-field-div' data-custom\_field\_id='<?php echo esc\_attr( $this->custom\_field->id ); ?>'>
2
2
3
3
<div class='ewd-upcp-catalog-sidebar-title <?php echo ( $this->get\_option( 'styling-sidebar-title-collapse' ) ? 'ewd-upcp-catalog-sidebar-collapsible' : '' ); ?> <?php echo ( $this->get\_option( 'styling-sidebar-start-collapsed' ) ? 'ewd-upcp-sidebar-content-hidden' : '' ); ?>'>
…
…
5
5
</div>
6
6
7
<div class='ewd-upcp-catalog-sidebar-custom-field-slider' data-custom\_field\_id='<?php echo $this->custom\_field->id; ?>'></div>
7
<div class='ewd-upcp-catalog-sidebar-custom-field-slider' data-custom\_field\_id='<?php echo esc\_attr( $this->custom\_field->id ); ?>'></div>
8
8
9
9
<div class='ewd-upcp-catalog-sidebar-custom-field-slider-text-inputs'>
ultimate-product-catalogue/trunk/ewd-upcp-templates/catalog-sidebar-price-filter.php
r2638260
r2650578
13
13
<?php $this->maybe\_print\_currency\_symbol( 'before' ); ?>
14
14
15
<input type='text' value='<?php echo $this->sidebar\_min\_price; ?>' name='ewd-upcp-price-slider-min' <?php echo ( $this->get\_option( 'disable-slider-filter-text-inputs' ) ? 'disabled' : '' ); ?> data-min\_price='<?php echo $this->sidebar\_min\_price; ?>' />
15
<input type='text' value='<?php echo esc\_attr( $this->sidebar\_min\_price ); ?>' name='ewd-upcp-price-slider-min' <?php echo ( $this->get\_option( 'disable-slider-filter-text-inputs' ) ? 'disabled' : '' ); ?> data-min\_price='<?php echo esc\_attr( $this->sidebar\_min\_price ); ?>' />
16
16
17
17
<?php $this->maybe\_print\_currency\_symbol( 'after' ); ?>
…
…
25
25
<?php $this->maybe\_print\_currency\_symbol( 'before' ); ?>
26
26
27
<input type='text' value='<?php echo $this->sidebar\_max\_price; ?>' name='ewd-upcp-price-slider-max' <?php echo ( $this->get\_option( 'disable-slider-filter-text-inputs' ) ? 'disabled' : '' ); ?> data-max\_price='<?php echo $this->sidebar\_max\_price; ?>' />
27
<input type='text' value='<?php echo esc\_attr( $this->sidebar\_max\_price ); ?>' name='ewd-upcp-price-slider-max' <?php echo ( $this->get\_option( 'disable-slider-filter-text-inputs' ) ? 'disabled' : '' ); ?> data-max\_price='<?php echo esc\_attr( $this->sidebar\_max\_price ); ?>' />
28
28
29
29
<?php $this->maybe\_print\_currency\_symbol( 'after' ); ?>
ultimate-product-catalogue/trunk/ewd-upcp-templates/catalog-sidebar-taxonomy-checkbox.php
r2638260
r2650578
1
<div class='ewd-upcp-catalog-sidebar-<?php echo $this->taxonomy\_type; ?> <?php echo ( $this->is\_taxonomy\_selected() ? 'ewd-upcp-taxonomy-selected' : '' ); ?>' data-taxonomy\_id='<?php echo $this->taxonomy\_term->term\_id; ?>'>
1
<div class='ewd-upcp-catalog-sidebar-<?php echo esc\_attr( $this->taxonomy\_type ); ?> <?php echo ( $this->is\_taxonomy\_selected() ? 'ewd-upcp-taxonomy-selected' : '' ); ?>' data-taxonomy\_id='<?php echo esc\_attr( $this->taxonomy\_term->term\_id ); ?>'>
2
2
3
3
<?php $this->maybe\_print\_taxonomy\_image(); ?>
4
4
5
<input type='checkbox' name='<?php echo $this->taxonomy\_type; ?>' id='<?php echo $this->taxonomy\_type; ?>-<?php echo $this->taxonomy\_term->term\_id; ?>' value='<?php echo $this->taxonomy\_term->term\_id; ?>' <?php echo ( $this->is\_taxonomy\_selected() ? 'checked' : '' ); ?> >
5
<input type='checkbox' name='<?php echo esc\_attr( $this->taxonomy\_type ); ?>' id='<?php echo esc\_attr( $this->taxonomy\_type ); ?>-<?php echo esc\_attr( $this->taxonomy\_term->term\_id ); ?>' value='<?php echo esc\_attr( $this->taxonomy\_term->term\_id ); ?>' <?php echo ( $this->is\_taxonomy\_selected() ? 'checked' : '' ); ?> >
6
6
7
<label class='ewd-upcp-catalog-sidebar-taxonomy-label' for='<?php echo $this->taxonomy\_type; ?>-<?php echo $this->taxonomy\_term->term\_id; ?>'>
7
<label class='ewd-upcp-catalog-sidebar-taxonomy-label' for='<?php echo esc\_attr( $this->taxonomy\_type ); ?>-<?php echo esc\_attr( $this->taxonomy\_term->term\_id ); ?>'>
8
8
9
<span><?php echo $this->taxonomy\_term->name; ?> <span class='ewd-upcp-catalog-sidebar-taxonomy-count'> (<?php echo $this->taxonomy\_term->catalog\_count; ?>)</span></span>
9
<span><?php echo esc\_html( $this->taxonomy\_term->name ); ?> <span class='ewd-upcp-catalog-sidebar-taxonomy-count'> (<?php echo esc\_html( $this->taxonomy\_term->catalog\_count ); ?>)</span></span>
10
10
11
11
</label>
ultimate-product-catalogue/trunk/ewd-upcp-templates/catalog-sidebar-taxonomy-dropdown.php
r2638260
r2650578
1
<option value='<?php echo $this->taxonomy\_term->term\_id; ?>' <?php echo ( $this->is\_taxonomy\_selected() ? 'selected' : '' ); ?> >
1
<option value='<?php echo esc\_attr( $this->taxonomy\_term->term\_id ); ?>' <?php echo ( $this->is\_taxonomy\_selected() ? 'selected' : '' ); ?> >
2
2
3
<?php echo $this->taxonomy\_term->name; ?> <span class='ewd-upcp-catalog-sidebar-taxonomy-count'> (<?php echo $this->taxonomy\_term->catalog\_count; ?>)</span>
3
<?php echo esc\_html( $this->taxonomy\_term->name ); ?> <span class='ewd-upcp-catalog-sidebar-taxonomy-count'> (<?php echo esc\_html( $this->taxonomy\_term->catalog\_count ); ?>)</span>
4
4
5
5
</option>
ultimate-product-catalogue/trunk/ewd-upcp-templates/catalog-sidebar-taxonomy-radio.php
r2638260
r2650578
1
<div class='ewd-upcp-catalog-sidebar-<?php echo $this->taxonomy\_type; ?> <?php echo ( $this->is\_taxonomy\_selected() ? 'ewd-upcp-taxonomy-selected' : '' ); ?>' data-taxonomy\_id='<?php echo $this->taxonomy\_term->term\_id; ?>'>
1
<div class='ewd-upcp-catalog-sidebar-<?php echo esc\_attr( $this->taxonomy\_type ); ?> <?php echo ( $this->is\_taxonomy\_selected() ? 'ewd-upcp-taxonomy-selected' : '' ); ?>' data-taxonomy\_id='<?php echo esc\_attr( $this->taxonomy\_term->term\_id ); ?>'>
2
2
3
3
<?php $this->maybe\_print\_taxonomy\_image(); ?>
4
4
5
<input type='radio' name='<?php echo $this->taxonomy\_type; ?>' id='<?php echo $this->taxonomy\_type; ?>-<?php echo $this->taxonomy\_term->term\_id; ?>' value='<?php echo $this->taxonomy\_term->term\_id; ?>' <?php echo ( $this->is\_taxonomy\_selected() ? 'checked' : '' ); ?> >
5
<input type='radio' name='<?php echo esc\_attr( $this->taxonomy\_type ); ?>' id='<?php echo esc\_attr( $this->taxonomy\_type ); ?>-<?php echo esc\_attr( $this->taxonomy\_term->term\_id ); ?>' value='<?php echo esc\_attr( $this->taxonomy\_term->term\_id ); ?>' <?php echo ( $this->is\_taxonomy\_selected() ? 'checked' : '' ); ?> >
6
6
7
<label class='ewd-upcp-catalog-sidebar-taxonomy-label' for='<?php echo $this->taxonomy\_type; ?>-<?php echo $this->taxonomy\_term->term\_id; ?>'>
7
<label class='ewd-upcp-catalog-sidebar-taxonomy-label' for='<?php echo esc\_attr( $this->taxonomy\_type ); ?>-<?php echo esc\_attr( $this->taxonomy\_term->term\_id ); ?>'>
8
8
9
<?php echo $this->taxonomy\_term->name; ?> <span class='ewd-upcp-catalog-sidebar-taxonomy-count'> (<?php echo $this->taxonomy\_term->catalog\_count; ?>)</span>
9
<?php echo esc\_html( $this->taxonomy\_term->name ); ?> <span class='ewd-upcp-catalog-sidebar-taxonomy-count'> (<?php echo esc\_html( $this->taxonomy\_term->catalog\_count ); ?>)</span>
10
10
11
11
</label>
ultimate-product-catalogue/trunk/ewd-upcp-templates/custom-large-single-product.php
r2638260
r2650578
1
<div id='ewd-upcp-single-product-<?php echo $this->product->id; ?>' class='ewd-upcp-custom-product-page ewd-upcp-product-page'>
1
<div id='ewd-upcp-single-product-<?php echo esc\_attr( $this->product->id ); ?>' class='ewd-upcp-custom-product-page ewd-upcp-product-page'>
2
2
3
3
<?php $this->print\_product\_breadcrumbs(); ?>
ultimate-product-catalogue/trunk/ewd-upcp-templates/custom-mobile-single-product.php
r2638260
r2650578
1
<div id='ewd-upcp-single-product-<?php echo $this->product->id; ?>' class='ewd-upcp-custom-mobile-product-page ewd-upcp-product-page ewd-upcp-hidden'>
1
<div id='ewd-upcp-single-product-<?php echo esc\_attr( $this->product->id ); ?>' class='ewd-upcp-custom-mobile-product-page ewd-upcp-product-page ewd-upcp-hidden'>
2
2
3
3
<?php foreach ( $this->get\_custom\_product\_page\_elements() as $page\_element ) { ?>
ultimate-product-catalogue/trunk/ewd-upcp-templates/custom-single-product.php
r2638260
r2650578
1
<div id='ewd-upcp-single-product-<?php echo $this->product->id; ?>' class='ewd-upcp-custom-product-page ewd-upcp-product-page'>
1
<div id='ewd-upcp-single-product-<?php echo esc\_attr( $this->product->id ); ?>' class='ewd-upcp-custom-product-page ewd-upcp-product-page'>
2
2
3
3
<?php $this->print\_product\_breadcrumbs(); ?>
ultimate-product-catalogue/trunk/ewd-upcp-templates/default-single-product.php
r2638260
r2650578
1
<div id='ewd-upcp-single-product-<?php echo $this->product->id; ?>' class='ewd-upcp-standard-product-page ewd-upcp-product-page'>
1
<div id='ewd-upcp-single-product-<?php echo esc\_attr( $this->product->id ); ?>' class='ewd-upcp-standard-product-page ewd-upcp-product-page'>
2
2
3
3
<?php $this->print\_product\_breadcrumbs(); ?>
ultimate-product-catalogue/trunk/ewd-upcp-templates/shop-style-single-product.php
r2638260
r2650578
1
<div id='ewd-upcp-single-product-<?php echo $this->product->id; ?>' class='ewd-upcp-tabbed-product-page ewd-upcp-product-page ewd-upcp-shop-style-product-page'>
1
<div id='ewd-upcp-single-product-<?php echo esc\_attr( $this->product->id ); ?>' class='ewd-upcp-tabbed-product-page ewd-upcp-product-page ewd-upcp-shop-style-product-page'>
2
2
3
3
<?php $this->print\_product\_breadcrumbs(); ?>
ultimate-product-catalogue/trunk/ewd-upcp-templates/single-product-additional-images.php
r2638260
r2650578
3
3
<?php foreach ( $this->product->get\_all\_images() as $count => $image ) { ?>
4
4
5
<a class='ewd-upcp-thumbnail-anchor <?php echo ( ! empty( $image->video\_key ) ? 'ewd-upcp-video-thumbnail' : '' ); ?> <?php echo $this->get\_additional\_images\_lightbox\_class(); ?>' href='<?php echo esc\_attr( $image->url ); ?>' data-ulbsource='<?php echo esc\_attr( $image->url ); ?>' data-ulbtitle='<?php echo esc\_attr( $image->description ); ?>' data-ulbdescription='<?php echo esc\_attr( $image->description ); ?>' data-video\_key='<?php echo ( ! empty( $image->video\_key ) ? $image->video\_key : '' ); ?>'>
6
<img src='<?php echo esc\_attr( $image->url ); ?>' class='ewd-upcp-single-product-thumbnail'>
5
<a class='ewd-upcp-thumbnail-anchor <?php echo ( ! empty( $image->video\_key ) ? 'ewd-upcp-video-thumbnail' : '' ); ?> <?php echo esc\_attr( $this->get\_additional\_images\_lightbox\_class() ); ?>' href='<?php echo esc\_url( $image->url ); ?>' data-ulbsource='<?php echo esc\_attr( $image->url ); ?>' data-ulbtitle='<?php echo esc\_attr( $image->description ); ?>' data-ulbdescription='<?php echo esc\_attr( $image->description ); ?>' data-video\_key='<?php echo ( ! empty( $image->video\_key ) ? esc\_attr( $image->video\_key ) : '' ); ?>'>
6
<img src='<?php echo esc\_url( $image->url ); ?>' class='ewd-upcp-single-product-thumbnail'>
7
7
</a>
8
8
9
<?php } ?>
9
<?php } ?>
10
10
11
11
</div>
ultimate-product-catalogue/trunk/ewd-upcp-templates/single-product-custom-element-additional-images.php
r2638260
r2650578
1
<li data-col='<?php echo $this->element->col; ?>' data-row='<?php echo $this->element->row; ?>' data-sizex='<?php echo $this->element->size\_x; ?>' data-sizey='<?php echo $this->element->size\_y; ?>' class='ewd-upcp-single-product-custom-element'>
1
<li data-col='<?php echo esc\_attr( $this->element->col ); ?>' data-row='<?php echo esc\_attr( $this->element->row ); ?>' data-sizex='<?php echo esc\_attr( $this->element->size\_x ); ?>' data-sizey='<?php echo esc\_attr( $this->element->size\_y ); ?>' class='ewd-upcp-single-product-custom-element'>
2
2
3
3
<?php $this->print\_additional\_images(); ?>
ultimate-product-catalogue/trunk/ewd-upcp-templates/single-product-custom-element-back-to-catalog.php
r2638260
r2650578
1
<li data-col='<?php echo $this->element->col; ?>' data-row='<?php echo $this->element->row; ?>' data-sizex='<?php echo $this->element->size\_x; ?>' data-sizey='<?php echo $this->element->size\_y; ?>' class='ewd-upcp-single-product-custom-element'>
1
<li data-col='<?php echo esc\_attr( $this->element->col ); ?>' data-row='<?php echo esc\_attr( $this->element->row ); ?>' data-sizex='<?php echo esc\_attr( $this->element->size\_x ); ?>' data-sizey='<?php echo esc\_attr( $this->element->size\_y ); ?>' class='ewd-upcp-single-product-custom-element'>
2
2
3
3
<a class='ewd-upcp-catalogue-link' href='<?php echo esc\_attr( $this->catalog\_url ); ?>'>
ultimate-product-catalogue/trunk/ewd-upcp-templates/single-product-custom-element-blank.php
r2638260
r2650578
1
<li data-col='<?php echo $this->element->col; ?>' data-row='<?php echo $this->element->row; ?>' data-sizex='<?php echo $this->element->size\_x; ?>' data-sizey='<?php echo $this->element->size\_y; ?>' class='ewd-upcp-single-product-custom-element'>
1
<li data-col='<?php echo esc\_attr( $this->element->col ); ?>' data-row='<?php echo esc\_attr( $this->element->row ); ?>' data-sizex='<?php echo esc\_attr( $this->element->size\_x ); ?>' data-sizey='<?php echo esc\_attr( $this->element->size\_y ); ?>' class='ewd-upcp-single-product-custom-element'>
2
2
3
3
</li>
ultimate-product-catalogue/trunk/ewd-upcp-templates/single-product-custom-element-categories-label.php
r2638260
r2650578
1
<li data-col='<?php echo $this->element->col; ?>' data-row='<?php echo $this->element->row; ?>' data-sizex='<?php echo $this->element->size\_x; ?>' data-sizey='<?php echo $this->element->size\_y; ?>' class='ewd-upcp-single-product-custom-element'>
1
<li data-col='<?php echo esc\_attr( $this->element->col ); ?>' data-row='<?php echo esc\_attr( $this->element->row ); ?>' data-sizex='<?php echo esc\_attr( $this->element->size\_x ); ?>' data-sizey='<?php echo esc\_attr( $this->element->size\_y ); ?>' class='ewd-upcp-single-product-custom-element'>
2
2
3
3
<?php echo esc\_html( $this->get\_categories\_label() ); ?>
ultimate-product-catalogue/trunk/ewd-upcp-templates/single-product-custom-element-categories.php
r2638260
r2650578
1
<li data-col='<?php echo $this->element->col; ?>' data-row='<?php echo $this->element->row; ?>' data-sizex='<?php echo $this->element->size\_x; ?>' data-sizey='<?php echo $this->element->size\_y; ?>' class='ewd-upcp-single-product-custom-element'>
1
<li data-col='<?php echo esc\_attr( $this->element->col ); ?>' data-row='<?php echo esc\_attr( $this->element->row ); ?>' data-sizex='<?php echo esc\_attr( $this->element->size\_x ); ?>' data-sizey='<?php echo esc\_attr( $this->element->size\_y ); ?>' class='ewd-upcp-single-product-custom-element'>
2
2
3
3
<?php echo esc\_html( $this->product->get\_category\_names() ); ?>
ultimate-product-catalogue/trunk/ewd-upcp-templates/single-product-custom-element-custom-field.php
r2638260
r2650578
1
<li data-col='<?php echo $this->element->col; ?>' data-row='<?php echo $this->element->row; ?>' data-sizex='<?php echo $this->element->size\_x; ?>' data-sizey='<?php echo $this->element->size\_y; ?>' class='ewd-upcp-single-product-custom-element'>
1
<li data-col='<?php echo esc\_attr( $this->element->col ); ?>' data-row='<?php echo esc\_attr( $this->element->row ); ?>' data-sizex='<?php echo esc\_attr( $this->element->size\_x ); ?>' data-sizey='<?php echo esc\_attr( $this->element->size\_y ); ?>' class='ewd-upcp-single-product-custom-element'>
2
2
3
<?php echo $this->product->custom\_fields\[ $this->element->element\_id \]; ?>
3
<?php echo esc\_html( $this->product->custom\_fields\[ $this->element->element\_id \] ); ?>
4
4
5
5
</li>
ultimate-product-catalogue/trunk/ewd-upcp-templates/single-product-custom-element-description.php
r2638260
r2650578
1
<li data-col='<?php echo $this->element->col; ?>' data-row='<?php echo $this->element->row; ?>' data-sizex='<?php echo $this->element->size\_x; ?>' data-sizey='<?php echo $this->element->size\_y; ?>' class='ewd-upcp-single-product-custom-element'>
1
<li data-col='<?php echo esc\_attr( $this->element->col ); ?>' data-row='<?php echo esc\_attr( $this->element->row ); ?>' data-sizex='<?php echo esc\_attr( $this->element->size\_x ); ?>' data-sizey='<?php echo esc\_attr( $this->element->size\_y ); ?>' class='ewd-upcp-single-product-custom-element'>
2
2
3
3
<?php $this->print\_product\_description(); ?>
ultimate-product-catalogue/trunk/ewd-upcp-templates/single-product-custom-element-link.php
r2638260
r2650578
1
<li data-col='<?php echo $this->element->col; ?>' data-row='<?php echo $this->element->row; ?>' data-sizex='<?php echo $this->element->size\_x; ?>' data-sizey='<?php echo $this->element->size\_y; ?>' class='ewd-upcp-single-product-custom-element'>
1
<li data-col='<?php echo esc\_attr( $this->element->col ); ?>' data-row='<?php echo esc\_attr( $this->element->row ); ?>' data-sizex='<?php echo esc\_attr( $this->element->size\_x ); ?>' data-sizey='<?php echo esc\_attr( $this->element->size\_y ); ?>' class='ewd-upcp-single-product-custom-element'>
2
2
3
3
<a class='no-underline' href='<?php echo esc\_attr( $this->details\_link ); ?>'>
ultimate-product-catalogue/trunk/ewd-upcp-templates/single-product-custom-element-main-image.php
r2638260
r2650578
1
<li data-col='<?php echo $this->element->col; ?>' data-row='<?php echo $this->element->row; ?>' data-sizex='<?php echo $this->element->size\_x; ?>' data-sizey='<?php echo $this->element->size\_y; ?>' class='ewd-upcp-single-product-custom-element'>
1
<li data-col='<?php echo esc\_attr( $this->element->col ); ?>' data-row='<?php echo esc\_attr( $this->element->row ); ?>' data-sizex='<?php echo esc\_attr( $this->element->size\_x ); ?>' data-sizey='<?php echo esc\_attr( $this->element->size\_y ); ?>' class='ewd-upcp-single-product-custom-element'>
2
2
3
3
<?php $this->print\_main\_image(); ?>
ultimate-product-catalogue/trunk/ewd-upcp-templates/single-product-custom-element-next-previous.php
r2638260
r2650578
1
<li data-col='<?php echo $this->element->col; ?>' data-row='<?php echo $this->element->row; ?>' data-sizex='<?php echo $this->element->size\_x; ?>' data-sizey='<?php echo $this->element->size\_y; ?>' class='ewd-upcp-single-product-custom-element'>
1
<li data-col='<?php echo esc\_attr( $this->element->col ); ?>' data-row='<?php echo esc\_attr( $this->element->row ); ?>' data-sizex='<?php echo esc\_attr( $this->element->size\_x ); ?>' data-sizey='<?php echo esc\_attr( $this->element->size\_y ); ?>' class='ewd-upcp-single-product-custom-element'>
2
2
3
3
<?php $this->maybe\_print\_next\_previous\_products(); ?>
ultimate-product-catalogue/trunk/ewd-upcp-templates/single-product-custom-element-price-label.php
r2638260
r2650578
1
<li data-col='<?php echo $this->element->col; ?>' data-row='<?php echo $this->element->row; ?>' data-sizex='<?php echo $this->element->size\_x; ?>' data-sizey='<?php echo $this->element->size\_y; ?>' class='ewd-upcp-single-product-custom-element'>
1
<li data-col='<?php echo esc\_attr( $this->element->col ); ?>' data-row='<?php echo esc\_attr( $this->element->row ); ?>' data-sizex='<?php echo esc\_attr( $this->element->size\_x ); ?>' data-sizey='<?php echo esc\_attr( $this->element->size\_y ); ?>' class='ewd-upcp-single-product-custom-element'>
2
2
3
3
<?php \_e( 'Price', 'ultimate-product-catalogue' ); ?>:
ultimate-product-catalogue/trunk/ewd-upcp-templates/single-product-custom-element-price.php
r2638260
r2650578
1
<li data-col='<?php echo $this->element->col; ?>' data-row='<?php echo $this->element->row; ?>' data-sizex='<?php echo $this->element->size\_x; ?>' data-sizey='<?php echo $this->element->size\_y; ?>' class='ewd-upcp-single-product-custom-element'>
1
<li data-col='<?php echo esc\_attr( $this->element->col ); ?>' data-row='<?php echo esc\_attr( $this->element->row ); ?>' data-sizex='<?php echo esc\_attr( $this->element->size\_x ); ?>' data-sizey='<?php echo esc\_attr( $this->element->size\_y ); ?>' class='ewd-upcp-single-product-custom-element'>
2
2
3
3
<?php $this->maybe\_print\_next\_previous\_products(); ?>
ultimate-product-catalogue/trunk/ewd-upcp-templates/single-product-custom-element-related-products.php
r2638260
r2650578
1
<li data-col='<?php echo $this->element->col; ?>' data-row='<?php echo $this->element->row; ?>' data-sizex='<?php echo $this->element->size\_x; ?>' data-sizey='<?php echo $this->element->size\_y; ?>' class='ewd-upcp-single-product-custom-element'>
1
<li data-col='<?php echo esc\_attr( $this->element->col ); ?>' data-row='<?php echo esc\_attr( $this->element->row ); ?>' data-sizex='<?php echo esc\_attr( $this->element->size\_x ); ?>' data-sizey='<?php echo esc\_attr( $this->element->size\_y ); ?>' class='ewd-upcp-single-product-custom-element'>
2
2
3
3
<?php $this->maybe\_print\_related\_products(); ?>
ultimate-product-catalogue/trunk/ewd-upcp-templates/single-product-custom-element-subcategories-label.php
r2638260
r2650578
1
<li data-col='<?php echo $this->element->col; ?>' data-row='<?php echo $this->element->row; ?>' data-sizex='<?php echo $this->element->size\_x; ?>' data-sizey='<?php echo $this->element->size\_y; ?>' class='ewd-upcp-single-product-custom-element'>
1
<li data-col='<?php echo esc\_attr( $this->element->col ); ?>' data-row='<?php echo esc\_attr( $this->element->row ); ?>' data-sizex='<?php echo esc\_attr( $this->element->size\_x ); ?>' data-sizey='<?php echo esc\_attr( $this->element->size\_y ); ?>' class='ewd-upcp-single-product-custom-element'>
2
2
3
3
<?php echo esc\_html( $this->get\_subcategories\_label() ); ?>
ultimate-product-catalogue/trunk/ewd-upcp-templates/single-product-custom-element-subcategories.php
r2638260
r2650578
1
<li data-col='<?php echo $this->element->col; ?>' data-row='<?php echo $this->element->row; ?>' data-sizex='<?php echo $this->element->size\_x; ?>' data-sizey='<?php echo $this->element->size\_y; ?>' class='ewd-upcp-single-product-custom-element'>
1
<li data-col='<?php echo esc\_attr( $this->element->col ); ?>' data-row='<?php echo esc\_attr( $this->element->row ); ?>' data-sizex='<?php echo esc\_attr( $this->element->size\_x ); ?>' data-sizey='<?php echo esc\_attr( $this->element->size\_y ); ?>' class='ewd-upcp-single-product-custom-element'>
2
2
3
3
<?php echo esc\_html( $this->product->get\_subcategory\_names() ); ?>
ultimate-product-catalogue/trunk/ewd-upcp-templates/single-product-custom-element-tags-label.php
r2638260
r2650578
1
<li data-col='<?php echo $this->element->col; ?>' data-row='<?php echo $this->element->row; ?>' data-sizex='<?php echo $this->element->size\_x; ?>' data-sizey='<?php echo $this->element->size\_y; ?>' class='ewd-upcp-single-product-custom-element'>
1
<li data-col='<?php echo esc\_attr( $this->element->col ); ?>' data-row='<?php echo esc\_attr( $this->element->row ); ?>' data-sizex='<?php echo esc\_attr( $this->element->size\_x ); ?>' data-sizey='<?php echo esc\_attr( $this->element->size\_y ); ?>' class='ewd-upcp-single-product-custom-element'>
2
2
3
3
<?php echo esc\_html( $this->get\_tags\_label() ); ?>
ultimate-product-catalogue/trunk/ewd-upcp-templates/single-product-custom-element-tags.php
r2638260
r2650578
1
<li data-col='<?php echo $this->element->col; ?>' data-row='<?php echo $this->element->row; ?>' data-sizex='<?php echo $this->element->size\_x; ?>' data-sizey='<?php echo $this->element->size\_y; ?>' class='ewd-upcp-single-product-custom-element'>
1
<li data-col='<?php echo esc\_attr( $this->element->col ); ?>' data-row='<?php echo esc\_attr( $this->element->row ); ?>' data-sizex='<?php echo esc\_attr( $this->element->size\_x ); ?>' data-sizey='<?php echo esc\_attr( $this->element->size\_y ); ?>' class='ewd-upcp-single-product-custom-element'>
2
2
3
3
<?php echo esc\_html( $this->product->get\_tag\_names() ); ?>
ultimate-product-catalogue/trunk/ewd-upcp-templates/single-product-custom-element-text.php
r2638260
r2650578
1
<li data-col='<?php echo $this->element->col; ?>' data-row='<?php echo $this->element->row; ?>' data-sizex='<?php echo $this->element->size\_x; ?>' data-sizey='<?php echo $this->element->size\_y; ?>' class='ewd-upcp-single-product-custom-element'>
1
<li data-col='<?php echo esc\_attr( $this->element->col ); ?>' data-row='<?php echo esc\_attr( $this->element->row ); ?>' data-sizex='<?php echo esc\_attr( $this->element->size\_x ); ?>' data-sizey='<?php echo esc\_attr( $this->element->size\_y ); ?>' class='ewd-upcp-single-product-custom-element'>
2
2
3
3
<?php echo do\_shortcode( $this->element->element\_id ); ?>
ultimate-product-catalogue/trunk/ewd-upcp-templates/single-product-custom-element-title.php
r2638260
r2650578
1
<li data-col='<?php echo $this->element->col; ?>' data-row='<?php echo $this->element->row; ?>' data-sizex='<?php echo $this->element->size\_x; ?>' data-sizey='<?php echo $this->element->size\_y; ?>' class='ewd-upcp-single-product-custom-element'>
1
<li data-col='<?php echo esc\_attr( $this->element->col ); ?>' data-row='<?php echo esc\_attr( $this->element->row ); ?>' data-sizex='<?php echo esc\_attr( $this->element->size\_x ); ?>' data-sizey='<?php echo esc\_attr( $this->element->size\_y ); ?>' class='ewd-upcp-single-product-custom-element'>
2
2
3
3
<?php $this->print\_title(); ?>
ultimate-product-catalogue/trunk/ewd-upcp-templates/single-product-description.php
r2638260
r2650578
1
1
<div class='ewd-upcp-single-product-description'>
2
2
3
<?php echo $this->product->get\_product\_description(); ?>
3
<?php echo wp\_kses\_post( $this->product->get\_product\_description() ); ?>
4
4
5
5
</div>
ultimate-product-catalogue/trunk/ewd-upcp-templates/single-product-main-image.php
r2638260
r2650578
1
<div class='ewd-upcp-single-product-main-image <?php echo $this->get\_main\_image\_lightbox\_class(); ?>' data-ulbsource='<?php echo esc\_attr( $this->product->get\_main\_image\_url() ); ?>'>
1
<div class='ewd-upcp-single-product-main-image <?php echo esc\_attr( $this->get\_main\_image\_lightbox\_class() ); ?>' data-ulbsource='<?php echo esc\_attr( $this->product->get\_main\_image\_url() ); ?>'>
2
2
3
3
<?php echo $this->product->get\_image(); ?>
ultimate-product-catalogue/trunk/ewd-upcp-templates/single-product-tab-faqs.php
r2638260
r2650578
3
3
<?php $ufaq\_product\_category = get\_term\_by( 'name', $this->product->name, 'ufaq-category' ); ?>
4
4
5
<?php echo do\_shortcode( "\[ultimate-faqs include\_category='". ( ! empty( $ufaq\_product\_category ) ? $ufaq\_product\_category->slug : '' ) . ',' . $this->get\_product\_category\_slugs() . "'\]" ); ?>
5
<?php echo do\_shortcode( "\[ultimate-faqs include\_category='". ( ! empty( $ufaq\_product\_category ) ? sanitize\_text\_field( $ufaq\_product\_category->slug ) : '' ) . ',' . esc\_attr( $this->get\_product\_category\_slugs() ) . "'\]" ); ?>
6
6
7
7
</div>
ultimate-product-catalogue/trunk/ewd-upcp-templates/single-product-videos.php
r2638260
r2650578
7
7
</div> \*/ ?>
8
8
9
<div class='ewd-upcp-single-video' data-video\_key='<?php echo ( $key + 1 ); ?>'>
9
<div class='ewd-upcp-single-video' data-video\_key='<?php echo esc\_attr( $key + 1 ); ?>'>
10
10
11
11
<iframe width='300' height='225' src='<?php echo esc\_attr( $video->embed\_url ); ?>' webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>
ultimate-product-catalogue/trunk/ewd-upcp-templates/tabbed-single-product.php
r2638260
r2650578
1
<div id='ewd-upcp-single-product-<?php echo $this->product->id; ?>' class='ewd-upcp-tabbed-product-page ewd-upcp-product-page'>
1
<div id='ewd-upcp-single-product-<?php echo esc\_attr( $this->product->id ); ?>' class='ewd-upcp-tabbed-product-page ewd-upcp-product-page'>
2
2
3
3
<?php $this->print\_product\_breadcrumbs(); ?>
ultimate-product-catalogue/trunk/includes/AdminCustomFields.class.php
r2638260
r2650578
14
14
// Add the admin menu
15
15
add\_action( 'admin\_menu', array( $this, 'add\_menu\_page' ), 12 );
16
17
// Enqueue admin scripts
18
add\_action( 'admin\_enqueue\_scripts', array( $this, 'enqueue\_scripts' ), 12 );
19
16
}
20
17
…
…
221
218
do\_action( 'ewd\_upcp\_custom\_fields\_updated' );
222
219
}
223
224
public function enqueue\_scripts() {
225
226
$screen = get\_current\_screen();
227
228
if ( $screen->id == 'tracking\_page\_ewd-upcp-custom-fields' ) {
229
230
wp\_enqueue\_style( 'ewd-upcp-admin-css', EWD\_UPCP\_PLUGIN\_URL . '/assets/css/ewd-upcp-admin.css', array(), EWD\_UPCP\_VERSION );
231
wp\_enqueue\_script( 'ewd-upcp-admin-js', EWD\_UPCP\_PLUGIN\_URL . '/assets/js/ewd-upcp-admin.js', array( 'jquery', 'jquery-ui-sortable' ), EWD\_UPCP\_VERSION, true );
232
}
233
}
234
220
}
235
221
} // endif;
ultimate-product-catalogue/trunk/includes/AdminProductPage.class.php
r2638260
r2650578
399
399
<li>
400
400
401
<a class='ewd-upcp-custom-product-page-add-element' data-name='<?php echo $element->name; ?>' data-class='<?php echo $element->class; ?>' data-id='<?php echo $element->id; ?>' data-x\_size='<?php echo $element->x\_size; ?>' data-y\_size='<?php echo $element->y\_size; ?>'><?php echo $element->name; ?></a>
401
<a class='ewd-upcp-custom-product-page-add-element' data-name='<?php echo esc\_attr( $element->name ); ?>' data-class='<?php echo esc\_attr( $element->class ); ?>' data-id='<?php echo esc\_attr( $element->id ); ?>' data-x\_size='<?php echo esc\_attr( $element->x\_size ); ?>' data-y\_size='<?php echo esc\_attr( $element->y\_size ); ?>'><?php echo esc\_html( $element->name ); ?></a>
402
402
403
403
</li>
…
…
417
417
<?php foreach ( $gridster as $grid\_element ) { ?>
418
418
419
<li data-col='<?php echo $grid\_element->col; ?>' data-row='<?php echo $grid\_element->row; ?>' data-sizex='<?php echo $grid\_element->size\_x; ?>' data-sizey='<?php echo $grid\_element->size\_y; ?>' data-elementclass='<?php echo $grid\_element->element\_class; ?>' data-elementid='<?php echo $grid\_element->element\_id; ?>' class='prod-page-div gs-w' style='display: list-item; position:absolute;'>
419
<li data-col='<?php echo esc\_attr( $grid\_element->col ); ?>' data-row='<?php echo esc\_attr( $grid\_element->row ); ?>' data-sizex='<?php echo esc\_attr( $grid\_element->size\_x ); ?>' data-sizey='<?php echo esc\_attr( $grid\_element->size\_y); ?>' data-elementclass='<?php echo esc\_attr( $grid\_element->element\_class ); ?>' data-elementid='<?php echo esc\_attr( $grid\_element->element\_id ); ?>' class='prod-page-div gs-w' style='display: list-item; position:absolute;'>
420
420
421
421
<?php echo substr( $grid\_element->element\_type, 0, strpos( $grid\_element->element\_type, '<' ) ); ?>
…
…
426
426
427
427
<textarea class='ewd-upcp-pb-textarea'>
428
<?php echo $grid\_element->element\_id; ?>
428
<?php echo esc\_textarea( $grid\_element->element\_id ); ?>
429
429
</textarea>
430
430
…
…
500
500
<li>
501
501
502
<a class='ewd-upcp-custom-product-page-add-element' data-name='<?php echo $element->name; ?>' data-class='<?php echo $element->class; ?>' data-x\_size='<?php echo $element->x\_size; ?>' data-y\_size='<?php echo $element->y\_size; ?>'><?php echo $element->name; ?></a>
502
<a class='ewd-upcp-custom-product-page-add-element' data-name='<?php echo esc\_attr( $element->name ); ?>' data-class='<?php echo esc\_attr( $element->class ); ?>' data-x\_size='<?php echo esc\_attr( $element->x\_size ); ?>' data-y\_size='<?php echo esc\_attr( $element->y\_size ); ?>'><?php echo esc\_html( $element->name ); ?></a>
503
503
504
504
</li>
…
…
518
518
<?php foreach ( $gridster as $grid\_element ) { ?>
519
519
520
<li data-col='<?php echo $grid\_element->col; ?>' data-row='<?php echo $grid\_element->row; ?>' data-sizex='<?php echo $grid\_element->size\_x; ?>' data-sizey='<?php echo $grid\_element->size\_y; ?>' data-elementclass='<?php echo $grid\_element->element\_class; ?>' data-elementid='<?php echo $grid\_element->element\_id; ?>' class='prod-page-div gs-w' style='display: list-item; position:absolute;'>
520
<li data-col='<?php echo esc\_attr( $grid\_element->col ); ?>' data-row='<?php echo esc\_attr( $grid\_element->row ); ?>' data-sizex='<?php echo esc\_attr( $grid\_element->size\_x ); ?>' data-sizey='<?php echo esc( $grid\_element->size\_y ); ?>' data-elementclass='<?php echo esc\_attr( $grid\_element->element\_class ); ?>' data-elementid='<?php echo esc\_attr( $grid\_element->element\_id ); ?>' class='prod-page-div gs-w' style='display: list-item; position:absolute;'>
521
521
522
522
<?php echo substr( $grid\_element->element\_type, 0, strpos( $grid\_element->element\_type, '<' ) ); ?>
…
…
527
527
528
528
<textarea class='ewd-upcp-pb-textarea'>
529
<?php echo $grid\_element->element\_id; ?>
529
<?php echo esc\_textarea( $grid\_element->element\_id ); ?>
530
530
</textarea>
531
531
…
…
537
537
538
538
</ul>
539
539
540
540
</div>
541
541
…
…
563
563
564
564
</div>
565
565
566
566
</form>
567
567
568
568
</div>
569
569
…
…
611
611
612
612
public function save\_gridster\_layout() {
613
global $ewd\_upcp\_controller;
614
615
// Authenticate request
616
if (
617
! check\_ajax\_referer( 'ewd-upcp-admin-js', 'nonce' )
618
||
619
! current\_user\_can( $ewd\_upcp\_controller->settings->get\_setting( 'access-role' ) )
620
) {
621
ewdUpcpHelper::admin\_nopriv\_ajax();
622
}
613
623
614
624
$option\_name = $\_POST\['type'\] == 'mobile' ? 'UPCP\_Product\_Page\_Serialized\_Mobile' : 'UPCP\_Product\_Page\_Serialized';
ultimate-product-catalogue/trunk/includes/Ajax.class.php
r2638260
r2650578
32
32
global $ewd\_upcp\_controller;
33
33
34
// Authenticate request
35
if ( ! check\_ajax\_referer( 'ewd-upcp-js', 'nonce' ) ) {
36
ewdUpcpHelper::bad\_nonce\_ajax();
37
}
38
34
39
$product\_id = intval( $\_POST\['product\_id'\] );
35
40
…
…
43
48
public function update\_catalog() {
44
49
global $ewd\_upcp\_controller;
45
50
51
// Authenticate request
52
if ( ! check\_ajax\_referer( 'ewd-upcp-js', 'nonce' ) ) {
53
ewdUpcpHelper::bad\_nonce\_ajax();
54
}
55
46
56
$args = array(
47
57
'sidebar' => 'no',
…
…
112
122
global $woocommerce;
113
123
124
// Authenticate request
125
if ( ! check\_ajax\_referer( 'ewd-upcp-js', 'nonce' ) ) {
126
ewdUpcpHelper::bad\_nonce\_ajax();
127
}
128
114
129
setcookie( 'upcp\_cart\_products', '', time() - 3600, '/' );
115
130
…
…
129
144
global $ewd\_upcp\_controller;
130
145
global $woocommerce;
146
147
// Authenticate request
148
if ( ! check\_ajax\_referer( 'ewd-upcp-js', 'nonce' ) ) {
149
ewdUpcpHelper::bad\_nonce\_ajax();
150
}
131
151
132
152
if ( ! empty( $ewd\_upcp\_controller->settings->get\_setting( 'woocommerce-checkout' ) ) and ! empty( $ewd\_upcp\_controller->settings->get\_setting( 'woocommerce-sync' ) ) and is\_object( $woocommerce ) ) {
ultimate-product-catalogue/trunk/includes/CustomPostTypes.class.php
r2638260
r2650578
389
389
?>
390
390
391
<input type="hidden" name="ewd\_upcp\_nonce" value="<?php echo $this->nonce; ?>">
391
<input type="hidden" name="ewd\_upcp\_nonce" value="<?php echo esc\_attr( $this->nonce ); ?>">
392
392
393
393
<div class='ewd-upcp-meta-field'>
…
…
612
612
613
613
<?php foreach ( $products as $product ) { ?>
614
<option value='<?php echo $product->ID; ?>'><?php echo esc\_html( $product->post\_title ); ?></option>
614
<option value='<?php echo esc\_attr( $product->ID ); ?>'><?php echo esc\_html( $product->post\_title ); ?></option>
615
615
<?php } ?>
616
616
…
…
628
628
629
629
<?php foreach ( $products as $product ) { ?>
630
<option value='<?php echo $product->ID; ?>' <?php echo ( $related\_product == $product->ID ? 'selected' : '' ); ?>><?php echo esc\_html( $product->post\_title ); ?></option>
630
<option value='<?php echo esc\_attr( $product->ID ); ?>' <?php echo ( $related\_product == $product->ID ? 'selected' : '' ); ?>><?php echo esc\_html( $product->post\_title ); ?></option>
631
631
<?php } ?>
632
632
…
…
658
658
659
659
<?php foreach ( $products as $product ) { ?>
660
<option value='<?php echo $product->ID; ?>' <?php echo ( $previous\_product == $product->ID ? 'selected' : '' ); ?>><?php echo esc\_html( $product->post\_title ); ?></option>
660
<option value='<?php echo esc\_attr( $product->ID ); ?>' <?php echo ( $previous\_product == $product->ID ? 'selected' : '' ); ?>><?php echo esc\_html( $product->post\_title ); ?></option>
661
661
<?php } ?>
662
662
…
…
676
676
677
677
<?php foreach ( $products as $product ) { ?>
678
<option value='<?php echo $product->ID; ?>' <?php echo ( $next\_product == $product->ID ? 'selected' : '' ); ?>><?php echo esc\_html( $product->post\_title ); ?></option>
678
<option value='<?php echo esc\_attr( $product->ID ); ?>' <?php echo ( $next\_product == $product->ID ? 'selected' : '' ); ?>><?php echo esc\_html( $product->post\_title ); ?></option>
679
679
<?php } ?>
680
680
…
…
870
870
<?php foreach ( $products as $product ) { ?>
871
871
<label class='ewd-upcp-admin-input-container'>
872
<input type='checkbox' class='ewd-upcp-add-items-product-checkbox' value='<?php echo $product->ID; ?>' />
872
<input type='checkbox' class='ewd-upcp-add-items-product-checkbox' value='<?php echo esc\_attr( $product->ID ); ?>' />
873
873
<span class='ewd-upcp-admin-checkbox'></span> <span><?php echo esc\_html( $product->post\_title ); ?></span>
874
874
</label>
…
…
885
885
<?php foreach ( $categories as $category ) { ?>
886
886
<label class='ewd-upcp-admin-input-container'>
887
<input type='checkbox' class='ewd-upcp-add-items-category-checkbox' value='<?php echo $category->term\_id; ?>' />
887
<input type='checkbox' class='ewd-upcp-add-items-category-checkbox' value='<?php echo esc\_attr( $category->term\_id ); ?>' />
888
888
<span class='ewd-upcp-admin-checkbox'></span> <span><?php echo esc\_html( $category->name ); ?></span>
889
889
</label>
…
…
904
904
<div class='ewd-upcp-catalog-meta-current-items'>
905
905
906
<input type="hidden" name="ewd\_upcp\_nonce" value="<?php echo $this->nonce; ?>">
906
<input type="hidden" name="ewd\_upcp\_nonce" value="<?php echo esc\_attr( $this->nonce ); ?>">
907
907
908
908
<table class='ewd-upcp-catalog-meta-items'>
…
…
936
936
<td>
937
937
938
<input type='hidden' name='catalog\_item\_id\[\]' value='<?php echo $item->id; ?>' />
939
940
<input type='hidden' name='catalog\_item\_type\[\]' value='<?php echo $item->type; ?>' />
938
<input type='hidden' name='catalog\_item\_id\[\]' value='<?php echo esc\_attr( $item->id ); ?>' />
939
940
<input type='hidden' name='catalog\_item\_type\[\]' value='<?php echo esc\_attr( $item->type ); ?>' />
941
941
942
942
<?php echo esc\_html( $item\_name ) ?>
…
…
1257
1257
\*/
1258
1258
public function update\_category\_and\_tag\_order() {
1259
global $ewd\_upcp\_controller;
1260
1261
// Authenticate request
1262
if (
1263
! check\_ajax\_referer( 'ewd-upcp-admin-js', 'nonce' )
1264
||
1265
! current\_user\_can( $ewd\_upcp\_controller->settings->get\_setting( 'access-role' ) )
1266
) {
1267
ewdUpcpHelper::admin\_nopriv\_ajax();
1268
}
1259
1269
1260
1270
$ids = is\_array( $\_POST\['tag'\] ) ? array\_map( 'intval', $\_POST\['tag'\] ) : array();
…
…
1497
1507
\*/
1498
1508
public function update\_product\_order() {
1509
global $ewd\_upcp\_controller;
1510
1511
// Authenticate request
1512
if (
1513
! check\_ajax\_referer( 'ewd-upcp-admin-js', 'nonce' )
1514
||
1515
! current\_user\_can( $ewd\_upcp\_controller->settings->get\_setting( 'access-role' ) )
1516
) {
1517
ewdUpcpHelper::admin\_nopriv\_ajax();
1518
}
1499
1519
1500
1520
$ids = is\_array( $\_POST\['post'\] ) ? array\_map( 'intval', $\_POST\['post'\] ) : array();
ultimate-product-catalogue/trunk/includes/Dashboard.class.php
r2638260
r2650578
15
15
public function \_\_construct() {
16
16
add\_action( 'admin\_menu', array( $this, 'add\_dashboard\_to\_menu' ), 99 );
17
18
add\_action( 'admin\_enqueue\_scripts', array( $this, 'enqueue\_scripts' ) );
19
20
add\_action( 'wp\_ajax\_ewd\_upcp\_hide\_upgrade\_box', array($this, 'hide\_upgrade\_box') );
21
add\_action( 'wp\_ajax\_ewd\_upcp\_display\_upgrade\_box', array($this, 'display\_upgrade\_box') );
22
17
23
18
if ( ! empty( $\_POST\['ewd\_upcp\_reset\_settings'\] ) ) {
…
…
62
57
}
63
58
64
// Enqueues the admin script so that our hacky sub-menu opening function can run
65
public function enqueue\_scripts() {
66
global $admin\_page\_hooks;
67
68
$currentScreen = get\_current\_screen();
69
if ( $currentScreen->id == 'upcp\_product\_page\_ewd-upcp-settings' ) {
70
wp\_enqueue\_style( 'ewd-upcp-admin-css', EWD\_UPCP\_PLUGIN\_URL . '/assets/css/ewd-upcp-admin.css', array(), EWD\_UPCP\_VERSION );
71
wp\_enqueue\_script( 'ewd-upcp-admin-js', EWD\_UPCP\_PLUGIN\_URL . '/assets/js/ewd-upcp-admin.js', array( 'jquery' ), EWD\_UPCP\_VERSION, true );
72
}
73
}
74
75
59
public function display\_dashboard\_screen() {
76
60
global $ewd\_upcp\_controller;
…
…
100
84
$premium\_info = apply\_filters( 'ewd\_dashboard\_top', $premium\_info, 'UPCP', 'https://www.etoilewebdesign.com/license-payment/?Selected=UPCP&Quantity=1' );
101
85
102
echo $premium\_info;
86
// This will allow us to disaply the form
87
$tmp\_fun = function( $tags ) {
88
$tags = array\_merge(
89
$tags,
90
\[
91
'input' => \[
92
'class' => true,
93
'name' => true,
94
'type' => true,
95
'value' => true,
96
'placeholder' => true
97
\]
98
\]
99
);
100
if(isset($tags\['form'\])) {
101
$tags\['form'\] = array\_merge($tags\['form'\], \['class' => true\]);
102
}
103
return $tags;
104
};
105
add\_filter( 'wp\_kses\_allowed\_html', $tmp\_fun, 10, 1);
106
echo wp\_kses\_post( $premium\_info );
107
remove\_filter( 'wp\_kses\_allowed\_html', $tmp\_fun, 10 );
103
108
} ?>
104
109
105
110
<div class="ewd-upcp-dashboard-new-widget-box ewd-widget-box-full" id="ewd-upcp-dashboard-support-widget-box">
106
111
<div class="ewd-upcp-dashboard-new-widget-box-top"><?php \_e('Get Support', 'ultimate-product-catalogue'); ?><span id="ewd-upcp-dash-mobile-support-down-caret"> ▼</span><span id="ewd-upcp-dash-mobile-support-up-caret"> ▲</span></div>
…
…
151
156
foreach ( $catalogs as $catalog ) { ?>
152
157
<tr>
153
<td><a href='post.php?post=<?php echo $catalog->ID; ?>&action=edit'><?php echo $catalog->post\_title; ?></a></td>
154
<td>\[product-catalogue id='<?php echo $catalog->ID; ?>'\]</td>
158
<td><a href='post.php?post=<?php echo esc\_url( $catalog->ID ); ?>&action=edit'><?php echo esc\_html( $catalog->post\_title ); ?></a></td>
159
<td>\[product-catalogue id='<?php echo sanitize\_text\_field( $catalog->ID ); ?>'\]</td>
155
160
</tr>
156
161
<?php }
…
…
228
233
229
234
<?php if ( ! get\_option("EWD\_UPCP\_Trial\_Happening") ) {
230
$trial\_info = sprintf( \_\_( '<a href="%s" target="\_blank">Visit our website</a> to learn how to get a free 7-day trial of the premium plugin.'), 'https://www.etoilewebdesign.com/premium-upgrade-instructions/' );
235
$trial\_info = sprintf( \_\_( '<a href="%s" target="\_blank">Visit our website</a> to learn how to get a free 7-day trial of the premium plugin.'), 'https://www.etoilewebdesign.com/premium-upgrade-instructions/' );
231
236
232
237
echo apply\_filters( 'ewd\_trial\_button', $trial\_info, 'UPCP' );
ultimate-product-catalogue/trunk/includes/DeactivationSurvey.class.php
r2638260
r2650578
55
55
<div class="ewd-upcp-deactivate-survey-modal" id="ewd-upcp-deactivate-survey-ultimate-product-catalogue">
56
56
<div class="ewd-upcp-deactivate-survey-wrap">
57
<form class="ewd-upcp-deactivate-survey" method="post" data-installtime="<?php echo $install\_time; ?>">
57
<form class="ewd-upcp-deactivate-survey" method="post" data-installtime="<?php echo esc\_attr( $install\_time ); ?>">
58
58
<span class="ewd-upcp-deactivate-survey-title"><span class="dashicons dashicons-testimonial"></span><?php echo ' ' . \_\_( 'Quick Feedback', 'ultimate-product-catalogue' ); ?></span>
59
59
<span class="ewd-upcp-deactivate-survey-desc"><?php echo \_\_('If you have a moment, please share why you are deactivating Ultimate Product Catalog:', 'ultimate-product-catalogue' ); ?></span>
…
…
61
61
<?php foreach ( $options as $id => $option ) : ?>
62
62
<div class="ewd-upcp-deactivate-survey-option">
63
<label for="ewd-upcp-deactivate-survey-option-ultimate-product-catalogue-<?php echo $id; ?>" class="ewd-upcp-deactivate-survey-option-label">
64
<input id="ewd-upcp-deactivate-survey-option-ultimate-product-catalogue-<?php echo $id; ?>" class="ewd-upcp-deactivate-survey-option-input" type="radio" name="code" value="<?php echo $id; ?>" />
65
<span class="ewd-upcp-deactivate-survey-option-reason"><?php echo $option\['title'\]; ?></span>
63
<label for="ewd-upcp-deactivate-survey-option-ultimate-product-catalogue-<?php echo esc\_attr( $id ); ?>" class="ewd-upcp-deactivate-survey-option-label">
64
<input id="ewd-upcp-deactivate-survey-option-ultimate-product-catalogue-<?php echo esc\_attr( $id ); ?>" class="ewd-upcp-deactivate-survey-option-input" type="radio" name="code" value="<?php echo esc\_attr( $id ); ?>" />
65
<span class="ewd-upcp-deactivate-survey-option-reason"><?php echo esc\_html( $option\['title'\] ); ?></span>
66
66
</label>
67
67
<?php if ( ! empty( $option\['details'\] ) ) : ?>
68
<input class="ewd-upcp-deactivate-survey-option-details" type="text" placeholder="<?php echo $option\['details'\]; ?>" />
68
<input class="ewd-upcp-deactivate-survey-option-details" type="text" placeholder="<?php echo esc\_attr( $option\['details'\] ); ?>" />
69
69
<?php endif; ?>
70
70
</div>
ultimate-product-catalogue/trunk/includes/Export.class.php
r2638260
r2650578
21
21
22
22
if ( isset( $\_POST\['ewd\_upcp\_export'\] ) ) { add\_action( 'admin\_menu', array($this, 'export\_products' )); }
23
24
add\_action( 'admin\_enqueue\_scripts', array( $this, 'enqueue\_export\_scripts' ) );
25
23
}
26
24
…
…
171
169
}
172
170
173
public function enqueue\_export\_scripts() {
174
175
$screen = get\_current\_screen();
176
177
if ( $screen->id == 'ewd-upcp-tracking\_page\_ewd-upcp-export' ) {
178
179
wp\_enqueue\_style( 'ewd-upcp-admin-css', EWD\_UPCP\_PLUGIN\_URL . '/assets/css/ewd-upcp-admin.css', array(), EWD\_UPCP\_VERSION );
180
wp\_enqueue\_script( 'ewd-upcp-admin-js', EWD\_UPCP\_PLUGIN\_URL . '/assets/js/ewd-upcp-admin.js', array( 'jquery' ), EWD\_UPCP\_VERSION, true );
181
}
182
}
183
184
171
}
185
172
ultimate-product-catalogue/trunk/includes/Import.class.php
r2638260
r2650578
19
19
20
20
if ( isset( $\_POST\['ewdupcpImport'\] ) ) { add\_action( 'admin\_init', array($this, 'import\_products' )); }
21
22
add\_action( 'admin\_enqueue\_scripts', array( $this, 'enqueue\_import\_scripts' ) );
23
21
}
24
22
…
…
376
374
}
377
375
378
public function enqueue\_import\_scripts() {
379
380
$screen = get\_current\_screen();
381
382
if ( $screen->id == 'ewd-upcp-tracking\_page\_ewd-upcp-import' ) {
383
384
wp\_enqueue\_style( 'ewd-upcp-admin-css', EWD\_UPCP\_PLUGIN\_URL . '/assets/css/ewd-upcp-admin.css', array(), '5.0.0' );
385
wp\_enqueue\_script( 'ewd-upcp-admin-js', EWD\_UPCP\_PLUGIN\_URL . '/assets/js/ewd-upcp-admin.js', array( 'jquery' ), '5.0.0', true );
386
}
387
}
388
389
376
public function display\_notice() {
390
377
ultimate-product-catalogue/trunk/includes/InstallationWalkthrough.class.php
r2638260
r2650578
80
80
\*/
81
81
public function add\_category() {
82
global $ewd\_upcp\_controller;
83
84
// Authenticate request
85
if (
86
! check\_ajax\_referer( 'ewd-upcp-getting-started', 'nonce' )
87
||
88
! current\_user\_can( $ewd\_upcp\_controller->settings->get\_setting( 'access-role' ) )
89
) {
90
ewdUpcpHelper::admin\_nopriv\_ajax();
91
}
82
92
83
93
$category\_name = isset( $\_POST\['category\_name'\] ) ? sanitize\_text\_field( $\_POST\['category\_name'\] ) : '';
84
$category\_description = isset( $\_POST\['category\_description'\] ) ? sanitize\_textarea\_field( $\_POST\['category\_description'\] ) : '';
85
86
$category\_term\_id = wp\_insert\_term( $category\_name, EWD\_UPCP\_PRODUCT\_CATEGORY\_TAXONOMY, array('description' => $category\_description) );
87
88
echo json\_encode ( array( 'category\_name' => $category\_name, 'category\_id' => $category\_term\_id\['term\_id'\] ) );
89
90
exit();
94
$category\_description = isset( $\_POST\['category\_description'\] ) ? sanitize\_textarea\_field( $\_POST\['category\_description'\] ) : '';
95
96
$category\_term\_id = wp\_insert\_term( $category\_name, EWD\_UPCP\_PRODUCT\_CATEGORY\_TAXONOMY, array('description' => $category\_description) );
97
98
echo json\_encode ( array( 'category\_name' => $category\_name, 'category\_id' => $category\_term\_id\['term\_id'\] ) );
99
100
exit();
91
101
}
92
102
…
…
96
106
\*/
97
107
public function add\_catalog() {
108
global $ewd\_upcp\_controller;
109
110
// Authenticate request
111
if (
112
! check\_ajax\_referer( 'ewd-upcp-getting-started', 'nonce' )
113
||
114
! current\_user\_can( $ewd\_upcp\_controller->settings->get\_setting( 'access-role' ) )
115
) {
116
ewdUpcpHelper::admin\_nopriv\_ajax();
117
}
98
118
99
119
$args = array(
100
'post\_title' => isset( $\_POST\['catalog\_name'\] ) ? sanitize\_text\_field( $\_POST\['catalog\_name'\] ) : '',
101
'post\_content' => '',
102
'post\_status' => 'publish',
103
'post\_type' => EWD\_UPCP\_CATALOG\_POST\_TYPE
104
);
105
106
$catalog\_id = wp\_insert\_post( $args );
107
108
if ( $catalog\_id ) {
109
110
$args = array(
111
'taxonomy' => EWD\_UPCP\_PRODUCT\_CATEGORY\_TAXONOMY,
112
'hide\_empty' => false,
113
);
114
115
$categories = get\_terms( $args );
116
117
$items = array();
118
119
foreach ( $categories as $category ) {
120
121
$items\[\] = (object) array(
122
'type' => 'category',
123
'id' => $category->term\_id,
124
);
125
}
126
127
update\_post\_meta( $catalog\_id, 'items', $items );
128
}
129
130
$args = array(
131
'post\_title' => isset( $\_POST\['catalog\_name'\] ) ? sanitize\_text\_field( $\_POST\['catalog\_name'\] ) : '',
132
'post\_content' => '<!-- wp:paragraph --><p> \[product-catalogue id="' . $catalog\_id . '"\] </p><!-- /wp:paragraph -->',
133
'post\_status' => 'publish',
134
'post\_type' => 'page'
135
);
136
137
$post\_id = wp\_insert\_post( $args );
138
139
wp\_send\_json\_success(
140
array(
141
'post\_id' => $post\_id,
142
)
143
);
144
145
exit();
120
'post\_title' => isset( $\_POST\['catalog\_name'\] ) ? sanitize\_text\_field( $\_POST\['catalog\_name'\] ) : '',
121
'post\_content' => '',
122
'post\_status' => 'publish',
123
'post\_type' => EWD\_UPCP\_CATALOG\_POST\_TYPE
124
);
125
126
$catalog\_id = wp\_insert\_post( $args );
127
128
if ( $catalog\_id ) {
129
130
$args = array(
131
'taxonomy' => EWD\_UPCP\_PRODUCT\_CATEGORY\_TAXONOMY,
132
'hide\_empty' => false,
133
);
134
135
$categories = get\_terms( $args );
136
137
$items = array();
138
139
foreach ( $categories as $category ) {
140
141
$items\[\] = (object) array(
142
'type' => 'category',
143
'id' => $category->term\_id,
144
);
145
}
146
147
update\_post\_meta( $catalog\_id, 'items', $items );
148
}
149
150
$args = array(
151
'post\_title' => isset( $\_POST\['catalog\_name'\] ) ? sanitize\_text\_field( $\_POST\['catalog\_name'\] ) : '',
152
'post\_content' => '<!-- wp:paragraph --><p> \[product-catalogue id="' . $catalog\_id . '"\] </p><!-- /wp:paragraph -->',
153
'post\_status' => 'publish',
154
'post\_type' => 'page'
155
);
156
157
$post\_id = wp\_insert\_post( $args );
158
159
wp\_send\_json\_success(
160
array(
161
'post\_id' => $post\_id,
162
)
163
);
164
165
exit();
146
166
}
147
167
…
…
151
171
\*/
152
172
public function set\_options() {
173
global $ewd\_upcp\_controller;
174
175
// Authenticate request
176
if (
177
! check\_ajax\_referer( 'ewd-upcp-getting-started', 'nonce' )
178
||
179
! current\_user\_can( $ewd\_upcp\_controller->settings->get\_setting( 'access-role' ) )
180
) {
181
ewdUpcpHelper::admin\_nopriv\_ajax();
182
}
153
183
154
184
$ewd\_upcp\_options = get\_option( 'ewd-upcp-settings' );
…
…
160
190
161
191
update\_option( 'ewd-upcp-settings', $ewd\_upcp\_options );
162
163
exit();
192
193
exit();
164
194
}
165
195
…
…
169
199
\*/
170
200
public function add\_product() {
201
global $ewd\_upcp\_controller;
202
203
// Authenticate request
204
if (
205
! check\_ajax\_referer( 'ewd-upcp-getting-started', 'nonce' )
206
||
207
! current\_user\_can( $ewd\_upcp\_controller->settings->get\_setting( 'access-role' ) )
208
) {
209
ewdUpcpHelper::admin\_nopriv\_ajax();
210
}
171
211
172
212
$args = array(
…
…
220
260
wp\_enqueue\_script( 'ewd-upcp-admin-settings-js', EWD\_UPCP\_PLUGIN\_URL . '/lib/simple-admin-pages/js/admin-settings.js', array( 'jquery' ), EWD\_UPCP\_VERSION );
221
261
wp\_enqueue\_script( 'ewd-upcp-admin-spectrum-js', EWD\_UPCP\_PLUGIN\_URL . '/lib/simple-admin-pages/js/spectrum.js', array( 'jquery' ), EWD\_UPCP\_VERSION );
262
263
wp\_localize\_script(
264
'ewd-upcp-getting-started',
265
'ewd\_upcp\_getting\_started',
266
array(
267
'nonce' => wp\_create\_nonce( 'ewd-upcp-getting-started' )
268
)
269
);
222
270
}
223
271
…
…
332
380
<fieldset>
333
381
<legend class="screen-reader-text"><span>Currency Symbol</span></legend>
334
<label for='currency\_symbol'></label><input type='text' name='currency\_symbol' value='<?php echo $currency\_symbol; ?>' /><br />
382
<label for='currency\_symbol'></label><input type='text' name='currency\_symbol' value='<?php echo esc\_attr( $currency\_symbol ); ?>' /><br />
335
383
<p><?php \_e('What currency symbol, if any, should be displayed before or after the price? Leave blank for none.', 'ultimate-product-catalogue'); ?></p>
336
384
</fieldset>
ultimate-product-catalogue/trunk/includes/Product.class.php
r2638260
r2650578
506
506
$image\_url = $this->get\_main\_image\_url();
507
507
508
return '<img class="ewd-upcp-product-image" src="' . $image\_url . '" />';
508
return '<img class="ewd-upcp-product-image" src="' . esc\_url( $image\_url ) . '" />';
509
509
}
510
510
ultimate-product-catalogue/trunk/includes/ReviewAsk.class.php
r2638260
r2650578
74
74
wp\_enqueue\_style( 'ewd-upcp-review-ask-css', EWD\_UPCP\_PLUGIN\_URL . '/assets/css/dashboard-review-ask.css' );
75
75
wp\_enqueue\_script( 'ewd-upcp-review-ask-js', EWD\_UPCP\_PLUGIN\_URL . '/assets/js/dashboard-review-ask.js', array( 'jquery' ), EWD\_UPCP\_VERSION, true );
76
77
wp\_localize\_script(
78
'ewd-upcp-review-ask-js',
79
'ewd\_upcp\_review\_ask',
80
array(
81
'nonce' => wp\_create\_nonce( 'ewd-upcp-review-ask-js' )
82
)
83
);
76
84
}
77
85
78
86
public function hide\_review\_ask() {
87
global $ewd\_upcp\_controller;
88
89
// Authenticate request
90
if (
91
! check\_ajax\_referer( 'ewd-upcp-review-ask-js', 'nonce' )
92
||
93
! current\_user\_can( $ewd\_upcp\_controller->settings->get\_setting( 'access-role' ) )
94
) {
95
ewdUpcpHelper::admin\_nopriv\_ajax();
96
}
79
97
80
98
$ask\_review\_time = sanitize\_text\_field($\_POST\['ask\_review\_time'\]);
81
99
82
if ( get\_option( 'ewd-upcp-review-ask-time' ) < time() + 3600\*24 \* $ask\_review\_time ) {
83
update\_option( 'ewd-upcp-review-ask-time', time() + 3600\*24 \* $ask\_review\_time );
84
}
100
if ( get\_option( 'ewd-upcp-review-ask-time' ) < time() + 3600\*24 \* $ask\_review\_time ) {
101
update\_option( 'ewd-upcp-review-ask-time', time() + 3600\*24 \* $ask\_review\_time );
102
}
85
103
86
die();
104
die();
87
105
}
88
106
89
107
public function send\_feedback() {
108
global $ewd\_upcp\_controller;
109
110
// Authenticate request
111
if (
112
! check\_ajax\_referer( 'ewd-upcp-review-ask-js', 'nonce' )
113
||
114
! current\_user\_can( $ewd\_upcp\_controller->settings->get\_setting( 'access-role' ) )
115
) {
116
ewdUpcpHelper::admin\_nopriv\_ajax();
117
}
118
90
119
$headers = 'Content-type: text/html;charset=utf-8' . "\\r\\n";
91
$feedback = sanitize\_text\_field($\_POST\['feedback'\]);
92
$feedback .= '<br /><br />Email Address: ';
93
$feedback .= sanitize\_text\_field($\_POST\['email\_address'\]);
120
$feedback = sanitize\_text\_field($\_POST\['feedback'\]);
121
$feedback .= '<br /><br />Email Address: ';
122
$feedback .= sanitize\_email($\_POST\['email\_address'\]);
94
123
95
wp\_mail('[email protected]', 'UPCP Feedback - Dashboard Form', $feedback, $headers);
124
wp\_mail('[email protected]', 'UPCP Feedback - Dashboard Form', $feedback, $headers);
96
125
97
die();
126
die();
98
127
}
99
128
}
ultimate-product-catalogue/trunk/includes/Widgets.class.php
r2638260
r2650578
60
60
public function widget( $args, $instance ) {
61
61
62
echo $args\['before\_widget'\];
63
echo do\_shortcode( "\[insert-products product\_ids='". $instance\['product\_list'\] . "' catalogue\_url='". $instance\['catalogue\_url'\] . "' products\_wide='". $instance\['products\_per\_row'\] . "'\]" );
64
echo $args\['after\_widget'\];
62
echo esc\_html( $args\['before\_widget'\] );
63
echo do\_shortcode( "\[insert-products product\_ids='". sanitize\_text\_field( $instance\['product\_list'\] ) . "' catalogue\_url='". sanitize\_text\_field( $instance\['catalogue\_url'\] ) . "' products\_wide='". sanitize\_text\_field( $instance\['products\_per\_row'\] ) . "'\]" );
64
echo esc\_html( $args\['after\_widget'\] );
65
65
}
66
66
…
…
79
79
80
80
<p>
81
<label for="<?php echo $this->get\_field\_id( 'product\_list' ); ?>"><?php \_e( 'Comma-separated product IDs:', 'ultimate-product-catalogue' ); ?></label>
82
<input class="widefat" id="<?php echo $this->get\_field\_id( 'product\_list' ); ?>" name="<?php echo $this->get\_field\_name( 'product\_list' ); ?>" type="text" value="<?php echo esc\_attr( $product\_list ); ?>">
83
</p>
84
<p>
85
<label for="<?php echo $this->get\_field\_id( 'catalogue\_url' ); ?>"><?php \_e( 'The URL of your catalog:', 'ultimate-product-catalogue' ); ?></label>
86
<input class="widefat" id="<?php echo $this->get\_field\_id( 'catalogue\_url' ); ?>" name="<?php echo $this->get\_field\_name( 'catalogue\_url' ); ?>" type="text" value="<?php echo esc\_attr( $catalogue\_url ); ?>">
87
</p>
88
<p>
89
<label for="<?php echo $this->get\_field\_id( 'products\_per\_row' ); ?>"><?php \_e( 'The number of products per row:', 'ultimate-product-catalogue' ); ?></label>
90
<input class="widefat" id="<?php echo $this->get\_field\_id( 'products\_per\_row' ); ?>" name="<?php echo $this->get\_field\_name( 'products\_per\_row' ); ?>" type="text" value="<?php echo esc\_attr( $products\_per\_row ); ?>">
81
<label for="<?php echo esc\_attr( $this->get\_field\_id( 'product\_list' ) ); ?>"><?php \_e( 'Comma-separated product IDs:', 'ultimate-product-catalogue' ); ?></label>
82
<input class="widefat" id="<?php echo esc\_attr( $this->get\_field\_id( 'product\_list' ) ); ?>" name="<?php echo esc\_attr( $this->get\_field\_name( 'product\_list' ) ); ?>" type="text" value="<?php echo esc\_attr( $product\_list ); ?>">
83
</p>
84
<p>
85
<label for="<?php echo esc\_attr( $this->get\_field\_id( 'catalogue\_url' ) ); ?>"><?php \_e( 'The URL of your catalog:', 'ultimate-product-catalogue' ); ?></label>
86
<input class="widefat" id="<?php echo esc\_attr( $this->get\_field\_id( 'catalogue\_url' ) ); ?>" name="<?php echo esc\_attr( $this->get\_field\_name( 'catalogue\_url' ) ); ?>" type="text" value="<?php echo esc\_attr( $catalogue\_url ); ?>">
87
</p>
88
<p>
89
<label for="<?php echo esc\_attr( $this->get\_field\_id( 'products\_per\_row' ) ); ?>"><?php \_e( 'The number of products per row:', 'ultimate-product-catalogue' ); ?></label>
90
<input class="widefat" id="<?php echo esc\_attr( $this->get\_field\_id( 'products\_per\_row' ) ); ?>" name="<?php echo esc\_attr( $this->get\_field\_name( 'products\_per\_row' ) ); ?>" type="text" value="<?php echo esc\_attr( $products\_per\_row ); ?>">
91
91
</p>
92
92
…
…
133
133
public function widget( $args, $instance ) {
134
134
135
echo $args\['before\_widget'\];
136
echo do\_shortcode( "\[insert-products catalogue\_id='". $instance\['catalogue\_id'\] . "' product\_count='". $instance\['product\_count'\] . "' catalogue\_url='". $instance\['catalogue\_url'\] . "'\]" );
137
echo $args\['after\_widget'\];
135
echo esc\_html( $args\['before\_widget'\] );
136
echo do\_shortcode( "\[insert-products catalogue\_id='". sanitize\_text\_field( $instance\['catalogue\_id'\] ) . "' product\_count='". sanitize\_text\_field( $instance\['product\_count'\] ) . "' catalogue\_url='". sanitize\_text\_field( $instance\['catalogue\_url'\] ) . "'\]" );
137
echo esc\_html( $args\['after\_widget'\] );
138
138
}
139
139
…
…
152
152
153
153
<p>
154
<label for="<?php echo $this->get\_field\_id( 'catalogue\_id' ); ?>"><?php \_e( 'Catalog ID:', 'ultimate-product-catalogue' ); ?></label>
155
<input class="widefat" id="<?php echo $this->get\_field\_id( 'catalogue\_id' ); ?>" name="<?php echo $this->get\_field\_name( 'catalogue\_id' ); ?>" type="text" value="<?php echo esc\_attr( $catalogue\_id ); ?>">
156
</p>
157
<p>
158
<label for="<?php echo $this->get\_field\_id( 'product\_count' ); ?>"><?php \_e( 'Number of products to display:', 'ultimate-product-catalogue' ); ?></label>
159
<input class="widefat" id="<?php echo $this->get\_field\_id( 'product\_count' ); ?>" name="<?php echo $this->get\_field\_name( 'product\_count' ); ?>" type="text" value="<?php echo esc\_attr( $product\_count ); ?>">
160
</p>
161
<p>
162
<label for="<?php echo $this->get\_field\_id( 'catalogue\_url' ); ?>"><?php \_e( 'The URL of your catalog:', 'ultimate-product-catalogue' ); ?></label>
163
<input class="widefat" id="<?php echo $this->get\_field\_id( 'catalogue\_url' ); ?>" name="<?php echo $this->get\_field\_name( 'catalogue\_url' ); ?>" type="text" value="<?php echo esc\_attr( $catalogue\_url ); ?>">
154
<label for="<?php echo esc\_attr( $this->get\_field\_id( 'catalogue\_id' ) ); ?>"><?php \_e( 'Catalog ID:', 'ultimate-product-catalogue' ); ?></label>
155
<input class="widefat" id="<?php echo esc\_attr( $this->get\_field\_id( 'catalogue\_id' ) ); ?>" name="<?php echo esc\_attr( $this->get\_field\_name( 'catalogue\_id' ) ); ?>" type="text" value="<?php echo esc\_attr( $catalogue\_id ); ?>">
156
</p>
157
<p>
158
<label for="<?php echo esc\_attr( $this->get\_field\_id( 'product\_count' ) ); ?>"><?php \_e( 'Number of products to display:', 'ultimate-product-catalogue' ); ?></label>
159
<input class="widefat" id="<?php echo esc\_attr( $this->get\_field\_id( 'product\_count' ) ); ?>" name="<?php echo esc\_attr( $this->get\_field\_name( 'product\_count' ) ); ?>" type="text" value="<?php echo esc\_attr( $product\_count ); ?>">
160
</p>
161
<p>
162
<label for="<?php echo esc\_attr( $this->get\_field\_id( 'catalogue\_url' ) ); ?>"><?php \_e( 'The URL of your catalog:', 'ultimate-product-catalogue' ); ?></label>
163
<input class="widefat" id="<?php echo esc\_attr( $this->get\_field\_id( 'catalogue\_url' ) ); ?>" name="<?php echo esc\_attr( $this->get\_field\_name( 'catalogue\_url' ) ); ?>" type="text" value="<?php echo esc\_attr( $catalogue\_url ); ?>">
164
164
</p>
165
165
…
…
206
206
public function widget( $args, $instance ) {
207
207
208
echo $args\['before\_widget'\];
209
echo do\_shortcode( "\[insert-products catalogue\_id='". $instance\['catalogue\_id'\] . "' catalogue\_search='recent' product\_count='". $instance\['product\_count'\] . "' catalogue\_url='". $instance\['catalogue\_url'\] . "'\]" );
210
echo $args\['after\_widget'\];
208
echo esc\_html( $args\['before\_widget'\] );
209
echo do\_shortcode( "\[insert-products catalogue\_id='". sanitize\_text\_field( $instance\['catalogue\_id'\] ) . "' catalogue\_search='recent' product\_count='". sanitize\_text\_field( $instance\['product\_count'\] ) . "' catalogue\_url='". sanitize\_text\_field( $instance\['catalogue\_url'\] ) . "'\]" );
210
echo esc\_html( $args\['after\_widget'\] );
211
211
}
212
212
…
…
225
225
226
226
<p>
227
<label for="<?php echo $this->get\_field\_id( 'catalogue\_id' ); ?>"><?php \_e( 'Catalog ID:', 'ultimate-product-catalogue' ); ?></label>
228
<input class="widefat" id="<?php echo $this->get\_field\_id( 'catalogue\_id' ); ?>" name="<?php echo $this->get\_field\_name( 'catalogue\_id' ); ?>" type="text" value="<?php echo esc\_attr( $catalogue\_id ); ?>">
229
</p>
230
<p>
231
<label for="<?php echo $this->get\_field\_id( 'product\_count' ); ?>"><?php \_e( 'Number of products to display:', 'ultimate-product-catalogue' ); ?></label>
232
<input class="widefat" id="<?php echo $this->get\_field\_id( 'product\_count' ); ?>" name="<?php echo $this->get\_field\_name( 'product\_count' ); ?>" type="text" value="<?php echo esc\_attr( $product\_count ); ?>">
233
</p>
234
<p>
235
<label for="<?php echo $this->get\_field\_id( 'catalogue\_url' ); ?>"><?php \_e( 'The URL of your catalog:', 'ultimate-product-catalogue' ); ?></label>
236
<input class="widefat" id="<?php echo $this->get\_field\_id( 'catalogue\_url' ); ?>" name="<?php echo $this->get\_field\_name( 'catalogue\_url' ); ?>" type="text" value="<?php echo esc\_attr( $catalogue\_url ); ?>">
227
<label for="<?php echo esc\_attr( $this->get\_field\_id( 'catalogue\_id' ) ); ?>"><?php \_e( 'Catalog ID:', 'ultimate-product-catalogue' ); ?></label>
228
<input class="widefat" id="<?php echo esc\_attr( $this->get\_field\_id( 'catalogue\_id' ) ); ?>" name="<?php echo esc\_attr( $this->get\_field\_name( 'catalogue\_id' ) ); ?>" type="text" value="<?php echo esc\_attr( $catalogue\_id ); ?>">
229
</p>
230
<p>
231
<label for="<?php echo esc\_attr( $this->get\_field\_id( 'product\_count' ) ); ?>"><?php \_e( 'Number of products to display:', 'ultimate-product-catalogue' ); ?></label>
232
<input class="widefat" id="<?php echo esc\_attr( $this->get\_field\_id( 'product\_count' ) ); ?>" name="<?php echo esc\_attr( $this->get\_field\_name( 'product\_count' ) ); ?>" type="text" value="<?php echo esc\_attr( $product\_count ); ?>">
233
</p>
234
<p>
235
<label for="<?php echo esc\_attr( $this->get\_field\_id( 'catalogue\_url' ) ); ?>"><?php \_e( 'The URL of your catalog:', 'ultimate-product-catalogue' ); ?></label>
236
<input class="widefat" id="<?php echo esc\_attr( $this->get\_field\_id( 'catalogue\_url' ) ); ?>" name="<?php echo esc\_attr( $this->get\_field\_name( 'catalogue\_url' ) ); ?>" type="text" value="<?php echo esc\_attr( $catalogue\_url ); ?>">
237
237
</p>
238
238
…
…
279
279
public function widget( $args, $instance ) {
280
280
281
echo $args\['before\_widget'\];
282
echo do\_shortcode( "\[insert-products catalogue\_id='". $instance\['catalogue\_id'\] . "' catalogue\_search='popular' product\_count='". $instance\['product\_count'\] . "' catalogue\_url='". $instance\['catalogue\_url'\] . "'\]" );
283
echo $args\['after\_widget'\];
281
echo esc\_html( $args\['before\_widget'\] );
282
echo do\_shortcode( "\[insert-products catalogue\_id='". sanitize\_text\_field( $instance\['catalogue\_id'\] ) . "' catalogue\_search='popular' product\_count='". sanitize\_text\_field( $instance\['product\_count'\] ) . "' catalogue\_url='". sanitize\_text\_field( $instance\['catalogue\_url'\] ) . "'\]" );
283
echo esc\_html( $args\['after\_widget'\] );
284
284
}
285
285
…
…
298
298
299
299
<p>
300
<label for="<?php echo $this->get\_field\_id( 'catalogue\_id' ); ?>"><?php \_e( 'Catalog ID:', 'ultimate-product-catalogue' ); ?></label>
301
<input class="widefat" id="<?php echo $this->get\_field\_id( 'catalogue\_id' ); ?>" name="<?php echo $this->get\_field\_name( 'catalogue\_id' ); ?>" type="text" value="<?php echo esc\_attr( $catalogue\_id ); ?>">
302
</p>
303
<p>
304
<label for="<?php echo $this->get\_field\_id( 'product\_count' ); ?>"><?php \_e( 'Number of products to display:', 'ultimate-product-catalogue' ); ?></label>
305
<input class="widefat" id="<?php echo $this->get\_field\_id( 'product\_count' ); ?>" name="<?php echo $this->get\_field\_name( 'product\_count' ); ?>" type="text" value="<?php echo esc\_attr( $product\_count ); ?>">
306
</p>
307
<p>
308
<label for="<?php echo $this->get\_field\_id( 'catalogue\_url' ); ?>"><?php \_e( 'The URL of your catalog:', 'ultimate-product-catalogue' ); ?></label>
309
<input class="widefat" id="<?php echo $this->get\_field\_id( 'catalogue\_url' ); ?>" name="<?php echo $this->get\_field\_name( 'catalogue\_url' ); ?>" type="text" value="<?php echo esc\_attr( $catalogue\_url ); ?>">
300
<label for="<?php echo esc\_attr( $this->get\_field\_id( 'catalogue\_id' ) ); ?>"><?php \_e( 'Catalog ID:', 'ultimate-product-catalogue' ); ?></label>
301
<input class="widefat" id="<?php echo esc\_attr( $this->get\_field\_id( 'catalogue\_id' ) ); ?>" name="<?php echo esc\_attr( $this->get\_field\_name( 'catalogue\_id' ) ); ?>" type="text" value="<?php echo esc\_attr( $catalogue\_id ); ?>">
302
</p>
303
<p>
304
<label for="<?php echo esc\_attr( $this->get\_field\_id( 'product\_count' ) ); ?>"><?php \_e( 'Number of products to display:', 'ultimate-product-catalogue' ); ?></label>
305
<input class="widefat" id="<?php echo esc\_attr( $this->get\_field\_id( 'product\_count' ) ); ?>" name="<?php echo esc\_attr( $this->get\_field\_name( 'product\_count' ) ); ?>" type="text" value="<?php echo esc\_attr( $product\_count ); ?>">
306
</p>
307
<p>
308
<label for="<?php echo esc\_attr( $this->get\_field\_id( 'catalogue\_url' ) ); ?>"><?php \_e( 'The URL of your catalog:', 'ultimate-product-catalogue' ); ?></label>
309
<input class="widefat" id="<?php echo esc\_attr( $this->get\_field\_id( 'catalogue\_url' ) ); ?>" name="<?php echo esc\_attr( $this->get\_field\_name( 'catalogue\_url' ) ); ?>" type="text" value="<?php echo esc\_attr( $catalogue\_url ); ?>">
310
310
</p>
311
311
…
…
352
352
public function widget( $args, $instance ) {
353
353
354
echo $args\['before\_widget'\];
354
echo esc\_html( $args\['before\_widget'\] );
355
355
echo "<div class='ewd-upcp-product-search-widget-div'>";
356
echo "<form method='post' action='" . add\_query\_arg( 'overview\_mode', 'None', $instance\['catalogue\_url'\] ) . "'>";
357
echo "<div class='ewd-upcp-widget-search-label'>" . $instance\['search\_label'\] . "</div>";
358
echo "<div class='ewd-upcp-widget-search-input'><input type='text' name='prod\_name' placeholder='" . $instance\['search\_placeholder'\] . "'/></div>";
359
echo "<input type='submit' class='ewd-upcp-widget-submit' name='upcp\_widget\_search\_submit' value='" . $instance\['search\_label'\] . "' />";
356
echo "<form method='post' action='" . esc\_attr( add\_query\_arg( 'overview\_mode', 'None', $instance\['catalogue\_url'\] ) ) . "'>";
357
echo "<div class='ewd-upcp-widget-search-label'>" . sanitize\_text\_field( $instance\['search\_label'\] ) . "</div>";
358
echo "<div class='ewd-upcp-widget-search-input'><input type='text' name='prod\_name' placeholder='" . esc\_attr( $instance\['search\_placeholder'\] ) . "'/></div>";
359
echo "<input type='submit' class='ewd-upcp-widget-submit' name='upcp\_widget\_search\_submit' value='" . esc\_attr( $instance\['search\_label'\] ) . "' />";
360
360
echo "</form>";
361
361
echo "</div>";
362
echo $args\['after\_widget'\];
362
echo esc\_html( $args\['after\_widget'\] );
363
363
}
364
364
…
…
377
377
378
378
<p>
379
<label for="<?php echo $this->get\_field\_id( 'search\_label' ); ?>"><?php \_e( 'Catalog ID:', 'ultimate-product-catalogue' ); ?></label>
380
<input class="widefat" id="<?php echo $this->get\_field\_id( 'search\_label' ); ?>" name="<?php echo $this->get\_field\_name( 'search\_label' ); ?>" type="text" value="<?php echo esc\_attr( $search\_label ); ?>">
381
</p>
382
<p>
383
<label for="<?php echo $this->get\_field\_id( 'search\_placeholder' ); ?>"><?php \_e( 'Number of products to display:', 'ultimate-product-catalogue' ); ?></label>
384
<input class="widefat" id="<?php echo $this->get\_field\_id( 'search\_placeholder' ); ?>" name="<?php echo $this->get\_field\_name( 'search\_placeholder' ); ?>" type="text" value="<?php echo esc\_attr( $search\_placeholder ); ?>">
385
</p>
386
<p>
387
<label for="<?php echo $this->get\_field\_id( 'catalogue\_url' ); ?>"><?php \_e( 'The URL of your catalog:', 'ultimate-product-catalogue' ); ?></label>
388
<input class="widefat" id="<?php echo $this->get\_field\_id( 'catalogue\_url' ); ?>" name="<?php echo $this->get\_field\_name( 'catalogue\_url' ); ?>" type="text" value="<?php echo esc\_attr( $catalogue\_url ); ?>">
379
<label for="<?php echo esc\_attr( $this->get\_field\_id( 'search\_label' ) ); ?>"><?php \_e( 'Catalog ID:', 'ultimate-product-catalogue' ); ?></label>
380
<input class="widefat" id="<?php echo esc\_attr( $this->get\_field\_id( 'search\_label' ) ); ?>" name="<?php echo esc\_attr( $this->get\_field\_name( 'search\_label' ) ); ?>" type="text" value="<?php echo esc\_attr( $search\_label ); ?>">
381
</p>
382
<p>
383
<label for="<?php echo esc\_attr( $this->get\_field\_id( 'search\_placeholder' ) ); ?>"><?php \_e( 'Number of products to display:', 'ultimate-product-catalogue' ); ?></label>
384
<input class="widefat" id="<?php echo esc\_attr( $this->get\_field\_id( 'search\_placeholder' ) ); ?>" name="<?php echo esc\_attr( $this->get\_field\_name( 'search\_placeholder' ) ); ?>" type="text" value="<?php echo esc\_attr( $search\_placeholder ); ?>">
385
</p>
386
<p>
387
<label for="<?php echo esc\_attr( $this->get\_field\_id( 'catalogue\_url' ) ); ?>"><?php \_e( 'The URL of your catalog:', 'ultimate-product-catalogue' ); ?></label>
388
<input class="widefat" id="<?php echo esc\_attr( $this->get\_field\_id( 'catalogue\_url' ) ); ?>" name="<?php echo esc\_attr( $this->get\_field\_name( 'catalogue\_url' ) ); ?>" type="text" value="<?php echo esc\_attr( $catalogue\_url ); ?>">
389
389
</p>
390
390
ultimate-product-catalogue/trunk/includes/template-functions.php
r2638260
r2650578
180
180
181
181
if ( count( $classes ) ) {
182
return ' class="' . join( ' ', $classes ) . '"';
182
return ' class="' . esc\_attr( join( ' ', $classes ) ) . '"';
183
183
}
184
184
}
ultimate-product-catalogue/trunk/readme.txt
r2638260
r2650578
5
5
Requires at least: 4.0.0
6
6
Tested up to: 5.8
7
Stable tag: 5.0.26
7
8
License: GPLv3
8
9
License URI: https://www.gnu.org/licenses/gpl-3.0.html
…
…
332
333
333
334
\== Changelog ==
335
336
\= 5.0.26 (2021-12-29) =
337
\- Updating nonce and authorization checks for AJAX calls.
338
\- Updating sanitizing and escaping.
334
339
335
340
\= 5.0.25 (2021-12-01) =
ultimate-product-catalogue/trunk/ultimate-product-catalogue.php
r2638260
r2650578
8
8
Terms and Conditions: https://www.etoilewebdesign.com/plugin-terms-and-conditions/
9
9
Text Domain: ultimate-product-catalogue
10
Version: 5.0.25
10
Version: 5.0.26
11
11
\*/
12
12
…
…
48
48
define( 'EWD\_UPCP\_PLUGIN\_FNAME', plugin\_basename( \_\_FILE\_\_ ) );
49
49
define( 'EWD\_UPCP\_TEMPLATE\_DIR', 'ewd-upcp-templates' );
50
define( 'EWD\_UPCP\_VERSION', '5.0.23' );
50
define( 'EWD\_UPCP\_VERSION', '5.0.26' );
51
51
52
52
define( 'EWD\_UPCP\_PRODUCT\_POST\_TYPE', 'upcp\_product' );
…
…
72
72
require\_once( EWD\_UPCP\_PLUGIN\_DIR . '/includes/Dashboard.class.php' );
73
73
require\_once( EWD\_UPCP\_PLUGIN\_DIR . '/includes/DeactivationSurvey.class.php' );
74
require\_once( EWD\_UPCP\_PLUGIN\_DIR . '/includes/Helper.class.php' );
74
75
require\_once( EWD\_UPCP\_PLUGIN\_DIR . '/includes/Export.class.php' );
75
76
require\_once( EWD\_UPCP\_PLUGIN\_DIR . '/includes/Import.class.php' );
…
…
143
144
144
145
add\_action( 'admin\_notices', array( $this, 'display\_header\_area' ) );
146
add\_action( 'admin\_notices', array( $this, 'maybe\_display\_helper\_notice' ) );
145
147
146
148
add\_action( 'admin\_enqueue\_scripts', array( $this, 'enqueue\_admin\_assets' ), 10, 1 );
…
…
150
152
151
153
add\_filter( 'plugin\_action\_links', array( $this, 'plugin\_action\_links' ), 10, 2);
154
155
add\_action( 'wp\_ajax\_ewd\_upcp\_hide\_helper\_notice', array( $this, 'hide\_helper\_notice' ) );
152
156
}
153
157
…
…
259
263
global $post;
260
264
265
wp\_enqueue\_script( 'ewd-upcp-helper-notice', EWD\_UPCP\_PLUGIN\_URL . '/assets/js/ewd-upcp-helper-install-notice.js', array( 'jquery' ), EWD\_UPCP\_VERSION, true );
266
wp\_localize\_script(
267
'ewd-upcp-helper-notice',
268
'ewd\_upcp\_helper\_notice',
269
array( 'nonce' => wp\_create\_nonce( 'ewd-upcp-helper-notice' ) )
270
);
271
272
wp\_enqueue\_style( 'ewd-upcp-helper-notice', EWD\_UPCP\_PLUGIN\_URL . '/assets/css/ewd-upcp-helper-install-notice.css', array(), EWD\_UPCP\_VERSION );
273
261
274
$post\_type = is\_object( $post ) ? $post->post\_type : '';
262
275
263
276
$screen = get\_current\_screen();
264
277
265
// Return if not one of the UASP post types, we're not on a post-type page, or we're not on the settings or widget pages
266
if ( $hook != 'upcp\_product\_page\_ewd-upcp-settings' and $hook != 'upcp\_product\_page\_ewd-upcp-import' and $hook != 'upcp\_product\_page\_ewd-upcp-export' and ( empty( $screen->post\_type ) or $screen->post\_type != 'upcp\_product' ) and ( empty( $screen->post\_type ) or $screen->post\_type != 'upcp\_catalog' ) and $screen->id != 'upcp\_product\_page\_ewd-upcp-dashboard' and $screen->id != 'upcp\_product\_page\_ewd-upcp-custom-fields' ) { return; }
267
268
wp\_enqueue\_media();
278
// Return if not one of the UASP post types, we're not on a post-type page, or we're not on the settings or widget pages
279
$candidates = array(
280
'upcp\_product\_page\_ewd-upcp-dashboard',
281
282
'edit-upcp\_product',
283
'upcp\_product',
284
285
'edit-upcp\_catalog',
286
'upcp\_catalog',
287
288
'edit-upcp-product-category',
289
'edit-upcp-product-tag',
290
'upcp\_product\_page\_ewd-upcp-export',
291
'upcp\_product\_page\_ewd-upcp-import',
292
'upcp\_product\_page\_ewd-upcp-custom-fields',
293
'upcp\_product\_page\_ewd-upcp-product-page',
294
'upcp\_product\_page\_ewd-upcp-settings'
295
);
296
297
if ( ! in\_array( $hook, $candidates )
298
&& ( empty( $screen->post\_type ) or ! in\_array ( $screen->post\_type, $candidates ) )
299
and ! in\_array( $screen->id, $candidates )
300
) {
301
return;
302
}
303
304
wp\_enqueue\_media();
269
305
270
306
wp\_enqueue\_style( 'ewd-upcp-admin-css', EWD\_UPCP\_PLUGIN\_URL . '/assets/css/ewd-upcp-admin.css', array(), EWD\_UPCP\_VERSION );
…
…
279
315
280
316
$args = array(
317
'nonce' => wp\_create\_nonce( 'ewd-upcp-admin-js' ),
281
318
'product\_add' => ( $this->permissions->check\_permission( 'premium' ) or sizeof( $products ) < 100 ),
282
319
);
…
…
301
338
wp\_register\_script( 'ewd-upcp-gridster', EWD\_UPCP\_PLUGIN\_URL . '/assets/js/jquery.gridster.js', array( 'jquery' ), EWD\_UPCP\_VERSION, true );
302
339
wp\_register\_script( 'ewd-upcp-js', EWD\_UPCP\_PLUGIN\_URL . '/assets/js/ewd-upcp.js', array( 'jquery', 'jquery-ui-slider' ), EWD\_UPCP\_VERSION, true );
340
341
wp\_localize\_script(
342
'ewd-upcp-js',
343
'ewd\_upcp\_js',
344
array(
345
'nonce' => wp\_create\_nonce( 'ewd-upcp-js' )
346
)
347
);
303
348
}
304
349
…
…
475
520
}
476
521
522
public function maybe\_display\_helper\_notice() {
523
global $ewd\_upcp\_controller;
524
525
if ( empty( $ewd\_upcp\_controller->permissions->check\_permission( 'premium' ) ) ) { return; }
526
527
if ( is\_plugin\_active( 'ewd-premium-helper/ewd-premium-helper.php' ) ) { return; }
528
529
if ( get\_transient( 'ewd-helper-notice-dismissed' ) ) { return; }
530
531
?>
532
533
<div class='notice notice-error is-dismissible ewd-upcp-helper-install-notice'>
534
535
<div class='ewd-upcp-helper-install-notice-img'>
536
<img src='<?php echo EWD\_UPCP\_PLUGIN\_URL . '/lib/simple-admin-pages/img/options-asset-exclamation.png' ; ?>' />
537
</div>
538
539
<div class='ewd-upcp-helper-install-notice-txt'>
540
<?php \_e( 'You\\'re using the Ultimate Product Catalog premium version, but the premium helper plugin is not active.', 'ultimate-product-catalogue' ); ?>
541
<br />
542
<?php echo sprintf( \_\_( 'Please re-activate the helper plugin, or <a target=\\'\_blank\\' href=\\'%s\\'>download and install it</a> if the plugin is no longer installed to ensure continued access to the premium features of the plugin.', 'ultimate-product-catalogue' ), 'https://www.etoilewebdesign.com/2021/12/11/requiring-premium-helper-plugin/' ); ?>
543
</div>
544
545
<div class='ewd-upcp-clear'></div>
546
547
</div>
548
549
<?php
550
}
551
552
public function hide\_helper\_notice() {
553
global $ewd\_upcp\_controller;
554
555
// Authenticate request
556
if (
557
! check\_ajax\_referer( 'ewd-upcp-helper-notice', 'nonce' )
558
||
559
! current\_user\_can( $ewd\_upcp\_controller->settings->get\_setting( 'access-role' ) )
560
) {
561
ewdUpcpHelper::admin\_nopriv\_ajax();
562
}
563
564
set\_transient( 'ewd-helper-notice-dismissed', true, 3600\*24\*7 );
565
566
die();
567
}
568
477
569
}
478
570
} // endif;
ultimate-product-catalogue/trunk/views/View.class.php
r2638260
r2650578
158
158
global $ewd\_upcp\_controller;
159
159
160
echo '<style>';
161
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-action-button-background-color' ) != '' ) { echo '.ewd-upcp-product-action-button { border-color: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-action-button-background-color' ) . ' !important; color: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-action-button-background-color' ) . ' !important; } .ewd-upcp-product-action-button:hover { background: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-action-button-background-color' ) . ' !important; }'; }
162
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-action-button-text-color' ) != '' ) { echo '.ewd-upcp-product-action-button:hover { color: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-action-button-text-color' ) . ' !important; }'; }
163
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-compare-button-background-color' ) != '' ) { echo '.ewd-upcp-product-comparison-button { background: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-compare-button-background-color' ) . ' !important; }'; }
164
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-compare-button-text-color' ) != '' ) { echo '.ewd-upcp-product-comparison-button { color: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-compare-button-text-color' ) . ' !important; }'; }
165
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-compare-button-clicked-background-color' ) != '' ) { echo '.ewd-upcp-product-comparison-button.ewd-upcp-comparison-clicked { background: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-compare-button-clicked-background-color' ) . ' !important; }'; }
166
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-compare-button-clicked-text-color' ) != '' ) { echo '.ewd-upcp-product-comparison-button.ewd-upcp-comparison-clicked { color: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-compare-button-clicked-text-color' ) . ' !important; }'; }
167
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-compare-button-font-size' ) != '' ) { echo '.ewd-upcp-product-comparison-button span { font-size: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-compare-button-font-size' ) . ' !important; }'; }
168
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-sale-button-background-color' ) != '' ) { echo '.ewd-upcp-sale-price { background: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-sale-button-background-color' ) . ' !important; }'; }
169
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-sale-button-text-color' ) != '' ) { echo '.ewd-upcp-sale-price { color: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-sale-button-text-color' ) . ' !important; }'; }
170
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-sale-button-font-size' ) != '' ) { echo '.ewd-upcp-sale-price span { font-size: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-compare-button-font-size' ) . ' !important; }'; }
171
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-product-comparison-title-font-color' ) != '' ) { echo '.ewd-upcp-product-comparison-product a { color: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-product-comparison-title-font-color' ) . ' !important; }'; }
172
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-product-comparison-title-font-size' ) != '' ) { echo '.ewd-upcp-product-comparison-product a { font-size: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-product-comparison-title-font-size' ) . ' !important; }'; }
173
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-product-comparison-price-font-size' ) != '' ) { echo '.ewd-upcp-product-comparison-price { font-size: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-product-comparison-price-font-size' ) . ' !important; }'; }
174
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-product-comparison-price-font-color' ) != '' ) { echo '.ewd-upcp-product-comparison-price { color: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-product-comparison-price-font-color' ) . ' !important; }'; }
175
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-product-comparison-price-background-color' ) != '' ) { echo '.ewd-upcp-product-comparison-price { background: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-product-comparison-price-background-color' ) . ' !important; }'; }
176
177
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-thumbnail-view-image-border-color' ) != '' ) { echo '.ewd-upcp-catalog-product-thumbnail-image-div { border: 5px solid ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-thumbnail-view-image-border-color' ) . ' !important; }'; }
178
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-thumbnail-view-box-min-height' ) != '' ) { echo '.ewd-upcp-catalog-product-thumbnail { min-height: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-thumbnail-view-box-min-height' ) . 'px !important; }'; }
179
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-thumbnail-view-box-max-height' ) != '' ) { echo '.ewd-upcp-catalog-product-thumbnail { max-height: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-thumbnail-view-box-max-height' ) . 'px !important; }'; }
180
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-thumbnail-view-box-padding' ) != '' ) { echo '.ewd-upcp-catalog-main-block .ewd-upcp-catalog-product-thumbnail { padding: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-thumbnail-view-box-padding' ) . 'px !important; }'; }
181
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-thumbnail-view-border-color' ) != '' ) { echo '.ewd-upcp-catalog-main-block .ewd-upcp-catalog-product-thumbnail, .ewd-upcp-catalog-main-block .ewd-upcp-catalog-product-thumbnail .ewd-upcp-product-action-button { border-color: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-thumbnail-view-border-color' ) . ' !important; }'; }
182
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-thumbnail-view-title-font' ) != '' ) { echo '.ewd-upcp-catalog-product-thumbnail-body-div a { font-family: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-thumbnail-view-title-font' ) . ' !important; }'; }
183
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-thumbnail-view-title-font-size' ) != '' ) { echo '.ewd-upcp-catalog-product-thumbnail-body-div a { font-size: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-thumbnail-view-title-font-size' ) . ' !important; }'; }
184
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-thumbnail-view-title-font-color' ) != '' ) { echo '.ewd-upcp-catalog-product-thumbnail-body-div a { color: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-thumbnail-view-title-font-color' ) . ' !important; }'; }
185
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-thumbnail-view-price-font' ) != '' ) { echo '.ewd-upcp-catalog-product-thumbnail .ewd-upcp-catalog-product-price { font-family: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-thumbnail-view-price-font' ) . ' !important; }'; }
186
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-thumbnail-view-price-font-size' ) != '' ) { echo '.ewd-upcp-catalog-product-thumbnail .ewd-upcp-catalog-product-price { font-size: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-thumbnail-view-price-font-size' ) . ' !important; }'; }
187
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-thumbnail-view-price-font-color' ) != '' ) { echo '.ewd-upcp-catalog-product-thumbnail .ewd-upcp-catalog-product-price { color: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-thumbnail-view-price-font-color' ) . ' !important; }'; }
188
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-thumbnail-view-background-color' ) != '' ) { echo '.ewd-upcp-catalog-product-thumbnail { background: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-thumbnail-view-background-color' ) . ' !important; }'; }
189
190
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-list-view-image-border-color' ) != '' ) { echo '.ewd-upcp-catalog-product-list-image-div { border: 5px solid ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-list-view-image-border-color' ) . ' !important; }'; }
191
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-list-view-box-border-color' ) != '' ) { echo '.ewd-upcp-catalog-product-list-content { border: 5px solid ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-list-view-box-border-color' ) . ' !important; }'; }
192
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-list-view-box-padding' ) != '' ) { echo '.ewd-upcp-catalog-product-list-content { padding: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-list-view-box-padding' ) . 'px !important; }'; }
193
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-list-view-box-margin-top' ) != '' ) { echo '.ewd-upcp-catalog-product-list-content { margin-top: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-list-view-box-margin-top' ) . 'px !important; }'; }
194
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-list-view-title-font' ) != '' ) { echo '.ewd-upcp-catalog-product-list a.ewd-upcp-product-title { font-family: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-list-view-title-font' ) . ' !important; }'; }
195
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-list-view-title-font-size' ) != '' ) { echo '.ewd-upcp-catalog-product-list a.ewd-upcp-product-title { font-size: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-list-view-title-font-size' ) . ' !important; }'; }
196
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-list-view-title-font-color' ) != '' ) { echo '.ewd-upcp-catalog-product-list a.ewd-upcp-product-title { color: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-list-view-title-font-color' ) . ' !important; }'; }
197
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-list-view-price-font' ) != '' ) { echo '.ewd-upcp-catalog-product-list .ewd-upcp-catalog-product-price { font-family: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-list-view-price-font' ) . ' !important; }'; }
198
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-list-view-price-font-size' ) != '' ) { echo '.ewd-upcp-catalog-product-list .ewd-upcp-catalog-product-price { font-size: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-list-view-price-font-size' ) . ' !important; }'; }
199
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-list-view-price-font-color' ) != '' ) { echo '.ewd-upcp-catalog-product-list .ewd-upcp-catalog-product-price { color: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-list-view-price-font-color' ) . ' !important; }'; }
200
201
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-detail-view-image-border-color' ) != '' ) { echo '.ewd-upcp-catalog-product-detail-image-div img { border: 5px solid ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-detail-view-image-border-color' ) . ' !important; }'; }
202
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-detail-view-box-padding' ) != '' ) { echo '.ewd-upcp-catalog-main-block .ewd-upcp-catalog-product-detail { padding: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-detail-view-box-padding' ) . 'px !important; }'; }
203
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-detail-view-box-margin' ) != '' ) { echo '.ewd-upcp-catalog-product-detail { margin-top: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-detail-view-box-margin' ) . 'px !important; }'; }
204
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-detail-view-box-background-color' ) != '' ) { echo '.ewd-upcp-catalog-product-detail { background: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-detail-view-box-background-color' ) . ' !important; }'; }
205
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-detail-view-border-color' ) != '' ) { echo '.ewd-upcp-catalog-main-block .ewd-upcp-catalog-product-detail, .ewd-upcp-catalog-main-block .ewd-upcp-catalog-product-detail-mid-div, .ewd-upcp-catalog-main-block .ewd-upcp-catalog-product-detail .ewd-upcp-product-action-button { border-color: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-detail-view-border-color' ) . ' !important; }'; }
206
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-detail-view-title-font' ) != '' ) { echo '.ewd-upcp-catalog-product-detail-mid-div a.ewd-upcp-product-title { font-family: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-detail-view-title-font' ) . ' !important; }'; }
207
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-detail-view-title-font-size' ) != '' ) { echo '.ewd-upcp-catalog-product-detail-mid-div a.ewd-upcp-product-title { font-size: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-detail-view-title-font-size' ) . ' !important; }'; }
208
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-detail-view-title-font-color' ) != '' ) { echo '.ewd-upcp-catalog-product-detail-mid-div a.ewd-upcp-product-title { color: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-detail-view-title-font-color' ) . ' !important; }'; }
209
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-detail-view-price-font' ) != '' ) { echo '.ewd-upcp-catalog-product-detail-end-div .ewd-upcp-catalog-product-price { font-family: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-detail-view-price-font' ) . ' !important; }'; }
210
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-detail-view-price-font-size' ) != '' ) { echo '.ewd-upcp-catalog-product-detail-end-div .ewd-upcp-catalog-product-price { font-size: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-detail-view-price-font-size' ) . ' !important; }'; }
211
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-detail-view-price-font-color' ) != '' ) { echo '.ewd-upcp-catalog-product-detail-end-div .ewd-upcp-catalog-product-price { color: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-detail-view-price-font-color' ) . ' !important; }'; }
212
213
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-sidebar-title-hover' ) == 'underline' ) { echo '.ewd-upcp-catalog-sidebar-sort > span:hover, .ewd-upcp-catalog-sidebar-search > span:hover, .ewd-upcp-catalog-sidebar-price-filter > span:hover, .ewd-upcp-catalog-sidebar-title:hover { text-decoration: underline !important; }'; }
214
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-sidebar-header-font' ) != '' ) { echo '.ewd-upcp-catalog-sidebar-sort > span, .ewd-upcp-catalog-sidebar-search > span, .ewd-upcp-catalog-sidebar-price-filter > span, .ewd-upcp-catalog-sidebar-title { font-family: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-sidebar-header-font' ) . ' !important; }'; }
215
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-sidebar-header-font-size' ) != '' ) { echo '.ewd-upcp-catalog-sidebar-sort > span, .ewd-upcp-catalog-sidebar-search > span, .ewd-upcp-catalog-sidebar-price-filter > span, .ewd-upcp-catalog-sidebar-title { font-size: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-sidebar-header-font-size' ) . ' !important; }'; }
216
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-sidebar-header-font-color' ) != '' ) { echo '.ewd-upcp-catalog-sidebar-sort > span, .ewd-upcp-catalog-sidebar-search > span, .ewd-upcp-catalog-sidebar-price-filter > span, .ewd-upcp-catalog-sidebar-title { color: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-sidebar-header-font-color' ) . ' !important; }'; }
217
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-sidebar-header-font-weight' ) != '' ) { echo '.ewd-upcp-catalog-sidebar-sort > span, .ewd-upcp-catalog-sidebar-search > span, .ewd-upcp-catalog-sidebar-price-filter > span, .ewd-upcp-catalog-sidebar-title { font-weight: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-sidebar-header-font-weight' ) . ' !important; }'; }
218
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-sidebar-checkbox-font' ) != '' ) { echo '.ewd-upcp-catalog-sidebar-content label { font-family: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-sidebar-checkbox-font' ) . ' !important; }'; }
219
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-sidebar-checkbox-font-size' ) != '' ) { echo '.ewd-upcp-catalog-sidebar-content label { font-size: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-sidebar-checkbox-font-size' ) . ' !important; }'; }
220
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-sidebar-checkbox-font-color' ) != '' ) { echo '.ewd-upcp-catalog-sidebar-content label { color: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-sidebar-checkbox-font-color' ) . ' !important; }'; }
221
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-sidebar-checkbox-font-weight' ) != '' ) { echo '.ewd-upcp-catalog-sidebar-content label { font-weight: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-sidebar-checkbox-font-weight' ) . ' !important; }'; }
222
223
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-breadcrumbs-font' ) != '' ) { echo '.ewd-upcp-single-product-breadcrumb-link a { font-family: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-breadcrumbs-font' ) . ' !important; }'; }
224
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-breadcrumbs-font-size' ) != '' ) { echo '.ewd-upcp-single-product-breadcrumb-link a { font-size: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-breadcrumbs-font-size' ) . ' !important; }'; }
225
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-breadcrumbs-font-color' ) != '' ) { echo '.ewd-upcp-single-product-breadcrumb-link a { color: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-breadcrumbs-font-color' ) . ' !important; }'; }
226
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-breadcrumbs-font-hover-color' ) != '' ) { echo '.ewd-upcp-single-product-breadcrumb-link a:hover { color: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-breadcrumbs-font-hover-color' ) . ' !important; }'; }
227
228
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-pagination-background-color' ) != '' ) { echo '.ewd-upcp-pagination .pagination-links a { background: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-pagination-background-color' ) . ' !important; }'; }
229
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-pagination-text-color' ) != '' ) { echo '.ewd-upcp-pagination .pagination-links a { color: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-pagination-text-color' ) . ' !important; }'; }
230
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-pagination-background-color-hover' ) != '' ) { echo '.ewd-upcp-pagination .pagination-links a:hover { background: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-pagination-background-color-hover' ) . ' !important; }'; }
231
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-pagination-text-color-hover' ) != '' ) { echo '.ewd-upcp-pagination .pagination-links a:hover { color: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-pagination-text-color-hover' ) . ' !important; }'; }
232
233
echo '</style>';
160
$css = '';
161
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-action-button-background-color' ) != '' ) { $css .= '.ewd-upcp-product-action-button { border-color: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-action-button-background-color' ) . ' !important; color: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-action-button-background-color' ) . ' !important; } .ewd-upcp-product-action-button:hover { background: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-action-button-background-color' ) . ' !important; }'; }
162
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-action-button-text-color' ) != '' ) { $css .= '.ewd-upcp-product-action-button:hover { color: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-action-button-text-color' ) . ' !important; }'; }
163
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-compare-button-background-color' ) != '' ) { $css .= '.ewd-upcp-product-comparison-button { background: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-compare-button-background-color' ) . ' !important; }'; }
164
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-compare-button-text-color' ) != '' ) { $css .= '.ewd-upcp-product-comparison-button { color: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-compare-button-text-color' ) . ' !important; }'; }
165
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-compare-button-clicked-background-color' ) != '' ) { $css .= '.ewd-upcp-product-comparison-button.ewd-upcp-comparison-clicked { background: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-compare-button-clicked-background-color' ) . ' !important; }'; }
166
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-compare-button-clicked-text-color' ) != '' ) { $css .= '.ewd-upcp-product-comparison-button.ewd-upcp-comparison-clicked { color: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-compare-button-clicked-text-color' ) . ' !important; }'; }
167
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-compare-button-font-size' ) != '' ) { $css .= '.ewd-upcp-product-comparison-button span { font-size: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-compare-button-font-size' ) . ' !important; }'; }
168
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-sale-button-background-color' ) != '' ) { $css .= '.ewd-upcp-sale-price { background: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-sale-button-background-color' ) . ' !important; }'; }
169
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-sale-button-text-color' ) != '' ) { $css .= '.ewd-upcp-sale-price { color: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-sale-button-text-color' ) . ' !important; }'; }
170
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-sale-button-font-size' ) != '' ) { $css .= '.ewd-upcp-sale-price span { font-size: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-compare-button-font-size' ) . ' !important; }'; }
171
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-product-comparison-title-font-color' ) != '' ) { $css .= '.ewd-upcp-product-comparison-product a { color: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-product-comparison-title-font-color' ) . ' !important; }'; }
172
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-product-comparison-title-font-size' ) != '' ) { $css .= '.ewd-upcp-product-comparison-product a { font-size: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-product-comparison-title-font-size' ) . ' !important; }'; }
173
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-product-comparison-price-font-size' ) != '' ) { $css .= '.ewd-upcp-product-comparison-price { font-size: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-product-comparison-price-font-size' ) . ' !important; }'; }
174
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-product-comparison-price-font-color' ) != '' ) { $css .= '.ewd-upcp-product-comparison-price { color: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-product-comparison-price-font-color' ) . ' !important; }'; }
175
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-product-comparison-price-background-color' ) != '' ) { $css .= '.ewd-upcp-product-comparison-price { background: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-product-comparison-price-background-color' ) . ' !important; }'; }
176
177
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-thumbnail-view-image-border-color' ) != '' ) { $css .= '.ewd-upcp-catalog-product-thumbnail-image-div { border: 5px solid ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-thumbnail-view-image-border-color' ) . ' !important; }'; }
178
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-thumbnail-view-box-min-height' ) != '' ) { $css .= '.ewd-upcp-catalog-product-thumbnail { min-height: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-thumbnail-view-box-min-height' ) . 'px !important; }'; }
179
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-thumbnail-view-box-max-height' ) != '' ) { $css .= '.ewd-upcp-catalog-product-thumbnail { max-height: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-thumbnail-view-box-max-height' ) . 'px !important; }'; }
180
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-thumbnail-view-box-padding' ) != '' ) { $css .= '.ewd-upcp-catalog-main-block .ewd-upcp-catalog-product-thumbnail { padding: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-thumbnail-view-box-padding' ) . 'px !important; }'; }
181
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-thumbnail-view-border-color' ) != '' ) { $css .= '.ewd-upcp-catalog-main-block .ewd-upcp-catalog-product-thumbnail, .ewd-upcp-catalog-main-block .ewd-upcp-catalog-product-thumbnail .ewd-upcp-product-action-button { border-color: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-thumbnail-view-border-color' ) . ' !important; }'; }
182
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-thumbnail-view-title-font' ) != '' ) { $css .= '.ewd-upcp-catalog-product-thumbnail-body-div a { font-family: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-thumbnail-view-title-font' ) . ' !important; }'; }
183
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-thumbnail-view-title-font-size' ) != '' ) { $css .= '.ewd-upcp-catalog-product-thumbnail-body-div a { font-size: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-thumbnail-view-title-font-size' ) . ' !important; }'; }
184
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-thumbnail-view-title-font-color' ) != '' ) { $css .= '.ewd-upcp-catalog-product-thumbnail-body-div a { color: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-thumbnail-view-title-font-color' ) . ' !important; }'; }
185
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-thumbnail-view-price-font' ) != '' ) { $css .= '.ewd-upcp-catalog-product-thumbnail .ewd-upcp-catalog-product-price { font-family: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-thumbnail-view-price-font' ) . ' !important; }'; }
186
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-thumbnail-view-price-font-size' ) != '' ) { $css .= '.ewd-upcp-catalog-product-thumbnail .ewd-upcp-catalog-product-price { font-size: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-thumbnail-view-price-font-size' ) . ' !important; }'; }
187
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-thumbnail-view-price-font-color' ) != '' ) { $css .= '.ewd-upcp-catalog-product-thumbnail .ewd-upcp-catalog-product-price { color: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-thumbnail-view-price-font-color' ) . ' !important; }'; }
188
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-thumbnail-view-background-color' ) != '' ) { $css .= '.ewd-upcp-catalog-product-thumbnail { background: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-thumbnail-view-background-color' ) . ' !important; }'; }
189
190
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-list-view-image-border-color' ) != '' ) { $css .= '.ewd-upcp-catalog-product-list-image-div { border: 5px solid ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-list-view-image-border-color' ) . ' !important; }'; }
191
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-list-view-box-border-color' ) != '' ) { $css .= '.ewd-upcp-catalog-product-list-content { border: 5px solid ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-list-view-box-border-color' ) . ' !important; }'; }
192
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-list-view-box-padding' ) != '' ) { $css .= '.ewd-upcp-catalog-product-list-content { padding: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-list-view-box-padding' ) . 'px !important; }'; }
193
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-list-view-box-margin-top' ) != '' ) { $css .= '.ewd-upcp-catalog-product-list-content { margin-top: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-list-view-box-margin-top' ) . 'px !important; }'; }
194
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-list-view-title-font' ) != '' ) { $css .= '.ewd-upcp-catalog-product-list a.ewd-upcp-product-title { font-family: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-list-view-title-font' ) . ' !important; }'; }
195
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-list-view-title-font-size' ) != '' ) { $css .= '.ewd-upcp-catalog-product-list a.ewd-upcp-product-title { font-size: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-list-view-title-font-size' ) . ' !important; }'; }
196
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-list-view-title-font-color' ) != '' ) { $css .= '.ewd-upcp-catalog-product-list a.ewd-upcp-product-title { color: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-list-view-title-font-color' ) . ' !important; }'; }
197
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-list-view-price-font' ) != '' ) { $css .= '.ewd-upcp-catalog-product-list .ewd-upcp-catalog-product-price { font-family: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-list-view-price-font' ) . ' !important; }'; }
198
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-list-view-price-font-size' ) != '' ) { $css .= '.ewd-upcp-catalog-product-list .ewd-upcp-catalog-product-price { font-size: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-list-view-price-font-size' ) . ' !important; }'; }
199
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-list-view-price-font-color' ) != '' ) { $css .= '.ewd-upcp-catalog-product-list .ewd-upcp-catalog-product-price { color: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-list-view-price-font-color' ) . ' !important; }'; }
200
201
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-detail-view-image-border-color' ) != '' ) { $css .= '.ewd-upcp-catalog-product-detail-image-div img { border: 5px solid ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-detail-view-image-border-color' ) . ' !important; }'; }
202
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-detail-view-box-padding' ) != '' ) { $css .= '.ewd-upcp-catalog-main-block .ewd-upcp-catalog-product-detail { padding: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-detail-view-box-padding' ) . 'px !important; }'; }
203
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-detail-view-box-margin' ) != '' ) { $css .= '.ewd-upcp-catalog-product-detail { margin-top: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-detail-view-box-margin' ) . 'px !important; }'; }
204
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-detail-view-box-background-color' ) != '' ) { $css .= '.ewd-upcp-catalog-product-detail { background: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-detail-view-box-background-color' ) . ' !important; }'; }
205
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-detail-view-border-color' ) != '' ) { $css .= '.ewd-upcp-catalog-main-block .ewd-upcp-catalog-product-detail, .ewd-upcp-catalog-main-block .ewd-upcp-catalog-product-detail-mid-div, .ewd-upcp-catalog-main-block .ewd-upcp-catalog-product-detail .ewd-upcp-product-action-button { border-color: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-detail-view-border-color' ) . ' !important; }'; }
206
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-detail-view-title-font' ) != '' ) { $css .= '.ewd-upcp-catalog-product-detail-mid-div a.ewd-upcp-product-title { font-family: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-detail-view-title-font' ) . ' !important; }'; }
207
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-detail-view-title-font-size' ) != '' ) { $css .= '.ewd-upcp-catalog-product-detail-mid-div a.ewd-upcp-product-title { font-size: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-detail-view-title-font-size' ) . ' !important; }'; }
208
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-detail-view-title-font-color' ) != '' ) { $css .= '.ewd-upcp-catalog-product-detail-mid-div a.ewd-upcp-product-title { color: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-detail-view-title-font-color' ) . ' !important; }'; }
209
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-detail-view-price-font' ) != '' ) { $css .= '.ewd-upcp-catalog-product-detail-end-div .ewd-upcp-catalog-product-price { font-family: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-detail-view-price-font' ) . ' !important; }'; }
210
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-detail-view-price-font-size' ) != '' ) { $css .= '.ewd-upcp-catalog-product-detail-end-div .ewd-upcp-catalog-product-price { font-size: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-detail-view-price-font-size' ) . ' !important; }'; }
211
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-detail-view-price-font-color' ) != '' ) { $css .= '.ewd-upcp-catalog-product-detail-end-div .ewd-upcp-catalog-product-price { color: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-detail-view-price-font-color' ) . ' !important; }'; }
212
213
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-sidebar-title-hover' ) == 'underline' ) { $css .= '.ewd-upcp-catalog-sidebar-sort > span:hover, .ewd-upcp-catalog-sidebar-search > span:hover, .ewd-upcp-catalog-sidebar-price-filter > span:hover, .ewd-upcp-catalog-sidebar-title:hover { text-decoration: underline !important; }'; }
214
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-sidebar-header-font' ) != '' ) { $css .= '.ewd-upcp-catalog-sidebar-sort > span, .ewd-upcp-catalog-sidebar-search > span, .ewd-upcp-catalog-sidebar-price-filter > span, .ewd-upcp-catalog-sidebar-title { font-family: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-sidebar-header-font' ) . ' !important; }'; }
215
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-sidebar-header-font-size' ) != '' ) { $css .= '.ewd-upcp-catalog-sidebar-sort > span, .ewd-upcp-catalog-sidebar-search > span, .ewd-upcp-catalog-sidebar-price-filter > span, .ewd-upcp-catalog-sidebar-title { font-size: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-sidebar-header-font-size' ) . ' !important; }'; }
216
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-sidebar-header-font-color' ) != '' ) { $css .= '.ewd-upcp-catalog-sidebar-sort > span, .ewd-upcp-catalog-sidebar-search > span, .ewd-upcp-catalog-sidebar-price-filter > span, .ewd-upcp-catalog-sidebar-title { color: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-sidebar-header-font-color' ) . ' !important; }'; }
217
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-sidebar-header-font-weight' ) != '' ) { $css .= '.ewd-upcp-catalog-sidebar-sort > span, .ewd-upcp-catalog-sidebar-search > span, .ewd-upcp-catalog-sidebar-price-filter > span, .ewd-upcp-catalog-sidebar-title { font-weight: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-sidebar-header-font-weight' ) . ' !important; }'; }
218
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-sidebar-checkbox-font' ) != '' ) { $css .= '.ewd-upcp-catalog-sidebar-content label { font-family: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-sidebar-checkbox-font' ) . ' !important; }'; }
219
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-sidebar-checkbox-font-size' ) != '' ) { $css .= '.ewd-upcp-catalog-sidebar-content label { font-size: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-sidebar-checkbox-font-size' ) . ' !important; }'; }
220
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-sidebar-checkbox-font-color' ) != '' ) { $css .= '.ewd-upcp-catalog-sidebar-content label { color: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-sidebar-checkbox-font-color' ) . ' !important; }'; }
221
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-sidebar-checkbox-font-weight' ) != '' ) { $css .= '.ewd-upcp-catalog-sidebar-content label { font-weight: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-sidebar-checkbox-font-weight' ) . ' !important; }'; }
222
223
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-breadcrumbs-font' ) != '' ) { $css .= '.ewd-upcp-single-product-breadcrumb-link a { font-family: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-breadcrumbs-font' ) . ' !important; }'; }
224
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-breadcrumbs-font-size' ) != '' ) { $css .= '.ewd-upcp-single-product-breadcrumb-link a { font-size: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-breadcrumbs-font-size' ) . ' !important; }'; }
225
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-breadcrumbs-font-color' ) != '' ) { $css .= '.ewd-upcp-single-product-breadcrumb-link a { color: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-breadcrumbs-font-color' ) . ' !important; }'; }
226
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-breadcrumbs-font-hover-color' ) != '' ) { $css .= '.ewd-upcp-single-product-breadcrumb-link a:hover { color: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-breadcrumbs-font-hover-color' ) . ' !important; }'; }
227
228
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-pagination-background-color' ) != '' ) { $css .= '.ewd-upcp-pagination .pagination-links a { background: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-pagination-background-color' ) . ' !important; }'; }
229
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-pagination-text-color' ) != '' ) { $css .= '.ewd-upcp-pagination .pagination-links a { color: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-pagination-text-color' ) . ' !important; }'; }
230
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-pagination-background-color-hover' ) != '' ) { $css .= '.ewd-upcp-pagination .pagination-links a:hover { background: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-pagination-background-color-hover' ) . ' !important; }'; }
231
if ( $ewd\_upcp\_controller->settings->get\_setting( 'styling-pagination-text-color-hover' ) != '' ) { $css .= '.ewd-upcp-pagination .pagination-links a:hover { color: ' . $ewd\_upcp\_controller->settings->get\_setting( 'styling-pagination-text-color-hover' ) . ' !important; }'; }
232
233
if( ! empty( $css ) ) {
234
echo '<style>';
235
echo wp\_strip\_all\_tags( $css );
236
echo '</style>';
237
}
234
238
}
235
239