Music Player for WooCommerce - Version 1.0.129

Version Description

  • Includes the new attribute: 'Forces the audio player to be displayed in the product title.' in the plugin's settings page to prevent conflicts with plugins and themes with Ajax Infinite Scroll behavior.
Download this release

Release Info

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

Code changes from version 1.0.128 to 1.0.129

css/style.css CHANGED
@@ -56,4 +56,6 @@
56
  .wcmp-player.mejs-ted .mejs-controls .mejs-volume-button .mejs-volume-current{left:0;}
57
 
58
  .wcmp-player.track.mejs-classic .mejs-controls{padding:0 !important; height:26px;}
59
- .wcmp-player.track.mejs-classic .mejs-playpause-button button{position: absolute;top: 50%;left: 50%;margin:0;transform: translate(-50%, -50%);}
 
 
56
  .wcmp-player.mejs-ted .mejs-controls .mejs-volume-button .mejs-volume-current{left:0;}
57
 
58
  .wcmp-player.track.mejs-classic .mejs-controls{padding:0 !important; height:26px;}
59
+ .wcmp-player.track.mejs-classic .mejs-playpause-button button{position: absolute;top: 50%;left: 50%;margin:0;transform: translate(-50%, -50%);}
60
+
61
+ .mini_cart_item .wcmp-player{display:none !important;}
languages/music-player-for-woocommerce-en_US.mo CHANGED
Binary file
languages/music-player-for-woocommerce-en_US.po CHANGED
@@ -1,8 +1,8 @@
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: music-player-for-woocommerce\n"
4
- "POT-Creation-Date: 2020-12-01 20:39+0100\n"
5
- "PO-Revision-Date: 2020-12-01 20:39+0100\n"
6
  "Last-Translator: CodePeople\n"
7
  "Language-Team: CodePeople\n"
8
  "Language: en_US\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:225
130
  #: views/player_options.php:179
131
  msgid "Enable player"
132
  msgstr ""
133
 
134
- #: addons/dokan/player_options.php:181 views/global_options.php:225
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:228
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:231
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:234
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:237
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:247 views/global_options.php:248
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:248
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:251
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:255
198
- #: views/global_options.php:256 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:261
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:265
209
- #: views/global_options.php:266 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:273
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:276
220
  #: views/player_options.php:224
221
  msgid "Preload - none"
222
  msgstr ""
223
 
224
- #: addons/dokan/player_options.php:225 views/global_options.php:277
225
  #: views/player_options.php:225
226
  msgid "Preload - metadata"
227
  msgstr ""
228
 
229
- #: addons/dokan/player_options.php:226 views/global_options.php:278
230
  #: views/player_options.php:226
231
  msgid "Preload - auto"
232
  msgstr ""
233
 
234
- #: addons/dokan/player_options.php:230 views/global_options.php:283
235
- #: views/global_options.php:286 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:307
241
  #: views/player_options.php:244
242
  msgid "Player controls"
243
  msgstr ""
244
 
245
- #: addons/dokan/player_options.php:235 views/global_options.php:309
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:309
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:310
256
  #: views/player_options.php:247
257
  msgid "All controls"
258
  msgstr ""
259
 
260
- #: addons/dokan/player_options.php:236 views/global_options.php:310
261
  #: views/player_options.php:247
262
  msgid "all controls"
263
  msgstr ""
264
 
265
- #: addons/dokan/player_options.php:237 views/global_options.php:311
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:311
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:316
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:319
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:326
292
  #: views/player_options.php:263
293
  msgid "Display the player's title"
294
  msgstr ""
@@ -344,7 +344,7 @@ msgstr ""
344
  #: pagebuilders/beaverbuilder/wcmp/wcmp.pb.php:9
345
  #: pagebuilders/beaverbuilder/wcmp/wcmp.pb.php:11
346
  #: pagebuilders/beaverbuilder/wcmp/wcmp.pb.php:12 pagebuilders/builders.php:130
347
- #: pagebuilders/siteorigin/siteorigin-wcmp/siteorigin-wcmp.php:17 wcmp.php:215
348
  msgid "Music Player for WooCommerce"
349
  msgstr ""
350
 
@@ -376,11 +376,11 @@ msgstr ""
376
  msgid "Insert a playlist with the products players"
377
  msgstr ""
378
 
379
- #: views/global_options.php:37
380
  msgid "Music Player for WooCommerce - Global Settings"
381
  msgstr ""
382
 
383
- #: views/global_options.php:41
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 +392,23 @@ msgid ""
392
  "target=\"_blank\">Public page: Click to visit the WooCommerce Store</a>"
393
  msgstr ""
394
 
395
- #: views/global_options.php:50
396
  msgid "Registering of Plugin"
397
  msgstr ""
398
 
399
- #: views/global_options.php:52
400
  msgid "Enter the email address of buyer"
401
  msgstr ""
402
 
403
- #: views/global_options.php:53
404
  msgid "Buyer email"
405
  msgstr ""
406
 
407
- #: views/global_options.php:53
408
  msgid "Register"
409
  msgstr ""
410
 
411
- #: views/global_options.php:65 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,124 +420,132 @@ msgid ""
420
  "pay for them.</b></p>"
421
  msgstr ""
422
 
423
- #: views/global_options.php:76
424
  msgid "General Settings"
425
  msgstr ""
426
 
427
- #: views/global_options.php:79 views/global_options.php:80
428
  msgid "Include the players only for registered users"
429
  msgstr ""
430
 
431
- #: views/global_options.php:83
432
  msgid "The general settings affect only the PRO version of the plugin"
433
  msgstr ""
434
 
435
- #: views/global_options.php:83 views/global_options.php:332
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:86 views/global_options.php:87
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:93 views/global_options.php:94
447
  msgid "Truncate the audio files for demo with ffmpeg"
448
  msgstr ""
449
 
450
- #: views/global_options.php:97 views/global_options.php:98
451
  msgid "ffmpeg path"
452
  msgstr ""
453
 
454
- #: views/global_options.php:104 views/global_options.php:105
455
  msgid "Delete the demo files generated previously"
456
  msgstr ""
457
 
458
- #: views/global_options.php:111 views/global_options.php:112
459
  msgid "Store demo files on Google Drive"
460
  msgstr ""
461
 
462
- #: views/global_options.php:115
463
  msgid "Import a JSON Key file"
464
  msgstr ""
465
 
466
- #: views/global_options.php:117
467
  msgid "JSON Key file"
468
  msgstr ""
469
 
470
- #: views/global_options.php:161
471
  msgid "Troubleshoot Area"
472
  msgstr ""
473
 
474
- #: views/global_options.php:165 views/global_options.php:168
475
  msgid "On iPads and iPhones, use native controls"
476
  msgstr ""
477
 
478
- #: views/global_options.php:169
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:174
484
  msgid "Loading players in the onload event"
485
  msgstr ""
486
 
487
- #: views/global_options.php:177
488
  msgid "Loading placeholder in the onload event"
489
  msgstr ""
490
 
491
- #: views/global_options.php:178
492
  msgid "tick the checkbox if the players are not being loaded properly"
493
  msgstr ""
494
 
495
- #: views/global_options.php:183
496
  msgid "For files whose extensions cannot be determined"
497
  msgstr ""
498
 
499
- #: views/global_options.php:186
500
  msgid ""
501
  "For files whose extensions cannot be determined, handle them as mp3 files"
502
  msgstr ""
503
 
504
- #: views/global_options.php:187
505
  msgid "handle them as mp3 files"
506
  msgstr ""
507
 
508
- #: views/global_options.php:192 views/global_options.php:195
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:196
515
  msgid "Includes the main player in front of products titles"
516
  msgstr ""
517
 
518
- #: views/global_options.php:201 views/global_options.php:204
519
  msgid "WooCommerce hook used to display the players in the shop pages"
520
  msgstr ""
521
 
522
- #: views/global_options.php:205
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:210 views/global_options.php:213
 
 
 
 
 
 
 
 
530
  msgid "WooCommerce hook used to display the players in the products pages"
531
  msgstr ""
532
 
533
- #: views/global_options.php:214
534
  msgid ""
535
  "The plugin uses by default the <b>woocommerce_single_product_summary</b> "
536
  "hook. If the player is not being displayed, enter the hook used by the theme "
537
  "active on your website."
538
  msgstr ""
539
 
540
- #: views/global_options.php:219
541
  msgid ""
542
  "Click on the <a href=\"https://docs.woocommerce.com/wc-apidocs/hook-docs.html"
543
  "\" target=\"_blank\">THIS LINK</a> for the list of available <a href="
@@ -545,136 +553,136 @@ msgid ""
545
  "style=\"font-weight:bold;font-size:1.3em;\">WooCommerce Hooks</a>"
546
  msgstr ""
547
 
548
- #: views/global_options.php:224
549
  msgid "Include music player in all products"
550
  msgstr ""
551
 
552
- #: views/global_options.php:230
553
  msgid "Products pages only"
554
  msgstr ""
555
 
556
- #: views/global_options.php:233
557
  msgid "Multiple-entry pages"
558
  msgstr ""
559
 
560
- #: views/global_options.php:236
561
  msgid "Product and multiple-entry pages"
562
  msgstr ""
563
 
564
- #: views/global_options.php:241 views/global_options.php:243
565
  msgid "Include players in cart"
566
  msgstr ""
567
 
568
- #: views/global_options.php:260
569
  msgid "skin 2"
570
  msgstr ""
571
 
572
- #: views/global_options.php:291 views/global_options.php:294
573
  msgid "Allow multiple players to play simultaneously"
574
  msgstr ""
575
 
576
- #: views/global_options.php:296
577
  msgid ""
578
  "By default, only one player would be playing at once. By pressing the play "
579
  "button of a player, the other players would stop. By ticking the checkbox, "
580
  "multiple players could play simultaneously."
581
  msgstr ""
582
 
583
- #: views/global_options.php:301 views/player_options.php:238
584
  msgid "Player volume (from 0 to 1)"
585
  msgstr ""
586
 
587
- #: views/global_options.php:303 views/player_options.php:240
588
  msgid "Player volume"
589
  msgstr ""
590
 
591
- #: views/global_options.php:313 views/player_options.php:250
592
  msgid "On cover"
593
  msgstr ""
594
 
595
- #: views/global_options.php:328 views/player_options.php:265
596
  msgid "Display the player title"
597
  msgstr ""
598
 
599
- #: views/global_options.php:332 views/player_options.php:269
600
  msgid "The security feature is only available in the PRO version of the plugin"
601
  msgstr ""
602
 
603
- #: views/global_options.php:335 views/global_options.php:336
604
  #: views/player_options.php:272 views/player_options.php:273
605
  msgid "Protect the file"
606
  msgstr ""
607
 
608
- #: views/global_options.php:339 views/global_options.php:341
609
  #: views/player_options.php:276 views/player_options.php:278
610
  msgid "Percent of audio used for protected playbacks"
611
  msgstr ""
612
 
613
- #: views/global_options.php:342 views/player_options.php:279
614
  msgid ""
615
  "To prevent unauthorized copying of audio files, the files will be partially "
616
  "accessible"
617
  msgstr ""
618
 
619
- #: views/global_options.php:347
620
  msgid ""
621
  "Text to display beside the player explaining that demos are partial versions "
622
  "of the original files"
623
  msgstr ""
624
 
625
- #: views/global_options.php:349
626
  msgid "Explaining that demos are partial versions of the original files"
627
  msgstr ""
628
 
629
- #: views/global_options.php:363
630
  msgid "Scope"
631
  msgstr ""
632
 
633
- #: views/global_options.php:364
634
  msgid ""
635
  "Ticking the checkbox the previous settings are applied to all products, even "
636
  "if they have a player enabled."
637
  msgstr ""
638
 
639
- #: views/global_options.php:364
640
  msgid "Apply the previous settings to all products"
641
  msgstr ""
642
 
643
- #: views/global_options.php:364
644
  msgid "Apply the previous settings to all products pages in the website."
645
  msgstr ""
646
 
647
- #: views/global_options.php:376
648
  msgid "Analytics"
649
  msgstr ""
650
 
651
- #: views/global_options.php:380
652
  msgid ""
653
  "Allows the integration with Google Analytics for registering new events when "
654
  "the songs are played. The event information would include: the URL to the "
655
  "audio file as the event label and the product's id as its value."
656
  msgstr ""
657
 
658
- #: views/global_options.php:381
659
  msgid "Note"
660
  msgstr ""
661
 
662
- #: views/global_options.php:381
663
  msgid ""
664
  "If the preload option is configured as Metadata or Auto in the players "
665
  "settings, the event would be registered when the audio file is loaded by the "
666
  "player and not exactly when they are playing."
667
  msgstr ""
668
 
669
- #: views/global_options.php:386 views/global_options.php:387
670
  msgid "Tracking Id"
671
  msgstr ""
672
 
673
- #: views/global_options.php:399
674
  msgid "Add ons"
675
  msgstr ""
676
 
677
- #: views/global_options.php:406
678
  msgid "Save settings"
679
  msgstr ""
680
 
@@ -736,11 +744,11 @@ msgstr ""
736
  msgid "Add File"
737
  msgstr ""
738
 
739
- #: wcmp.php:225
740
  msgid "Help"
741
  msgstr ""
742
 
743
- #: wcmp.php:964
744
  msgid "There are no products that satisfy the block's settings"
745
  msgstr ""
746
 
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"
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
  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
  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
  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
  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
  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 ""
344
  #: pagebuilders/beaverbuilder/wcmp/wcmp.pb.php:9
345
  #: pagebuilders/beaverbuilder/wcmp/wcmp.pb.php:11
346
  #: pagebuilders/beaverbuilder/wcmp/wcmp.pb.php:12 pagebuilders/builders.php:130
347
+ #: pagebuilders/siteorigin/siteorigin-wcmp/siteorigin-wcmp.php:17 wcmp.php:220
348
  msgid "Music Player for WooCommerce"
349
  msgstr ""
350
 
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
  "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
  "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
  "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
 
744
  msgid "Add File"
745
  msgstr ""
746
 
747
+ #: wcmp.php:230
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
 
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.6
7
  Stable tag: trunk
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
@@ -200,6 +200,10 @@ Each time save the data of a product, the files for demo are deleted and generat
200
 
201
  == Changelog ==
202
 
 
 
 
 
203
  = 1.0.128 =
204
 
205
  * Includes additional validations to prevent conflicts with custom post types.
@@ -745,6 +749,6 @@ Each time save the data of a product, the files for demo are deleted and generat
745
 
746
  == Upgrade Notice ==
747
 
748
- = 1.0.128 =
749
 
750
  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.7
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.129 =
204
+
205
+ * Includes the new attribute: 'Forces the audio player to be displayed in the product title.' in the plugin's settings page to prevent conflicts with plugins and themes with Ajax Infinite Scroll behavior.
206
+
207
  = 1.0.128 =
208
 
209
  * Includes additional validations to prevent conflicts with custom post types.
749
 
750
  == Upgrade Notice ==
751
 
752
+ = 1.0.129 =
753
 
754
  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
views/global_options.php CHANGED
@@ -9,6 +9,7 @@ $force_main_player_in_title = $GLOBALS[ 'WooCommerceMusicPlayer' ]->get_global_a
9
  $ios_controls = $GLOBALS[ 'WooCommerceMusicPlayer' ]->get_global_attr( '_wcmp_ios_controls', false );
10
  $troubleshoot_onload = $GLOBALS[ 'WooCommerceMusicPlayer' ]->get_global_attr( '_wcmp_onload', false );
11
  $include_main_player_hook = trim($GLOBALS[ 'WooCommerceMusicPlayer' ]->get_global_attr('_wcmp_main_player_hook', ''));
 
12
  $include_all_players_hook = trim($GLOBALS[ 'WooCommerceMusicPlayer' ]->get_global_attr('_wcmp_all_players_hook', ''));
13
 
14
  $enable_player = $GLOBALS[ 'WooCommerceMusicPlayer' ]->get_global_attr( '_wcmp_enable_player', false );
@@ -202,7 +203,8 @@ _e(
202
  </td>
203
  <td>
204
  <input aria-label="<?php print esc_attr(__('WooCommerce hook used to display the players in the shop pages','music-player-for-woocommerce')); ?>" type="text" name="_wcmp_main_player_hook" value="<?php esc_attr_e($include_main_player_hook); ?>" style="width:100%" /><br />
205
- <?php _e( 'The plugin uses by default the <b>woocommerce_shop_loop_item_title</b> hook. If the player is not being displayed, enter the hook used by the theme active on your website.', 'music-player-for-woocommerce' ); ?>
 
206
  </td>
207
  </tr>
208
  <tr>
9
  $ios_controls = $GLOBALS[ 'WooCommerceMusicPlayer' ]->get_global_attr( '_wcmp_ios_controls', false );
10
  $troubleshoot_onload = $GLOBALS[ 'WooCommerceMusicPlayer' ]->get_global_attr( '_wcmp_onload', false );
11
  $include_main_player_hook = trim($GLOBALS[ 'WooCommerceMusicPlayer' ]->get_global_attr('_wcmp_main_player_hook', ''));
12
+ $main_player_hook_title = trim($GLOBALS[ 'WooCommerceMusicPlayer' ]->get_global_attr('_wcmp_main_player_hook_title', ''));
13
  $include_all_players_hook = trim($GLOBALS[ 'WooCommerceMusicPlayer' ]->get_global_attr('_wcmp_all_players_hook', ''));
14
 
15
  $enable_player = $GLOBALS[ 'WooCommerceMusicPlayer' ]->get_global_attr( '_wcmp_enable_player', false );
203
  </td>
204
  <td>
205
  <input aria-label="<?php print esc_attr(__('WooCommerce hook used to display the players in the shop pages','music-player-for-woocommerce')); ?>" type="text" name="_wcmp_main_player_hook" value="<?php esc_attr_e($include_main_player_hook); ?>" style="width:100%" /><br />
206
+ <?php _e( 'The plugin uses by default the <b>woocommerce_shop_loop_item_title</b> hook. If the player is not being displayed, enter the hook used by the theme active on your website.', 'music-player-for-woocommerce' ); ?><br>
207
+ <input type="checkbox" name="_wcmp_main_player_hook_title" aria-label="<?php print esc_attr(__('Force the player in the title', 'music-player-for-woocommerce')); ?>" <?php if($main_player_hook_title) print 'checked'; ?>> <?php _e( 'Forces the audio player to be displayed in the product title.', 'music-player-for-woocommerce' ); ?>
208
  </td>
209
  </tr>
210
  <tr>
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.128
6
  Text Domain: music-player-for-woocommerce
7
  Author: CodePeople
8
  Author URI: https://wcmp.dwbooster.com
@@ -59,6 +59,7 @@ if ( !class_exists( 'WooCommerceMusicPlayer' ) ) {
59
  add_action( 'plugins_loaded', array(&$this, 'load_textdomain') );
60
  add_action('init', array(&$this, 'init'));
61
  add_action('admin_init', array(&$this, 'admin_init'), 99);
 
62
 
63
  $this->_load_addons();
64
 
@@ -163,7 +164,11 @@ if ( !class_exists( 'WooCommerceMusicPlayer' ) ) {
163
  if(empty($include_main_player_hook)) $include_main_player_hook = 'woocommerce_shop_loop_item_title';
164
  if(empty($include_all_players_hook)) $include_all_players_hook = 'woocommerce_single_product_summary';
165
 
166
- add_action( $include_main_player_hook, array( &$this, 'include_main_player' ), 11 );
 
 
 
 
167
  add_action( $include_all_players_hook, array( &$this, 'include_all_players' ), 11 );
168
 
169
  // Allows to call the players directly by themes
@@ -247,6 +252,7 @@ if ( !class_exists( 'WooCommerceMusicPlayer' ) ) {
247
  $ios_controls = (isset($_REQUEST['_wcmp_ios_controls'])) ? true : false;
248
  $troubleshoot_onload = (isset($_REQUEST['_wcmp_onload'])) ? true : false;
249
  $include_main_player_hook = (isset($_REQUEST['_wcmp_main_player_hook'])) ? sanitize_text_field($_REQUEST['_wcmp_main_player_hook']) : '';
 
250
  $include_all_players_hook = (isset($_REQUEST['_wcmp_all_players_hook'])) ? sanitize_text_field($_REQUEST['_wcmp_all_players_hook']) : '';
251
 
252
  $enable_player = (isset($_REQUEST['_wcmp_enable_player'])) ? 1 : 0;
@@ -292,6 +298,7 @@ if ( !class_exists( 'WooCommerceMusicPlayer' ) ) {
292
  '_wcmp_ios_controls' => $ios_controls,
293
  '_wcmp_onload' => $troubleshoot_onload,
294
  '_wcmp_main_player_hook' => $include_main_player_hook,
 
295
  '_wcmp_all_players_hook' => $include_all_players_hook,
296
  '_wcmp_analytics_property' => (isset($_REQUEST['_wcmp_analytics_property'])) ? sanitize_text_field($_REQUEST['_wcmp_analytics_property']) : ''
297
  );
@@ -417,7 +424,7 @@ if ( !class_exists( 'WooCommerceMusicPlayer' ) ) {
417
  wp_enqueue_style( 'wcmp-style', plugin_dir_url(__FILE__).'css/style.css' );
418
  wp_enqueue_script('jquery');
419
  wp_enqueue_script('wp-mediaelement');
420
- wp_enqueue_script('wcmp-script', plugin_dir_url(__FILE__).'js/public.js', array('jquery', 'wp-mediaelement'), '1.0.128');
421
 
422
  $play_all = $GLOBALS[ 'WooCommerceMusicPlayer' ]->get_global_attr(
423
  '_wcmp_play_all',
@@ -738,6 +745,29 @@ if ( !class_exists( 'WooCommerceMusicPlayer' ) ) {
738
  return $this->_generate_audio_url( $product_id, $file_id, $file_data);
739
  }
740
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
741
  public function include_main_player($product = '')
742
  {
743
  if(!$this->_insert_player) return;
2
  /*
3
  Plugin Name: Music Player for WooCommerce
4
  Plugin URI: https://wcmp.dwbooster.com
5
+ Version: 1.0.129
6
  Text Domain: music-player-for-woocommerce
7
  Author: CodePeople
8
  Author URI: https://wcmp.dwbooster.com
59
  add_action( 'plugins_loaded', array(&$this, 'load_textdomain') );
60
  add_action('init', array(&$this, 'init'));
61
  add_action('admin_init', array(&$this, 'admin_init'), 99);
62
+ add_filter( 'the_title', array(&$this, 'include_main_player_filter'), 11, 2);
63
 
64
  $this->_load_addons();
65
 
164
  if(empty($include_main_player_hook)) $include_main_player_hook = 'woocommerce_shop_loop_item_title';
165
  if(empty($include_all_players_hook)) $include_all_players_hook = 'woocommerce_single_product_summary';
166
 
167
+ if($this->get_global_attr( '_wcmp_main_player_hook_title', 0 ) == 0)
168
+ {
169
+ add_action( $include_main_player_hook, array( &$this, 'include_main_player' ), 11 );
170
+ }
171
+
172
  add_action( $include_all_players_hook, array( &$this, 'include_all_players' ), 11 );
173
 
174
  // Allows to call the players directly by themes
252
  $ios_controls = (isset($_REQUEST['_wcmp_ios_controls'])) ? true : false;
253
  $troubleshoot_onload = (isset($_REQUEST['_wcmp_onload'])) ? true : false;
254
  $include_main_player_hook = (isset($_REQUEST['_wcmp_main_player_hook'])) ? sanitize_text_field($_REQUEST['_wcmp_main_player_hook']) : '';
255
+ $main_player_hook_title = (isset($_REQUEST['_wcmp_main_player_hook_title'])) ? 1 : 0;
256
  $include_all_players_hook = (isset($_REQUEST['_wcmp_all_players_hook'])) ? sanitize_text_field($_REQUEST['_wcmp_all_players_hook']) : '';
257
 
258
  $enable_player = (isset($_REQUEST['_wcmp_enable_player'])) ? 1 : 0;
298
  '_wcmp_ios_controls' => $ios_controls,
299
  '_wcmp_onload' => $troubleshoot_onload,
300
  '_wcmp_main_player_hook' => $include_main_player_hook,
301
+ '_wcmp_main_player_hook_title' => $main_player_hook_title,
302
  '_wcmp_all_players_hook' => $include_all_players_hook,
303
  '_wcmp_analytics_property' => (isset($_REQUEST['_wcmp_analytics_property'])) ? sanitize_text_field($_REQUEST['_wcmp_analytics_property']) : ''
304
  );
424
  wp_enqueue_style( 'wcmp-style', plugin_dir_url(__FILE__).'css/style.css' );
425
  wp_enqueue_script('jquery');
426
  wp_enqueue_script('wp-mediaelement');
427
+ wp_enqueue_script('wcmp-script', plugin_dir_url(__FILE__).'js/public.js', array('jquery', 'wp-mediaelement'), '1.0.129');
428
 
429
  $play_all = $GLOBALS[ 'WooCommerceMusicPlayer' ]->get_global_attr(
430
  '_wcmp_play_all',
745
  return $this->_generate_audio_url( $product_id, $file_id, $file_data);
746
  }
747
 
748
+ public function include_main_player_filter($value,$id)
749
+ {
750
+ if($this->get_global_attr( '_wcmp_main_player_hook_title', 0 ) == 1)
751
+ {
752
+ try{
753
+ if(!is_product() && !is_cart() && !is_page('cart') && !is_checkout() && is_int($id))
754
+ {
755
+ $p = wc_get_product($id);
756
+ if(!empty($p))
757
+ {
758
+ $player = '';
759
+ ob_start();
760
+ $this->include_main_player($p);
761
+ $player = ob_get_contents();
762
+ ob_end_clean();
763
+ $value = $player.$value;
764
+ }
765
+ }
766
+ }catch(Exception $err){}
767
+ }
768
+ return $value;
769
+ }
770
+
771
  public function include_main_player($product = '')
772
  {
773
  if(!$this->_insert_player) return;