Music Player for WooCommerce - Version 1.0.141

Version Description

  • Improves the integration with the Gutenberg Editor.
  • Hides the playlist shortcode if WooCommerce is disabled on the website.
Download this release

Release Info

Developer codepeople
Plugin Icon 128x128 Music Player for WooCommerce
Version 1.0.141
Comparing to
See all releases

Code changes from version 1.0.135 to 1.0.141

css/style.css CHANGED
@@ -1,4 +1,5 @@
1
  .wcmp-player{width:100% !important;}
 
2
  .wcmp-player.track.mejs-wmp .mejs-controls .mejs-playpause-button button {width: 36px;height: 36px;background-position: -2px -2px;border-radius: 50%;}
3
  .wcmp-player.track.mejs-wmp .mejs-controls .mejs-pause button{background-position:-2px -42px;}
4
  .wcmp-player.mejs-wmp:not(.track),
1
  .wcmp-player{width:100% !important;}
2
+ .wcmp-player-container{width:100%;}
3
  .wcmp-player.track.mejs-wmp .mejs-controls .mejs-playpause-button button {width: 36px;height: 36px;background-position: -2px -2px;border-radius: 50%;}
4
  .wcmp-player.track.mejs-wmp .mejs-controls .mejs-pause button{background-position:-2px -42px;}
5
  .wcmp-player.mejs-wmp:not(.track),
languages/music-player-for-woocommerce-en_US.mo CHANGED
Binary file
languages/music-player-for-woocommerce-en_US.po CHANGED
@@ -1,15 +1,15 @@
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: music-player-for-woocommerce\n"
4
- "POT-Creation-Date: 2021-02-11 03:01+0100\n"
5
- "PO-Revision-Date: 2021-02-11 03:01+0100\n"
6
  "Last-Translator: CodePeople\n"
7
  "Language-Team: CodePeople\n"
8
  "Language: en_US\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
- "X-Generator: Poedit 2.4.2\n"
13
  "X-Poedit-Basepath: ..\n"
14
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
15
  "X-Poedit-KeywordsList: __;_e;esc_attr__;esc_attr_e\n"
@@ -126,12 +126,12 @@ msgid ""
126
  "modified as <b>dl=1</b>"
127
  msgstr ""
128
 
129
- #: addons/dokan/player_options.php:181 views/global_options.php:227
130
  #: views/player_options.php:179
131
  msgid "Enable player"
132
  msgstr ""
133
 
134
- #: addons/dokan/player_options.php:181 views/global_options.php:227
135
  msgid ""
136
  "The player is shown only if the product is \"downloadable\" with at least an "
137
  "audio file between the \"Downloadable files\", or you have selected your own "
@@ -142,7 +142,7 @@ msgstr ""
142
  msgid "Include music player"
143
  msgstr ""
144
 
145
- #: addons/dokan/player_options.php:185 views/global_options.php:230
146
  #: views/player_options.php:182
147
  msgid "Include in"
148
  msgstr ""
@@ -151,7 +151,7 @@ msgstr ""
151
  msgid "Include on products pages only"
152
  msgstr ""
153
 
154
- #: addons/dokan/player_options.php:188 views/global_options.php:233
155
  #: views/player_options.php:185
156
  msgid "single-entry pages <i>(Product's page only)</i>"
157
  msgstr ""
@@ -160,7 +160,7 @@ msgstr ""
160
  msgid "Include on multiple-entry pages"
161
  msgstr ""
162
 
163
- #: addons/dokan/player_options.php:191 views/global_options.php:236
164
  #: views/player_options.php:188
165
  msgid ""
166
  "multiple entries pages <i>(Shop pages, archive pages, but not in the "
@@ -171,103 +171,103 @@ msgstr ""
171
  msgid "Include on products and multiple-entry pages"
172
  msgstr ""
173
 
174
- #: addons/dokan/player_options.php:194 views/global_options.php:239
175
  #: views/player_options.php:191
176
  msgid "all pages <i>(with single or multiple-entries)</i>"
177
  msgstr ""
178
 
179
  #: addons/dokan/player_options.php:198 addons/dokan/player_options.php:199
180
- #: views/global_options.php:249 views/global_options.php:250
181
  #: views/player_options.php:195 views/player_options.php:196
182
  msgid "Merge in grouped products"
183
  msgstr ""
184
 
185
- #: addons/dokan/player_options.php:200 views/global_options.php:250
186
  #: views/player_options.php:196
187
  msgid ""
188
  "In grouped products, display the \"Add to cart\" buttons and quantity fields "
189
  "in the players rows"
190
  msgstr ""
191
 
192
- #: addons/dokan/player_options.php:203 views/global_options.php:253
193
  #: views/player_options.php:199 widgets/playlist_widget.php:75
194
  msgid "Player layout"
195
  msgstr ""
196
 
197
- #: addons/dokan/player_options.php:206 views/global_options.php:257
198
- #: views/global_options.php:258 views/player_options.php:203
199
  #: views/player_options.php:204
200
  msgid "Skin 1"
201
  msgstr ""
202
 
203
- #: addons/dokan/player_options.php:211 views/global_options.php:263
204
  #: views/player_options.php:208 views/player_options.php:209
205
  msgid "Skin 2"
206
  msgstr ""
207
 
208
- #: addons/dokan/player_options.php:216 views/global_options.php:267
209
- #: views/global_options.php:268 views/player_options.php:213
210
  #: views/player_options.php:214
211
  msgid "Skin 3"
212
  msgstr ""
213
 
214
- #: addons/dokan/player_options.php:222 views/global_options.php:275
215
  #: views/player_options.php:221 widgets/playlist_widget.php:91
216
  msgid "Preload"
217
  msgstr ""
218
 
219
- #: addons/dokan/player_options.php:224 views/global_options.php:278
220
  #: views/player_options.php:224
221
  msgid "Preload - none"
222
  msgstr ""
223
 
224
- #: addons/dokan/player_options.php:225 views/global_options.php:279
225
  #: views/player_options.php:225
226
  msgid "Preload - metadata"
227
  msgstr ""
228
 
229
- #: addons/dokan/player_options.php:226 views/global_options.php:280
230
  #: views/player_options.php:226
231
  msgid "Preload - auto"
232
  msgstr ""
233
 
234
- #: addons/dokan/player_options.php:230 views/global_options.php:285
235
- #: views/global_options.php:288 views/player_options.php:231
236
  #: views/player_options.php:234 widgets/playlist_widget.php:87
237
  msgid "Play all"
238
  msgstr ""
239
 
240
- #: addons/dokan/player_options.php:233 views/global_options.php:309
241
  #: views/player_options.php:244
242
  msgid "Player controls"
243
  msgstr ""
244
 
245
- #: addons/dokan/player_options.php:235 views/global_options.php:311
246
  #: views/player_options.php:246
247
  msgid "Play/pause button"
248
  msgstr ""
249
 
250
- #: addons/dokan/player_options.php:235 views/global_options.php:311
251
  #: views/player_options.php:246
252
  msgid "the play/pause button only"
253
  msgstr ""
254
 
255
- #: addons/dokan/player_options.php:236 views/global_options.php:312
256
  #: views/player_options.php:247
257
  msgid "All controls"
258
  msgstr ""
259
 
260
- #: addons/dokan/player_options.php:236 views/global_options.php:312
261
  #: views/player_options.php:247
262
  msgid "all controls"
263
  msgstr ""
264
 
265
- #: addons/dokan/player_options.php:237 views/global_options.php:313
266
  #: views/player_options.php:248
267
  msgid "Depending on context"
268
  msgstr ""
269
 
270
- #: addons/dokan/player_options.php:237 views/global_options.php:313
271
  #: views/player_options.php:248
272
  msgid "the play/pause button only, or all controls depending on context"
273
  msgstr ""
@@ -276,19 +276,19 @@ msgstr ""
276
  msgid "Player on cover"
277
  msgstr ""
278
 
279
- #: addons/dokan/player_options.php:241 views/global_options.php:318
280
  #: views/player_options.php:253
281
  msgid "for play/pause button players display them on cover images."
282
  msgstr ""
283
 
284
- #: addons/dokan/player_options.php:242 views/global_options.php:321
285
  #: views/player_options.php:256
286
  msgid ""
287
  "(This feature is experimental, and will depend on the theme active on the "
288
  "website.)"
289
  msgstr ""
290
 
291
- #: addons/dokan/player_options.php:247 views/global_options.php:328
292
  #: views/player_options.php:263
293
  msgid "Display the player's title"
294
  msgstr ""
@@ -364,6 +364,12 @@ msgid ""
364
  "products_ids attributes, separated by comma symbols (,)"
365
  msgstr ""
366
 
 
 
 
 
 
 
367
  #: pagebuilders/elementor/elementor.pb.php:52
368
  msgid "More information visiting the follwing link: "
369
  msgstr ""
@@ -376,11 +382,11 @@ msgstr ""
376
  msgid "Insert a playlist with the products players"
377
  msgstr ""
378
 
379
- #: views/global_options.php:38
380
  msgid "Music Player for WooCommerce - Global Settings"
381
  msgstr ""
382
 
383
- #: views/global_options.php:42
384
  msgid ""
385
  "For reporting any issue or to request a customization, <a href=\"https://"
386
  "wordpress.dwbooster.com/contact-us\" target=\"_blank\">CLICK HERE</a><br />\n"
@@ -392,23 +398,23 @@ msgid ""
392
  "target=\"_blank\">Public page: Click to visit the WooCommerce Store</a>"
393
  msgstr ""
394
 
395
- #: views/global_options.php:51
396
  msgid "Registering of Plugin"
397
  msgstr ""
398
 
399
- #: views/global_options.php:53
400
  msgid "Enter the email address of buyer"
401
  msgstr ""
402
 
403
- #: views/global_options.php:54
404
  msgid "Buyer email"
405
  msgstr ""
406
 
407
- #: views/global_options.php:54
408
  msgid "Register"
409
  msgstr ""
410
 
411
- #: views/global_options.php:66 views/player_options.php:45
412
  msgid ""
413
  "<p>The player uses the audio files associated to the product. If you want "
414
  "protecting the audio files for selling, tick the checkbox: <b>\"Protect the "
@@ -420,132 +426,151 @@ msgid ""
420
  "pay for them.</b></p>"
421
  msgstr ""
422
 
423
- #: views/global_options.php:77
424
  msgid "General Settings"
425
  msgstr ""
426
 
427
- #: views/global_options.php:80 views/global_options.php:81
428
  msgid "Include the players only for registered users"
429
  msgstr ""
430
 
431
- #: views/global_options.php:84
 
 
 
 
432
  msgid "The general settings affect only the PRO version of the plugin"
433
  msgstr ""
434
 
435
- #: views/global_options.php:84 views/global_options.php:334
436
  #: views/player_options.php:49 views/player_options.php:269
437
  msgid "CLICK HERE TO GET THE PRO VERSION OF THE PLUGIN"
438
  msgstr ""
439
 
440
- #: views/global_options.php:87 views/global_options.php:88
441
  msgid ""
442
  "For buyers, play the purchased audio files instead the truncated files for "
443
  "demo"
444
  msgstr ""
445
 
446
- #: views/global_options.php:94 views/global_options.php:95
447
  msgid "Truncate the audio files for demo with ffmpeg"
448
  msgstr ""
449
 
450
- #: views/global_options.php:98 views/global_options.php:99
451
  msgid "ffmpeg path"
452
  msgstr ""
453
 
454
- #: views/global_options.php:105 views/global_options.php:106
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
455
  msgid "Delete the demo files generated previously"
456
  msgstr ""
457
 
458
- #: views/global_options.php:112 views/global_options.php:113
459
  msgid "Store demo files on Google Drive"
460
  msgstr ""
461
 
462
- #: views/global_options.php:116
463
  msgid "Import a JSON Key file"
464
  msgstr ""
465
 
466
- #: views/global_options.php:118
467
  msgid "JSON Key file"
468
  msgstr ""
469
 
470
- #: views/global_options.php:162
471
  msgid "Troubleshoot Area"
472
  msgstr ""
473
 
474
- #: views/global_options.php:166 views/global_options.php:169
475
  msgid "On iPads and iPhones, use native controls"
476
  msgstr ""
477
 
478
- #: views/global_options.php:170
479
  msgid ""
480
  "tick the checkbox if the players do not work properly on iPads or iPhones"
481
  msgstr ""
482
 
483
- #: views/global_options.php:175
484
  msgid "Loading players in the onload event"
485
  msgstr ""
486
 
487
- #: views/global_options.php:178
488
  msgid "Loading placeholder in the onload event"
489
  msgstr ""
490
 
491
- #: views/global_options.php:179
492
  msgid "tick the checkbox if the players are not being loaded properly"
493
  msgstr ""
494
 
495
- #: views/global_options.php:184
496
  msgid "For files whose extensions cannot be determined"
497
  msgstr ""
498
 
499
- #: views/global_options.php:187
500
  msgid ""
501
  "For files whose extensions cannot be determined, handle them as mp3 files"
502
  msgstr ""
503
 
504
- #: views/global_options.php:188
505
  msgid "handle them as mp3 files"
506
  msgstr ""
507
 
508
- #: views/global_options.php:193 views/global_options.php:196
509
  msgid ""
510
  "For the WooCommerce Gutenberg Blocks, include the main player in the "
511
  "products titles"
512
  msgstr ""
513
 
514
- #: views/global_options.php:197
515
  msgid "Includes the main player in front of products titles"
516
  msgstr ""
517
 
518
- #: views/global_options.php:202 views/global_options.php:205
519
  msgid "WooCommerce hook used to display the players in the shop pages"
520
  msgstr ""
521
 
522
- #: views/global_options.php:206
523
  msgid ""
524
  "The plugin uses by default the <b>woocommerce_shop_loop_item_title</b> hook. "
525
  "If the player is not being displayed, enter the hook used by the theme "
526
  "active on your website."
527
  msgstr ""
528
 
529
- #: views/global_options.php:207
530
  msgid "Force the player in the title"
531
  msgstr ""
532
 
533
- #: views/global_options.php:207
534
  msgid "Forces the audio player to be displayed in the product title."
535
  msgstr ""
536
 
537
- #: views/global_options.php:212 views/global_options.php:215
538
  msgid "WooCommerce hook used to display the players in the products pages"
539
  msgstr ""
540
 
541
- #: views/global_options.php:216
542
  msgid ""
543
  "The plugin uses by default the <b>woocommerce_single_product_summary</b> "
544
  "hook. If the player is not being displayed, enter the hook used by the theme "
545
  "active on your website."
546
  msgstr ""
547
 
548
- #: views/global_options.php:221
549
  msgid ""
550
  "Click on the <a href=\"https://docs.woocommerce.com/wc-apidocs/hook-docs.html"
551
  "\" target=\"_blank\">THIS LINK</a> for the list of available <a href="
@@ -553,136 +578,136 @@ msgid ""
553
  "style=\"font-weight:bold;font-size:1.3em;\">WooCommerce Hooks</a>"
554
  msgstr ""
555
 
556
- #: views/global_options.php:226
557
  msgid "Include music player in all products"
558
  msgstr ""
559
 
560
- #: views/global_options.php:232
561
  msgid "Products pages only"
562
  msgstr ""
563
 
564
- #: views/global_options.php:235
565
  msgid "Multiple-entry pages"
566
  msgstr ""
567
 
568
- #: views/global_options.php:238
569
  msgid "Product and multiple-entry pages"
570
  msgstr ""
571
 
572
- #: views/global_options.php:243 views/global_options.php:245
573
  msgid "Include players in cart"
574
  msgstr ""
575
 
576
- #: views/global_options.php:262
577
  msgid "skin 2"
578
  msgstr ""
579
 
580
- #: views/global_options.php:293 views/global_options.php:296
581
  msgid "Allow multiple players to play simultaneously"
582
  msgstr ""
583
 
584
- #: views/global_options.php:298
585
  msgid ""
586
  "By default, only one player would be playing at once. By pressing the play "
587
  "button of a player, the other players would stop. By ticking the checkbox, "
588
  "multiple players could play simultaneously."
589
  msgstr ""
590
 
591
- #: views/global_options.php:303 views/player_options.php:238
592
  msgid "Player volume (from 0 to 1)"
593
  msgstr ""
594
 
595
- #: views/global_options.php:305 views/player_options.php:240
596
  msgid "Player volume"
597
  msgstr ""
598
 
599
- #: views/global_options.php:315 views/player_options.php:250
600
  msgid "On cover"
601
  msgstr ""
602
 
603
- #: views/global_options.php:330 views/player_options.php:265
604
  msgid "Display the player title"
605
  msgstr ""
606
 
607
- #: views/global_options.php:334 views/player_options.php:269
608
  msgid "The security feature is only available in the PRO version of the plugin"
609
  msgstr ""
610
 
611
- #: views/global_options.php:337 views/global_options.php:338
612
  #: views/player_options.php:272 views/player_options.php:273
613
  msgid "Protect the file"
614
  msgstr ""
615
 
616
- #: views/global_options.php:341 views/global_options.php:343
617
  #: views/player_options.php:276 views/player_options.php:278
618
  msgid "Percent of audio used for protected playbacks"
619
  msgstr ""
620
 
621
- #: views/global_options.php:344 views/player_options.php:279
622
  msgid ""
623
  "To prevent unauthorized copying of audio files, the files will be partially "
624
  "accessible"
625
  msgstr ""
626
 
627
- #: views/global_options.php:349
628
  msgid ""
629
  "Text to display beside the player explaining that demos are partial versions "
630
  "of the original files"
631
  msgstr ""
632
 
633
- #: views/global_options.php:351
634
  msgid "Explaining that demos are partial versions of the original files"
635
  msgstr ""
636
 
637
- #: views/global_options.php:365
638
  msgid "Scope"
639
  msgstr ""
640
 
641
- #: views/global_options.php:366
642
  msgid ""
643
  "Ticking the checkbox the previous settings are applied to all products, even "
644
  "if they have a player enabled."
645
  msgstr ""
646
 
647
- #: views/global_options.php:366
648
  msgid "Apply the previous settings to all products"
649
  msgstr ""
650
 
651
- #: views/global_options.php:366
652
  msgid "Apply the previous settings to all products pages in the website."
653
  msgstr ""
654
 
655
- #: views/global_options.php:378
656
  msgid "Analytics"
657
  msgstr ""
658
 
659
- #: views/global_options.php:382
660
  msgid ""
661
  "Allows the integration with Google Analytics for registering new events when "
662
  "the songs are played. The event information would include: the URL to the "
663
  "audio file as the event label and the product's id as its value."
664
  msgstr ""
665
 
666
- #: views/global_options.php:383
667
  msgid "Note"
668
  msgstr ""
669
 
670
- #: views/global_options.php:383
671
  msgid ""
672
  "If the preload option is configured as Metadata or Auto in the players "
673
  "settings, the event would be registered when the audio file is loaded by the "
674
  "player and not exactly when they are playing."
675
  msgstr ""
676
 
677
- #: views/global_options.php:388 views/global_options.php:389
678
  msgid "Tracking Id"
679
  msgstr ""
680
 
681
- #: views/global_options.php:401
682
  msgid "Add ons"
683
  msgstr ""
684
 
685
- #: views/global_options.php:408
686
  msgid "Save settings"
687
  msgstr ""
688
 
@@ -748,7 +773,7 @@ msgstr ""
748
  msgid "Help"
749
  msgstr ""
750
 
751
- #: wcmp.php:1007
752
  msgid "There are no products that satisfy the block's settings"
753
  msgstr ""
754
 
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: music-player-for-woocommerce\n"
4
+ "POT-Creation-Date: 2021-05-14 03:15+0200\n"
5
+ "PO-Revision-Date: 2021-05-14 03:15+0200\n"
6
  "Last-Translator: CodePeople\n"
7
  "Language-Team: CodePeople\n"
8
  "Language: en_US\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
+ "X-Generator: Poedit 2.4.3\n"
13
  "X-Poedit-Basepath: ..\n"
14
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
15
  "X-Poedit-KeywordsList: __;_e;esc_attr__;esc_attr_e\n"
126
  "modified as <b>dl=1</b>"
127
  msgstr ""
128
 
129
+ #: addons/dokan/player_options.php:181 views/global_options.php:239
130
  #: views/player_options.php:179
131
  msgid "Enable player"
132
  msgstr ""
133
 
134
+ #: addons/dokan/player_options.php:181 views/global_options.php:239
135
  msgid ""
136
  "The player is shown only if the product is \"downloadable\" with at least an "
137
  "audio file between the \"Downloadable files\", or you have selected your own "
142
  msgid "Include music player"
143
  msgstr ""
144
 
145
+ #: addons/dokan/player_options.php:185 views/global_options.php:242
146
  #: views/player_options.php:182
147
  msgid "Include in"
148
  msgstr ""
151
  msgid "Include on products pages only"
152
  msgstr ""
153
 
154
+ #: addons/dokan/player_options.php:188 views/global_options.php:245
155
  #: views/player_options.php:185
156
  msgid "single-entry pages <i>(Product's page only)</i>"
157
  msgstr ""
160
  msgid "Include on multiple-entry pages"
161
  msgstr ""
162
 
163
+ #: addons/dokan/player_options.php:191 views/global_options.php:248
164
  #: views/player_options.php:188
165
  msgid ""
166
  "multiple entries pages <i>(Shop pages, archive pages, but not in the "
171
  msgid "Include on products and multiple-entry pages"
172
  msgstr ""
173
 
174
+ #: addons/dokan/player_options.php:194 views/global_options.php:251
175
  #: views/player_options.php:191
176
  msgid "all pages <i>(with single or multiple-entries)</i>"
177
  msgstr ""
178
 
179
  #: addons/dokan/player_options.php:198 addons/dokan/player_options.php:199
180
+ #: views/global_options.php:261 views/global_options.php:262
181
  #: views/player_options.php:195 views/player_options.php:196
182
  msgid "Merge in grouped products"
183
  msgstr ""
184
 
185
+ #: addons/dokan/player_options.php:200 views/global_options.php:262
186
  #: views/player_options.php:196
187
  msgid ""
188
  "In grouped products, display the \"Add to cart\" buttons and quantity fields "
189
  "in the players rows"
190
  msgstr ""
191
 
192
+ #: addons/dokan/player_options.php:203 views/global_options.php:265
193
  #: views/player_options.php:199 widgets/playlist_widget.php:75
194
  msgid "Player layout"
195
  msgstr ""
196
 
197
+ #: addons/dokan/player_options.php:206 views/global_options.php:269
198
+ #: views/global_options.php:270 views/player_options.php:203
199
  #: views/player_options.php:204
200
  msgid "Skin 1"
201
  msgstr ""
202
 
203
+ #: addons/dokan/player_options.php:211 views/global_options.php:275
204
  #: views/player_options.php:208 views/player_options.php:209
205
  msgid "Skin 2"
206
  msgstr ""
207
 
208
+ #: addons/dokan/player_options.php:216 views/global_options.php:279
209
+ #: views/global_options.php:280 views/player_options.php:213
210
  #: views/player_options.php:214
211
  msgid "Skin 3"
212
  msgstr ""
213
 
214
+ #: addons/dokan/player_options.php:222 views/global_options.php:287
215
  #: views/player_options.php:221 widgets/playlist_widget.php:91
216
  msgid "Preload"
217
  msgstr ""
218
 
219
+ #: addons/dokan/player_options.php:224 views/global_options.php:290
220
  #: views/player_options.php:224
221
  msgid "Preload - none"
222
  msgstr ""
223
 
224
+ #: addons/dokan/player_options.php:225 views/global_options.php:291
225
  #: views/player_options.php:225
226
  msgid "Preload - metadata"
227
  msgstr ""
228
 
229
+ #: addons/dokan/player_options.php:226 views/global_options.php:292
230
  #: views/player_options.php:226
231
  msgid "Preload - auto"
232
  msgstr ""
233
 
234
+ #: addons/dokan/player_options.php:230 views/global_options.php:297
235
+ #: views/global_options.php:300 views/player_options.php:231
236
  #: views/player_options.php:234 widgets/playlist_widget.php:87
237
  msgid "Play all"
238
  msgstr ""
239
 
240
+ #: addons/dokan/player_options.php:233 views/global_options.php:321
241
  #: views/player_options.php:244
242
  msgid "Player controls"
243
  msgstr ""
244
 
245
+ #: addons/dokan/player_options.php:235 views/global_options.php:323
246
  #: views/player_options.php:246
247
  msgid "Play/pause button"
248
  msgstr ""
249
 
250
+ #: addons/dokan/player_options.php:235 views/global_options.php:323
251
  #: views/player_options.php:246
252
  msgid "the play/pause button only"
253
  msgstr ""
254
 
255
+ #: addons/dokan/player_options.php:236 views/global_options.php:324
256
  #: views/player_options.php:247
257
  msgid "All controls"
258
  msgstr ""
259
 
260
+ #: addons/dokan/player_options.php:236 views/global_options.php:324
261
  #: views/player_options.php:247
262
  msgid "all controls"
263
  msgstr ""
264
 
265
+ #: addons/dokan/player_options.php:237 views/global_options.php:325
266
  #: views/player_options.php:248
267
  msgid "Depending on context"
268
  msgstr ""
269
 
270
+ #: addons/dokan/player_options.php:237 views/global_options.php:325
271
  #: views/player_options.php:248
272
  msgid "the play/pause button only, or all controls depending on context"
273
  msgstr ""
276
  msgid "Player on cover"
277
  msgstr ""
278
 
279
+ #: addons/dokan/player_options.php:241 views/global_options.php:330
280
  #: views/player_options.php:253
281
  msgid "for play/pause button players display them on cover images."
282
  msgstr ""
283
 
284
+ #: addons/dokan/player_options.php:242 views/global_options.php:333
285
  #: views/player_options.php:256
286
  msgid ""
287
  "(This feature is experimental, and will depend on the theme active on the "
288
  "website.)"
289
  msgstr ""
290
 
291
+ #: addons/dokan/player_options.php:247 views/global_options.php:340
292
  #: views/player_options.php:263
293
  msgid "Display the player's title"
294
  msgstr ""
364
  "products_ids attributes, separated by comma symbols (,)"
365
  msgstr ""
366
 
367
+ #: pagebuilders/elementor/elementor.pb.php:52
368
+ msgid ""
369
+ "If you are editing the products template, to load the player of the current "
370
+ "product, delete the products_ids attribute from the shortcode"
371
+ msgstr ""
372
+
373
  #: pagebuilders/elementor/elementor.pb.php:52
374
  msgid "More information visiting the follwing link: "
375
  msgstr ""
382
  msgid "Insert a playlist with the products players"
383
  msgstr ""
384
 
385
+ #: views/global_options.php:39
386
  msgid "Music Player for WooCommerce - Global Settings"
387
  msgstr ""
388
 
389
+ #: views/global_options.php:43
390
  msgid ""
391
  "For reporting any issue or to request a customization, <a href=\"https://"
392
  "wordpress.dwbooster.com/contact-us\" target=\"_blank\">CLICK HERE</a><br />\n"
398
  "target=\"_blank\">Public page: Click to visit the WooCommerce Store</a>"
399
  msgstr ""
400
 
401
+ #: views/global_options.php:52
402
  msgid "Registering of Plugin"
403
  msgstr ""
404
 
405
+ #: views/global_options.php:54
406
  msgid "Enter the email address of buyer"
407
  msgstr ""
408
 
409
+ #: views/global_options.php:55
410
  msgid "Buyer email"
411
  msgstr ""
412
 
413
+ #: views/global_options.php:55
414
  msgid "Register"
415
  msgstr ""
416
 
417
+ #: views/global_options.php:67 views/player_options.php:45
418
  msgid ""
419
  "<p>The player uses the audio files associated to the product. If you want "
420
  "protecting the audio files for selling, tick the checkbox: <b>\"Protect the "
426
  "pay for them.</b></p>"
427
  msgstr ""
428
 
429
+ #: views/global_options.php:78
430
  msgid "General Settings"
431
  msgstr ""
432
 
433
+ #: views/global_options.php:81 views/global_options.php:82
434
  msgid "Include the players only for registered users"
435
  msgstr ""
436
 
437
+ #: views/global_options.php:85 views/global_options.php:86
438
+ msgid "Apply fade out to playing audio when possible"
439
+ msgstr ""
440
+
441
+ #: views/global_options.php:89
442
  msgid "The general settings affect only the PRO version of the plugin"
443
  msgstr ""
444
 
445
+ #: views/global_options.php:89 views/global_options.php:346
446
  #: views/player_options.php:49 views/player_options.php:269
447
  msgid "CLICK HERE TO GET THE PRO VERSION OF THE PLUGIN"
448
  msgstr ""
449
 
450
+ #: views/global_options.php:92 views/global_options.php:93
451
  msgid ""
452
  "For buyers, play the purchased audio files instead the truncated files for "
453
  "demo"
454
  msgstr ""
455
 
456
+ #: views/global_options.php:99 views/global_options.php:100
457
  msgid "Truncate the audio files for demo with ffmpeg"
458
  msgstr ""
459
 
460
+ #: views/global_options.php:103 views/global_options.php:104
461
  msgid "ffmpeg path"
462
  msgstr ""
463
 
464
+ #: views/global_options.php:107 views/global_options.php:109
465
+ msgid "Watermark audio"
466
+ msgstr ""
467
+
468
+ #: views/global_options.php:109
469
+ msgid "Select"
470
+ msgstr ""
471
+
472
+ #: views/global_options.php:110
473
+ msgid ""
474
+ "Select an audio file if you want to apply a watermark to the audio files for "
475
+ "demos. The watermark will be applied to the protected demos (Experimental "
476
+ "feature)."
477
+ msgstr ""
478
+
479
+ #: views/global_options.php:117 views/global_options.php:118
480
  msgid "Delete the demo files generated previously"
481
  msgstr ""
482
 
483
+ #: views/global_options.php:124 views/global_options.php:125
484
  msgid "Store demo files on Google Drive"
485
  msgstr ""
486
 
487
+ #: views/global_options.php:128
488
  msgid "Import a JSON Key file"
489
  msgstr ""
490
 
491
+ #: views/global_options.php:130
492
  msgid "JSON Key file"
493
  msgstr ""
494
 
495
+ #: views/global_options.php:174
496
  msgid "Troubleshoot Area"
497
  msgstr ""
498
 
499
+ #: views/global_options.php:178 views/global_options.php:181
500
  msgid "On iPads and iPhones, use native controls"
501
  msgstr ""
502
 
503
+ #: views/global_options.php:182
504
  msgid ""
505
  "tick the checkbox if the players do not work properly on iPads or iPhones"
506
  msgstr ""
507
 
508
+ #: views/global_options.php:187
509
  msgid "Loading players in the onload event"
510
  msgstr ""
511
 
512
+ #: views/global_options.php:190
513
  msgid "Loading placeholder in the onload event"
514
  msgstr ""
515
 
516
+ #: views/global_options.php:191
517
  msgid "tick the checkbox if the players are not being loaded properly"
518
  msgstr ""
519
 
520
+ #: views/global_options.php:196
521
  msgid "For files whose extensions cannot be determined"
522
  msgstr ""
523
 
524
+ #: views/global_options.php:199
525
  msgid ""
526
  "For files whose extensions cannot be determined, handle them as mp3 files"
527
  msgstr ""
528
 
529
+ #: views/global_options.php:200
530
  msgid "handle them as mp3 files"
531
  msgstr ""
532
 
533
+ #: views/global_options.php:205 views/global_options.php:208
534
  msgid ""
535
  "For the WooCommerce Gutenberg Blocks, include the main player in the "
536
  "products titles"
537
  msgstr ""
538
 
539
+ #: views/global_options.php:209
540
  msgid "Includes the main player in front of products titles"
541
  msgstr ""
542
 
543
+ #: views/global_options.php:214 views/global_options.php:217
544
  msgid "WooCommerce hook used to display the players in the shop pages"
545
  msgstr ""
546
 
547
+ #: views/global_options.php:218
548
  msgid ""
549
  "The plugin uses by default the <b>woocommerce_shop_loop_item_title</b> hook. "
550
  "If the player is not being displayed, enter the hook used by the theme "
551
  "active on your website."
552
  msgstr ""
553
 
554
+ #: views/global_options.php:219
555
  msgid "Force the player in the title"
556
  msgstr ""
557
 
558
+ #: views/global_options.php:219
559
  msgid "Forces the audio player to be displayed in the product title."
560
  msgstr ""
561
 
562
+ #: views/global_options.php:224 views/global_options.php:227
563
  msgid "WooCommerce hook used to display the players in the products pages"
564
  msgstr ""
565
 
566
+ #: views/global_options.php:228
567
  msgid ""
568
  "The plugin uses by default the <b>woocommerce_single_product_summary</b> "
569
  "hook. If the player is not being displayed, enter the hook used by the theme "
570
  "active on your website."
571
  msgstr ""
572
 
573
+ #: views/global_options.php:233
574
  msgid ""
575
  "Click on the <a href=\"https://docs.woocommerce.com/wc-apidocs/hook-docs.html"
576
  "\" target=\"_blank\">THIS LINK</a> for the list of available <a href="
578
  "style=\"font-weight:bold;font-size:1.3em;\">WooCommerce Hooks</a>"
579
  msgstr ""
580
 
581
+ #: views/global_options.php:238
582
  msgid "Include music player in all products"
583
  msgstr ""
584
 
585
+ #: views/global_options.php:244
586
  msgid "Products pages only"
587
  msgstr ""
588
 
589
+ #: views/global_options.php:247
590
  msgid "Multiple-entry pages"
591
  msgstr ""
592
 
593
+ #: views/global_options.php:250
594
  msgid "Product and multiple-entry pages"
595
  msgstr ""
596
 
597
+ #: views/global_options.php:255 views/global_options.php:257
598
  msgid "Include players in cart"
599
  msgstr ""
600
 
601
+ #: views/global_options.php:274
602
  msgid "skin 2"
603
  msgstr ""
604
 
605
+ #: views/global_options.php:305 views/global_options.php:308
606
  msgid "Allow multiple players to play simultaneously"
607
  msgstr ""
608
 
609
+ #: views/global_options.php:310
610
  msgid ""
611
  "By default, only one player would be playing at once. By pressing the play "
612
  "button of a player, the other players would stop. By ticking the checkbox, "
613
  "multiple players could play simultaneously."
614
  msgstr ""
615
 
616
+ #: views/global_options.php:315 views/player_options.php:238
617
  msgid "Player volume (from 0 to 1)"
618
  msgstr ""
619
 
620
+ #: views/global_options.php:317 views/player_options.php:240
621
  msgid "Player volume"
622
  msgstr ""
623
 
624
+ #: views/global_options.php:327 views/player_options.php:250
625
  msgid "On cover"
626
  msgstr ""
627
 
628
+ #: views/global_options.php:342 views/player_options.php:265
629
  msgid "Display the player title"
630
  msgstr ""
631
 
632
+ #: views/global_options.php:346 views/player_options.php:269
633
  msgid "The security feature is only available in the PRO version of the plugin"
634
  msgstr ""
635
 
636
+ #: views/global_options.php:349 views/global_options.php:350
637
  #: views/player_options.php:272 views/player_options.php:273
638
  msgid "Protect the file"
639
  msgstr ""
640
 
641
+ #: views/global_options.php:353 views/global_options.php:355
642
  #: views/player_options.php:276 views/player_options.php:278
643
  msgid "Percent of audio used for protected playbacks"
644
  msgstr ""
645
 
646
+ #: views/global_options.php:356 views/player_options.php:279
647
  msgid ""
648
  "To prevent unauthorized copying of audio files, the files will be partially "
649
  "accessible"
650
  msgstr ""
651
 
652
+ #: views/global_options.php:361
653
  msgid ""
654
  "Text to display beside the player explaining that demos are partial versions "
655
  "of the original files"
656
  msgstr ""
657
 
658
+ #: views/global_options.php:363
659
  msgid "Explaining that demos are partial versions of the original files"
660
  msgstr ""
661
 
662
+ #: views/global_options.php:377
663
  msgid "Scope"
664
  msgstr ""
665
 
666
+ #: views/global_options.php:378
667
  msgid ""
668
  "Ticking the checkbox the previous settings are applied to all products, even "
669
  "if they have a player enabled."
670
  msgstr ""
671
 
672
+ #: views/global_options.php:378
673
  msgid "Apply the previous settings to all products"
674
  msgstr ""
675
 
676
+ #: views/global_options.php:378
677
  msgid "Apply the previous settings to all products pages in the website."
678
  msgstr ""
679
 
680
+ #: views/global_options.php:390
681
  msgid "Analytics"
682
  msgstr ""
683
 
684
+ #: views/global_options.php:394
685
  msgid ""
686
  "Allows the integration with Google Analytics for registering new events when "
687
  "the songs are played. The event information would include: the URL to the "
688
  "audio file as the event label and the product's id as its value."
689
  msgstr ""
690
 
691
+ #: views/global_options.php:395
692
  msgid "Note"
693
  msgstr ""
694
 
695
+ #: views/global_options.php:395
696
  msgid ""
697
  "If the preload option is configured as Metadata or Auto in the players "
698
  "settings, the event would be registered when the audio file is loaded by the "
699
  "player and not exactly when they are playing."
700
  msgstr ""
701
 
702
+ #: views/global_options.php:400 views/global_options.php:401
703
  msgid "Tracking Id"
704
  msgstr ""
705
 
706
+ #: views/global_options.php:413
707
  msgid "Add ons"
708
  msgstr ""
709
 
710
+ #: views/global_options.php:420
711
  msgid "Save settings"
712
  msgstr ""
713
 
773
  msgid "Help"
774
  msgstr ""
775
 
776
+ #: wcmp.php:1011
777
  msgid "There are no products that satisfy the block's settings"
778
  msgstr ""
779
 
pagebuilders/gutenberg/gutenberg.js CHANGED
@@ -66,33 +66,40 @@
66
  {
67
  key : 'wcmp_playlist'
68
  },
69
- [
70
- el(
71
- 'p',
72
- {
73
- key: 'wcmp_inspector_help'
 
 
 
 
 
 
74
 
75
- },
76
- 'To include specific products in the playlist enter their IDs in the products_ids attributes, separated by comma symbols (,)'
77
- ),
78
- el(
79
- 'p',
80
- {
81
- key : 'wcmp_inspector_more_help',
82
- style : {fontWeight: 'bold'}
83
- },
84
- 'More information visiting the follwing link:'
85
- ),
86
- el(
87
- 'a',
88
- {
89
- key : 'wcmp_inspector_help_link',
90
- href : 'https://wcmp.dwbooster.com/documentation#playlist-shortcode',
91
- target : '_blank'
92
- },
93
- 'CLICK HERE'
94
- ),
95
- ]
 
96
  )
97
  );
98
  }
66
  {
67
  key : 'wcmp_playlist'
68
  },
69
+ el(
70
+ 'div',
71
+ {
72
+ key: 'cp_inspector_container',
73
+ style:{paddingLeft:'15px',paddingRight:'15px'}
74
+ },
75
+ [
76
+ el(
77
+ 'p',
78
+ {
79
+ key: 'wcmp_inspector_help'
80
 
81
+ },
82
+ 'To include specific products in the playlist enter their IDs in the products_ids attributes, separated by comma symbols (,)'
83
+ ),
84
+ el(
85
+ 'p',
86
+ {
87
+ key : 'wcmp_inspector_more_help',
88
+ style : {fontWeight: 'bold'}
89
+ },
90
+ 'More information visiting the follwing link:'
91
+ ),
92
+ el(
93
+ 'a',
94
+ {
95
+ key : 'wcmp_inspector_help_link',
96
+ href : 'https://wcmp.dwbooster.com/documentation#playlist-shortcode',
97
+ target : '_blank'
98
+ },
99
+ 'CLICK HERE'
100
+ ),
101
+ ]
102
+ )
103
  )
104
  );
105
  }
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: codepeople
3
  Donate link: https://wcmp.dwbooster.com
4
  Tags:WooCommerce,music player,audio,music,song,player,audio player,media player,mp3,m3u,m3u8,wav,oga,ogg,dokan,wcfm
5
  Requires at least: 3.5.0
6
- Tested up to: 5.7.1
7
  Stable tag: trunk
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
@@ -200,6 +200,33 @@ Each time save the data of a product, the files for demo are deleted and generat
200
 
201
  == Changelog ==
202
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
203
  = 1.0.135 =
204
 
205
  * Includes a new attribute in the plugin's settings for controlling the fade out effect in the demos.
@@ -771,10 +798,4 @@ Each time save the data of a product, the files for demo are deleted and generat
771
 
772
  = 1.0.0 =
773
 
774
- * First version released.
775
-
776
- == Upgrade Notice ==
777
-
778
- = 1.0.135 =
779
-
780
- Important note: If you are using the Professional version don't update via the WP dashboard but using your personal update link. Contact us if you need further information: http://wordpress.dwbooster.com/support
3
  Donate link: https://wcmp.dwbooster.com
4
  Tags:WooCommerce,music player,audio,music,song,player,audio player,media player,mp3,m3u,m3u8,wav,oga,ogg,dokan,wcfm
5
  Requires at least: 3.5.0
6
+ Tested up to: 5.8
7
  Stable tag: trunk
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
200
 
201
  == Changelog ==
202
 
203
+ = 1.0.141 =
204
+
205
+ * Improves the integration with the Gutenberg Editor.
206
+ * Hides the playlist shortcode if WooCommerce is disabled on the website.
207
+
208
+ = 1.0.140 =
209
+
210
+ * Improves the appearance of players on some themes.
211
+
212
+ = 1.0.139 =
213
+
214
+ * Modifies the - multiple entries pages - option to load the player when the product is in the related products list.
215
+
216
+ = 1.0.138 =
217
+
218
+ * Hides the upgrade texts for non-administrator users.
219
+
220
+ = 1.0.137 =
221
+
222
+ * Modifies the players' settings.
223
+ * In the Professional version of the plugin allows applying watermark audio to the audios for demo.
224
+
225
+ = 1.0.136 =
226
+
227
+ * Fixes some notices message on the playlist widget.
228
+ * Includes additional validations to detect if the WooCommerce plugin is active.
229
+
230
  = 1.0.135 =
231
 
232
  * Includes a new attribute in the plugin's settings for controlling the fade out effect in the demos.
798
 
799
  = 1.0.0 =
800
 
801
+ * First version released.
 
 
 
 
 
 
views/global_options.php CHANGED
@@ -101,7 +101,14 @@ _e(
101
  </tr>
102
  <tr>
103
  <td width="30%" style="color:#DDDDDD;"><?php _e( 'ffmpeg path', 'music-player-for-woocommerce' ); ?></td>
104
- <td><input aria-label="<?php print esc_attr(__('ffmpeg path','music-player-for-woocommerce')); ?>" type="text" DISABLED /></td>
 
 
 
 
 
 
 
105
  </tr>
106
  <tr>
107
  <td colspan="2"><hr /></td>
101
  </tr>
102
  <tr>
103
  <td width="30%" style="color:#DDDDDD;"><?php _e( 'ffmpeg path', 'music-player-for-woocommerce' ); ?></td>
104
+ <td><input aria-label="<?php print esc_attr(__('ffmpeg path','music-player-for-woocommerce')); ?>" type="text" DISABLED style="width:100%;" /></td>
105
+ </tr>
106
+ <tr>
107
+ <td width="30%" style="color:#DDDDDD"><?php _e( 'Watermark audio', 'music-player-for-woocommerce' ); ?></td>
108
+ <td>
109
+ <input aria-label="<?php print esc_attr(__('Watermark audio', 'music-player-for-woocommerce')); ?>" type="text" DISABLED style="width: calc( 100% - 60px );"/><input type="button" class="button-secondary" value="<?php print esc_attr(__('Select', 'music-player-for-woocommerce'));?>" style="float:right;" DISABLED /><br />
110
+ <i style="color:#DDDDDD;"><?php _e('Select an audio file if you want to apply a watermark to the audio files for demos. The watermark will be applied to the protected demos (Experimental feature).', 'music-player-for-woocommerce');?></i>
111
+ </td>
112
  </tr>
113
  <tr>
114
  <td colspan="2"><hr /></td>
views/player_options.php CHANGED
@@ -39,6 +39,7 @@ $on_cover = intval( $GLOBALS[ 'WooCommerceMusicPlayer' ]->get_product_attr( $p
39
  <table class="widefat" style="border-left:0;border-right:0;border-bottom:0;padding-bottom:0;">
40
  <tr>
41
  <td>
 
42
  <div class="wcmp-highlight-box">
43
  <?php
44
  _e(
@@ -49,6 +50,7 @@ $on_cover = intval( $GLOBALS[ 'WooCommerceMusicPlayer' ]->get_product_attr( $p
49
  <p><?php _e( 'The security feature and particular files for demo are only available in the PRO version of the plugin', 'music-player-for-woocommerce'); ?>. <a target="_blank" href="https://wcmp.dwbooster.com"><?php _e('CLICK HERE TO GET THE PRO VERSION OF THE PLUGIN', 'music-player-for-woocommerce'); ?></a></p>
50
  <p><?php _e( 'For testing the premium version of the plugin, visit the online demo:<br/> <a href="https://demos.dwbooster.com/music-player-for-woocommerce/wp-login.php" target="_blank">Administration area: Click to access the administration area demo</a><br/><a href="https://demos.dwbooster.com/music-player-for-woocommerce/" target="_blank">Public page: Click to visit the WooCommerce Store</a>', 'music-player-for-woocommerce'); ?></p>
51
  </div>
 
52
  <div class="wcmp-highlight-box">
53
  <div id="wcmp_tips_header">
54
  <h3 style="margin-top:2px;margin-bottom:5px;cursor:pointer;" onclick="jQuery('#wcmp_tips_body').toggle();">
39
  <table class="widefat" style="border-left:0;border-right:0;border-bottom:0;padding-bottom:0;">
40
  <tr>
41
  <td>
42
+ <?php if(current_user_can( 'manage_options' )): ?>
43
  <div class="wcmp-highlight-box">
44
  <?php
45
  _e(
50
  <p><?php _e( 'The security feature and particular files for demo are only available in the PRO version of the plugin', 'music-player-for-woocommerce'); ?>. <a target="_blank" href="https://wcmp.dwbooster.com"><?php _e('CLICK HERE TO GET THE PRO VERSION OF THE PLUGIN', 'music-player-for-woocommerce'); ?></a></p>
51
  <p><?php _e( 'For testing the premium version of the plugin, visit the online demo:<br/> <a href="https://demos.dwbooster.com/music-player-for-woocommerce/wp-login.php" target="_blank">Administration area: Click to access the administration area demo</a><br/><a href="https://demos.dwbooster.com/music-player-for-woocommerce/" target="_blank">Public page: Click to visit the WooCommerce Store</a>', 'music-player-for-woocommerce'); ?></p>
52
  </div>
53
+ <?php endif; ?>
54
  <div class="wcmp-highlight-box">
55
  <div id="wcmp_tips_header">
56
  <h3 style="margin-top:2px;margin-bottom:5px;cursor:pointer;" onclick="jQuery('#wcmp_tips_body').toggle();">
wcmp.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  Plugin Name: Music Player for WooCommerce
4
  Plugin URI: https://wcmp.dwbooster.com
5
- Version: 1.0.135
6
  Text Domain: music-player-for-woocommerce
7
  Author: CodePeople
8
  Author URI: https://wcmp.dwbooster.com
@@ -115,7 +115,7 @@ if ( !class_exists( 'WooCommerceMusicPlayer' ) ) {
115
  public function init()
116
  {
117
  // Check if WooCommerce is installed or not
118
- if(!class_exists('woocommerce')) return;
119
  $_current_user_id = get_current_user_id();
120
  if(
121
  $this->get_global_attr( '_wcmp_registered_only', 0 ) &&
@@ -426,7 +426,7 @@ if ( !class_exists( 'WooCommerceMusicPlayer' ) ) {
426
  wp_enqueue_style( 'wcmp-style', plugin_dir_url(__FILE__).'css/style.css' );
427
  wp_enqueue_script('jquery');
428
  wp_enqueue_script('wp-mediaelement');
429
- wp_enqueue_script('wcmp-script', plugin_dir_url(__FILE__).'js/public.js', array('jquery', 'wp-mediaelement'), '1.0.135');
430
 
431
  $play_all = $GLOBALS[ 'WooCommerceMusicPlayer' ]->get_global_attr(
432
  '_wcmp_play_all',
@@ -436,7 +436,7 @@ if ( !class_exists( 'WooCommerceMusicPlayer' ) ) {
436
 
437
  $play_simultaneously = $GLOBALS[ 'WooCommerceMusicPlayer' ]->get_global_attr('_wcmp_play_simultaneously',0);
438
 
439
- if(is_product())
440
  {
441
  global $post;
442
  $post_types = $this->_get_post_types();
@@ -473,6 +473,7 @@ if ( !class_exists( 'WooCommerceMusicPlayer' ) ) {
473
  */
474
  public function replace_playlist_shortcode($atts)
475
  {
 
476
  global $post;
477
 
478
  $output = '';
@@ -783,7 +784,7 @@ if ( !class_exists( 'WooCommerceMusicPlayer' ) ) {
783
  $show_in = $this->get_product_attr( $id, '_wcmp_show_in', 'all' );
784
  if(
785
  ($show_in == 'single' && !is_product()) ||
786
- ($show_in == 'multiple' && is_product())
787
  ) return;
788
  $preload = $this->get_product_attr($id, '_wcmp_preload', '');
789
  $this->enqueue_resources();
2
  /*
3
  Plugin Name: Music Player for WooCommerce
4
  Plugin URI: https://wcmp.dwbooster.com
5
+ Version: 1.0.141
6
  Text Domain: music-player-for-woocommerce
7
  Author: CodePeople
8
  Author URI: https://wcmp.dwbooster.com
115
  public function init()
116
  {
117
  // Check if WooCommerce is installed or not
118
+ if(!class_exists('woocommerce')){ add_shortcode('wcmp-playlist', function($atts){return '';}); return; }
119
  $_current_user_id = get_current_user_id();
120
  if(
121
  $this->get_global_attr( '_wcmp_registered_only', 0 ) &&
426
  wp_enqueue_style( 'wcmp-style', plugin_dir_url(__FILE__).'css/style.css' );
427
  wp_enqueue_script('jquery');
428
  wp_enqueue_script('wp-mediaelement');
429
+ wp_enqueue_script('wcmp-script', plugin_dir_url(__FILE__).'js/public.js', array('jquery', 'wp-mediaelement'), '1.0.141');
430
 
431
  $play_all = $GLOBALS[ 'WooCommerceMusicPlayer' ]->get_global_attr(
432
  '_wcmp_play_all',
436
 
437
  $play_simultaneously = $GLOBALS[ 'WooCommerceMusicPlayer' ]->get_global_attr('_wcmp_play_simultaneously',0);
438
 
439
+ if(function_exists('is_product') && is_product())
440
  {
441
  global $post;
442
  $post_types = $this->_get_post_types();
473
  */
474
  public function replace_playlist_shortcode($atts)
475
  {
476
+ if(!class_exists('woocommerce')) return '';
477
  global $post;
478
 
479
  $output = '';
784
  $show_in = $this->get_product_attr( $id, '_wcmp_show_in', 'all' );
785
  if(
786
  ($show_in == 'single' && !is_product()) ||
787
+ ($show_in == 'multiple' && is_product() && get_queried_object_id() == $id)
788
  ) return;
789
  $preload = $this->get_product_attr($id, '_wcmp_preload', '');
790
  $this->enqueue_resources();
widgets/playlist_widget.php CHANGED
@@ -113,8 +113,8 @@ if( !class_exists( 'WCMP_PLAYLIST_WIDGET' ) )
113
  $instance['title'] = sanitize_text_field($new_instance['title']);
114
  $instance['products_ids'] = sanitize_text_field($new_instance['products_ids']);
115
  $instance['volume'] = sanitize_text_field($new_instance['volume']);
116
- $instance['highlight_current_product'] = sanitize_text_field($new_instance['highlight_current_product']);
117
- $instance['continue_playing'] = sanitize_text_field($new_instance['continue_playing']);
118
  $instance['player_style'] = sanitize_text_field($new_instance['player_style']);
119
  $instance['playlist_layout'] = sanitize_text_field((!empty($new_instance['playlist_layout'])) ? $new_instance['playlist_layout'] : 'new');
120
 
113
  $instance['title'] = sanitize_text_field($new_instance['title']);
114
  $instance['products_ids'] = sanitize_text_field($new_instance['products_ids']);
115
  $instance['volume'] = sanitize_text_field($new_instance['volume']);
116
+ $instance['highlight_current_product'] = (!empty($new_instance['highlight_current_product'])) ? true : false;
117
+ $instance['continue_playing'] = (!empty($new_instance['continue_playing'])) ? true : false;
118
  $instance['player_style'] = sanitize_text_field($new_instance['player_style']);
119
  $instance['playlist_layout'] = sanitize_text_field((!empty($new_instance['playlist_layout'])) ? $new_instance['playlist_layout'] : 'new');
120