Version Description
Download this release
Release Info
Code changes from version 1.9.8 to 1.9.9
classes/class.default_data.php
CHANGED
@@ -152,7 +152,7 @@ class WooLentor_Default_Data{
|
|
152 |
</div>
|
153 |
<?php else:?>
|
154 |
<?php echo '<div class="wl-nodata">'.__('No Rating Available','woolentor').'</div>';?>
|
155 |
-
<?php endif;
|
156 |
break;
|
157 |
|
158 |
case 'wl-single-product-image':
|
152 |
</div>
|
153 |
<?php else:?>
|
154 |
<?php echo '<div class="wl-nodata">'.__('No Rating Available','woolentor').'</div>';?>
|
155 |
+
<?php endif;
|
156 |
break;
|
157 |
|
158 |
case 'wl-single-product-image':
|
includes/admin/assets/css/admin_optionspanel.css
CHANGED
@@ -1,5 +1,8 @@
|
|
|
|
|
|
|
|
1 |
h2.element_section_title.margin_0 {
|
2 |
-
|
3 |
}
|
4 |
.woolentor-setting-area h2.nav-tab-wrapper{
|
5 |
position: relative;
|
1 |
+
tr.element_section_title_area {
|
2 |
+
background: #eeeeee;
|
3 |
+
}
|
4 |
h2.element_section_title.margin_0 {
|
5 |
+
margin: 0;
|
6 |
}
|
7 |
.woolentor-setting-area h2.nav-tab-wrapper{
|
8 |
position: relative;
|
includes/admin/include/admin-setting.php
CHANGED
@@ -989,6 +989,14 @@ class Woolentor_Admin_Settings {
|
|
989 |
'class' => 'notification_real'
|
990 |
),
|
991 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
992 |
array(
|
993 |
'name' => 'notification_loadduration',
|
994 |
'label' => __( 'First loading time', 'woolentor' ),
|
@@ -1065,6 +1073,14 @@ class Woolentor_Admin_Settings {
|
|
1065 |
),
|
1066 |
),
|
1067 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1068 |
array(
|
1069 |
'name' => 'notification_limit',
|
1070 |
'label' => __( 'Limit', 'woolentor' ),
|
@@ -1078,6 +1094,15 @@ class Woolentor_Admin_Settings {
|
|
1078 |
'class' => 'notification_real',
|
1079 |
),
|
1080 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1081 |
array(
|
1082 |
'name' => 'notification_uptodate',
|
1083 |
'label' => esc_html__( 'Order Upto', 'woolentor' ),
|
@@ -1104,6 +1129,14 @@ class Woolentor_Admin_Settings {
|
|
1104 |
'class' => 'notification_real',
|
1105 |
),
|
1106 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1107 |
array(
|
1108 |
'name' => 'notification_inanimation',
|
1109 |
'label' => esc_html__( 'Animation In', 'woolentor' ),
|
@@ -1213,6 +1246,32 @@ class Woolentor_Admin_Settings {
|
|
1213 |
),
|
1214 |
),
|
1215 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1216 |
array(
|
1217 |
'name' => 'background_color',
|
1218 |
'label' => esc_html__( 'Background Color', 'woolentor' ),
|
989 |
'class' => 'notification_real'
|
990 |
),
|
991 |
|
992 |
+
array(
|
993 |
+
'name' => 'notification_timing_area_title',
|
994 |
+
'headding'=> esc_html__( 'Notification Timing', 'woolentor' ),
|
995 |
+
'type' => 'title',
|
996 |
+
'size' => 'margin_0 regular',
|
997 |
+
'class' => 'element_section_title_area',
|
998 |
+
),
|
999 |
+
|
1000 |
array(
|
1001 |
'name' => 'notification_loadduration',
|
1002 |
'label' => __( 'First loading time', 'woolentor' ),
|
1073 |
),
|
1074 |
),
|
1075 |
|
1076 |
+
array(
|
1077 |
+
'name' => 'notification_product_display_option_title',
|
1078 |
+
'headding'=> esc_html__( 'Product Query Option', 'woolentor' ),
|
1079 |
+
'type' => 'title',
|
1080 |
+
'size' => 'margin_0 regular',
|
1081 |
+
'class' => 'element_section_title_area notification_real',
|
1082 |
+
),
|
1083 |
+
|
1084 |
array(
|
1085 |
'name' => 'notification_limit',
|
1086 |
'label' => __( 'Limit', 'woolentor' ),
|
1094 |
'class' => 'notification_real',
|
1095 |
),
|
1096 |
|
1097 |
+
array(
|
1098 |
+
'name' => 'showallproduct',
|
1099 |
+
'label' => esc_html__( 'Show/Display all products from each order', 'woolentor' ),
|
1100 |
+
'desc' => esc_html__( 'Enable', 'woolentor' ),
|
1101 |
+
'type' => 'checkbox',
|
1102 |
+
'default' => 'off',
|
1103 |
+
'class'=>'notification_real',
|
1104 |
+
),
|
1105 |
+
|
1106 |
array(
|
1107 |
'name' => 'notification_uptodate',
|
1108 |
'label' => esc_html__( 'Order Upto', 'woolentor' ),
|
1129 |
'class' => 'notification_real',
|
1130 |
),
|
1131 |
|
1132 |
+
array(
|
1133 |
+
'name' => 'notification_animation_area_title',
|
1134 |
+
'headding'=> esc_html__( 'Animation', 'woolentor' ),
|
1135 |
+
'type' => 'title',
|
1136 |
+
'size' => 'margin_0 regular',
|
1137 |
+
'class' => 'element_section_title_area',
|
1138 |
+
),
|
1139 |
+
|
1140 |
array(
|
1141 |
'name' => 'notification_inanimation',
|
1142 |
'label' => esc_html__( 'Animation In', 'woolentor' ),
|
1246 |
),
|
1247 |
),
|
1248 |
|
1249 |
+
array(
|
1250 |
+
'name' => 'notification_style_area_title',
|
1251 |
+
'headding'=> esc_html__( 'Style', 'woolentor' ),
|
1252 |
+
'type' => 'title',
|
1253 |
+
'size' => 'margin_0 regular',
|
1254 |
+
'class' => 'element_section_title_area',
|
1255 |
+
),
|
1256 |
+
|
1257 |
+
array(
|
1258 |
+
'name' => 'notification_width',
|
1259 |
+
'label' => esc_html__( 'Width', 'woolentor' ),
|
1260 |
+
'desc' => esc_html__( 'You can handle the notificaton width.', 'woolentor' ),
|
1261 |
+
'type' => 'text',
|
1262 |
+
'default' => esc_html__( '550px', 'woolentor' ),
|
1263 |
+
'placeholder' => esc_html__( '550px', 'woolentor' ),
|
1264 |
+
),
|
1265 |
+
|
1266 |
+
array(
|
1267 |
+
'name' => 'notification_mobile_width',
|
1268 |
+
'label' => esc_html__( 'Width for mobile', 'woolentor' ),
|
1269 |
+
'desc' => esc_html__( 'You can handle the notificaton width.', 'woolentor' ),
|
1270 |
+
'type' => 'text',
|
1271 |
+
'default' => esc_html__( '90%', 'woolentor' ),
|
1272 |
+
'placeholder' => esc_html__( '90%', 'woolentor' ),
|
1273 |
+
),
|
1274 |
+
|
1275 |
array(
|
1276 |
'name' => 'background_color',
|
1277 |
'label' => esc_html__( 'Background Color', 'woolentor' ),
|
includes/class.sale_notification.php
CHANGED
@@ -15,7 +15,7 @@ class Woolentor_Sale_Notification{
|
|
15 |
|
16 |
function __construct(){
|
17 |
|
18 |
-
add_action('wp_head',[ $this, 'woolentor_ajaxurl' ] );
|
19 |
add_action( 'wp_enqueue_scripts', [ $this, 'woolentor_inline_styles' ] );
|
20 |
|
21 |
// ajax function
|
@@ -52,24 +52,48 @@ class Woolentor_Sale_Notification{
|
|
52 |
$order_items = $order->get_items();
|
53 |
|
54 |
if( !empty( $order_items ) ) {
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
72 |
}
|
|
|
73 |
}
|
74 |
|
75 |
}
|
@@ -124,19 +148,60 @@ class Woolentor_Sale_Notification{
|
|
124 |
$headingcolor = woolentor_get_option( 'heading_color','woolentor_sales_notification_tabs', '#000000' );
|
125 |
$contentcolor = woolentor_get_option( 'content_color','woolentor_sales_notification_tabs', '#7e7e7e' );
|
126 |
$crosscolor = woolentor_get_option( 'cross_color','woolentor_sales_notification_tabs', '#000000' );
|
127 |
-
$
|
128 |
-
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
140 |
wp_add_inline_style( 'woolentor-widgets', $custom_css );
|
141 |
}
|
142 |
|
@@ -180,42 +245,54 @@ class Woolentor_Sale_Notification{
|
|
180 |
outanimation = '<?php echo $outanimation; ?>',
|
181 |
i = 0;
|
182 |
|
183 |
-
|
184 |
-
|
185 |
-
$('.woolentor-notification-content').removeClass(inanimation).addClass(outanimation);
|
186 |
-
i++;
|
187 |
-
}, showing_time );
|
188 |
$.post(
|
189 |
ajaxurl,
|
190 |
data,
|
191 |
function( response ){
|
192 |
-
var
|
193 |
-
if(
|
194 |
-
|
195 |
}
|
196 |
}
|
197 |
);
|
198 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
199 |
|
200 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
201 |
|
|
|
202 |
var interval = parseInt( intervaltime ) + parseInt( showing_time );
|
203 |
-
setInterval(function (
|
204 |
-
if( i ==
|
205 |
|
206 |
-
|
207 |
-
$('.woolentor-notification-content').css('padding','15px');
|
208 |
-
var ordercontent = `<div class="wlnotification_image"><img src="${wlpobj[i].image}" alt="${wlpobj[i].name}" /></div><div class="wlnotification_content"><h4><a href="${wlpobj[i].url}">${wlpobj[i].name}</a></h4><p>${wlpobj[i].buyer.city + ' ' + wlpobj[i].buyer.state + ', ' + wlpobj[i].buyer.country }.</p><h6>${other_text.price+wlpobj[i].price}</h6><span class="woolentor-buyername">${other_text.priceby + ' ' + wlpobj[i].buyer.fname + ' ' + wlpobj[i].buyer.lname}</span></div><span class="wlcross">×</span>`;
|
209 |
-
$('.woolentor-notification-content').append( ordercontent ).addClass('animated '+inanimation).removeClass(outanimation);
|
210 |
|
211 |
-
var notification =
|
212 |
if ( notification != undefined ) {
|
213 |
setTimeout( function () {
|
214 |
$('.woolentor-notification-content').removeClass(inanimation).addClass(outanimation);
|
215 |
i++;
|
216 |
}, showing_time );
|
217 |
}
|
218 |
-
}, interval,
|
219 |
}
|
220 |
|
221 |
// Close Button
|
@@ -224,6 +301,8 @@ class Woolentor_Sale_Notification{
|
|
224 |
$(this).closest('.woolentor-notification-content').removeClass(inanimation).addClass(outanimation);
|
225 |
});
|
226 |
|
|
|
|
|
227 |
});
|
228 |
</script>
|
229 |
<?php
|
15 |
|
16 |
function __construct(){
|
17 |
|
18 |
+
add_action( 'wp_head',[ $this, 'woolentor_ajaxurl' ] );
|
19 |
add_action( 'wp_enqueue_scripts', [ $this, 'woolentor_inline_styles' ] );
|
20 |
|
21 |
// ajax function
|
52 |
$order_items = $order->get_items();
|
53 |
|
54 |
if( !empty( $order_items ) ) {
|
55 |
+
|
56 |
+
if( woolentor_get_option( 'showallproduct','woolentor_sales_notification_tabs','off' ) == 'on' ){
|
57 |
+
|
58 |
+
foreach( $order_items as $item ){
|
59 |
+
$product = wc_get_product( $item['product_id'] );
|
60 |
+
if( !empty( $product ) ){
|
61 |
+
preg_match( '/src="(.*?)"/', $product->get_image( 'thumbnail' ), $imgurl );
|
62 |
+
$p = array(
|
63 |
+
'id' => $item['order_id'],
|
64 |
+
'name' => $product->get_title(),
|
65 |
+
'url' => $product->get_permalink(),
|
66 |
+
'date' => $post->post_date_gmt,
|
67 |
+
'image' => count($imgurl) === 2 ? $imgurl[1] : null,
|
68 |
+
'price' => $this->woolentor_productprice($check_wc_version ? $product->get_display_price() : wc_get_price_to_display($product) ),
|
69 |
+
'buyer' => $this->woolentor_buyer_info($order)
|
70 |
+
);
|
71 |
+
$p = apply_filters( 'woolentor_product_data',$p );
|
72 |
+
array_push( $products, $p);
|
73 |
+
}
|
74 |
+
}
|
75 |
+
|
76 |
+
}else{
|
77 |
+
$first_item = array_values( $order_items )[0];
|
78 |
+
$product_id = $first_item['product_id'];
|
79 |
+
|
80 |
+
$product = wc_get_product( $product_id );
|
81 |
+
if( !empty( $product ) ){
|
82 |
+
preg_match( '/src="(.*?)"/', $product->get_image( 'thumbnail' ), $imgurl );
|
83 |
+
$p = array(
|
84 |
+
'id' => $first_item['order_id'],
|
85 |
+
'name' => $product->get_title(),
|
86 |
+
'url' => $product->get_permalink(),
|
87 |
+
'date' => $post->post_date_gmt,
|
88 |
+
'image' => count($imgurl) === 2 ? $imgurl[1] : null,
|
89 |
+
'price' => $this->woolentor_productprice($check_wc_version ? $product->get_display_price() : wc_get_price_to_display($product) ),
|
90 |
+
'buyer' => $this->woolentor_buyer_info($order)
|
91 |
+
);
|
92 |
+
$p = apply_filters( 'woolentor_product_data',$p );
|
93 |
+
array_push( $products, $p);
|
94 |
+
}
|
95 |
}
|
96 |
+
|
97 |
}
|
98 |
|
99 |
}
|
148 |
$headingcolor = woolentor_get_option( 'heading_color','woolentor_sales_notification_tabs', '#000000' );
|
149 |
$contentcolor = woolentor_get_option( 'content_color','woolentor_sales_notification_tabs', '#7e7e7e' );
|
150 |
$crosscolor = woolentor_get_option( 'cross_color','woolentor_sales_notification_tabs', '#000000' );
|
151 |
+
$width = woolentor_get_option( 'notification_width','woolentor_sales_notification_tabs', '550px' );
|
152 |
+
$mobile_width = woolentor_get_option( 'notification_mobile_width','woolentor_sales_notification_tabs', '90%' );
|
153 |
+
|
154 |
+
$custom_css = "";
|
155 |
+
|
156 |
+
if( $width ){
|
157 |
+
$custom_css .= "
|
158 |
+
.woolentor-notification-content{
|
159 |
+
width: {$width} !important;
|
160 |
+
}
|
161 |
+
";
|
162 |
+
}
|
163 |
+
if( $bgcolor ){
|
164 |
+
$custom_css .= "
|
165 |
+
.woolentor-notification-content{
|
166 |
+
background: {$bgcolor} !important;
|
167 |
+
}
|
168 |
+
";
|
169 |
+
}
|
170 |
+
|
171 |
+
if( $headingcolor ){
|
172 |
+
$custom_css .= "
|
173 |
+
.wlnotification_content h4,.wlnotification_content h6{
|
174 |
+
color: {$headingcolor} !important;
|
175 |
+
}
|
176 |
+
";
|
177 |
+
}
|
178 |
+
|
179 |
+
if( $contentcolor ){
|
180 |
+
$custom_css .= "
|
181 |
+
.wlnotification_content p,.woolentor-buyername{
|
182 |
+
color: {$contentcolor} !important;
|
183 |
+
}
|
184 |
+
";
|
185 |
+
}
|
186 |
+
|
187 |
+
if( $crosscolor ){
|
188 |
+
$custom_css .= "
|
189 |
+
.wlcross{
|
190 |
+
color: {$crosscolor} !important;
|
191 |
+
}
|
192 |
+
";
|
193 |
+
}
|
194 |
+
|
195 |
+
if( $mobile_width ){
|
196 |
+
$custom_css .= "
|
197 |
+
@media (max-width: 767px) {
|
198 |
+
.woolentor-notification-content{
|
199 |
+
width: {$mobile_width} !important;
|
200 |
+
}
|
201 |
+
}
|
202 |
+
";
|
203 |
+
}
|
204 |
+
|
205 |
wp_add_inline_style( 'woolentor-widgets', $custom_css );
|
206 |
}
|
207 |
|
245 |
outanimation = '<?php echo $outanimation; ?>',
|
246 |
i = 0;
|
247 |
|
248 |
+
|
249 |
+
function woolentor_get_order_data() {
|
|
|
|
|
|
|
250 |
$.post(
|
251 |
ajaxurl,
|
252 |
data,
|
253 |
function( response ){
|
254 |
+
var wcpobj = $.parseJSON( response );
|
255 |
+
if( wcpobj.length > 0 ){
|
256 |
+
woolentor_start_notification( wcpobj );
|
257 |
}
|
258 |
}
|
259 |
);
|
260 |
+
}
|
261 |
+
|
262 |
+
function woolentor_start_notification ( wcpobj ) {
|
263 |
+
window.setTimeout( function(){
|
264 |
+
woolentor_notification_content( wcpobj, i );
|
265 |
+
setTimeout( function () {
|
266 |
+
$('.woolentor-notification-content').removeClass(inanimation).addClass(outanimation);
|
267 |
+
i++;
|
268 |
+
}, showing_time );
|
269 |
+
woolenor_notification_loop_start( wcpobj );
|
270 |
+
}, duration );
|
271 |
|
272 |
+
}
|
273 |
+
|
274 |
+
function woolentor_notification_content( wlpobj, i ){
|
275 |
+
$('.woolentor-notification-content').html('');
|
276 |
+
$('.woolentor-notification-content').css('padding','15px');
|
277 |
+
var ordercontent = `<div class="wlnotification_image"><img src="${wlpobj[i].image}" alt="${wlpobj[i].name}" /></div><div class="wlnotification_content"><h4><a href="${wlpobj[i].url}">${wlpobj[i].name}</a></h4><p>${wlpobj[i].buyer.city + ' ' + wlpobj[i].buyer.state + ', ' + wlpobj[i].buyer.country }.</p><h6>${other_text.price+wlpobj[i].price}</h6><span class="woolentor-buyername">${other_text.priceby + ' ' + wlpobj[i].buyer.fname + ' ' + wlpobj[i].buyer.lname}</span></div><span class="wlcross">×</span>`;
|
278 |
+
$('.woolentor-notification-content').append( ordercontent ).addClass('animated '+inanimation).removeClass(outanimation);
|
279 |
+
}
|
280 |
|
281 |
+
function woolenor_notification_loop_start( wcpobj ){
|
282 |
var interval = parseInt( intervaltime ) + parseInt( showing_time );
|
283 |
+
setInterval(function ( wcpobj ) {
|
284 |
+
if( i == wcpobj.length ){ i = 0; }
|
285 |
|
286 |
+
woolentor_notification_content( wcpobj, i );
|
|
|
|
|
|
|
287 |
|
288 |
+
var notification = wcpobj;
|
289 |
if ( notification != undefined ) {
|
290 |
setTimeout( function () {
|
291 |
$('.woolentor-notification-content').removeClass(inanimation).addClass(outanimation);
|
292 |
i++;
|
293 |
}, showing_time );
|
294 |
}
|
295 |
+
}, interval, wcpobj );
|
296 |
}
|
297 |
|
298 |
// Close Button
|
301 |
$(this).closest('.woolentor-notification-content').removeClass(inanimation).addClass(outanimation);
|
302 |
});
|
303 |
|
304 |
+
woolentor_get_order_data();
|
305 |
+
|
306 |
});
|
307 |
</script>
|
308 |
<?php
|
includes/class.sale_notification_fake.php
CHANGED
@@ -37,10 +37,37 @@ if( !class_exists('Woolentor_Sale_Notification') ){
|
|
37 |
// Inline CSS
|
38 |
function woolentor_inline_styles() {
|
39 |
$crosscolor = woolentor_get_option( 'cross_color','woolentor_sales_notification_tabs', '#000000' );
|
40 |
-
$
|
41 |
-
|
42 |
-
|
43 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
44 |
wp_add_inline_style( 'woolentor-widgets', $custom_css );
|
45 |
}
|
46 |
|
@@ -70,6 +97,9 @@ if( !class_exists('Woolentor_Sale_Notification') ){
|
|
70 |
i = 0;
|
71 |
|
72 |
window.setTimeout( function(){
|
|
|
|
|
|
|
73 |
setTimeout( function () {
|
74 |
$('.woolentor-notification-content').removeClass(inanimation).addClass(outanimation);
|
75 |
i++;
|
@@ -80,27 +110,27 @@ if( !class_exists('Woolentor_Sale_Notification') ){
|
|
80 |
}, duration );
|
81 |
|
82 |
|
83 |
-
function woolentor_notification_loop_start(
|
84 |
-
|
85 |
var interval = parseInt( intervaltime ) + parseInt( showing_time );
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
var ordercontent = `${ porduct_fake_data[i] }<span class="wlcross">×</span>`;
|
92 |
-
$('.woolentor-notification-content').append( ordercontent ).addClass('animated '+inanimation).removeClass(outanimation);
|
93 |
-
|
94 |
-
var notification = porduct_fake_data;
|
95 |
if ( notification != undefined ) {
|
96 |
setTimeout( function () {
|
97 |
$('.woolentor-notification-content').removeClass(inanimation).addClass(outanimation);
|
98 |
i++;
|
99 |
}, showing_time );
|
100 |
}
|
101 |
-
|
102 |
-
}, interval, porduct_fake_data );
|
103 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
104 |
}
|
105 |
|
106 |
// Close Button
|
37 |
// Inline CSS
|
38 |
function woolentor_inline_styles() {
|
39 |
$crosscolor = woolentor_get_option( 'cross_color','woolentor_sales_notification_tabs', '#000000' );
|
40 |
+
$width = woolentor_get_option( 'notification_width','woolentor_sales_notification_tabs', '550px' );
|
41 |
+
$mobile_width = woolentor_get_option( 'notification_mobile_width','woolentor_sales_notification_tabs', '90%' );
|
42 |
+
|
43 |
+
$custom_css = "";
|
44 |
+
|
45 |
+
if( $width ){
|
46 |
+
$custom_css .= "
|
47 |
+
.woolentor-notification-content{
|
48 |
+
width: {$width} !important;
|
49 |
+
}
|
50 |
+
";
|
51 |
+
}
|
52 |
+
|
53 |
+
if( $crosscolor ){
|
54 |
+
$custom_css .= "
|
55 |
+
.wlcross{
|
56 |
+
color: {$crosscolor} !important;
|
57 |
+
}
|
58 |
+
";
|
59 |
+
}
|
60 |
+
|
61 |
+
if( $mobile_width ){
|
62 |
+
$custom_css .= "
|
63 |
+
@media (max-width: 767px) {
|
64 |
+
.woolentor-notification-content{
|
65 |
+
width: {$mobile_width} !important;
|
66 |
+
}
|
67 |
+
}
|
68 |
+
";
|
69 |
+
}
|
70 |
+
|
71 |
wp_add_inline_style( 'woolentor-widgets', $custom_css );
|
72 |
}
|
73 |
|
97 |
i = 0;
|
98 |
|
99 |
window.setTimeout( function(){
|
100 |
+
if( porduct_fake_data.length > 0 ){
|
101 |
+
woolentor_notification_content( porduct_fake_data, i );
|
102 |
+
}
|
103 |
setTimeout( function () {
|
104 |
$('.woolentor-notification-content').removeClass(inanimation).addClass(outanimation);
|
105 |
i++;
|
110 |
}, duration );
|
111 |
|
112 |
|
113 |
+
function woolentor_notification_loop_start( notification_fake_data ){
|
|
|
114 |
var interval = parseInt( intervaltime ) + parseInt( showing_time );
|
115 |
+
setInterval( function ( notification_fake_data ) {
|
116 |
+
if( i == notification_fake_data.length ){ i = 0; }
|
117 |
+
|
118 |
+
woolentor_notification_content(notification_fake_data, i);
|
119 |
+
var notification = notification_fake_data;
|
|
|
|
|
|
|
|
|
120 |
if ( notification != undefined ) {
|
121 |
setTimeout( function () {
|
122 |
$('.woolentor-notification-content').removeClass(inanimation).addClass(outanimation);
|
123 |
i++;
|
124 |
}, showing_time );
|
125 |
}
|
|
|
|
|
126 |
|
127 |
+
}, interval, notification_fake_data );
|
128 |
+
}
|
129 |
+
|
130 |
+
function woolentor_notification_content( porduct_fake_data, i ){
|
131 |
+
$('.woolentor-notification-content').html('');
|
132 |
+
var ordercontent = `${ porduct_fake_data[i] }<span class="wlcross">×</span>`;
|
133 |
+
$('.woolentor-notification-content').append( ordercontent ).addClass('animated '+inanimation).removeClass(outanimation);
|
134 |
}
|
135 |
|
136 |
// Close Button
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: hasthemes, htplugins, devitemsllc, tarekht
|
|
3 |
Tags: Elementor, WooCommerce, WooCommerce Elementor, WooCommerce Builder, WooCommerce Product
|
4 |
Requires at least: 4.7
|
5 |
Tested up to: 5.8.1
|
6 |
-
Stable tag: 1.9.
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
@@ -322,6 +322,11 @@ Elementor Pro is not required. But you can use wooLentor with Elementor free & P
|
|
322 |
|
323 |
== Changelog ==
|
324 |
|
|
|
|
|
|
|
|
|
|
|
325 |
= Version: 1.9.8 - Date: 2021-09-27 =
|
326 |
* Added: Advance Rename Label Options.
|
327 |
* Added: Advance Sale notifications.
|
3 |
Tags: Elementor, WooCommerce, WooCommerce Elementor, WooCommerce Builder, WooCommerce Product
|
4 |
Requires at least: 4.7
|
5 |
Tested up to: 5.8.1
|
6 |
+
Stable tag: 1.9.9
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
322 |
|
323 |
== Changelog ==
|
324 |
|
325 |
+
= Version: 1.9.9 - Date: 2021-10-16 =
|
326 |
+
* Added : width option for sales notification.
|
327 |
+
* Added : Option for show/display all products associated with each order.
|
328 |
+
* Fixed : Notification first load time.
|
329 |
+
|
330 |
= Version: 1.9.8 - Date: 2021-09-27 =
|
331 |
* Added: Advance Rename Label Options.
|
332 |
* Added: Advance Sale notifications.
|
woolentor_addons_elementor.php
CHANGED
@@ -3,21 +3,21 @@
|
|
3 |
* Plugin Name: WooLentor - WooCommerce Elementor Addons + Builder
|
4 |
* Description: The WooCommerce elements library for Elementor page builder plugin for WordPress.
|
5 |
* Plugin URI: https://woolentor.com/
|
6 |
-
* Version: 1.9.
|
7 |
* Author: HasThemes
|
8 |
* Author URI: https://hasthemes.com/plugins/woolentor-pro/
|
9 |
* License: GPL-2.0+
|
10 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
|
11 |
* Text Domain: woolentor
|
12 |
* Domain Path: /languages
|
13 |
-
* WC tested up to: 5.
|
14 |
-
* Elementor tested up to: 3.4.
|
15 |
* Elementor Pro tested up to: 3.3.4
|
16 |
*/
|
17 |
|
18 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
19 |
|
20 |
-
define( 'WOOLENTOR_VERSION', '1.9.
|
21 |
define( 'WOOLENTOR_ADDONS_PL_ROOT', __FILE__ );
|
22 |
define( 'WOOLENTOR_ADDONS_PL_URL', plugins_url( '/', WOOLENTOR_ADDONS_PL_ROOT ) );
|
23 |
define( 'WOOLENTOR_ADDONS_PL_PATH', plugin_dir_path( WOOLENTOR_ADDONS_PL_ROOT ) );
|
3 |
* Plugin Name: WooLentor - WooCommerce Elementor Addons + Builder
|
4 |
* Description: The WooCommerce elements library for Elementor page builder plugin for WordPress.
|
5 |
* Plugin URI: https://woolentor.com/
|
6 |
+
* Version: 1.9.9
|
7 |
* Author: HasThemes
|
8 |
* Author URI: https://hasthemes.com/plugins/woolentor-pro/
|
9 |
* License: GPL-2.0+
|
10 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
|
11 |
* Text Domain: woolentor
|
12 |
* Domain Path: /languages
|
13 |
+
* WC tested up to: 5.8.0
|
14 |
+
* Elementor tested up to: 3.4.5
|
15 |
* Elementor Pro tested up to: 3.3.4
|
16 |
*/
|
17 |
|
18 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
19 |
|
20 |
+
define( 'WOOLENTOR_VERSION', '1.9.9' );
|
21 |
define( 'WOOLENTOR_ADDONS_PL_ROOT', __FILE__ );
|
22 |
define( 'WOOLENTOR_ADDONS_PL_URL', plugins_url( '/', WOOLENTOR_ADDONS_PL_ROOT ) );
|
23 |
define( 'WOOLENTOR_ADDONS_PL_PATH', plugin_dir_path( WOOLENTOR_ADDONS_PL_ROOT ) );
|