EmbedPress – Embed Google Docs, YouTube, Maps, Vimeo, Wistia Videos & Upload PDF, PPT in Gutenberg & Elementor - Version 3.1.2

Version Description

Download this release

Release Info

Developer wpdevteam
Plugin Icon wp plugin EmbedPress – Embed Google Docs, YouTube, Maps, Vimeo, Wistia Videos & Upload PDF, PPT in Gutenberg & Elementor
Version 3.1.2
Comparing to
See all releases

Code changes from version 3.1.1 to 3.1.2

Files changed (38) hide show
  1. EmbedPress/Elementor/Widgets/Embedpress_Document.php +52 -15
  2. EmbedPress/Elementor/Widgets/Embedpress_Elementor.php +67 -43
  3. EmbedPress/Ends/Back/Handler.php +26 -24
  4. EmbedPress/Ends/Back/Settings/EmbedpressSettings.php +16 -1
  5. EmbedPress/Ends/Back/Settings/assets/css/style.css +2 -1
  6. EmbedPress/Ends/Back/Settings/assets/embedpress.pdf +0 -0
  7. EmbedPress/Ends/Back/Settings/templates/custom-logo.php +29 -6
  8. EmbedPress/Ends/Back/Settings/templates/dailymotion.php +6 -5
  9. EmbedPress/Ends/Back/Settings/templates/twitch.php +12 -14
  10. EmbedPress/Ends/Back/Settings/templates/vimeo.php +19 -10
  11. EmbedPress/Ends/Back/Settings/templates/wistia.php +20 -14
  12. EmbedPress/Ends/Back/Settings/templates/youtube.php +51 -13
  13. EmbedPress/Includes/Classes/Elementor_Enhancer.php +287 -279
  14. EmbedPress/Includes/Classes/Feature_Enhancer.php +85 -95
  15. EmbedPress/Includes/Traits/Branding.php +191 -0
  16. EmbedPress/Plugins/Plugin.php +1 -1
  17. EmbedPress/Shortcode.php +11 -4
  18. Gutenberg/dist/blocks.build.js +1 -1
  19. Gutenberg/dist/blocks.editor.build.css +1 -1
  20. Gutenberg/plugin.php +7 -8
  21. assets/css/addons.css +0 -63
  22. assets/css/admin.css +12 -12
  23. assets/css/el-icon.css +2 -1
  24. assets/css/embedpress-elementor.css +6 -1
  25. assets/images/embedpress-vimeo.jpg +0 -0
  26. assets/images/embedpress-wistia.jpg +0 -0
  27. assets/images/embedpress-youtube.jpg +0 -0
  28. assets/images/embedpress.png +0 -0
  29. assets/images/essential-blocks.png +0 -0
  30. assets/images/icon-why-premium.svg +0 -102
  31. assets/images/menu-icon.png +0 -0
  32. assets/images/menu-icon.svg +22 -0
  33. assets/images/nx-icon.svg +0 -19
  34. assets/js/admin.js +0 -1
  35. embedpress.php +1 -18
  36. includes.php +1 -1
  37. languages/embedpress.pot +378 -380
  38. readme.txt +8 -2
EmbedPress/Elementor/Widgets/Embedpress_Document.php CHANGED
@@ -7,12 +7,15 @@ use \Elementor\Controls_Manager as Controls_Manager;
7
  use \Elementor\Modules\DynamicTags\Module as TagsModule;
8
  use \Elementor\Widget_Base as Widget_Base;
9
  use \Elementor\Plugin;
 
10
 
11
  ( defined( 'ABSPATH' ) ) or die( "No direct script access allowed." );
12
 
13
  class Embedpress_Document extends Widget_Base
14
  {
15
-
 
 
16
  public function get_name()
17
  {
18
  return 'embedpres_document';
@@ -55,7 +58,8 @@ class Embedpress_Document extends Widget_Base
55
 
56
  protected function _register_controls()
57
  {
58
-
 
59
  /**
60
  * EmbedPress Content Settings
61
  */
@@ -203,9 +207,37 @@ class Embedpress_Document extends Widget_Base
203
  'default' => apply_filters( 'embedpress_document_powered_by_control', 'yes' ),
204
  ]
205
  );
206
-
207
-
208
- $this->end_controls_section();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
209
  }
210
 
211
  private function is_pdf( $url )
@@ -225,34 +257,39 @@ class Embedpress_Document extends Widget_Base
225
  'data-emid' => $id
226
  ] );
227
  $this->add_render_attribute( 'embedpress-document', [
228
- 'class' => ['embedpress-document-embed']
229
  ] );
230
  ?>
231
- <div <?php echo $this->get_render_attribute_string( 'embedpress-document' ); ?>>
 
 
 
232
  <?php if ( $url != '' ) {
233
  if ( $this->is_pdf( $url ) ) {
234
  $this->add_render_attribute( 'embedpres-pdf-render', 'data-emsrc', $url );
235
  ?>
236
- <div <?php echo $this->get_render_attribute_string( 'embedpres-pdf-render' ); ?>></div>
 
237
  <?php
238
 
239
  if ( Plugin::$instance->editor->is_edit_mode() ) {
240
  $this->render_editor_script( $id, $url );
241
  }
242
-
243
  } else {
244
  $view_link = 'https://docs.google.com/viewer?url=' . $url . '&embedded=true';
245
  ?>
246
- <iframe allowfullscreen="true"
247
- mozallowfullscreen="true" webkitallowfullscreen="true" style="<?php echo $dimension; ?>" src="<?php echo $view_link; ?>"/>
 
 
248
  <?php
249
-
250
  }
251
- if ( $settings[ 'embedpress_document_powered_by' ] === 'yes' ) {
252
  printf( '<p class="embedpress-el-powered">%s</p>', __( 'Powered By EmbedPress', 'embedpress' ) );
253
  }
254
- } ?>
255
-
256
  </div>
257
 
258
  <?php
7
  use \Elementor\Modules\DynamicTags\Module as TagsModule;
8
  use \Elementor\Widget_Base as Widget_Base;
9
  use \Elementor\Plugin;
10
+ use EmbedPress\Includes\Traits\Branding;
11
 
12
  ( defined( 'ABSPATH' ) ) or die( "No direct script access allowed." );
13
 
14
  class Embedpress_Document extends Widget_Base
15
  {
16
+ use Branding;
17
+ protected $pro_class = '';
18
+ protected $pro_text = '';
19
  public function get_name()
20
  {
21
  return 'embedpres_document';
58
 
59
  protected function _register_controls()
60
  {
61
+ $this->pro_class = is_embedpress_pro_active() ? '': 'embedpress-pro-control';
62
+ $this->pro_text = is_embedpress_pro_active() ? '': '<sup class="embedpress-pro-label" style="color:red">'.__('Pro', 'embedpress').'</sup>';
63
  /**
64
  * EmbedPress Content Settings
65
  */
207
  'default' => apply_filters( 'embedpress_document_powered_by_control', 'yes' ),
208
  ]
209
  );
210
+
211
+ $this->init_branding_controls( 'document');
212
+
213
+ $this->end_controls_section();
214
+
215
+ if (! is_embedpress_pro_active()) {
216
+ $this->start_controls_section(
217
+ 'embedpress_pro_section',
218
+ [
219
+ 'label' => __('Go Premium for More Features', 'embedpress'),
220
+ ]
221
+ );
222
+
223
+ $this->add_control(
224
+ 'embedpress_pro_cta',
225
+ [
226
+ 'label' => __('Unlock more possibilities', 'embedpress'),
227
+ 'type' => Controls_Manager::CHOOSE,
228
+ 'options' => [
229
+ '1' => [
230
+ 'title' => '',
231
+ 'icon' => 'fa fa-unlock-alt',
232
+ ],
233
+ ],
234
+ 'default' => '1',
235
+ 'description' => '<span class="pro-feature"> Get the <a href="https://wpdeveloper.net/in/upgrade-embedpress" target="_blank">Pro version</a> for more provider support and customization options.</span>',
236
+ ]
237
+ );
238
+
239
+ $this->end_controls_section();
240
+ }
241
  }
242
 
243
  private function is_pdf( $url )
257
  'data-emid' => $id
258
  ] );
259
  $this->add_render_attribute( 'embedpress-document', [
260
+ 'class' => ['embedpress-document-embed', 'ep-doc-'.md5( $id), 'ose-document']
261
  ] );
262
  ?>
263
+ <div <?php echo $this->get_render_attribute_string( 'embedpress-document' ); ?> style="<?php echo esc_attr( $dimension); ?>; max-width:100%;">
264
+ <?php
265
+ do_action( 'embedpress_document_after_embed', $settings, $url, $id, $this);
266
+ ?>
267
  <?php if ( $url != '' ) {
268
  if ( $this->is_pdf( $url ) ) {
269
  $this->add_render_attribute( 'embedpres-pdf-render', 'data-emsrc', $url );
270
  ?>
271
+ <div <?php echo $this->get_render_attribute_string( 'embedpres-pdf-render' ); ?>>
272
+ </div>
273
  <?php
274
 
275
  if ( Plugin::$instance->editor->is_edit_mode() ) {
276
  $this->render_editor_script( $id, $url );
277
  }
278
+
279
  } else {
280
  $view_link = 'https://docs.google.com/viewer?url=' . $url . '&embedded=true';
281
  ?>
282
+ <div>
283
+ <iframe allowfullscreen="true" mozallowfullscreen="true" webkitallowfullscreen="true" style="<?php echo esc_attr( $dimension); ?>; max-width:100%;" src="<?php echo esc_url( $view_link); ?>"/>
284
+ </div>
285
+
286
  <?php
 
287
  }
288
+ if ( $settings[ 'embedpress_document_powered_by' ] === 'yes' ) {
289
  printf( '<p class="embedpress-el-powered">%s</p>', __( 'Powered By EmbedPress', 'embedpress' ) );
290
  }
291
+ }
292
+ ?>
293
  </div>
294
 
295
  <?php
EmbedPress/Elementor/Widgets/Embedpress_Elementor.php CHANGED
@@ -73,7 +73,7 @@ class Embedpress_Elementor extends Widget_Base {
73
 
74
  protected function _register_controls() {
75
  $this->pro_class = is_embedpress_pro_active() ? '': 'embedpress-pro-control';
76
- $this->pro_text = is_embedpress_pro_active() ? '': __('<sup class="embedpress-pro-label" style="color:red">Pro</sup>', 'embedpress');
77
  /**
78
  * EmbedPress Content Settings
79
  */
@@ -138,9 +138,8 @@ class Embedpress_Elementor extends Widget_Base {
138
  $this->add_control(
139
  'embedpress_pro_video_start_time',
140
  [
141
- 'label' => sprintf( __( 'Start Time %s', 'embedpress' ), $this->pro_text),
142
  'type' => Controls_Manager::NUMBER,
143
- 'classes' => $this->pro_class,
144
  'description' => __( 'Specify a start time (in seconds)', 'embedpress' ),
145
  'condition' => [
146
  'embedpress_pro_embeded_source' => ['youtube', 'vimeo', 'wistia', 'dailymotion', 'twitch']
@@ -157,6 +156,7 @@ class Embedpress_Elementor extends Widget_Base {
157
  $this->end_controls_section();
158
 
159
  $this->init_youtube_subscription_section();
 
160
 
161
  if (! is_embedpress_pro_active()) {
162
  $this->start_controls_section(
@@ -266,10 +266,9 @@ class Embedpress_Elementor extends Widget_Base {
266
  $this->add_control(
267
  'embedpress_pro_youtube_progress_bar_color',
268
  [
269
- 'label' => sprintf( __( 'Progress Bar Color %s', 'embedpress' ), $this->pro_text),
270
  'type' => Controls_Manager::SELECT,
271
  'label_block' => false,
272
- 'classes' => $this->pro_class,
273
  'default' => 'red',
274
  'options' => [
275
  'red' => __( 'Red', 'embedpress' ),
@@ -286,7 +285,7 @@ class Embedpress_Elementor extends Widget_Base {
286
  'label_block' => false,
287
  'return_value' => 'yes',
288
  'default' => 'no',
289
- 'separator' => 'after',
290
  'classes' => $this->pro_class,
291
  'condition' => $yt_condition,
292
  ]
@@ -313,13 +312,13 @@ class Embedpress_Elementor extends Widget_Base {
313
  $this->add_control(
314
  'embedpress_pro_youtube_display_related_videos',
315
  [
316
- 'label' => sprintf(__( 'Related Videos %s', 'embedpress' ), $this->pro_text ),
 
317
  'type' => Controls_Manager::SWITCHER,
318
  'label_block' => false,
319
  'return_value' => 'yes',
320
  'default' => 'yes',
321
  'condition' => $yt_condition,
322
- 'classes' => $this->pro_class,
323
  ]
324
  );
325
  $this->init_branding_controls( 'youtube');
@@ -332,7 +331,7 @@ class Embedpress_Elementor extends Widget_Base {
332
  $this->start_controls_section(
333
  'embedpress_yt_subscription_section',
334
  [
335
- 'label' => __( 'YouTube Subscriber Option', 'embedpress' ),
336
  'condition' => $yt_condition,
337
 
338
  ]
@@ -420,6 +419,38 @@ class Embedpress_Elementor extends Widget_Base {
420
  ]
421
  );
422
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
423
  $this->end_controls_section();
424
 
425
  }
@@ -674,7 +705,7 @@ class Embedpress_Elementor extends Widget_Base {
674
  $this->add_control(
675
  'embedpress_pro_wistia_playbar',
676
  [
677
- 'label' => sprintf(__( 'Playbar %s', 'embedpress' ), $this->pro_text ),
678
  'type' => Controls_Manager::SWITCHER,
679
  'label_block' => false,
680
  'return_value' => 'yes',
@@ -682,7 +713,6 @@ class Embedpress_Elementor extends Widget_Base {
682
  'condition' => [
683
  'embedpress_pro_embeded_source' => 'wistia'
684
  ],
685
- 'classes' => $this->pro_class,
686
  ]
687
  );
688
 
@@ -727,7 +757,7 @@ class Embedpress_Elementor extends Widget_Base {
727
  $this->add_control(
728
  'embedpress_pro_wistia_rewind',
729
  [
730
- 'label' => sprintf(__( 'Rewind %s', 'embedpress' ), $this->pro_text ),
731
  'type' => Controls_Manager::SWITCHER,
732
  'label_block' => false,
733
  'return_value' => 'yes',
@@ -735,14 +765,13 @@ class Embedpress_Elementor extends Widget_Base {
735
  'condition' => [
736
  'embedpress_pro_embeded_source' => 'wistia'
737
  ],
738
- 'classes' => $this->pro_class,
739
  ]
740
  );
741
 
742
  $this->add_control(
743
  'embedpress_pro_wistia_rewind_time',
744
  [
745
- 'label' => sprintf(__( 'Rewind time', 'embedpress' ), $this->pro_text ),
746
  'type' => Controls_Manager::SLIDER,
747
  'default' => [
748
  'size' => 10,
@@ -757,7 +786,6 @@ class Embedpress_Elementor extends Widget_Base {
757
  'embedpress_pro_wistia_rewind' => 'yes',
758
  'embedpress_pro_embeded_source' => 'wistia'
759
  ],
760
- 'classes' => $this->pro_class,
761
  ]
762
  );
763
  $this->init_branding_controls( 'wistia');
@@ -806,18 +834,17 @@ class Embedpress_Elementor extends Widget_Base {
806
  $this->add_control(
807
  'embedpress_pro_twitch_mute',
808
  [
809
- 'label' => sprintf(__( 'Mute on start %s', 'embedpress' ), $this->pro_text ),
810
  'type' => Controls_Manager::SWITCHER,
811
  'label_off' => __( 'Hide', 'embedpress' ),
812
  'label_on' => __( 'Show', 'embedpress' ),
813
  'condition' => $condition,
814
- 'classes' => $this->pro_class,
815
  ]
816
  );
817
  $this->add_control(
818
  'embedpress_pro_twitch_theme',
819
  [
820
- 'label' => sprintf(__( 'Theme %s', 'embedpress' ), $this->pro_text ),
821
  'type' => Controls_Manager::SELECT,
822
  'default' => 'dark',
823
  'options' => [
@@ -825,7 +852,6 @@ class Embedpress_Elementor extends Widget_Base {
825
  'light' => __( 'Light', 'embedpress' ),
826
  ],
827
  'condition' => $condition,
828
- 'classes' => $this->pro_class,
829
  ]
830
  );
831
 
@@ -1057,7 +1083,7 @@ class Embedpress_Elementor extends Widget_Base {
1057
  $this->add_control(
1058
  'embedpress_pro_vimeo_display_author',
1059
  [
1060
- 'label' => sprintf(__( 'Author %s', 'embedpress' ), $this->pro_text ),
1061
  'type' => Controls_Manager::SWITCHER,
1062
  'label_block' => false,
1063
  'return_value' => 'yes',
@@ -1065,14 +1091,13 @@ class Embedpress_Elementor extends Widget_Base {
1065
  'condition' => [
1066
  'embedpress_pro_embeded_source' => 'vimeo'
1067
  ],
1068
- 'classes' => $this->pro_class,
1069
  ]
1070
  );
1071
 
1072
  $this->add_control(
1073
  'embedpress_pro_vimeo_avatar',
1074
  [
1075
- 'label' => sprintf(__( 'Avatar %s', 'embedpress' ), $this->pro_text ),
1076
  'type' => Controls_Manager::SWITCHER,
1077
  'label_block' => false,
1078
  'return_value' => 'yes',
@@ -1080,7 +1105,6 @@ class Embedpress_Elementor extends Widget_Base {
1080
  'condition' => [
1081
  'embedpress_pro_embeded_source' => 'vimeo'
1082
  ],
1083
- 'classes' => $this->pro_class,
1084
  ]
1085
  );
1086
 
@@ -1359,26 +1383,26 @@ class Embedpress_Elementor extends Widget_Base {
1359
  'tab' => Controls_Manager::TAB_STYLE,
1360
  ]
1361
  );
1362
- $this->add_control(
1363
- 'embedpress_elementor_aspect_ratio',
1364
- [
1365
- 'label' => __( 'Aspect Ratio', 'embedpress' ),
1366
- 'description' => __( 'Good for any video. You may turn it off for other embed type.', 'embedpress' ),
1367
- 'type' => Controls_Manager::SELECT,
1368
- 'options' => [
1369
- 0 => __('None'),
1370
- '169' => '16:9',
1371
- '219' => '21:9',
1372
- '43' => '4:3',
1373
- '32' => '3:2',
1374
- '11' => '1:1',
1375
- '916' => '9:16',
1376
- ],
1377
- 'default' => 0,
1378
- 'prefix_class' => 'embedpress-aspect-ratio-',
1379
- 'frontend_available' => true,
1380
- ]
1381
- );
1382
  $this->add_control(
1383
  'width',
1384
  [
73
 
74
  protected function _register_controls() {
75
  $this->pro_class = is_embedpress_pro_active() ? '': 'embedpress-pro-control';
76
+ $this->pro_text = is_embedpress_pro_active() ? '': '<sup class="embedpress-pro-label" style="color:red">'.__('Pro', 'embedpress').'</sup>';
77
  /**
78
  * EmbedPress Content Settings
79
  */
138
  $this->add_control(
139
  'embedpress_pro_video_start_time',
140
  [
141
+ 'label' => __( 'Start Time', 'embedpress' ),
142
  'type' => Controls_Manager::NUMBER,
 
143
  'description' => __( 'Specify a start time (in seconds)', 'embedpress' ),
144
  'condition' => [
145
  'embedpress_pro_embeded_source' => ['youtube', 'vimeo', 'wistia', 'dailymotion', 'twitch']
156
  $this->end_controls_section();
157
 
158
  $this->init_youtube_subscription_section();
159
+ $this->init_youtube_livechat_section();
160
 
161
  if (! is_embedpress_pro_active()) {
162
  $this->start_controls_section(
266
  $this->add_control(
267
  'embedpress_pro_youtube_progress_bar_color',
268
  [
269
+ 'label' => __( 'Progress Bar Color', 'embedpress' ),
270
  'type' => Controls_Manager::SELECT,
271
  'label_block' => false,
 
272
  'default' => 'red',
273
  'options' => [
274
  'red' => __( 'Red', 'embedpress' ),
285
  'label_block' => false,
286
  'return_value' => 'yes',
287
  'default' => 'no',
288
+ 'separator' => 'before',
289
  'classes' => $this->pro_class,
290
  'condition' => $yt_condition,
291
  ]
312
  $this->add_control(
313
  'embedpress_pro_youtube_display_related_videos',
314
  [
315
+ 'label' => __( 'Related Videos', 'embedpress' ),
316
+ 'description' => __( 'Set it to "Yes" to display related videos from all channels. Otherwise, related videos will show from the same channel.', 'embedpress' ),
317
  'type' => Controls_Manager::SWITCHER,
318
  'label_block' => false,
319
  'return_value' => 'yes',
320
  'default' => 'yes',
321
  'condition' => $yt_condition,
 
322
  ]
323
  );
324
  $this->init_branding_controls( 'youtube');
331
  $this->start_controls_section(
332
  'embedpress_yt_subscription_section',
333
  [
334
+ 'label' => __( 'YouTube Subscriber', 'embedpress' ),
335
  'condition' => $yt_condition,
336
 
337
  ]
419
  ]
420
  );
421
 
422
+ $this->end_controls_section();
423
+
424
+ }
425
+ public function init_youtube_livechat_section() {
426
+ $yt_condition = [
427
+ 'embedpress_pro_embeded_source' => 'youtube',
428
+ ];
429
+ $this->start_controls_section(
430
+ 'embedpress_yt_livechat_section',
431
+ [
432
+ 'label' => __( 'YouTube Live Chat', 'embedpress' ),
433
+ 'condition' => $yt_condition,
434
+
435
+ ]
436
+ );
437
+
438
+ $this->add_control(
439
+ 'yt_lc_show',
440
+ [
441
+ 'label' => sprintf(__( 'Show YouTube Live Chat %s', 'embedpress' ), $this->pro_text ),
442
+ 'type' => Controls_Manager::SWITCHER,
443
+ 'label_block' => false,
444
+ 'return_value' => 'yes',
445
+ 'default' => '',
446
+ 'label_off' => __( 'Hide', 'embedpress' ),
447
+ 'label_on' => __( 'Show', 'embedpress' ),
448
+ 'condition' => $yt_condition,
449
+ 'classes' => $this->pro_class,
450
+ ]
451
+ );
452
+
453
+
454
  $this->end_controls_section();
455
 
456
  }
705
  $this->add_control(
706
  'embedpress_pro_wistia_playbar',
707
  [
708
+ 'label' => __( 'Playbar ', 'embedpress' ),
709
  'type' => Controls_Manager::SWITCHER,
710
  'label_block' => false,
711
  'return_value' => 'yes',
713
  'condition' => [
714
  'embedpress_pro_embeded_source' => 'wistia'
715
  ],
 
716
  ]
717
  );
718
 
757
  $this->add_control(
758
  'embedpress_pro_wistia_rewind',
759
  [
760
+ 'label' => __( 'Rewind', 'embedpress' ),
761
  'type' => Controls_Manager::SWITCHER,
762
  'label_block' => false,
763
  'return_value' => 'yes',
765
  'condition' => [
766
  'embedpress_pro_embeded_source' => 'wistia'
767
  ],
 
768
  ]
769
  );
770
 
771
  $this->add_control(
772
  'embedpress_pro_wistia_rewind_time',
773
  [
774
+ 'label' => __( 'Rewind time', 'embedpress' ),
775
  'type' => Controls_Manager::SLIDER,
776
  'default' => [
777
  'size' => 10,
786
  'embedpress_pro_wistia_rewind' => 'yes',
787
  'embedpress_pro_embeded_source' => 'wistia'
788
  ],
 
789
  ]
790
  );
791
  $this->init_branding_controls( 'wistia');
834
  $this->add_control(
835
  'embedpress_pro_twitch_mute',
836
  [
837
+ 'label' => __( 'Mute on start', 'embedpress' ),
838
  'type' => Controls_Manager::SWITCHER,
839
  'label_off' => __( 'Hide', 'embedpress' ),
840
  'label_on' => __( 'Show', 'embedpress' ),
841
  'condition' => $condition,
 
842
  ]
843
  );
844
  $this->add_control(
845
  'embedpress_pro_twitch_theme',
846
  [
847
+ 'label' => __( 'Theme', 'embedpress' ),
848
  'type' => Controls_Manager::SELECT,
849
  'default' => 'dark',
850
  'options' => [
852
  'light' => __( 'Light', 'embedpress' ),
853
  ],
854
  'condition' => $condition,
 
855
  ]
856
  );
857
 
1083
  $this->add_control(
1084
  'embedpress_pro_vimeo_display_author',
1085
  [
1086
+ 'label' => __( 'Author', 'embedpress' ),
1087
  'type' => Controls_Manager::SWITCHER,
1088
  'label_block' => false,
1089
  'return_value' => 'yes',
1091
  'condition' => [
1092
  'embedpress_pro_embeded_source' => 'vimeo'
1093
  ],
 
1094
  ]
1095
  );
1096
 
1097
  $this->add_control(
1098
  'embedpress_pro_vimeo_avatar',
1099
  [
1100
+ 'label' => __( 'Avatar', 'embedpress' ),
1101
  'type' => Controls_Manager::SWITCHER,
1102
  'label_block' => false,
1103
  'return_value' => 'yes',
1105
  'condition' => [
1106
  'embedpress_pro_embeded_source' => 'vimeo'
1107
  ],
 
1108
  ]
1109
  );
1110
 
1383
  'tab' => Controls_Manager::TAB_STYLE,
1384
  ]
1385
  );
1386
+ //$this->add_control(
1387
+ // 'embedpress_elementor_aspect_ratio',
1388
+ // [
1389
+ // 'label' => __( 'Aspect Ratio', 'embedpress' ),
1390
+ // 'description' => __( 'Good for any video. You may turn it off for other embed type.', 'embedpress' ),
1391
+ // 'type' => Controls_Manager::SELECT,
1392
+ // 'options' => [
1393
+ // 0 => __('None'),
1394
+ // '169' => '16:9',
1395
+ // '219' => '21:9',
1396
+ // '43' => '4:3',
1397
+ // '32' => '3:2',
1398
+ // '11' => '1:1',
1399
+ // '916' => '9:16',
1400
+ // ],
1401
+ // 'default' => 0,
1402
+ // 'prefix_class' => 'embedpress-aspect-ratio-',
1403
+ // 'frontend_available' => true,
1404
+ // ]
1405
+ //);
1406
  $this->add_control(
1407
  'width',
1408
  [
EmbedPress/Ends/Back/Handler.php CHANGED
@@ -29,28 +29,29 @@ class Handler extends EndHandlerAbstract {
29
  *
30
  */
31
  public function enqueueScripts() {
32
- $plgSettings = Core::getSettings();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
33
 
34
- $urlSchemes = apply_filters( 'embedpress:getAdditionalURLSchemes', $this->getUrlSchemes() );
35
-
36
- wp_enqueue_script( 'embedpress-pdfobject', EMBEDPRESS_URL_ASSETS . 'js/pdfobject.min.js', [],
37
- $this->pluginVersion, false );
38
- wp_enqueue_script( "bootbox-bootstrap", EMBEDPRESS_URL_ASSETS . 'js/vendor/bootstrap/bootstrap.min.js',
39
- [ 'jquery' ], $this->pluginVersion, false );
40
- wp_enqueue_script( "bootbox", EMBEDPRESS_URL_ASSETS . 'js/vendor/bootbox.min.js',
41
- [ 'jquery', 'bootbox-bootstrap' ], $this->pluginVersion, true );
42
- wp_enqueue_script( $this->pluginName, EMBEDPRESS_URL_ASSETS . 'js/preview.js', [ 'jquery', 'bootbox' ],
43
- $this->pluginVersion, true );
44
- wp_localize_script( $this->pluginName, '$data', [
45
- 'previewSettings' => [
46
- 'baseUrl' => get_site_url() . '/',
47
- 'versionUID' => $this->pluginVersion,
48
- 'debug' => true,
49
- ],
50
- 'EMBEDPRESS_SHORTCODE' => EMBEDPRESS_SHORTCODE,
51
- 'EMBEDPRESS_URL_ASSETS' => EMBEDPRESS_URL_ASSETS,
52
- 'urlSchemes' => $urlSchemes,
53
- ] );
54
 
55
  //load embedpress admin js
56
 
@@ -86,9 +87,10 @@ class Handler extends EndHandlerAbstract {
86
  *
87
  */
88
  public static function enqueueStyles() {
89
- wp_register_style( 'embedpress-addons', plugins_url( 'embedpress/assets/css/admin.css' ) );
90
- wp_enqueue_style( 'embedpress-admin', plugins_url( 'embedpress/assets/css/admin.css' ) );
91
- wp_enqueue_style( 'embedpress-addons', plugins_url( 'embedpress/assets/css/addons.css' ) );
 
92
  }
93
 
94
  /**
29
  *
30
  */
31
  public function enqueueScripts() {
32
+ global $pagenow;
33
+ if ( 'post.php' === $pagenow ) {
34
+ $urlSchemes = apply_filters( 'embedpress:getAdditionalURLSchemes', $this->getUrlSchemes() );
35
+
36
+ wp_enqueue_script( 'embedpress-pdfobject', EMBEDPRESS_URL_ASSETS . 'js/pdfobject.min.js', [],
37
+ $this->pluginVersion, false );
38
+
39
+ wp_enqueue_script( "bootbox-bootstrap", EMBEDPRESS_URL_ASSETS . 'js/vendor/bootstrap/bootstrap.min.js',[ 'jquery' ], $this->pluginVersion, false );
40
+ wp_enqueue_script( "bootbox", EMBEDPRESS_URL_ASSETS . 'js/vendor/bootbox.min.js', [ 'jquery', 'bootbox-bootstrap' ], $this->pluginVersion, true );
41
+ wp_enqueue_script( $this->pluginName, EMBEDPRESS_URL_ASSETS . 'js/preview.js', [ 'jquery', 'bootbox' ],$this->pluginVersion, true );
42
+
43
+ wp_localize_script( $this->pluginName, '$data', [
44
+ 'previewSettings' => [
45
+ 'baseUrl' => get_site_url() . '/',
46
+ 'versionUID' => $this->pluginVersion,
47
+ 'debug' => true,
48
+ ],
49
+ 'EMBEDPRESS_SHORTCODE' => EMBEDPRESS_SHORTCODE,
50
+ 'EMBEDPRESS_URL_ASSETS' => EMBEDPRESS_URL_ASSETS,
51
+ 'urlSchemes' => $urlSchemes,
52
+ ] );
53
+ }
54
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
55
 
56
  //load embedpress admin js
57
 
87
  *
88
  */
89
  public static function enqueueStyles() {
90
+ if ( isset( $_GET['page']) && 'embedpress' === $_GET['page'] ) {
91
+ wp_enqueue_style( 'embedpress-admin', plugins_url( 'embedpress/assets/css/admin.css' ) );
92
+ }
93
+
94
  }
95
 
96
  /**
EmbedPress/Ends/Back/Settings/EmbedpressSettings.php CHANGED
@@ -115,7 +115,7 @@ class EmbedpressSettings {
115
 
116
  public function register_menu() {
117
  add_menu_page( __('EmbedPress Settings', 'embedpress'), 'EmbedPress', 'manage_options', $this->page_slug,
118
- [ $this, 'render_settings_page' ], null, 64 );
119
 
120
  }
121
 
@@ -199,10 +199,14 @@ class EmbedpressSettings {
199
  public function save_youtube_settings() {
200
  $option_name = EMBEDPRESS_PLG_NAME.':youtube';
201
  $settings = get_option( $option_name, []);
 
 
202
  $settings['autoplay'] = isset( $_POST['autoplay']) ? sanitize_text_field( $_POST['autoplay']) : '';
203
  $settings['controls'] = isset( $_POST['controls']) ? sanitize_text_field( $_POST['controls']) : '';
204
  $settings['fs'] = isset( $_POST['fs']) ? sanitize_text_field( $_POST['fs']) : '';
205
  $settings['iv_load_policy'] = isset( $_POST['iv_load_policy']) ? sanitize_text_field( $_POST['iv_load_policy']) : 1;
 
 
206
  $settings['license_key'] = 1; // backward compatibility
207
 
208
  // Pro will handle g_loading_animation settings and other
@@ -215,12 +219,16 @@ class EmbedpressSettings {
215
  public function save_wistia_settings() {
216
  $option_name = EMBEDPRESS_PLG_NAME.':wistia';
217
  $settings = get_option( $option_name, []);
 
218
  $settings['autoplay'] = isset( $_POST['autoplay']) ? sanitize_text_field( $_POST['autoplay']) : '';
219
  $settings['display_fullscreen_button'] = isset( $_POST['display_fullscreen_button']) ? sanitize_text_field( $_POST['display_fullscreen_button']) : '';
220
  $settings['small_play_button'] = isset( $_POST['small_play_button']) ? sanitize_text_field( $_POST['small_play_button']) : '';
221
  $settings['player_color'] = isset( $_POST['player_color']) ? sanitize_text_field( $_POST['player_color']) : '';
222
  $settings['plugin_resumable'] = isset( $_POST['plugin_resumable']) ? sanitize_text_field( $_POST['plugin_resumable']) : '';
223
  $settings['plugin_focus'] = isset( $_POST['plugin_focus']) ? sanitize_text_field( $_POST['plugin_focus']) : '';
 
 
 
224
  $settings['license_key'] = 1; // backward compatibility
225
  // Pro will handle g_loading_animation settings and other
226
  $settings = apply_filters( 'ep_wistia_settings_before_save', $settings);
@@ -231,9 +239,12 @@ class EmbedpressSettings {
231
  public function save_vimeo_settings() {
232
  $option_name = EMBEDPRESS_PLG_NAME.':vimeo';
233
  $settings = get_option( $option_name, []);
 
234
  $settings['autoplay'] = isset( $_POST['autoplay']) ? sanitize_text_field( $_POST['autoplay']) : '';
235
  $settings['color'] = isset( $_POST['color']) ? sanitize_text_field( $_POST['color']) : '#00adef';
236
  $settings['display_title'] = isset( $_POST['display_title']) ? sanitize_text_field( $_POST['display_title']) : 1;
 
 
237
  $settings['license_key'] = 1; // backward compatibility
238
  // Pro will handle g_loading_animation settings and other
239
  $settings = apply_filters( 'ep_vimeo_settings_before_save', $settings);
@@ -246,6 +257,9 @@ class EmbedpressSettings {
246
  $settings = get_option( $option_name, []);
247
  $settings['embedpress_pro_twitch_autoplay'] = isset( $_POST['autoplay']) ? sanitize_text_field( $_POST['autoplay']) : 'no';
248
  $settings['embedpress_pro_fs'] = isset( $_POST['fs']) ? sanitize_text_field( $_POST['fs']) : 'yes';
 
 
 
249
  $settings['license_key'] = 1; // backward compatibility
250
  // Pro will handle g_loading_animation settings and other
251
  $settings = apply_filters( 'ep_twitch_settings_before_save', $settings);
@@ -278,6 +292,7 @@ class EmbedpressSettings {
278
  public function save_dailymotion_settings() {
279
  $option_name = EMBEDPRESS_PLG_NAME.':dailymotion';
280
  $settings = get_option( $option_name, []);
 
281
  $settings['visual'] = isset( $_POST['visual']) ? sanitize_text_field( $_POST['visual']) : '';
282
  $settings['autoplay'] = isset( $_POST['autoplay']) ? sanitize_text_field( $_POST['autoplay']) : '';
283
  $settings['play_on_mobile'] = isset( $_POST['play_on_mobile']) ? sanitize_text_field( $_POST['play_on_mobile']) : '';
115
 
116
  public function register_menu() {
117
  add_menu_page( __('EmbedPress Settings', 'embedpress'), 'EmbedPress', 'manage_options', $this->page_slug,
118
+ [ $this, 'render_settings_page' ], EMBEDPRESS_URL_ASSETS.'images/menu-icon.svg', 64 );
119
 
120
  }
121
 
199
  public function save_youtube_settings() {
200
  $option_name = EMBEDPRESS_PLG_NAME.':youtube';
201
  $settings = get_option( $option_name, []);
202
+ $settings['start_time'] = isset( $_POST['start_time']) ? sanitize_text_field( $_POST['start_time']) : 0;
203
+ $settings['end_time'] = isset( $_POST['end_time']) ? sanitize_text_field( $_POST['end_time']) : 0;
204
  $settings['autoplay'] = isset( $_POST['autoplay']) ? sanitize_text_field( $_POST['autoplay']) : '';
205
  $settings['controls'] = isset( $_POST['controls']) ? sanitize_text_field( $_POST['controls']) : '';
206
  $settings['fs'] = isset( $_POST['fs']) ? sanitize_text_field( $_POST['fs']) : '';
207
  $settings['iv_load_policy'] = isset( $_POST['iv_load_policy']) ? sanitize_text_field( $_POST['iv_load_policy']) : 1;
208
+ $settings['color'] = isset( $_POST['color']) ? sanitize_text_field( $_POST['color']) : 'red';
209
+ $settings['rel'] = isset( $_POST['rel']) ? sanitize_text_field( $_POST['rel']) : 1;
210
  $settings['license_key'] = 1; // backward compatibility
211
 
212
  // Pro will handle g_loading_animation settings and other
219
  public function save_wistia_settings() {
220
  $option_name = EMBEDPRESS_PLG_NAME.':wistia';
221
  $settings = get_option( $option_name, []);
222
+ $settings['start_time'] = isset( $_POST['start_time']) ? sanitize_text_field( $_POST['start_time']) : 0;
223
  $settings['autoplay'] = isset( $_POST['autoplay']) ? sanitize_text_field( $_POST['autoplay']) : '';
224
  $settings['display_fullscreen_button'] = isset( $_POST['display_fullscreen_button']) ? sanitize_text_field( $_POST['display_fullscreen_button']) : '';
225
  $settings['small_play_button'] = isset( $_POST['small_play_button']) ? sanitize_text_field( $_POST['small_play_button']) : '';
226
  $settings['player_color'] = isset( $_POST['player_color']) ? sanitize_text_field( $_POST['player_color']) : '';
227
  $settings['plugin_resumable'] = isset( $_POST['plugin_resumable']) ? sanitize_text_field( $_POST['plugin_resumable']) : '';
228
  $settings['plugin_focus'] = isset( $_POST['plugin_focus']) ? sanitize_text_field( $_POST['plugin_focus']) : '';
229
+ $settings['plugin_rewind'] = isset( $_POST['plugin_rewind']) ? sanitize_text_field( $_POST['plugin_rewind']) : '';
230
+ $settings['display_playbar'] = isset( $_POST['display_playbar']) ? sanitize_text_field( $_POST['display_playbar']) : 1;
231
+ $settings['plugin_rewind_time'] = isset( $_POST['plugin_rewind_time']) ? sanitize_text_field( $_POST['plugin_rewind_time']) : 10;
232
  $settings['license_key'] = 1; // backward compatibility
233
  // Pro will handle g_loading_animation settings and other
234
  $settings = apply_filters( 'ep_wistia_settings_before_save', $settings);
239
  public function save_vimeo_settings() {
240
  $option_name = EMBEDPRESS_PLG_NAME.':vimeo';
241
  $settings = get_option( $option_name, []);
242
+ $settings['start_time'] = isset( $_POST['start_time']) ? sanitize_text_field( $_POST['start_time']) : 0;
243
  $settings['autoplay'] = isset( $_POST['autoplay']) ? sanitize_text_field( $_POST['autoplay']) : '';
244
  $settings['color'] = isset( $_POST['color']) ? sanitize_text_field( $_POST['color']) : '#00adef';
245
  $settings['display_title'] = isset( $_POST['display_title']) ? sanitize_text_field( $_POST['display_title']) : 1;
246
+ $settings['display_author'] = isset( $_POST['display_author']) ? sanitize_text_field( $_POST['display_author']) : 1;
247
+ $settings['display_avatar'] = isset( $_POST['display_avatar']) ? sanitize_text_field( $_POST['display_avatar']) : 1;
248
  $settings['license_key'] = 1; // backward compatibility
249
  // Pro will handle g_loading_animation settings and other
250
  $settings = apply_filters( 'ep_vimeo_settings_before_save', $settings);
257
  $settings = get_option( $option_name, []);
258
  $settings['embedpress_pro_twitch_autoplay'] = isset( $_POST['autoplay']) ? sanitize_text_field( $_POST['autoplay']) : 'no';
259
  $settings['embedpress_pro_fs'] = isset( $_POST['fs']) ? sanitize_text_field( $_POST['fs']) : 'yes';
260
+ $settings['start_time'] = isset( $_POST['start_time']) ? sanitize_text_field( $_POST['start_time']) : 0;
261
+ $settings['embedpress_pro_twitch_theme'] = isset( $_POST['theme']) ? sanitize_text_field( $_POST['theme']) : 'dark';
262
+ $settings['embedpress_pro_twitch_mute'] = isset( $_POST['mute']) ? sanitize_text_field( $_POST['mute']) : 'yes';
263
  $settings['license_key'] = 1; // backward compatibility
264
  // Pro will handle g_loading_animation settings and other
265
  $settings = apply_filters( 'ep_twitch_settings_before_save', $settings);
292
  public function save_dailymotion_settings() {
293
  $option_name = EMBEDPRESS_PLG_NAME.':dailymotion';
294
  $settings = get_option( $option_name, []);
295
+ $settings['start_time'] = isset( $_POST['start_time']) ? sanitize_text_field( $_POST['start_time']) : 0;
296
  $settings['visual'] = isset( $_POST['visual']) ? sanitize_text_field( $_POST['visual']) : '';
297
  $settings['autoplay'] = isset( $_POST['autoplay']) ? sanitize_text_field( $_POST['autoplay']) : '';
298
  $settings['play_on_mobile'] = isset( $_POST['play_on_mobile']) ? sanitize_text_field( $_POST['play_on_mobile']) : '';
EmbedPress/Ends/Back/Settings/assets/css/style.css CHANGED
@@ -2539,13 +2539,14 @@ button.button__instagram.hover__highlight:hover .icon {
2539
  }
2540
 
2541
  .logo__adjust__wrap .logo__adjust .logo__adjust__preview .preview__box {
2542
- height: 280px;
2543
  position: relative;
 
2544
  }
2545
 
2546
  .logo__adjust__wrap .logo__adjust .logo__adjust__preview .preview__box iframe {
2547
  width: 100%;
2548
  height: 100%;
 
2549
  }
2550
 
2551
  .logo__adjust__wrap .logo__adjust .logo__adjust__preview .preview__box img {
2539
  }
2540
 
2541
  .logo__adjust__wrap .logo__adjust .logo__adjust__preview .preview__box {
 
2542
  position: relative;
2543
+ min-height: 300px;
2544
  }
2545
 
2546
  .logo__adjust__wrap .logo__adjust .logo__adjust__preview .preview__box iframe {
2547
  width: 100%;
2548
  height: 100%;
2549
+ min-height:300px;
2550
  }
2551
 
2552
  .logo__adjust__wrap .logo__adjust .logo__adjust__preview .preview__box img {
EmbedPress/Ends/Back/Settings/assets/embedpress.pdf ADDED
Binary file
EmbedPress/Ends/Back/Settings/templates/custom-logo.php CHANGED
@@ -54,8 +54,8 @@ $vm_cta_url = isset( $vm_settings['cta_url']) ? esc_url( $vm_settings['cta_url']
54
  embedpress_print_branding_controls('vimeo', 'vm');
55
  embedpress_print_branding_controls('wistia', 'wis');
56
  embedpress_print_branding_controls('twitch', 'tw');
57
- ?>
58
- <?php do_action( 'embedpress_after_custom_branding_settings_fields'); ?>
59
  <button class="button button__themeColor radius-10 embedpress-submit-btn" name="submit" value="custom_logo"><?php esc_html_e( 'Save Changes', 'embedpress'); ?></button>
60
  </form>
61
  </div>
@@ -88,12 +88,12 @@ function embedpress_print_branding_controls($provider='', $prefix='') {
88
  $px_cta_url = "{$prefix}_cta_url";
89
  switch ($provider){
90
  case 'vimeo':
91
- $preview_video = '<iframe src="https://player.vimeo.com/video/463346733" frameborder="0"></iframe>';
92
  break;
93
  case 'wistia':
94
 
95
  $preview_video=<<<KAMAL
96
- <div class="ose-wistia--inc. ose-uid-0869333898f94a99ed20457fc4b79d88 ose-embedpress-responsive" style="width:500px; max-width:100%; height: 300px"><iframe title="Best Embedding Solution For Elementor, Gutenberg &amp; Classic Editor - EmbedPress Video" src="https://fast.wistia.net/embed/iframe/u7eq83w1cg?dnt=1" allow="autoplay; fullscreen" allowtransparency="true" frameborder="0" scrolling="no" class="wistia_embed" name="wistia_embed" allowfullscreen msallowfullscreen width="500" height="300"></iframe><script src="https://fast.wistia.net/assets/external/E-v1.js" async></script></div>
97
  KAMAL;
98
 
99
  break;
@@ -101,13 +101,36 @@ KAMAL;
101
  $parent = wp_parse_url( site_url(), 1);
102
  $preview_video = <<<KAMAL
103
  <div class="embedpress_wrapper" data-url="https://www.twitch.tv/wpdeveloperdotnet" style="width:90%; height:360px;">
104
- <iframe src="https://embed.twitch.tv?autoplay=true&#038;channel=wpdeveloperdotnet&#038;height=360&#038;layout=video&#038;migration=true&#038;muted=false&#038;theme=dark&#038;time=0h0m0s&#038;video=&#038;width=600&#038;allowfullscreen=true&#038;parent={$parent}" allowfullscreen="" scrolling="no" frameborder="0" allow="autoplay; fullscreen" title="Twitch" sandbox="allow-modals allow-scripts allow-same-origin allow-popups allow-popups-to-escape-sandbox" ></iframe>
105
  </div>
106
  KAMAL;
107
 
108
  break;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
109
  default:
110
- $preview_video = '<iframe src="https://www.youtube.com/embed/2u0HRUdLHxo" frameborder="0"></iframe>';
111
  break;
112
  }
113
  ?>
54
  embedpress_print_branding_controls('vimeo', 'vm');
55
  embedpress_print_branding_controls('wistia', 'wis');
56
  embedpress_print_branding_controls('twitch', 'tw');
57
+ embedpress_print_branding_controls('document', 'doc');
58
+ do_action( 'embedpress_after_custom_branding_settings_fields'); ?>
59
  <button class="button button__themeColor radius-10 embedpress-submit-btn" name="submit" value="custom_logo"><?php esc_html_e( 'Save Changes', 'embedpress'); ?></button>
60
  </form>
61
  </div>
88
  $px_cta_url = "{$prefix}_cta_url";
89
  switch ($provider){
90
  case 'vimeo':
91
+ $preview_video = '<iframe loading="lazy" src="https://player.vimeo.com/video/463346733" frameborder="0"></iframe>';
92
  break;
93
  case 'wistia':
94
 
95
  $preview_video=<<<KAMAL
96
+ <div class="ose-wistia--inc. ose-uid-0869333898f94a99ed20457fc4b79d88 ose-embedpress-responsive" style="width:500px; max-width:100%; height: 300px"><iframe loading="lazy" title="Best Embedding Solution For Elementor, Gutenberg &amp; Classic Editor - EmbedPress Video" src="https://fast.wistia.net/embed/iframe/u7eq83w1cg?dnt=1" allow="autoplay; fullscreen" allowtransparency="true" frameborder="0" scrolling="no" class="wistia_embed" name="wistia_embed" allowfullscreen msallowfullscreen width="500" height="300"></iframe><script src="https://fast.wistia.net/assets/external/E-v1.js" async></script></div>
97
  KAMAL;
98
 
99
  break;
101
  $parent = wp_parse_url( site_url(), 1);
102
  $preview_video = <<<KAMAL
103
  <div class="embedpress_wrapper" data-url="https://www.twitch.tv/wpdeveloperdotnet" style="width:90%; height:360px;">
104
+ <iframe loading="lazy" src="https://embed.twitch.tv?autoplay=true&#038;channel=wpdeveloperdotnet&#038;height=360&#038;layout=video&#038;migration=true&#038;muted=false&#038;theme=dark&#038;time=0h0m0s&#038;video=&#038;width=600&#038;allowfullscreen=true&#038;parent={$parent}" allowfullscreen="" scrolling="no" frameborder="0" allow="autoplay; fullscreen" title="Twitch" sandbox="allow-modals allow-scripts allow-same-origin allow-popups allow-popups-to-escape-sandbox" ></iframe>
105
  </div>
106
  KAMAL;
107
 
108
  break;
109
+ case 'document':
110
+ $pdf_url = EMBEDPRESS_SETTINGS_ASSETS_URL . 'embedpress.pdf';
111
+ ob_start(); ?>
112
+
113
+ <div class="embedpress-embed-document-pdf ep-pdf-sample" style="width:500px; max-width:100%; height: 300px" data-emsrc="<?php echo esc_url( $pdf_url );?> "></div>';
114
+ <script src="<?php echo EMBEDPRESS_URL_ASSETS.'js/pdfobject.min.js'?>"></script>
115
+ <script>
116
+ (function ($) {
117
+ 'use strict';
118
+ $(document).ready(function () {
119
+ var selector = $('.embedpress-embed-document-pdf');
120
+ let option = {
121
+ forceObject: false,
122
+ };
123
+ if (selector.length) {
124
+ PDFObject.embed("<?php echo $pdf_url; ?>", ".ep-pdf-sample", option);
125
+ }
126
+ });
127
+ })(jQuery);
128
+ </script>
129
+ <?php
130
+ $preview_video = ob_get_clean();
131
+ break;
132
  default:
133
+ $preview_video = '<iframe height="300px" src="https://www.youtube.com/embed/2u0HRUdLHxo" frameborder="0"></iframe>';
134
  break;
135
  }
136
  ?>
EmbedPress/Ends/Back/Settings/templates/dailymotion.php CHANGED
@@ -4,6 +4,8 @@
4
  * All undefined vars comes from 'render_settings_page' method
5
  * */
6
  $dm_settings = get_option( EMBEDPRESS_PLG_NAME.':dailymotion');
 
 
7
  $autoplay = isset( $dm_settings['autoplay']) ? $dm_settings['autoplay'] : '';
8
  $play_on_mobile = isset( $dm_settings['play_on_mobile']) ? $dm_settings['play_on_mobile'] : '';
9
  $mute = isset( $dm_settings['mute']) ? $dm_settings['mute'] : '';
@@ -24,12 +26,11 @@ $show_logo = isset( $dm_settings['show_logo']) ? $dm_settings['show_logo'] : 1;
24
  do_action( 'embedpress_before_dailymotion_settings_fields');
25
  echo $nonce_field ; ?>
26
  <div class="form__group">
27
- <p class="form__label" ><?php esc_html_e( "Start Time (In Seconds)", "embedpress" ); echo $pro_active ? '': ' <span class="isPro">PRO</span>';?> </p>
28
- <div class="form__control__wrap <?php echo $pro_active ? '': 'isPro'; ?>">
29
- <input type="number" name="start_time" id="start_time" class="form__control" data-default="<?php echo esc_attr( $start_time); ?>" value="<?php echo esc_attr( $start_time); ?>" <?php echo $pro_active ? '': ' disabled'; ?>>
30
- <p><?php esc_html_e( "You can put a custom time in seconds to start video. Example: 500", "embedpress" ); ?></p>
31
  </div>
32
- <?php if ( !$pro_active ) { include EMBEDPRESS_SETTINGS_PATH . 'templates/partials/alert-pro.php'; } ?>
33
 
34
  </div>
35
 
4
  * All undefined vars comes from 'render_settings_page' method
5
  * */
6
  $dm_settings = get_option( EMBEDPRESS_PLG_NAME.':dailymotion');
7
+ $start_time = isset( $dm_settings['start_time']) ? $dm_settings['start_time'] : 0;
8
+
9
  $autoplay = isset( $dm_settings['autoplay']) ? $dm_settings['autoplay'] : '';
10
  $play_on_mobile = isset( $dm_settings['play_on_mobile']) ? $dm_settings['play_on_mobile'] : '';
11
  $mute = isset( $dm_settings['mute']) ? $dm_settings['mute'] : '';
26
  do_action( 'embedpress_before_dailymotion_settings_fields');
27
  echo $nonce_field ; ?>
28
  <div class="form__group">
29
+ <p class="form__label" ><?php esc_html_e( "Start Time (In Seconds)", "embedpress" ); ?> </p>
30
+ <div class="form__control__wrap">
31
+ <input type="number" name="start_time" id="start_time" class="form__control" data-default="<?php echo esc_attr( $start_time); ?>" value="<?php echo esc_attr( $start_time); ?>" >
32
+ <p><?php esc_html_e( "You can put a custom time in seconds to start the video. Example: 500", "embedpress" ); ?></p>
33
  </div>
 
34
 
35
  </div>
36
 
EmbedPress/Ends/Back/Settings/templates/twitch.php CHANGED
@@ -4,7 +4,8 @@
4
  * All undefined vars comes from 'render_settings_page' method
5
  * */
6
  $twitch_settings = get_option( EMBEDPRESS_PLG_NAME.':twitch');
7
- $start_time = isset( $twitch_settings['embedpress_pro_video_start_time']) ? $twitch_settings['embedpress_pro_video_start_time'] : 0;
 
8
  $autoplay = isset( $twitch_settings['embedpress_pro_twitch_autoplay']) ? $twitch_settings['embedpress_pro_twitch_autoplay'] : 'no';
9
  $show_chat = isset( $twitch_settings['embedpress_pro_twitch_chat']) ? $twitch_settings['embedpress_pro_twitch_chat'] : 'no';
10
  $theme = isset( $twitch_settings['embedpress_pro_twitch_theme']) ? $twitch_settings['embedpress_pro_twitch_theme'] : 'dark';
@@ -21,12 +22,11 @@ $mute = isset( $twitch_settings['embedpress_pro_twitch_mute']) ? $twitch_setting
21
  do_action( 'embedpress_before_twitch_settings_fields');
22
  echo $nonce_field ; ?>
23
  <div class="form__group">
24
- <p class="form__label" ><?php esc_html_e( "Start Time (In Seconds)", "embedpress" ); echo $pro_active ? '': ' <span class="isPro">PRO</span>';?> </p>
25
- <div class="form__control__wrap <?php echo $pro_active ? '': 'isPro'; ?>">
26
- <input type="number" name="start_time" id="start_time" class="form__control" data-default="<?php echo esc_attr( $start_time); ?>" value="<?php echo esc_attr( $start_time); ?>" <?php echo $pro_active ? '': ' disabled'; ?>>
27
  <p><?php esc_html_e( "You can put a custom time in seconds to start video. Example: 500", "embedpress" ); ?></p>
28
  </div>
29
- <?php if ( !$pro_active ) { include EMBEDPRESS_SETTINGS_PATH . 'templates/partials/alert-pro.php'; } ?>
30
 
31
  </div>
32
  <div class="form__group">
@@ -63,16 +63,15 @@ $mute = isset( $twitch_settings['embedpress_pro_twitch_mute']) ? $twitch_setting
63
  </div>
64
  </div>
65
  <div class="form__group">
66
- <p class="form__label"><?php esc_html_e( "Theme", "embedpress" ); echo $pro_active ? '': ' <span class="isPro">PRO</span>'; ?> </p>
67
  <div class="form__control__wrap">
68
- <div class="embedpress__select <?php echo $pro_active ? '': 'isPro'; ?>">
69
  <span><i class="ep-icon ep-caret-down"></i></span>
70
- <select name="theme" <?php echo $pro_active ? '' : 'disabled'; ?> data-default="<?php echo esc_attr( $theme); ?>">
71
  <option value="dark" <?php selected( 'dark', $theme); ?>><?php esc_html_e( "Dark", "embedpress" ); ?></option>
72
  <option value="light" <?php selected( 'light', $theme); ?>><?php esc_html_e( "Light", "embedpress" ); ?></option>
73
  </select>
74
  </div>
75
- <?php if ( !$pro_active ) { include EMBEDPRESS_SETTINGS_PATH . 'templates/partials/alert-pro.php'; } ?>
76
  <p><?php esc_html_e( "Set dark or light theme for the twitch comment.", "embedpress" ); ?></p>
77
  </div>
78
  </div>
@@ -93,19 +92,18 @@ $mute = isset( $twitch_settings['embedpress_pro_twitch_mute']) ? $twitch_setting
93
  </div>
94
  </div>
95
  <div class="form__group">
96
- <p class="form__label"><?php esc_html_e( "Mute On Start", "embedpress" ); echo $pro_active ? '': ' <span class="isPro">PRO</span>'; ?> </p>
97
  <div class="form__control__wrap">
98
- <div data-default="<?php echo esc_attr( $mute ); ?>" data-value="<?php echo esc_attr( $mute ); ?>" class="input__flex input__radio_wrap <?php echo $pro_active ? '': 'isPro'; ?>">
99
  <label class="input__radio">
100
- <input type="radio" name="mute" value="no" <?php echo $pro_active ? '' : 'disabled'; checked( 'no', $mute); ?>>
101
  <span><?php esc_html_e( "No", "embedpress" ); ?></span>
102
  </label>
103
  <label class="input__radio">
104
- <input type="radio" name="mute" value="yes" <?php echo $pro_active ? '' : 'disabled'; checked( 'yes', $mute); ?>>
105
  <span><?php esc_html_e( "Yes", "embedpress" ); ?></span>
106
  </label>
107
  </div>
108
- <?php if ( !$pro_active ) { include EMBEDPRESS_SETTINGS_PATH . 'templates/partials/alert-pro.php'; } ?>
109
  <p><?php esc_html_e( "Set it to Yes to mute the video on start.", "embedpress" ); ?></p>
110
  </div>
111
  </div>
4
  * All undefined vars comes from 'render_settings_page' method
5
  * */
6
  $twitch_settings = get_option( EMBEDPRESS_PLG_NAME.':twitch');
7
+ $start_time = isset( $twitch_settings['start_time']) ? $twitch_settings['start_time'] : 0;
8
+
9
  $autoplay = isset( $twitch_settings['embedpress_pro_twitch_autoplay']) ? $twitch_settings['embedpress_pro_twitch_autoplay'] : 'no';
10
  $show_chat = isset( $twitch_settings['embedpress_pro_twitch_chat']) ? $twitch_settings['embedpress_pro_twitch_chat'] : 'no';
11
  $theme = isset( $twitch_settings['embedpress_pro_twitch_theme']) ? $twitch_settings['embedpress_pro_twitch_theme'] : 'dark';
22
  do_action( 'embedpress_before_twitch_settings_fields');
23
  echo $nonce_field ; ?>
24
  <div class="form__group">
25
+ <p class="form__label" ><?php esc_html_e( "Start Time (In Seconds)", "embedpress" ); ?> </p>
26
+ <div class="form__control__wrap">
27
+ <input type="number" name="start_time" id="start_time" class="form__control" data-default="<?php echo esc_attr( $start_time); ?>" value="<?php echo esc_attr( $start_time); ?>" >
28
  <p><?php esc_html_e( "You can put a custom time in seconds to start video. Example: 500", "embedpress" ); ?></p>
29
  </div>
 
30
 
31
  </div>
32
  <div class="form__group">
63
  </div>
64
  </div>
65
  <div class="form__group">
66
+ <p class="form__label"><?php esc_html_e( "Theme", "embedpress" );?> </p>
67
  <div class="form__control__wrap">
68
+ <div class="embedpress__select">
69
  <span><i class="ep-icon ep-caret-down"></i></span>
70
+ <select name="theme" data-default="<?php echo esc_attr( $theme); ?>">
71
  <option value="dark" <?php selected( 'dark', $theme); ?>><?php esc_html_e( "Dark", "embedpress" ); ?></option>
72
  <option value="light" <?php selected( 'light', $theme); ?>><?php esc_html_e( "Light", "embedpress" ); ?></option>
73
  </select>
74
  </div>
 
75
  <p><?php esc_html_e( "Set dark or light theme for the twitch comment.", "embedpress" ); ?></p>
76
  </div>
77
  </div>
92
  </div>
93
  </div>
94
  <div class="form__group">
95
+ <p class="form__label"><?php esc_html_e( "Mute On Start", "embedpress" ); ?> </p>
96
  <div class="form__control__wrap">
97
+ <div data-default="<?php echo esc_attr( $mute ); ?>" data-value="<?php echo esc_attr( $mute ); ?>" class="input__flex input__radio_wrap ">
98
  <label class="input__radio">
99
+ <input type="radio" name="mute" value="no" <?php checked( 'no', $mute); ?>>
100
  <span><?php esc_html_e( "No", "embedpress" ); ?></span>
101
  </label>
102
  <label class="input__radio">
103
+ <input type="radio" name="mute" value="yes" <?php checked( 'yes', $mute); ?>>
104
  <span><?php esc_html_e( "Yes", "embedpress" ); ?></span>
105
  </label>
106
  </div>
 
107
  <p><?php esc_html_e( "Set it to Yes to mute the video on start.", "embedpress" ); ?></p>
108
  </div>
109
  </div>
EmbedPress/Ends/Back/Settings/templates/vimeo.php CHANGED
@@ -4,6 +4,9 @@
4
  * All undefined vars comes from 'render_settings_page' method
5
  * */
6
  $vm_settings = get_option( EMBEDPRESS_PLG_NAME.':vimeo' );
 
 
 
7
  $autoplay = isset( $vm_settings['autoplay']) ? $vm_settings['autoplay'] : '';
8
  $loop = isset( $vm_settings['loop']) ? $vm_settings['loop'] : '';
9
  $autopause = isset( $vm_settings['autopause']) ? $vm_settings['autopause'] : '';
@@ -20,6 +23,14 @@ $display_avatar = isset( $vm_settings['display_avatar']) ? $vm_settings['display
20
  <?php
21
  do_action( 'embedpress_before_vimeo_settings_fields');
22
  echo $nonce_field ; ?>
 
 
 
 
 
 
 
 
23
  <div class="form__group">
24
  <p class="form__label"><?php esc_html_e( "Auto Play", "embedpress" ); ?></p>
25
  <div class="form__control__wrap">
@@ -112,36 +123,34 @@ $display_avatar = isset( $vm_settings['display_avatar']) ? $vm_settings['display
112
  </div>
113
  </div>
114
  <div class="form__group">
115
- <p class="form__label"><?php esc_html_e( "Display Author", "embedpress" ); echo $pro_active ? '': ' <span class="isPro">PRO</span>'; ?></p>
116
  <div class="form__control__wrap">
117
- <div data-default="<?php echo esc_attr( $display_author ); ?>" data-value="<?php echo esc_attr( $display_author ); ?>" class="input__flex input__radio_wrap <?php echo $pro_active ? '': 'isPro'; ?>">
118
  <label class="input__radio">
119
- <input type="radio" name="display_author" value="" <?php echo !$pro_active ? 'disabled ' : ''; checked( '', $display_author); ?>>
120
  <span><?php esc_html_e( "No", "embedpress" ); ?></span>
121
  </label>
122
  <label class="input__radio">
123
- <input type="radio" name="display_author" value="1" <?php echo !$pro_active ? 'disabled ' : ''; checked( '1', $display_author); ?>>
124
  <span><?php esc_html_e( "Yes", "embedpress" ); ?></span>
125
  </label>
126
  </div>
127
- <?php if ( !$pro_active ) { include EMBEDPRESS_SETTINGS_PATH . 'templates/partials/alert-pro.php'; } ?>
128
  <p><?php esc_html_e( "Indicates whether the author is displayed.", "embedpress" ); ?></p>
129
  </div>
130
  </div>
131
  <div class="form__group">
132
- <p class="form__label"><?php esc_html_e( "Display Avatar", "embedpress" ); echo $pro_active ? '': ' <span class="isPro">PRO</span>'; ?></p>
133
  <div class="form__control__wrap">
134
- <div data-default="<?php echo esc_attr( $display_avatar ); ?>" data-value="<?php echo esc_attr( $display_avatar ); ?>" class="input__flex input__radio_wrap <?php echo $pro_active ? '': 'isPro'; ?>">
135
  <label class="input__radio">
136
- <input type="radio" name="display_avatar" value="" <?php echo !$pro_active ? 'disabled ' : ''; checked( '', $display_avatar); ?>>
137
  <span><?php esc_html_e( "No", "embedpress" ); ?></span>
138
  </label>
139
  <label class="input__radio">
140
- <input type="radio" name="display_avatar" value="1" <?php echo !$pro_active ? 'disabled ' : ''; checked( '1', $display_avatar); ?>>
141
  <span><?php esc_html_e( "Yes", "embedpress" ); ?></span>
142
  </label>
143
  </div>
144
- <?php if ( !$pro_active ) { include EMBEDPRESS_SETTINGS_PATH . 'templates/partials/alert-pro.php'; } ?>
145
  <p><?php esc_html_e( "Indicates whether the avatar is displayed.", "embedpress" ); ?></p>
146
  </div>
147
  </div>
4
  * All undefined vars comes from 'render_settings_page' method
5
  * */
6
  $vm_settings = get_option( EMBEDPRESS_PLG_NAME.':vimeo' );
7
+ $start_time = isset( $vm_settings['start_time']) ? $vm_settings['start_time'] : 0;
8
+
9
+
10
  $autoplay = isset( $vm_settings['autoplay']) ? $vm_settings['autoplay'] : '';
11
  $loop = isset( $vm_settings['loop']) ? $vm_settings['loop'] : '';
12
  $autopause = isset( $vm_settings['autopause']) ? $vm_settings['autopause'] : '';
23
  <?php
24
  do_action( 'embedpress_before_vimeo_settings_fields');
25
  echo $nonce_field ; ?>
26
+ <div class="form__group">
27
+ <p class="form__label" ><?php esc_html_e( "Start Time (In Seconds)", "embedpress" ); ?> </p>
28
+ <div class="form__control__wrap">
29
+ <input type="number" name="start_time" id="start_time" class="form__control" data-default="<?php echo esc_attr( $start_time); ?>" value="<?php echo esc_attr( $start_time); ?>" >
30
+ <p><?php esc_html_e( "You can put a custom time in seconds to start video. Example: 500", "embedpress" ); ?></p>
31
+ </div>
32
+
33
+ </div>
34
  <div class="form__group">
35
  <p class="form__label"><?php esc_html_e( "Auto Play", "embedpress" ); ?></p>
36
  <div class="form__control__wrap">
123
  </div>
124
  </div>
125
  <div class="form__group">
126
+ <p class="form__label"><?php esc_html_e( "Display Author", "embedpress" ); ?></p>
127
  <div class="form__control__wrap">
128
+ <div data-default="<?php echo esc_attr( $display_author ); ?>" data-value="<?php echo esc_attr( $display_author ); ?>" class="input__flex input__radio_wrap">
129
  <label class="input__radio">
130
+ <input type="radio" name="display_author" value="" <?php checked( '', $display_author); ?>>
131
  <span><?php esc_html_e( "No", "embedpress" ); ?></span>
132
  </label>
133
  <label class="input__radio">
134
+ <input type="radio" name="display_author" value="1" <?php checked( '1', $display_author); ?>>
135
  <span><?php esc_html_e( "Yes", "embedpress" ); ?></span>
136
  </label>
137
  </div>
 
138
  <p><?php esc_html_e( "Indicates whether the author is displayed.", "embedpress" ); ?></p>
139
  </div>
140
  </div>
141
  <div class="form__group">
142
+ <p class="form__label"><?php esc_html_e( "Display Avatar", "embedpress" );?></p>
143
  <div class="form__control__wrap">
144
+ <div data-default="<?php echo esc_attr( $display_avatar ); ?>" data-value="<?php echo esc_attr( $display_avatar ); ?>" class="input__flex input__radio_wrap">
145
  <label class="input__radio">
146
+ <input type="radio" name="display_avatar" value="" <?php checked( '', $display_avatar); ?>>
147
  <span><?php esc_html_e( "No", "embedpress" ); ?></span>
148
  </label>
149
  <label class="input__radio">
150
+ <input type="radio" name="display_avatar" value="1" <?php checked( '1', $display_avatar); ?>>
151
  <span><?php esc_html_e( "Yes", "embedpress" ); ?></span>
152
  </label>
153
  </div>
 
154
  <p><?php esc_html_e( "Indicates whether the avatar is displayed.", "embedpress" ); ?></p>
155
  </div>
156
  </div>
EmbedPress/Ends/Back/Settings/templates/wistia.php CHANGED
@@ -4,6 +4,7 @@
4
  * all undefined vars comes from EmbedPressSettings.php or sometime from main-template.php
5
  * */
6
  $wis_settings = get_option( EMBEDPRESS_PLG_NAME.':wistia' );
 
7
  $autoplay = isset( $wis_settings['autoplay']) ? $wis_settings['autoplay'] : '';
8
  $display_fullscreen_button = isset( $wis_settings['display_fullscreen_button']) ? $wis_settings['display_fullscreen_button'] : 1;
9
  $display_playbar = isset( $wis_settings['display_playbar']) ? $wis_settings['display_playbar'] : 1;
@@ -27,6 +28,14 @@ $plugin_rewind_time = isset( $wis_settings['plugin_rewind_time']) ? intval( $wis
27
  do_action( 'embedpress_before_wistia_settings_fields');
28
  echo $nonce_field ;
29
  ?>
 
 
 
 
 
 
 
 
30
  <div class="form__group">
31
  <p class="form__label"><?php esc_html_e( "Fullscreen Button", "embedpress" ); ?></p>
32
  <div class="form__control__wrap">
@@ -44,19 +53,18 @@ $plugin_rewind_time = isset( $wis_settings['plugin_rewind_time']) ? intval( $wis
44
  </div>
45
  </div>
46
  <div class="form__group">
47
- <p class="form__label"><?php esc_html_e( "Playbar", "embedpress" ); echo $pro_active ? '': ' <span class="isPro">PRO</span>'; ?> </p>
48
  <div class="form__control__wrap">
49
- <div data-default="<?php echo esc_attr( $display_playbar ); ?>" data-value="<?php echo esc_attr( $display_playbar ); ?>" class="input__flex input__radio_wrap <?php echo $pro_active ? '': 'isPro'; ?>">
50
  <label class="input__radio">
51
- <input type="radio" value="" name="display_playbar" <?php echo $pro_active ? '' : 'disabled'; checked( '', $display_playbar); ?>>
52
  <span><?php esc_html_e( "No", "embedpress" ); ?></span>
53
  </label>
54
  <label class="input__radio">
55
- <input type="radio" value="1" name="display_playbar" <?php echo $pro_active ? '' : 'disabled'; checked( '1', $display_playbar); ?>>
56
  <span><?php esc_html_e( "Yes", "embedpress" ); ?></span>
57
  </label>
58
  </div>
59
- <?php if ( !$pro_active ) { include EMBEDPRESS_SETTINGS_PATH . 'templates/partials/alert-pro.php'; } ?>
60
  <p><?php esc_html_e( "Indicates whether the playbar is visible.", "embedpress" ); ?></p>
61
  </div>
62
  </div>
@@ -197,29 +205,27 @@ $plugin_rewind_time = isset( $wis_settings['plugin_rewind_time']) ? intval( $wis
197
  </div>
198
  </div>
199
  <div class="form__group">
200
- <p class="form__label"><?php esc_html_e( "Plugin: Rewind", "embedpress" ); echo $pro_active ? '': ' <span class="isPro">PRO</span>'; ?> </p>
201
  <div class="form__control__wrap">
202
- <div data-default="<?php echo esc_attr( $plugin_rewind ); ?>" data-value="<?php echo esc_attr( $plugin_rewind ); ?>" class="input__flex input__radio_wrap <?php echo $pro_active ? '': 'isPro'; ?>">
203
  <label class="input__radio">
204
- <input type="radio" value="" name="plugin_rewind" <?php echo $pro_active ? '' : 'disabled'; checked( '', $plugin_rewind); ?>>
205
  <span><?php esc_html_e( "No", "embedpress" ); ?></span>
206
  </label>
207
  <label class="input__radio">
208
- <input type="radio" value="1" name="plugin_rewind" <?php echo $pro_active ? '' : 'disabled'; checked( '1', $plugin_rewind); ?>>
209
  <span><?php esc_html_e( "Yes", "embedpress" ); ?></span>
210
  </label>
211
  </div>
212
- <?php if ( !$pro_active ) { include EMBEDPRESS_SETTINGS_PATH . 'templates/partials/alert-pro.php'; } ?>
213
  <p><?php esc_html_e( "Indicates whether the Rewind plugin is active.", "embedpress" ); ?></p>
214
  </div>
215
  </div>
216
  <div class="form__group">
217
- <p class="form__label"><?php esc_html_e( "Rewind Time (In Seconds)", "embedpress" ); echo $pro_active ? '': ' <span class="isPro">PRO</span>'; ?> </p>
218
- <div class="form__control__wrap <?php echo $pro_active ? '': 'isPro'; ?>">
219
- <input type="number" class="form__control" data-default="<?php echo esc_attr( $plugin_rewind_time );?>" value="<?php echo esc_attr( $plugin_rewind_time );?>" name="plugin_rewind_time" <?php echo $pro_active ? '' : 'disabled'; ?>>
220
  <p><?php esc_html_e( "The amount of time to rewind, in seconds.", "embedpress" ); ?></p>
221
  </div>
222
- <?php if ( !$pro_active ) { include EMBEDPRESS_SETTINGS_PATH . 'templates/partials/alert-pro.php'; } ?>
223
  </div>
224
  <?php do_action( 'embedpress_after_wistia_settings_fields'); ?>
225
  <button class="button button__themeColor radius-10 embedpress-submit-btn" name="submit" value="wistia"><?php esc_html_e( 'Save Changes', 'embedpress'); ?></button>
4
  * all undefined vars comes from EmbedPressSettings.php or sometime from main-template.php
5
  * */
6
  $wis_settings = get_option( EMBEDPRESS_PLG_NAME.':wistia' );
7
+ $start_time = isset( $wis_settings['start_time']) ? $wis_settings['start_time'] : 0;
8
  $autoplay = isset( $wis_settings['autoplay']) ? $wis_settings['autoplay'] : '';
9
  $display_fullscreen_button = isset( $wis_settings['display_fullscreen_button']) ? $wis_settings['display_fullscreen_button'] : 1;
10
  $display_playbar = isset( $wis_settings['display_playbar']) ? $wis_settings['display_playbar'] : 1;
28
  do_action( 'embedpress_before_wistia_settings_fields');
29
  echo $nonce_field ;
30
  ?>
31
+ <div class="form__group">
32
+ <p class="form__label" ><?php esc_html_e( "Start Time (In Seconds)", "embedpress" ); ?> </p>
33
+ <div class="form__control__wrap">
34
+ <input type="number" name="start_time" id="start_time" class="form__control" data-default="<?php echo esc_attr( $start_time); ?>" value="<?php echo esc_attr( $start_time); ?>" >
35
+ <p><?php esc_html_e( "You can put a custom time in seconds to start video. Example: 500", "embedpress" ); ?></p>
36
+ </div>
37
+
38
+ </div>
39
  <div class="form__group">
40
  <p class="form__label"><?php esc_html_e( "Fullscreen Button", "embedpress" ); ?></p>
41
  <div class="form__control__wrap">
53
  </div>
54
  </div>
55
  <div class="form__group">
56
+ <p class="form__label"><?php esc_html_e( "Playbar", "embedpress" );?> </p>
57
  <div class="form__control__wrap">
58
+ <div data-default="<?php echo esc_attr( $display_playbar ); ?>" data-value="<?php echo esc_attr( $display_playbar ); ?>" class="input__flex input__radio_wrap ">
59
  <label class="input__radio">
60
+ <input type="radio" value="" name="display_playbar" <?php checked( '', $display_playbar); ?>>
61
  <span><?php esc_html_e( "No", "embedpress" ); ?></span>
62
  </label>
63
  <label class="input__radio">
64
+ <input type="radio" value="1" name="display_playbar" <?php checked( '1', $display_playbar); ?>>
65
  <span><?php esc_html_e( "Yes", "embedpress" ); ?></span>
66
  </label>
67
  </div>
 
68
  <p><?php esc_html_e( "Indicates whether the playbar is visible.", "embedpress" ); ?></p>
69
  </div>
70
  </div>
205
  </div>
206
  </div>
207
  <div class="form__group">
208
+ <p class="form__label"><?php esc_html_e( "Plugin: Rewind", "embedpress" );?> </p>
209
  <div class="form__control__wrap">
210
+ <div data-default="<?php echo esc_attr( $plugin_rewind ); ?>" data-value="<?php echo esc_attr( $plugin_rewind ); ?>" class="input__flex input__radio_wrap">
211
  <label class="input__radio">
212
+ <input type="radio" value="" name="plugin_rewind" <?php checked( '', $plugin_rewind); ?>>
213
  <span><?php esc_html_e( "No", "embedpress" ); ?></span>
214
  </label>
215
  <label class="input__radio">
216
+ <input type="radio" value="1" name="plugin_rewind" <?php checked( '1', $plugin_rewind); ?>>
217
  <span><?php esc_html_e( "Yes", "embedpress" ); ?></span>
218
  </label>
219
  </div>
 
220
  <p><?php esc_html_e( "Indicates whether the Rewind plugin is active.", "embedpress" ); ?></p>
221
  </div>
222
  </div>
223
  <div class="form__group">
224
+ <p class="form__label"><?php esc_html_e( "Rewind Time (In Seconds)", "embedpress" ); ?> </p>
225
+ <div class="form__control__wrap">
226
+ <input type="number" class="form__control" data-default="<?php echo esc_attr( $plugin_rewind_time );?>" value="<?php echo esc_attr( $plugin_rewind_time );?>" name="plugin_rewind_time" >
227
  <p><?php esc_html_e( "The amount of time to rewind, in seconds.", "embedpress" ); ?></p>
228
  </div>
 
229
  </div>
230
  <?php do_action( 'embedpress_after_wistia_settings_fields'); ?>
231
  <button class="button button__themeColor radius-10 embedpress-submit-btn" name="submit" value="wistia"><?php esc_html_e( 'Save Changes', 'embedpress'); ?></button>
EmbedPress/Ends/Back/Settings/templates/youtube.php CHANGED
@@ -4,15 +4,19 @@
4
  * All undefined vars comes from 'render_settings_page' method
5
  * */
6
  $yt_settings = get_option( EMBEDPRESS_PLG_NAME.':youtube');
 
 
7
  $autoplay = isset( $yt_settings['autoplay']) ? $yt_settings['autoplay'] : '';
8
  $controls = isset( $yt_settings['controls']) ? $yt_settings['controls'] : 1;
9
  $fs = isset( $yt_settings['fs']) ? $yt_settings['fs'] : 1;
10
  $iv_load_policy = isset( $yt_settings['iv_load_policy']) ? $yt_settings['iv_load_policy'] : 1;
11
- // pro
12
  $color = isset( $yt_settings['color']) ? $yt_settings['color'] : 'red';
13
- $cc_load_policy = isset( $yt_settings['cc_load_policy']) ? $yt_settings['cc_load_policy'] : '';
14
  $rel = isset( $yt_settings['rel']) ? $yt_settings['rel'] : 1;
 
 
 
15
  $modestbranding = isset( $yt_settings['modestbranding']) ? $yt_settings['modestbranding'] : 0;
 
16
  // Subscription - Pro
17
  $yt_sub_channel = isset( $yt_settings['yt_sub_channel']) ? $yt_settings['yt_sub_channel'] : '';
18
  $yt_sub_text = isset( $yt_settings['yt_sub_text']) ? $yt_settings['yt_sub_text'] : '';
@@ -29,6 +33,22 @@ $yt_sub_count = isset( $yt_settings['yt_sub_count']) ? $yt_settings['yt_sub_coun
29
  <?php
30
  do_action( 'embedpress_before_youtube_settings_fields');
31
  echo $nonce_field ; ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
32
  <div class="form__group">
33
  <p class="form__label"><?php esc_html_e( "Auto Play", "embedpress" ); ?></p>
34
  <div class="form__control__wrap">
@@ -46,17 +66,15 @@ $yt_sub_count = isset( $yt_settings['yt_sub_count']) ? $yt_settings['yt_sub_coun
46
  </div>
47
  </div>
48
  <div class="form__group">
49
- <label class="form__label" for="color"><?php esc_html_e( "Progress Bar Color", "embedpress" ); echo !$pro_active ? ' <span class="isPro">PRO</span>' : ''; ?></label>
50
  <div class="form__control__wrap">
51
- <div class="embedpress__select <?php echo $pro_active ? '': 'isPro'; ?>">
52
  <span><i class="ep-icon ep-caret-down"></i></span>
53
- <select name="color" id="color" <?php echo !$pro_active ? 'disabled' : ''; ?> data-default="<?php echo esc_attr( $color ); ?>">
54
  <option value="red" <?php selected( 'red', $color); ?> ><?php esc_html_e( "Red", "embedpress" ); ?></option>
55
  <option value="white" <?php selected( 'white', $color); ?> ><?php esc_html_e( "White", "embedpress" ); ?></option>
56
  </select>
57
  </div>
58
- <?php if ( !$pro_active ) { include EMBEDPRESS_SETTINGS_PATH . 'templates/partials/alert-pro.php'; } ?>
59
-
60
  <p><?php printf( esc_html__( "Specifies the color that will be used in the player's video progress bar to highlight the amount of the video that the viewer has already seen. %s Note: Setting the color to white will disable the Modest Branding option (causing a YouTube logo to be displayed in the control bar).", 'embedpress'), '<br>'); ?></p>
61
  </div>
62
  </div>
@@ -122,21 +140,20 @@ $yt_sub_count = isset( $yt_settings['yt_sub_count']) ? $yt_settings['yt_sub_coun
122
  </div>
123
  </div>
124
  <div class="form__group">
125
- <p class="form__label"><?php esc_html_e( "Display Related Videos", "embedpress" ); echo !$pro_active ? ' <span class="isPro">PRO</span>' : ''; ?></p>
126
  <div class="form__control__wrap">
127
- <div class="embedpress__select <?php echo $pro_active ? '': 'isPro'; ?>">
128
  <span><i class="ep-icon ep-caret-down"></i></span>
129
- <select name="rel" data-default="<?php echo esc_attr( $rel); ?>" <?php echo $pro_active ? '' : 'disabled'; ?>>
130
  <option value="" <?php selected( '', $rel); ?>><?php esc_html_e( "From the same channel of the video", "embedpress" ); ?></option>
131
  <option value="1" <?php selected( '1', $rel); ?>><?php esc_html_e( "Based on User's watch history", "embedpress" ); ?></option>
132
  </select>
133
  </div>
134
-
135
- <?php if ( !$pro_active ) { include EMBEDPRESS_SETTINGS_PATH . 'templates/partials/alert-pro.php'; } ?>
136
-
137
  <p><?php esc_html_e( "Indicates how the player should show related videos when playback of the video pauses or ends.", "embedpress" ); ?></p>
138
  </div>
139
  </div>
 
 
140
  <div class="form__group">
141
  <p class="form__label"><?php esc_html_e( "Modest Branding", "embedpress" ); echo !$pro_active ? ' <span class="isPro">PRO</span>' : ''; ?></p>
142
  <div class="form__control__wrap">
@@ -152,6 +169,27 @@ $yt_sub_count = isset( $yt_settings['yt_sub_count']) ? $yt_settings['yt_sub_coun
152
  <p><?php esc_html_e( "Indicates whether the player should display a YouTube logo in the control bar.", "embedpress" ); ?></p>
153
  </div>
154
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
155
  <!-- SUBSCRIPTION-->
156
  <h3><?php esc_html_e( "Subscription Button", "embedpress" ); ?></h3>
157
 
4
  * All undefined vars comes from 'render_settings_page' method
5
  * */
6
  $yt_settings = get_option( EMBEDPRESS_PLG_NAME.':youtube');
7
+ $start_time = isset( $yt_settings['start_time']) ? $yt_settings['start_time'] : 0;
8
+ $end_time = isset( $yt_settings['end_time']) ? $yt_settings['end_time'] : 0;
9
  $autoplay = isset( $yt_settings['autoplay']) ? $yt_settings['autoplay'] : '';
10
  $controls = isset( $yt_settings['controls']) ? $yt_settings['controls'] : 1;
11
  $fs = isset( $yt_settings['fs']) ? $yt_settings['fs'] : 1;
12
  $iv_load_policy = isset( $yt_settings['iv_load_policy']) ? $yt_settings['iv_load_policy'] : 1;
 
13
  $color = isset( $yt_settings['color']) ? $yt_settings['color'] : 'red';
 
14
  $rel = isset( $yt_settings['rel']) ? $yt_settings['rel'] : 1;
15
+ // pro
16
+
17
+ $cc_load_policy = isset( $yt_settings['cc_load_policy']) ? $yt_settings['cc_load_policy'] : '';
18
  $modestbranding = isset( $yt_settings['modestbranding']) ? $yt_settings['modestbranding'] : 0;
19
+ $yt_lc_show = isset( $yt_settings['yt_lc_show']) ? $yt_settings['yt_lc_show'] : '';
20
  // Subscription - Pro
21
  $yt_sub_channel = isset( $yt_settings['yt_sub_channel']) ? $yt_settings['yt_sub_channel'] : '';
22
  $yt_sub_text = isset( $yt_settings['yt_sub_text']) ? $yt_settings['yt_sub_text'] : '';
33
  <?php
34
  do_action( 'embedpress_before_youtube_settings_fields');
35
  echo $nonce_field ; ?>
36
+ <div class="form__group">
37
+ <p class="form__label" ><?php esc_html_e( "Start Time (In Seconds)", "embedpress" ); ?> </p>
38
+ <div class="form__control__wrap">
39
+ <input type="number" name="start_time" id="start_time" class="form__control" data-default="<?php echo esc_attr( $start_time); ?>" value="<?php echo esc_attr( $start_time); ?>" >
40
+ <p><?php esc_html_e( "You can put a custom time in seconds to start the video. Example: 500", "embedpress" ); ?></p>
41
+ </div>
42
+
43
+ </div>
44
+ <div class="form__group">
45
+ <p class="form__label" ><?php esc_html_e( "End Time (In Seconds)", "embedpress" ); ?> </p>
46
+ <div class="form__control__wrap">
47
+ <input type="number" name="end_time" id="end_time" class="form__control" data-default="<?php echo esc_attr( $end_time); ?>" value="<?php echo esc_attr( $end_time); ?>" >
48
+ <p><?php esc_html_e( "You can put a custom time in seconds to end the video.", "embedpress" ); ?></p>
49
+ </div>
50
+
51
+ </div>
52
  <div class="form__group">
53
  <p class="form__label"><?php esc_html_e( "Auto Play", "embedpress" ); ?></p>
54
  <div class="form__control__wrap">
66
  </div>
67
  </div>
68
  <div class="form__group">
69
+ <label class="form__label" for="color"><?php esc_html_e( "Progress Bar Color", "embedpress" ); ?></label>
70
  <div class="form__control__wrap">
71
+ <div class="embedpress__select ">
72
  <span><i class="ep-icon ep-caret-down"></i></span>
73
+ <select name="color" id="color" data-default="<?php echo esc_attr( $color ); ?>">
74
  <option value="red" <?php selected( 'red', $color); ?> ><?php esc_html_e( "Red", "embedpress" ); ?></option>
75
  <option value="white" <?php selected( 'white', $color); ?> ><?php esc_html_e( "White", "embedpress" ); ?></option>
76
  </select>
77
  </div>
 
 
78
  <p><?php printf( esc_html__( "Specifies the color that will be used in the player's video progress bar to highlight the amount of the video that the viewer has already seen. %s Note: Setting the color to white will disable the Modest Branding option (causing a YouTube logo to be displayed in the control bar).", 'embedpress'), '<br>'); ?></p>
79
  </div>
80
  </div>
140
  </div>
141
  </div>
142
  <div class="form__group">
143
+ <p class="form__label"><?php esc_html_e( "Display Related Videos", "embedpress" ); ?></p>
144
  <div class="form__control__wrap">
145
+ <div class="embedpress__select">
146
  <span><i class="ep-icon ep-caret-down"></i></span>
147
+ <select name="rel" data-default="<?php echo esc_attr( $rel); ?>">
148
  <option value="" <?php selected( '', $rel); ?>><?php esc_html_e( "From the same channel of the video", "embedpress" ); ?></option>
149
  <option value="1" <?php selected( '1', $rel); ?>><?php esc_html_e( "Based on User's watch history", "embedpress" ); ?></option>
150
  </select>
151
  </div>
 
 
 
152
  <p><?php esc_html_e( "Indicates how the player should show related videos when playback of the video pauses or ends.", "embedpress" ); ?></p>
153
  </div>
154
  </div>
155
+
156
+
157
  <div class="form__group">
158
  <p class="form__label"><?php esc_html_e( "Modest Branding", "embedpress" ); echo !$pro_active ? ' <span class="isPro">PRO</span>' : ''; ?></p>
159
  <div class="form__control__wrap">
169
  <p><?php esc_html_e( "Indicates whether the player should display a YouTube logo in the control bar.", "embedpress" ); ?></p>
170
  </div>
171
  </div>
172
+
173
+ <!-- Live Chat-->
174
+ <div class="form__group">
175
+ <p class="form__label"><?php esc_html_e( " Live Chat", "embedpress" ); echo !$pro_active ? ' <span class="isPro">PRO</span>': ''; ?></p>
176
+ <div class="form__control__wrap">
177
+ <div class="input__flex input__radio_wrap <?php echo $pro_active ? '': 'isPro'; ?>" data-default="<?php echo esc_attr( $yt_lc_show ); ?>" data-value="<?php echo esc_attr( $yt_lc_show ); ?>">
178
+ <label class="input__radio">
179
+ <input type="radio" name="yt_lc_show" value="" <?php echo !$pro_active ? 'disabled ' : ''; checked( '', $yt_lc_show); ?>>
180
+ <span><?php esc_html_e( "No", "embedpress" ); ?></span>
181
+ </label>
182
+ <label class="input__radio">
183
+ <input type="radio" name="yt_lc_show" value="yes" <?php echo !$pro_active ? 'disabled ' : ''; checked( 'yes', $yt_lc_show);?>>
184
+ <span><?php esc_html_e( "Yes", "embedpress" ); ?></span>
185
+ </label>
186
+ </div>
187
+ <?php if ( !$pro_active ) { include EMBEDPRESS_SETTINGS_PATH . 'templates/partials/alert-pro.php'; } ?>
188
+
189
+ <p><?php printf( esc_html__( "Enabling this option will show chat on all YouTube videos. However, YouTube Live Chat feature only works with Live Streaming videos.", "embedpress" ), '<strong>Yes</strong>'); ?></p>
190
+ </div>
191
+ </div>
192
+
193
  <!-- SUBSCRIPTION-->
194
  <h3><?php esc_html_e( "Subscription Button", "embedpress" ); ?></h3>
195
 
EmbedPress/Includes/Classes/Elementor_Enhancer.php CHANGED
@@ -1,61 +1,92 @@
1
  <?php
 
2
  namespace EmbedPress\Includes\Classes;
3
 
4
  use Elementor\Group_Control_Image_Size;
5
  use Elementor\Utils;
6
 
7
  class Elementor_Enhancer {
8
- public static function get_link_attributes($url_control) {
9
- $attributes = [];
10
 
11
- if ( ! empty( $url_control['url'] ) ) {
12
- $allowed_protocols = array_merge( wp_allowed_protocols(), [ 'skype', 'viber' ] );
 
 
 
 
 
 
 
 
 
 
 
13
 
14
- $attributes['href'] = esc_url( $url_control['url'], $allowed_protocols );
15
- }
16
 
17
- if ( ! empty( $url_control['is_external'] ) ) {
18
- $attributes['target'] = '_blank';
19
- }
 
 
 
20
 
21
- if ( ! empty( $url_control['nofollow'] ) ) {
22
- $attributes['rel'] = 'nofollow';
23
- }
24
 
25
- if ( ! empty( $url_control['custom_attributes'] ) ) {
26
- // Custom URL attributes should come as a string of comma-delimited key|value pairs
27
- $attributes = array_merge( $attributes, Utils::parse_custom_attributes( $url_control['custom_attributes'] ) );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
28
  }
29
- return $attributes;
 
30
  }
31
- public static function apply_cta_markup( $embed, $settings, $provider_name='' ) {
32
- if ( empty( $settings["embedpress_pro_{$provider_name}_logo"]) || empty( $settings["embedpress_pro_{$provider_name}_logo"]['url']) ) {
 
33
  return $embed;
34
  }
35
  $img = Group_Control_Image_Size::get_attachment_image_html( $settings, "embedpress_pro_{$provider_name}_logo" );
36
- if ( empty( $img) ) {
37
  return $embed;
38
  }
39
 
40
- $cta = '';
41
- $url = '';
42
  $target = '';
43
- $x = !empty( $settings["embedpress_pro_{$provider_name}_logo_xpos"]) && !empty( $settings["embedpress_pro_{$provider_name}_logo_xpos"]['unit']) ? $settings["embedpress_pro_{$provider_name}_logo_xpos"]['unit'].$settings["embedpress_pro_{$provider_name}_logo_xpos"]['size']: '10%';
44
 
45
- $y = !empty( $settings["embedpress_pro_{$provider_name}_logo_ypos"]) && !empty( $settings["embedpress_pro_{$provider_name}_logo_ypos"]['unit']) ? $settings["embedpress_pro_{$provider_name}_logo_ypos"]['unit'].$settings["embedpress_pro_{$provider_name}_logo_ypos"]['size']: '10%';
46
- $cssClass = isset( $embed->url ) ? '.ose-uid-'. md5($embed->url) : ".ose-{$provider_name}";
47
  ob_start();
48
  ?>
49
- <style type="text/css">
50
- <?php echo esc_html($cssClass); ?>{
51
- text-align: left;
52
- position: relative;
 
 
 
53
  }
54
- <?php echo esc_html($cssClass); ?> .watermark {
 
55
  border: 0;
56
  position: absolute;
57
  bottom: <?php echo esc_html($y); ?>;
58
- right: <?php echo esc_html($x); ?>;
59
  max-width: 150px;
60
  max-height: 75px;
61
  opacity: 0.25;
@@ -65,149 +96,120 @@ class Elementor_Enhancer {
65
  -webkit-transition: opacity 0.5s ease-in-out;
66
  transition: opacity 0.5s ease-in-out;
67
  }
68
- <?php echo esc_html($cssClass); ?> .watermark:hover {
69
- opacity: 1;
70
- }
71
- </style>
 
 
72
  <?php
73
  $style = ob_get_clean();
74
 
75
- if ( !class_exists( '\simple_html_dom') ) {
76
  include_once EMBEDPRESS_PATH_CORE . 'simple_html_dom.php';
77
  }
78
 
79
- if ( !empty( $settings["embedpress_pro_{$provider_name}_cta"]) && !empty( $settings["embedpress_pro_{$provider_name}_cta"]['url']) ) {
80
  $url = $settings["embedpress_pro_{$provider_name}_cta"]['url'];
81
  }
82
 
83
- if ($url){
84
- $atts = self::get_link_attributes( $settings["embedpress_pro_{$provider_name}_cta"]);
85
  $attributes = '';
86
  foreach ( $atts as $att => $value ) {
87
- $attributes .=$att.'="'.esc_attr($value).'" ';
88
  }
89
- $cta .= sprintf( '<a %s>', trim( $attributes));
90
  }
91
 
92
 
93
- $imgDom = str_get_html( $img);
94
- $imgDom = $imgDom->find( 'img', 0);
95
- $imgDom->setAttribute( 'class', 'watermark');
96
- $imgDom->removeAttribute( 'style');
97
- $imgDom->setAttribute( 'width', 'auto');
98
- $imgDom->setAttribute( 'height', 'auto');
99
  ob_start();
100
- echo $imgDom;
101
  $cta .= ob_get_clean();
102
  $imgDom->clear();
103
- unset( $img, $imgDom);
104
 
105
- if ($url){
106
  $cta .= '</a>';
107
  }
108
- $dom = str_get_html($embed->embed);
109
- $wrapDiv = $dom->find( "div.ose-{$provider_name}", 0);
110
- if (!empty( $wrapDiv) && is_object( $wrapDiv)){
111
- $wrapDiv->innertext .= $cta ;
112
  }
113
 
114
  ob_start();
115
  echo $wrapDiv;
116
  $markup = ob_get_clean();
117
  $dom->clear();
118
- unset($dom, $wrapDiv);
 
 
119
 
120
- $embed->embed = $style . $markup;
121
  return $embed;
122
  }
123
- public static function youtube( $embed, $setting ) {
124
- if ( isset( $setting['embedpress_pro_embeded_source']) && 'youtube' === $setting['embedpress_pro_embeded_source'] && isset( $embed->embed ) ) {
125
-
126
- preg_match( '/src=\"(.+?)\"/', $embed->embed, $match );
127
- $url_full = $match[ 1 ];
128
- $query = parse_url( $url_full, PHP_URL_QUERY );
129
- parse_str( $query, $params );
130
- $params[ 'controls' ] = $setting[ 'embedpress_pro_youtube_display_controls' ];
131
- $params[ 'iv_load_policy' ] = $setting[ 'embedpress_pro_youtube_display_video_annotations' ];
132
- $params[ 'fs' ] = ( $setting[ 'embedpress_pro_youtube_enable_fullscreen_button' ] === 'yes' ) ? 1 : 0;
133
- $params[ 'end' ] = $setting[ 'embedpress_pro_youtube_end_time' ];
134
- if ( $setting[ 'embedpress_pro_youtube_auto_play' ] === 'yes' ) {
135
- $params[ 'autoplay' ] = 1;
136
- }
137
-
138
- if ( is_embedpress_pro_active() ) {
139
- $params[ 'color' ] = $setting[ 'embedpress_pro_youtube_progress_bar_color' ];
140
- $params[ 'modestbranding' ] = $setting[ 'embedpress_pro_youtube_modest_branding' ];
141
- $params[ 'start' ] = $setting[ 'embedpress_pro_video_start_time' ];
142
-
143
-
144
 
 
 
145
 
146
- if ( $setting[ 'embedpress_pro_youtube_force_closed_captions' ] === 'yes' ) {
147
- $params[ 'cc_load_policy' ] = 1;
148
- }
149
-
150
- if ( $setting[ 'embedpress_pro_youtube_display_related_videos' ] === 'yes' ) {
151
- $params[ 'rel' ] = 1;
152
- }
153
- }
154
-
155
 
156
- preg_match( '/(.+)?\?/', $url_full, $url );
157
- $url = $url[ 1 ];
158
 
159
- // Reassemble the url with the new variables.
160
- $url_modified = $url . '?';
161
- foreach ( $params as $paramName => $paramValue ) {
162
- $url_modified .= $paramName . '=' . $paramValue . '&';
163
- }
164
- // Replaces the old url with the new one.
165
- $embed->embed = str_replace( $url_full, rtrim( $url_modified, '&' ), $embed->embed );
166
- if ( is_embedpress_pro_active() ) {
167
- $embed = self::apply_cta_markup( $embed, $setting, 'youtube');
168
- }
169
 
 
 
170
  }
171
 
 
 
 
 
172
 
173
- return $embed;
174
  }
175
- public static function vimeo( $embed, $setting )
176
- {
177
 
178
- if ( !isset( $embed->provider_name ) || strtoupper( $embed->provider_name ) !== 'VIMEO' || !isset( $embed->embed ) || $setting[ 'embedpress_pro_embeded_source' ] !== 'vimeo' ) {
 
 
179
  return $embed;
180
  }
181
  preg_match( '/src=\"(.+?)\"/', $embed->embed, $match );
182
- $url_full = $match[ 1 ];
183
- //@todo; ask if we need to show author and avatar by default if pro is disabled
184
- $params = [
185
- 'color' => str_replace( '#', '', $setting[ 'embedpress_pro_vimeo_color' ] ),
186
- 'title' => $setting[ 'embedpress_pro_vimeo_display_title' ] === 'yes' ? 1 : 0,
187
- //'byline' => $setting[ 'embedpress_pro_vimeo_display_author' ] === 'yes' ? 1 : 0,
188
- //'portrait' => $setting[ 'embedpress_pro_vimeo_avatar' ] === 'yes' ? 1 : 0,
189
- //'dnt' => $setting[ 'embedpress_pro_vimeo_dnt' ] === 'yes' ? 1 : 0,
190
  ];
191
- if ( $setting[ 'embedpress_pro_vimeo_auto_play' ] === 'yes' ) {
192
- $params[ 'autoplay' ] = 1;
193
  }
194
 
195
  if ( is_embedpress_pro_active() ) {
196
- if ( $setting[ 'embedpress_pro_vimeo_loop' ] === 'yes' ) {
197
- $params[ 'loop' ] = 1;
198
  }
199
- if ( $setting[ 'embedpress_pro_vimeo_autopause' ] === 'yes' ) {
200
- $params[ 'autopause' ] = 1;
201
  }
202
- $params ['byline'] = $setting[ 'embedpress_pro_vimeo_display_author' ] === 'yes' ? 1 : 0;
203
- $params ['portrait'] = $setting[ 'embedpress_pro_vimeo_avatar' ] === 'yes' ? 1 : 0;
204
- $params [ 'dnt'] = $setting[ 'embedpress_pro_vimeo_dnt' ] === 'yes' ? 1 : 0;
205
-
206
- }
207
-
208
-
209
-
210
 
 
 
211
 
212
 
213
  $url_modified = $url_full;
@@ -215,53 +217,53 @@ class Elementor_Enhancer {
215
  $url_modified = add_query_arg( $param, $value, $url_modified );
216
  }
217
 
218
- if ( is_embedpress_pro_active() ) {
219
- $url_modified .= '#t=' . $setting[ 'embedpress_pro_video_start_time' ];
220
- }
221
  // Replaces the old url with the new one.
222
  $embed->embed = str_replace( $url_full, $url_modified, $embed->embed );
223
  if ( is_embedpress_pro_active() ) {
224
- return self::apply_cta_markup( $embed, $setting, 'vimeo');
225
  }
 
226
  return $embed;
227
  }
228
- public static function wistia( $embed, $setting )
229
- {
230
- if ( !isset( $embed->provider_name ) || strtoupper( $embed->provider_name ) !== 'WISTIA, INC.' || !isset( $embed->embed ) || $setting[ 'embedpress_pro_embeded_source' ] !== 'wistia' ) {
231
  return $embed;
232
  }
233
  preg_match( '/src=\"(.+?)\"/', $embed->embed, $match );
234
 
235
- $url_full = $match[ 1 ];
236
 
237
  // Parse the url to retrieve all its info like variables etc.
238
  $query = parse_url( $embed->url, PHP_URL_QUERY );
239
- $url = str_replace( '?' . $query, '', $url_full );
240
 
241
  parse_str( $query, $params );
242
 
243
  // Set the class in the attributes
244
  $embed->attributes->class = str_replace( '{provider_alias}', 'wistia', $embed->attributes->class );
245
- $embed->embed = str_replace( 'ose-wistia, inc.', 'ose-wistia', $embed->embed );
246
 
247
  // Embed Options
248
- $embedOptions = new \stdClass;
249
- $embedOptions->videoFoam = true;
250
- $embedOptions->fullscreenButton = ( $setting[ 'embedpress_pro_wistia_fullscreen_button' ] === 'yes' );
251
- $embedOptions->smallPlayButton = ( $setting[ 'embedpress_pro_wistia_small_play_button' ] === 'yes' );
252
- $embedOptions->autoPlay = ( $setting[ 'embedpress_pro_wistia_auto_play' ] === 'yes' );
253
- $embedOptions->playerColor = $setting[ 'embedpress_pro_wistia_color' ];
 
 
254
  if ( is_embedpress_pro_active() ) {
255
- $embedOptions->time = $setting[ 'embedpress_pro_video_start_time' ];
256
- $embedOptions->playbar = ( $setting[ 'embedpress_pro_wistia_playbar' ] === 'yes' );
257
- $embedOptions->volumeControl = ( $setting[ 'embedpress_pro_wistia_volume_control' ] === 'yes' );
258
 
259
- $volume = (float)$setting[ 'embedpress_pro_wistia_volume' ];
260
  if ( $volume > 1 ) {
261
  $volume = $volume / 100;
262
  }
263
  $embedOptions->volume = $volume;
264
- }
265
 
266
 
267
  // Plugins
@@ -271,129 +273,148 @@ class Elementor_Enhancer {
271
 
272
  // Resumable
273
 
274
- if ( $setting[ 'embedpress_pro_wistia_resumable' ] === 'yes' ) {
275
  // Add the resumable plugin
276
- $pluginList[ 'resumable' ] = [
277
  'src' => $pluginsBaseURL . '/resumable.min.js',
278
- 'async' => false
279
  ];
280
  }
281
 
282
 
283
  // Add a fix for the autoplay and resumable work better together
284
  if ( isset( $options->autoPlay ) ) {
285
- if ( $setting[ 'embedpress_pro_wistia_resumable' ] === 'yes' ) {
286
- $pluginList[ 'fixautoplayresumable' ] = [
287
- 'src' => $pluginsBaseURL . '/fixautoplayresumable.min.js'
288
  ];
289
  }
290
  }
291
 
292
  // Closed Captions plugin
293
  if ( is_embedpress_pro_active() ) {
294
- if ( $setting[ 'embedpress_pro_wistia_captions' ] === 'yes' ) {
295
- $isCaptionsEnabled = ( $setting[ 'embedpress_pro_wistia_captions' ] === 'yes' );
296
- $isCaptionsEnabledByDefault = ( $setting[ 'embedpress_pro_wistia_captions_enabled_by_default' ] === 'yes' );
297
  if ( $isCaptionsEnabled ) {
298
- $pluginList[ 'captions-v1' ] = [
299
- 'onByDefault' => $isCaptionsEnabledByDefault
300
  ];
301
  }
302
- $embedOptions->captions = $isCaptionsEnabled;
303
  $embedOptions->captionsDefault = $isCaptionsEnabledByDefault;
304
  }
305
 
306
- // Rewind plugin
307
- if ( $setting[ 'embedpress_pro_wistia_rewind' ] === 'yes' ) {
308
 
309
- $embedOptions->rewindTime = (int)$setting[ 'embedpress_pro_wistia_rewind_time' ];
310
- $pluginList[ 'rewind' ] = [
311
- 'src' => $pluginsBaseURL . '/rewind.min.js'
312
- ];
313
 
314
- }
315
- }
316
 
 
 
 
 
317
 
 
318
  // Focus plugin
319
- if ( $setting[ 'embedpress_pro_wistia_focus' ] === 'yes' ) {
320
- $isFocusEnabled = ( $setting[ 'embedpress_pro_wistia_focus' ] === 'yes' );
321
- $pluginList[ 'dimthelights' ] = [
322
  'src' => $pluginsBaseURL . '/dimthelights.min.js',
323
- 'autoDim' => $isFocusEnabled
324
  ];
325
 
326
  $embedOptions->focus = $isFocusEnabled;
327
  }
328
 
329
 
330
-
331
  $embedOptions->plugin = $pluginList;
332
- $embedOptions = json_encode( $embedOptions );
333
 
334
  // Get the video ID
335
- $videoId = self::get_wistia_video_from_url( $embed->url );
336
  $shortVideoId = substr( $videoId, 0, 3 );
337
 
338
  // Responsive?
339
 
340
  $class = [
341
  'wistia_embed',
342
- 'wistia_async_' . $videoId
343
  ];
344
 
345
  $attribs = [
346
  sprintf( 'id="wistia_%s"', $videoId ),
347
  sprintf( 'class="%s"', join( ' ', $class ) ),
348
- sprintf( 'style="width:%spx; height:%spx;"', $embed->width, $embed->height )
349
  ];
350
 
351
  $labels = [
352
  'watch_from_beginning' => __( 'Watch from the beginning', 'embedpress-pro' ),
353
  'skip_to_where_you_left_off' => __( 'Skip to where you left off', 'embedpress-pro' ),
354
- 'you_have_watched_it_before' => __( 'It looks like you\'ve watched<br />part of this video before!',
355
- 'embedpress-pro' ),
356
  ];
357
  $labels = json_encode( $labels );
358
 
359
  preg_match( '/ose-uid-([a-z0-9]*)/', $embed->embed, $matches );
360
- $uid = $matches[ 1 ];
361
-
362
- $html = "<div class=\"embedpress-wrapper ose-wistia ose-uid-{$uid} responsive\">";
363
- $html .= '<script src="https://fast.wistia.com/assets/external/E-v1.js" async></script>';
364
- $html .= "<script>window.pp_embed_wistia_labels = {$labels};</script>\n";
365
- $html .= "<script>window._wq = window._wq || []; _wq.push({\"{$shortVideoId}\": {$embedOptions}});</script>\n";
366
- $html .= '<div ' . join( ' ', $attribs ) . "></div>\n";
367
- $html .= '</div>';
368
  $embed->embed = $html;
369
  if ( is_embedpress_pro_active() ) {
370
- return self::apply_cta_markup( $embed, $setting, 'wistia');
371
  }
 
372
  return $embed;
373
  }
374
- public static function soundcloud( $embed, $setting )
375
- {
376
 
377
- if ( !isset( $embed->provider_name ) || strtoupper( $embed->provider_name ) !== 'SOUNDCLOUD' || !isset( $embed->embed ) || $setting[ 'embedpress_pro_embeded_source' ] !== 'soundcloud' ) {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
378
  return $embed;
379
  }
380
  preg_match( '/src=\"(.+?)\"/', $embed->embed, $match );
381
- $url_full = $match[ 1 ];
382
- $params = [
383
- 'color' => str_replace( '#', '', $setting[ 'embedpress_pro_soundcloud_color' ] ),
384
- 'visual' => $setting[ 'embedpress_pro_soundcloud_visual' ] === 'yes' ? 'true' : 'false',
385
- 'auto_play' => $setting[ 'embedpress_pro_soundcloud_autoplay' ] === 'yes' ? 'true' : 'false',
386
- 'sharing' => $setting[ 'embedpress_pro_soundcloud_share_button' ] === 'yes' ? 'true' : 'false',
387
- 'show_comments' => $setting[ 'embedpress_pro_soundcloud_comments' ] === 'yes' ? 'true' : 'false',
388
- 'show_artwork' => $setting[ 'embedpress_pro_soundcloud_artwork' ] === 'yes' ? 'true' : 'false',
389
- 'show_playcount' => $setting[ 'embedpress_pro_soundcloud_play_count' ] === 'yes' ? 'true' : 'false',
390
- 'show_user' => $setting[ 'embedpress_pro_soundcloud_user_name' ] === 'yes' ? 'true' : 'false',
391
- 'buying' => 'false',
392
- 'download' => 'false',
393
  ];
394
  if ( is_embedpress_pro_active() ) {
395
- $params['buying'] = $setting[ 'embedpress_pro_soundcloud_buy_button' ] === 'yes' ? 'true' : 'false';
396
- $params['download'] = $setting[ 'embedpress_pro_soundcloud_download_button' ] === 'yes' ? 'true' : 'false';
397
  }
398
 
399
  $url_modified = $url_full;
@@ -403,126 +424,113 @@ class Elementor_Enhancer {
403
 
404
  // Replaces the old url with the new one.
405
  $embed->embed = str_replace( $url_full, $url_modified, $embed->embed );
406
- if ( 'false' === $params[ 'visual' ] ) {
407
  $embed->embed = str_replace( 'height="400"', 'height="200 !important"', $embed->embed );
408
  }
 
409
  return $embed;
410
  }
411
- public static function dailymotion( $embed, $setting )
412
- {
413
- if ( !isset( $embed->provider_name ) || strtoupper( $embed->provider_name ) !== 'DAILYMOTION' || !isset( $embed->embed ) || $setting[ 'embedpress_pro_embeded_source' ] !== 'dailymotion' ) {
414
  return $embed;
415
  }
416
  preg_match( '/src=\"(.+?)\"/', $embed->embed, $match );
417
- $url_full = $match[ 1 ];
418
- $params = [
419
- 'ui-highlight' => str_replace( '#', '', $setting[ 'embedpress_pro_dailymotion_control_color' ] ),
420
- 'mute' => $setting[ 'embedpress_pro_dailymotion_mute' ] === 'yes' ? 1 : 0,
421
- 'autoplay' => $setting[ 'embedpress_pro_dailymotion_autoplay' ] === 'yes' ? 1 : 0,
422
- 'controls' => $setting[ 'embedpress_pro_dailymotion_player_control' ] === 'yes' ? 1 : 0,
423
- 'ui-start-screen-info' => $setting[ 'embedpress_pro_dailymotion_video_info' ] === 'yes' ? 1 : 0,
 
424
  'endscreen-enable' => 0,
425
  ];
426
 
427
- if ( $setting[ 'embedpress_pro_dailymotion_play_on_mobile' ] === 'yes' ) {
428
- $params[ 'playsinline' ] = 1;
429
  }
430
  if ( is_embedpress_pro_active() ) {
431
- $params['start'] = (int) $setting[ 'embedpress_pro_video_start_time' ];
432
- $params['ui-logo'] = $setting[ 'embedpress_pro_dailymotion_logo' ] === 'yes' ? 1 : 0;
433
-
434
- }
435
  $url_modified = $url_full;
436
  foreach ( $params as $param => $value ) {
437
  $url_modified = add_query_arg( $param, $value, $url_modified );
438
  }
439
  $embed->embed = str_replace( $url_full, $url_modified, $embed->embed );
 
440
  return $embed;
441
  }
 
442
  public static function twitch( $embed_content, $settings ) {
443
- if ( !isset( $embed_content->provider_name ) || strtoupper( $embed_content->provider_name ) !== 'TWITCH' || !isset( $embed_content->embed ) || $settings[ 'embedpress_pro_embeded_source' ] !== 'twitch' ) {
444
  return $embed_content;
445
  }
446
- $e = current( $embed_content);
447
- $time = '0h0m0s';
448
- $type = isset( $e['type']) ? $e['type']: '';
449
- $content_id = isset( $e['content_id']) ? $e['content_id'] : '';
450
- $channel = 'channel' === $type ? $content_id : '';
451
- $video = 'video' === $type ? $content_id : '';
452
- $muted = 'false';
453
- $full_screen = ('yes' === $settings['embedpress_pro_fs']) ? 'true': 'false';
454
- $autoplay = ('yes' === $settings['embedpress_pro_twitch_autoplay']) ? 'true': 'false';
455
- $theme = 'dark';
456
- $layout = 'video';
457
- $width = (int) $settings['width']['size'];
458
- $height = (int) $settings['height']['size'];
459
-
 
 
 
 
 
 
 
 
 
 
460
  if ( is_embedpress_pro_active() ) {
461
- if ( !empty( $settings['embedpress_pro_video_start_time']) ) {
462
- $ta = explode( ':', gmdate( "G:i:s", $settings['embedpress_pro_video_start_time']));
463
- $h = $ta[0].'h';
464
- $m = ($ta[1] * 1) .'m';
465
- $s = ($ta[2] * 1) .'s';
466
- $time = $h.$m.$s;
467
- }
468
- $layout = ('yes' === $settings['embedpress_pro_twitch_chat']) ? 'video-with-chat' : 'video';
469
- $muted = ('yes' === $settings['embedpress_pro_twitch_mute']) ? 'true': 'false';
470
- $theme = !empty( $settings['embedpress_pro_twitch_theme']) ? $settings['embedpress_pro_twitch_theme'] : 'dark';
471
  }
472
 
 
473
 
474
- $url = "https://embed.twitch.tv?autoplay={$autoplay}&channel={$channel}&height={$height}&layout={$layout}&migration=true&muted={$muted}&theme={$theme}&time={$time}&video={$video}&width={$width}&allowfullscreen={$full_screen}";
475
- $pars_url = wp_parse_url(get_site_url());
476
- $url = !empty($pars_url['host'])?$url.'&parent='.$pars_url['host']:$url;
477
 
478
- preg_match( '/src=\"(.+?)\"/', $embed_content->embed, $match );
479
- $url_full = $match[ 1 ];
480
- $embed_content->embed = str_replace( $url_full, $url, $embed_content->embed );
481
  if ( is_embedpress_pro_active() ) {
482
- return self::apply_cta_markup( $embed_content, $settings, 'twitch');
483
  }
484
 
485
  return $embed_content;
486
  }
 
487
  public static function spotify( $embed, $setting ) {
488
- if ( !isset( $embed->provider_name ) || strtolower( $embed->provider_name ) !== 'spotify' || !isset( $embed->embed ) ) {
489
  return $embed;
490
  }
491
  preg_match( '/src=\"(.+?)\"/', $embed->embed, $match );
492
- $url_full = $match[ 1 ];
493
- $modified_url = str_replace( 'playlist-v2', 'playlist', $url_full);
494
- if ( $setting[ 'embedpress_pro_embeded_source' ] == 'spotify' ) {
495
  // apply elementor related mod
496
- if(isset( $setting['spotify_theme'])){
497
- if ( strpos( $modified_url, '?') !== false ) {
498
- $modified_url .= '&theme='.sanitize_text_field( $setting['spotify_theme']);
499
- }else{
500
- $modified_url .= '?theme='.sanitize_text_field( $setting['spotify_theme']);
501
  }
502
  }
503
  }
504
 
505
  $embed->embed = str_replace( $url_full, $modified_url, $embed->embed );
506
- return $embed;
507
- }
508
-
509
- /**
510
- * Get the Video ID from the URL
511
- *
512
- * @param string $url
513
- *
514
- * @return string
515
- */
516
- public static function get_wistia_video_from_url ($url) {
517
- // https://fast.wistia.com/embed/medias/xf1edjzn92.jsonp
518
- // https://ostraining-1.wistia.com/medias/xf1edjzn92
519
- preg_match('#\/medias\\\?\/([a-z0-9]+)\.?#i', $url, $matches);
520
 
521
- $id = false;
522
- if (isset($matches[1])) {
523
- $id = $matches[1];
524
- }
525
-
526
- return $id;
527
  }
528
  }
1
  <?php
2
+
3
  namespace EmbedPress\Includes\Classes;
4
 
5
  use Elementor\Group_Control_Image_Size;
6
  use Elementor\Utils;
7
 
8
  class Elementor_Enhancer {
9
+ public static function youtube( $embed, $setting ) {
10
+ if ( isset( $setting['embedpress_pro_embeded_source'] ) && 'youtube' === $setting['embedpress_pro_embeded_source'] && isset( $embed->embed ) ) {
11
 
12
+ preg_match( '/src=\"(.+?)\"/', $embed->embed, $match );
13
+ $url_full = $match[1];
14
+ $query = parse_url( $url_full, PHP_URL_QUERY );
15
+ parse_str( $query, $params );
16
+ $params['controls'] = $setting['embedpress_pro_youtube_display_controls'];
17
+ $params['iv_load_policy'] = $setting['embedpress_pro_youtube_display_video_annotations'];
18
+ $params['fs'] = ( $setting['embedpress_pro_youtube_enable_fullscreen_button'] === 'yes' ) ? 1 : 0;
19
+ $params['rel'] = ( $setting['embedpress_pro_youtube_display_related_videos'] === 'yes' ) ? 1 : 0;
20
+ $params['end'] = $setting['embedpress_pro_youtube_end_time'];
21
+ if ( $setting['embedpress_pro_youtube_auto_play'] === 'yes' ) {
22
+ $params['autoplay'] = 1;
23
+ }
24
+ $params['start'] = $setting['embedpress_pro_video_start_time'];
25
 
26
+ $params['color'] = $setting['embedpress_pro_youtube_progress_bar_color'];
 
27
 
28
+ if ( is_embedpress_pro_active() ) {
29
+ $params['modestbranding'] = $setting['embedpress_pro_youtube_modest_branding'];
30
+ if ( $setting['embedpress_pro_youtube_force_closed_captions'] === 'yes' ) {
31
+ $params['cc_load_policy'] = 1;
32
+ }
33
+ }
34
 
 
 
 
35
 
36
+ preg_match( '/(.+)?\?/', $url_full, $url );
37
+ if ( empty( $url) ) {
38
+ return $embed;
39
+ }
40
+ $url = $url[1];
41
+
42
+ // Reassemble the url with the new variables.
43
+ $url_modified = $url . '?';
44
+ foreach ( $params as $paramName => $paramValue ) {
45
+ $url_modified .= $paramName . '=' . $paramValue . '&';
46
+ }
47
+ // Replaces the old url with the new one.
48
+ $embed->embed = str_replace( $url_full, rtrim( $url_modified, '&' ), $embed->embed );
49
+ if ( is_embedpress_pro_active() ) {
50
+ $embed = self::apply_cta_markup( $embed, $setting, 'youtube' );
51
+ }
52
+
53
  }
54
+
55
+ return $embed;
56
  }
57
+
58
+ public static function apply_cta_markup( $embed, $settings, $provider_name = '' ) {
59
+ if ( empty( $settings["embedpress_pro_{$provider_name}_logo"] ) || empty( $settings["embedpress_pro_{$provider_name}_logo"]['url'] ) ) {
60
  return $embed;
61
  }
62
  $img = Group_Control_Image_Size::get_attachment_image_html( $settings, "embedpress_pro_{$provider_name}_logo" );
63
+ if ( empty( $img ) ) {
64
  return $embed;
65
  }
66
 
67
+ $cta = '';
68
+ $url = '';
69
  $target = '';
70
+ $x = ! empty( $settings["embedpress_pro_{$provider_name}_logo_xpos"] ) && ! empty( $settings["embedpress_pro_{$provider_name}_logo_xpos"]['unit'] ) ? $settings["embedpress_pro_{$provider_name}_logo_xpos"]['unit'] . $settings["embedpress_pro_{$provider_name}_logo_xpos"]['size'] : '10%';
71
 
72
+ $y = ! empty( $settings["embedpress_pro_{$provider_name}_logo_ypos"] ) && ! empty( $settings["embedpress_pro_{$provider_name}_logo_ypos"]['unit'] ) ? $settings["embedpress_pro_{$provider_name}_logo_ypos"]['unit'] . $settings["embedpress_pro_{$provider_name}_logo_ypos"]['size'] : '10%';
73
+ $cssClass = isset( $embed->url ) ? '.ose-uid-' . md5( $embed->url ) : ".ose-{$provider_name}";
74
  ob_start();
75
  ?>
76
+ <style type="text/css">
77
+ <?php echo esc_html($cssClass); ?>
78
+ {
79
+ text-align: left
80
+ ;
81
+ position: relative
82
+ ;
83
  }
84
+ <?php echo esc_html($cssClass); ?>
85
+ .watermark {
86
  border: 0;
87
  position: absolute;
88
  bottom: <?php echo esc_html($y); ?>;
89
+ right: <?php echo esc_html($x); ?>;
90
  max-width: 150px;
91
  max-height: 75px;
92
  opacity: 0.25;
96
  -webkit-transition: opacity 0.5s ease-in-out;
97
  transition: opacity 0.5s ease-in-out;
98
  }
99
+
100
+ <?php echo esc_html($cssClass); ?>
101
+ .watermark:hover {
102
+ opacity: 1;
103
+ }
104
+ </style>
105
  <?php
106
  $style = ob_get_clean();
107
 
108
+ if ( ! class_exists( '\simple_html_dom' ) ) {
109
  include_once EMBEDPRESS_PATH_CORE . 'simple_html_dom.php';
110
  }
111
 
112
+ if ( ! empty( $settings["embedpress_pro_{$provider_name}_cta"] ) && ! empty( $settings["embedpress_pro_{$provider_name}_cta"]['url'] ) ) {
113
  $url = $settings["embedpress_pro_{$provider_name}_cta"]['url'];
114
  }
115
 
116
+ if ( $url ) {
117
+ $atts = self::get_link_attributes( $settings["embedpress_pro_{$provider_name}_cta"] );
118
  $attributes = '';
119
  foreach ( $atts as $att => $value ) {
120
+ $attributes .= $att . '="' . esc_attr( $value ) . '" ';
121
  }
122
+ $cta .= sprintf( '<a %s>', trim( $attributes ) );
123
  }
124
 
125
 
126
+ $imgDom = str_get_html( $img );
127
+ $imgDom = $imgDom->find( 'img', 0 );
128
+ $imgDom->setAttribute( 'class', 'watermark' );
129
+ $imgDom->removeAttribute( 'style' );
130
+ $imgDom->setAttribute( 'width', 'auto' );
131
+ $imgDom->setAttribute( 'height', 'auto' );
132
  ob_start();
133
+ echo $imgDom;
134
  $cta .= ob_get_clean();
135
  $imgDom->clear();
136
+ unset( $img, $imgDom );
137
 
138
+ if ( $url ) {
139
  $cta .= '</a>';
140
  }
141
+ $dom = str_get_html( $embed->embed );
142
+ $wrapDiv = $dom->find( "div.ose-{$provider_name}", 0 );
143
+ if ( ! empty( $wrapDiv ) && is_object( $wrapDiv ) ) {
144
+ $wrapDiv->innertext .= $cta;
145
  }
146
 
147
  ob_start();
148
  echo $wrapDiv;
149
  $markup = ob_get_clean();
150
  $dom->clear();
151
+ unset( $dom, $wrapDiv );
152
+
153
+ $embed->embed = $style . $markup;
154
 
 
155
  return $embed;
156
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
157
 
158
+ public static function get_link_attributes( $url_control ) {
159
+ $attributes = [];
160
 
161
+ if ( ! empty( $url_control['url'] ) ) {
162
+ $allowed_protocols = array_merge( wp_allowed_protocols(), [
163
+ 'skype',
164
+ 'viber',
165
+ ] );
 
 
 
 
166
 
167
+ $attributes['href'] = esc_url( $url_control['url'], $allowed_protocols );
168
+ }
169
 
170
+ if ( ! empty( $url_control['is_external'] ) ) {
171
+ $attributes['target'] = '_blank';
172
+ }
 
 
 
 
 
 
 
173
 
174
+ if ( ! empty( $url_control['nofollow'] ) ) {
175
+ $attributes['rel'] = 'nofollow';
176
  }
177
 
178
+ if ( ! empty( $url_control['custom_attributes'] ) ) {
179
+ // Custom URL attributes should come as a string of comma-delimited key|value pairs
180
+ $attributes = array_merge( $attributes, Utils::parse_custom_attributes( $url_control['custom_attributes'] ) );
181
+ }
182
 
183
+ return $attributes;
184
  }
 
 
185
 
186
+ public static function vimeo( $embed, $setting ) {
187
+
188
+ if ( ! isset( $embed->provider_name ) || strtoupper( $embed->provider_name ) !== 'VIMEO' || ! isset( $embed->embed ) || $setting['embedpress_pro_embeded_source'] !== 'vimeo' ) {
189
  return $embed;
190
  }
191
  preg_match( '/src=\"(.+?)\"/', $embed->embed, $match );
192
+ $url_full = $match[1];
193
+ $params = [
194
+ 'color' => str_replace( '#', '', $setting['embedpress_pro_vimeo_color'] ),
195
+ 'title' => $setting['embedpress_pro_vimeo_display_title'] === 'yes' ? 1 : 0,
196
+ 'byline' => $setting['embedpress_pro_vimeo_display_author'] === 'yes' ? 1 : 0,
197
+ 'portrait' => $setting['embedpress_pro_vimeo_avatar'] === 'yes' ? 1 : 0,
 
 
198
  ];
199
+ if ( $setting['embedpress_pro_vimeo_auto_play'] === 'yes' ) {
200
+ $params['autoplay'] = 1;
201
  }
202
 
203
  if ( is_embedpress_pro_active() ) {
204
+ if ( $setting['embedpress_pro_vimeo_loop'] === 'yes' ) {
205
+ $params['loop'] = 1;
206
  }
207
+ if ( $setting['embedpress_pro_vimeo_autopause'] === 'yes' ) {
208
+ $params['autopause'] = 1;
209
  }
 
 
 
 
 
 
 
 
210
 
211
+ $params ['dnt'] = $setting['embedpress_pro_vimeo_dnt'] === 'yes' ? 1 : 0;
212
+ }
213
 
214
 
215
  $url_modified = $url_full;
217
  $url_modified = add_query_arg( $param, $value, $url_modified );
218
  }
219
 
220
+
221
+ $url_modified .= '#t=' . $setting['embedpress_pro_video_start_time'];
 
222
  // Replaces the old url with the new one.
223
  $embed->embed = str_replace( $url_full, $url_modified, $embed->embed );
224
  if ( is_embedpress_pro_active() ) {
225
+ return self::apply_cta_markup( $embed, $setting, 'vimeo' );
226
  }
227
+
228
  return $embed;
229
  }
230
+
231
+ public static function wistia( $embed, $setting ) {
232
+ if ( ! isset( $embed->provider_name ) || strtoupper( $embed->provider_name ) !== 'WISTIA, INC.' || ! isset( $embed->embed ) || $setting['embedpress_pro_embeded_source'] !== 'wistia' ) {
233
  return $embed;
234
  }
235
  preg_match( '/src=\"(.+?)\"/', $embed->embed, $match );
236
 
237
+ $url_full = $match[1];
238
 
239
  // Parse the url to retrieve all its info like variables etc.
240
  $query = parse_url( $embed->url, PHP_URL_QUERY );
241
+ $url = str_replace( '?' . $query, '', $url_full );
242
 
243
  parse_str( $query, $params );
244
 
245
  // Set the class in the attributes
246
  $embed->attributes->class = str_replace( '{provider_alias}', 'wistia', $embed->attributes->class );
247
+ $embed->embed = str_replace( 'ose-wistia, inc.', 'ose-wistia', $embed->embed );
248
 
249
  // Embed Options
250
+ $embedOptions = new \stdClass;
251
+ $embedOptions->videoFoam = true;
252
+ $embedOptions->fullscreenButton = ( $setting['embedpress_pro_wistia_fullscreen_button'] === 'yes' );
253
+ $embedOptions->smallPlayButton = ( $setting['embedpress_pro_wistia_small_play_button'] === 'yes' );
254
+ $embedOptions->autoPlay = ( $setting['embedpress_pro_wistia_auto_play'] === 'yes' );
255
+ $embedOptions->playerColor = $setting['embedpress_pro_wistia_color'];
256
+ $embedOptions->playbar = ( $setting['embedpress_pro_wistia_playbar'] === 'yes' );
257
+ $embedOptions->time = $setting['embedpress_pro_video_start_time'];
258
  if ( is_embedpress_pro_active() ) {
259
+ $embedOptions->volumeControl = ( $setting['embedpress_pro_wistia_volume_control'] === 'yes' );
 
 
260
 
261
+ $volume = (float) $setting['embedpress_pro_wistia_volume'];
262
  if ( $volume > 1 ) {
263
  $volume = $volume / 100;
264
  }
265
  $embedOptions->volume = $volume;
266
+ }
267
 
268
 
269
  // Plugins
273
 
274
  // Resumable
275
 
276
+ if ( $setting['embedpress_pro_wistia_resumable'] === 'yes' ) {
277
  // Add the resumable plugin
278
+ $pluginList['resumable'] = [
279
  'src' => $pluginsBaseURL . '/resumable.min.js',
280
+ 'async' => false,
281
  ];
282
  }
283
 
284
 
285
  // Add a fix for the autoplay and resumable work better together
286
  if ( isset( $options->autoPlay ) ) {
287
+ if ( $setting['embedpress_pro_wistia_resumable'] === 'yes' ) {
288
+ $pluginList['fixautoplayresumable'] = [
289
+ 'src' => $pluginsBaseURL . '/fixautoplayresumable.min.js',
290
  ];
291
  }
292
  }
293
 
294
  // Closed Captions plugin
295
  if ( is_embedpress_pro_active() ) {
296
+ if ( $setting['embedpress_pro_wistia_captions'] === 'yes' ) {
297
+ $isCaptionsEnabled = ( $setting['embedpress_pro_wistia_captions'] === 'yes' );
298
+ $isCaptionsEnabledByDefault = ( $setting['embedpress_pro_wistia_captions_enabled_by_default'] === 'yes' );
299
  if ( $isCaptionsEnabled ) {
300
+ $pluginList['captions-v1'] = [
301
+ 'onByDefault' => $isCaptionsEnabledByDefault,
302
  ];
303
  }
304
+ $embedOptions->captions = $isCaptionsEnabled;
305
  $embedOptions->captionsDefault = $isCaptionsEnabledByDefault;
306
  }
307
 
 
 
308
 
309
+ }
 
 
 
310
 
311
+ // Rewind plugin
312
+ if ( $setting['embedpress_pro_wistia_rewind'] === 'yes' ) {
313
 
314
+ $embedOptions->rewindTime = (int) $setting['embedpress_pro_wistia_rewind_time'];
315
+ $pluginList['rewind'] = [
316
+ 'src' => $pluginsBaseURL . '/rewind.min.js',
317
+ ];
318
 
319
+ }
320
  // Focus plugin
321
+ if ( $setting['embedpress_pro_wistia_focus'] === 'yes' ) {
322
+ $isFocusEnabled = ( $setting['embedpress_pro_wistia_focus'] === 'yes' );
323
+ $pluginList['dimthelights'] = [
324
  'src' => $pluginsBaseURL . '/dimthelights.min.js',
325
+ 'autoDim' => $isFocusEnabled,
326
  ];
327
 
328
  $embedOptions->focus = $isFocusEnabled;
329
  }
330
 
331
 
 
332
  $embedOptions->plugin = $pluginList;
333
+ $embedOptions = json_encode( $embedOptions );
334
 
335
  // Get the video ID
336
+ $videoId = self::get_wistia_video_from_url( $embed->url );
337
  $shortVideoId = substr( $videoId, 0, 3 );
338
 
339
  // Responsive?
340
 
341
  $class = [
342
  'wistia_embed',
343
+ 'wistia_async_' . $videoId,
344
  ];
345
 
346
  $attribs = [
347
  sprintf( 'id="wistia_%s"', $videoId ),
348
  sprintf( 'class="%s"', join( ' ', $class ) ),
349
+ sprintf( 'style="width:%spx; height:%spx;"', $embed->width, $embed->height ),
350
  ];
351
 
352
  $labels = [
353
  'watch_from_beginning' => __( 'Watch from the beginning', 'embedpress-pro' ),
354
  'skip_to_where_you_left_off' => __( 'Skip to where you left off', 'embedpress-pro' ),
355
+ 'you_have_watched_it_before' => __( 'It looks like you\'ve watched<br />part of this video before!', 'embedpress-pro' ),
 
356
  ];
357
  $labels = json_encode( $labels );
358
 
359
  preg_match( '/ose-uid-([a-z0-9]*)/', $embed->embed, $matches );
360
+ $uid = $matches[1];
361
+
362
+ $html = "<div class=\"embedpress-wrapper ose-wistia ose-uid-{$uid} responsive\">";
363
+ $html .= '<script src="https://fast.wistia.com/assets/external/E-v1.js" async></script>';
364
+ $html .= "<script>window.pp_embed_wistia_labels = {$labels};</script>\n";
365
+ $html .= "<script>window._wq = window._wq || []; _wq.push({\"{$shortVideoId}\": {$embedOptions}});</script>\n";
366
+ $html .= '<div ' . join( ' ', $attribs ) . "></div>\n";
367
+ $html .= '</div>';
368
  $embed->embed = $html;
369
  if ( is_embedpress_pro_active() ) {
370
+ return self::apply_cta_markup( $embed, $setting, 'wistia' );
371
  }
372
+
373
  return $embed;
374
  }
 
 
375
 
376
+ /**
377
+ * Get the Video ID from the URL
378
+ *
379
+ * @param string $url
380
+ *
381
+ * @return string
382
+ */
383
+ public static function get_wistia_video_from_url( $url ) {
384
+ // https://fast.wistia.com/embed/medias/xf1edjzn92.jsonp
385
+ // https://ostraining-1.wistia.com/medias/xf1edjzn92
386
+ preg_match( '#\/medias\\\?\/([a-z0-9]+)\.?#i', $url, $matches );
387
+
388
+ $id = false;
389
+ if ( isset( $matches[1] ) ) {
390
+ $id = $matches[1];
391
+ }
392
+
393
+ return $id;
394
+ }
395
+
396
+ public static function soundcloud( $embed, $setting ) {
397
+
398
+ if ( ! isset( $embed->provider_name ) || strtoupper( $embed->provider_name ) !== 'SOUNDCLOUD' || ! isset( $embed->embed ) || $setting['embedpress_pro_embeded_source'] !== 'soundcloud' ) {
399
  return $embed;
400
  }
401
  preg_match( '/src=\"(.+?)\"/', $embed->embed, $match );
402
+ $url_full = $match[1];
403
+ $params = [
404
+ 'color' => str_replace( '#', '', $setting['embedpress_pro_soundcloud_color'] ),
405
+ 'visual' => $setting['embedpress_pro_soundcloud_visual'] === 'yes' ? 'true' : 'false',
406
+ 'auto_play' => $setting['embedpress_pro_soundcloud_autoplay'] === 'yes' ? 'true' : 'false',
407
+ 'sharing' => $setting['embedpress_pro_soundcloud_share_button'] === 'yes' ? 'true' : 'false',
408
+ 'show_comments' => $setting['embedpress_pro_soundcloud_comments'] === 'yes' ? 'true' : 'false',
409
+ 'show_artwork' => $setting['embedpress_pro_soundcloud_artwork'] === 'yes' ? 'true' : 'false',
410
+ 'show_playcount' => $setting['embedpress_pro_soundcloud_play_count'] === 'yes' ? 'true' : 'false',
411
+ 'show_user' => $setting['embedpress_pro_soundcloud_user_name'] === 'yes' ? 'true' : 'false',
412
+ 'buying' => 'false',
413
+ 'download' => 'false',
414
  ];
415
  if ( is_embedpress_pro_active() ) {
416
+ $params['buying'] = $setting['embedpress_pro_soundcloud_buy_button'] === 'yes' ? 'true' : 'false';
417
+ $params['download'] = $setting['embedpress_pro_soundcloud_download_button'] === 'yes' ? 'true' : 'false';
418
  }
419
 
420
  $url_modified = $url_full;
424
 
425
  // Replaces the old url with the new one.
426
  $embed->embed = str_replace( $url_full, $url_modified, $embed->embed );
427
+ if ( 'false' === $params['visual'] ) {
428
  $embed->embed = str_replace( 'height="400"', 'height="200 !important"', $embed->embed );
429
  }
430
+
431
  return $embed;
432
  }
433
+
434
+ public static function dailymotion( $embed, $setting ) {
435
+ if ( ! isset( $embed->provider_name ) || strtoupper( $embed->provider_name ) !== 'DAILYMOTION' || ! isset( $embed->embed ) || $setting['embedpress_pro_embeded_source'] !== 'dailymotion' ) {
436
  return $embed;
437
  }
438
  preg_match( '/src=\"(.+?)\"/', $embed->embed, $match );
439
+ $url_full = $match[1];
440
+ $params = [
441
+ 'ui-highlight' => str_replace( '#', '', $setting['embedpress_pro_dailymotion_control_color'] ),
442
+ 'start' => isset( $setting['embedpress_pro_video_start_time'] ) ? (int) $setting['embedpress_pro_video_start_time'] : 0,
443
+ 'mute' => $setting['embedpress_pro_dailymotion_mute'] === 'yes' ? 1 : 0,
444
+ 'autoplay' => $setting['embedpress_pro_dailymotion_autoplay'] === 'yes' ? 1 : 0,
445
+ 'controls' => $setting['embedpress_pro_dailymotion_player_control'] === 'yes' ? 1 : 0,
446
+ 'ui-start-screen-info' => $setting['embedpress_pro_dailymotion_video_info'] === 'yes' ? 1 : 0,
447
  'endscreen-enable' => 0,
448
  ];
449
 
450
+ if ( $setting['embedpress_pro_dailymotion_play_on_mobile'] === 'yes' ) {
451
+ $params['playsinline'] = 1;
452
  }
453
  if ( is_embedpress_pro_active() ) {
454
+ $params['ui-logo'] = $setting['embedpress_pro_dailymotion_logo'] === 'yes' ? 1 : 0;
455
+ }
 
 
456
  $url_modified = $url_full;
457
  foreach ( $params as $param => $value ) {
458
  $url_modified = add_query_arg( $param, $value, $url_modified );
459
  }
460
  $embed->embed = str_replace( $url_full, $url_modified, $embed->embed );
461
+
462
  return $embed;
463
  }
464
+
465
  public static function twitch( $embed_content, $settings ) {
466
+ if ( ! isset( $embed_content->embed ) || $settings['embedpress_pro_embeded_source'] !== 'twitch' ) {
467
  return $embed_content;
468
  }
469
+ $e = current( $embed_content );
470
+
471
+ if ( ! isset( $e['provider_name'] ) || strtoupper( $e['provider_name'] ) !== 'TWITCH' ) {
472
+ return $embed_content;
473
+ }
474
+ $time = '0h0m0s';
475
+ $type = isset( $e['type'] ) ? $e['type'] : '';
476
+ $content_id = isset( $e['content_id'] ) ? $e['content_id'] : '';
477
+ $channel = 'channel' === $type ? $content_id : '';
478
+ $video = 'video' === $type ? $content_id : '';
479
+ $full_screen = ( 'yes' === $settings['embedpress_pro_fs'] ) ? 'true' : 'false';
480
+ $autoplay = ( 'yes' === $settings['embedpress_pro_twitch_autoplay'] ) ? 'true' : 'false';
481
+ $layout = 'video';
482
+ $width = (int) $settings['width']['size'];
483
+ $height = (int) $settings['height']['size'];
484
+ if ( ! empty( $settings['embedpress_pro_video_start_time'] ) ) {
485
+ $ta = explode( ':', gmdate( "G:i:s", $settings['embedpress_pro_video_start_time'] ) );
486
+ $h = $ta[0] . 'h';
487
+ $m = ( $ta[1] * 1 ) . 'm';
488
+ $s = ( $ta[2] * 1 ) . 's';
489
+ $time = $h . $m . $s;
490
+ }
491
+ $muted = ( 'yes' === $settings['embedpress_pro_twitch_mute'] ) ? 'true' : 'false';
492
+ $theme = ! empty( $settings['embedpress_pro_twitch_theme'] ) ? $settings['embedpress_pro_twitch_theme'] : 'dark';
493
  if ( is_embedpress_pro_active() ) {
494
+
495
+ $layout = ( 'yes' === $settings['embedpress_pro_twitch_chat'] ) ? 'video-with-chat' : 'video';
496
+
 
 
 
 
 
 
 
497
  }
498
 
499
+ $url = "https://embed.twitch.tv?autoplay={$autoplay}&channel={$channel}&height={$height}&layout={$layout}&migration=true&muted={$muted}&theme={$theme}&time={$time}&video={$video}&width={$width}&allowfullscreen={$full_screen}";
500
 
501
+ $pars_url = wp_parse_url( get_site_url() );
502
+ $url = ! empty( $pars_url['host'] ) ? $url . '&parent=' . $pars_url['host'] : $url;
 
503
 
504
+ preg_match( '/src=\"(.+?)\"/', $embed_content->embed, $match );
505
+ $url_full = $match[1];
506
+ $embed_content->embed = str_replace( $url_full, $url, $embed_content->embed );
507
  if ( is_embedpress_pro_active() ) {
508
+ return self::apply_cta_markup( $embed_content, $settings, 'twitch' );
509
  }
510
 
511
  return $embed_content;
512
  }
513
+
514
  public static function spotify( $embed, $setting ) {
515
+ if ( ! isset( $embed->provider_name ) || strtolower( $embed->provider_name ) !== 'spotify' || ! isset( $embed->embed ) ) {
516
  return $embed;
517
  }
518
  preg_match( '/src=\"(.+?)\"/', $embed->embed, $match );
519
+ $url_full = $match[1];
520
+ $modified_url = str_replace( 'playlist-v2', 'playlist', $url_full );
521
+ if ( $setting['embedpress_pro_embeded_source'] == 'spotify' ) {
522
  // apply elementor related mod
523
+ if ( isset( $setting['spotify_theme'] ) ) {
524
+ if ( strpos( $modified_url, '?' ) !== false ) {
525
+ $modified_url .= '&theme=' . sanitize_text_field( $setting['spotify_theme'] );
526
+ } else {
527
+ $modified_url .= '?theme=' . sanitize_text_field( $setting['spotify_theme'] );
528
  }
529
  }
530
  }
531
 
532
  $embed->embed = str_replace( $url_full, $modified_url, $embed->embed );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
533
 
534
+ return $embed;
 
 
 
 
 
535
  }
536
  }
EmbedPress/Includes/Classes/Feature_Enhancer.php CHANGED
@@ -4,8 +4,6 @@ namespace EmbedPress\Includes\Classes;
4
  class Feature_Enhancer {
5
 
6
  public function __construct() {
7
-
8
- //if ( !is_embedpress_pro_active() ) {
9
  add_filter( 'embedpress:onAfterEmbed', [$this, 'enhance_youtube'], 90 );
10
  add_filter( 'embedpress:onAfterEmbed', [$this, 'enhance_vimeo'], 90 );
11
  add_filter( 'embedpress:onAfterEmbed', [$this, 'enhance_wistia'], 90 );
@@ -17,9 +15,6 @@ class Feature_Enhancer {
17
  add_action( 'init', array( $this, 'embedpress_gutenberg_register_block_vimeo' ) );
18
  add_action('embedpress_gutenberg_wistia_block_after_embed', array($this,'embedpress_wistia_block_after_embed'));
19
  add_action( 'elementor/widget/embedpres_elementor/skins_init', [ $this, 'elementor_setting_init' ] );
20
- //}
21
-
22
-
23
  }
24
 
25
  public function elementor_setting_init( ) {
@@ -32,7 +27,6 @@ class Feature_Enhancer {
32
  add_filter( 'embedpress_elementor_embed', [Elementor_Enhancer::class, 'spotify'], 10, 2 );
33
  add_filter( 'embedpress_elementor_embed', [Elementor_Enhancer::class, 'vimeo'], 10, 2 );
34
  }
35
-
36
  public function remove_classic_filters( ) {
37
  remove_filter( 'embedpress:onAfterEmbed', [$this, 'enhance_youtube'], 90 );
38
  remove_filter( 'embedpress:onAfterEmbed', [$this, 'enhance_vimeo'], 90 );
@@ -41,7 +35,6 @@ class Feature_Enhancer {
41
  remove_filter( 'embedpress:onAfterEmbed', [$this, 'enhance_dailymotion'], 90 );
42
  remove_filter( 'embedpress:onAfterEmbed', [$this, 'enhance_soundcloud'], 90 );
43
  }
44
-
45
  public function getOptions($provider='', $schema=[])
46
  {
47
  $options = (array)get_option(EMBEDPRESS_PLG_NAME . ':' . $provider, []);
@@ -145,6 +138,18 @@ class Feature_Enhancer {
145
  $url_full = $match[ 1 ];
146
  $query = parse_url( $url_full, PHP_URL_QUERY );
147
  parse_str( $query, $params );
 
 
 
 
 
 
 
 
 
 
 
 
148
 
149
  // Handle `autoplay` option.
150
  if ( isset( $options[ 'autoplay' ] ) && (bool)$options[ 'autoplay' ] === true ) {
@@ -159,6 +164,16 @@ class Feature_Enhancer {
159
  } else {
160
  unset( $params[ 'controls' ] );
161
  }
 
 
 
 
 
 
 
 
 
 
162
 
163
  // Handle `fs` option.
164
  if ( isset( $options[ 'fs' ] ) && in_array( (int)$options[ 'fs' ], [0, 1] ) ) {
@@ -176,7 +191,7 @@ class Feature_Enhancer {
176
 
177
 
178
  // pro controls will be handled by the pro so remove it from the free.
179
- $pro_controls = ['color', 'cc_load_policy', 'rel', 'modestbranding'];
180
  foreach ( $pro_controls as $pro_control ) {
181
  if ( isset( $params[ $pro_control ]) ) {
182
  unset( $params[ $pro_control ]);
@@ -231,9 +246,23 @@ class Feature_Enhancer {
231
  } else {
232
  unset( $params['color'] );
233
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
234
  // NOTE: 'vimeo_dnt' is actually only 'dnt' in the params, so unset 'dnt' only
235
  //@todo; maybe extract unsetting pro vars to a function later
236
- $pro_controls = ['loop', 'autopause', 'dnt', 'portrait', 'byline'];
237
  foreach ( $pro_controls as $pro_control ) {
238
  if ( isset( $params[ $pro_control ]) ) {
239
  unset( $params[ $pro_control ]);
@@ -244,6 +273,10 @@ class Feature_Enhancer {
244
  foreach ( $params as $param => $value ) {
245
  $url_modified = add_query_arg( $param, $value, $url_modified );
246
  }
 
 
 
 
247
  do_action( 'embedpress_after_modified_url', $url_modified, $url_full, $params);
248
  // Replaces the old url with the new one.
249
  $embed->embed = str_replace( $url_full, $url_modified, $embed->embed );
@@ -275,10 +308,13 @@ class Feature_Enhancer {
275
  $embedOptions = new \stdClass;
276
  $embedOptions->videoFoam = true;
277
  $embedOptions->fullscreenButton = (isset($options['display_fullscreen_button']) && (bool) $options['display_fullscreen_button'] === true);
 
 
278
  $embedOptions->smallPlayButton = (isset($options['small_play_button']) && (bool) $options['small_play_button'] === true);
279
 
280
  $embedOptions->autoPlay = (isset($options['autoplay']) && (bool) $options['autoplay'] === true);
281
 
 
282
 
283
  if (isset($options['player_color'])) {
284
  $color = $options['player_color'];
@@ -323,7 +359,16 @@ class Feature_Enhancer {
323
  $embedOptions->focus = $isFocusEnabled;
324
  }
325
 
 
 
 
 
326
 
 
 
 
 
 
327
  $embedOptions->plugin = $pluginList;
328
  $embedOptions = json_encode($embedOptions);
329
 
@@ -372,17 +417,27 @@ class Feature_Enhancer {
372
  $settings = $this->getOptions('twitch', $this->get_twitch_settings_schema());
373
 
374
  $atts = isset( $embed_content->attributes) ? $embed_content->attributes : [];
 
375
  $type = $e['type'];
376
  $content_id = $e['content_id'];
377
  $channel = 'channel' === $type ? $content_id : '';
378
  $video = 'video' === $type ? $content_id : '';
 
379
  $full_screen = ('yes' === $settings['embedpress_pro_fs']) ? 'true': 'false';
380
  $autoplay = ('yes' === $settings['embedpress_pro_twitch_autoplay']) ? 'true': 'false';
 
 
381
  $layout = 'video';
382
  $width = !empty( $atts->{'data-width'}) ? (int) $atts->{'data-width'} : 800;
383
  $height = !empty( $atts->{'data-height'}) ? (int) $atts->{'data-height'} : 450;
384
-
385
- $url = "https://embed.twitch.tv?autoplay={$autoplay}&channel={$channel}&height={$height}&layout={$layout}&migration=true&video={$video}&width={$width}&allowfullscreen={$full_screen}";
 
 
 
 
 
 
386
  $pars_url = wp_parse_url(get_site_url());
387
  $url = !empty($pars_url['host'])?$url.'&parent='.$pars_url['host']:$url;
388
  ob_start();
@@ -397,7 +452,6 @@ class Feature_Enhancer {
397
 
398
  return $embed_content;
399
  }
400
-
401
  public function enhance_dailymotion( $embed ) {
402
  $options = $this->getOptions('dailymotion', $this->get_dailymotion_settings_schema());
403
  $isDailymotion = ( isset($embed->provider_name) && strtoupper( $embed->provider_name ) === 'DAILYMOTION' ) || (isset( $embed->url) && isset( $embed->{$embed->url}) && isset( $embed->{$embed->url}['provider_name']) && strtoupper($embed->{$embed->url}['provider_name'] ) === 'DAILYMOTION');
@@ -418,8 +472,8 @@ class Feature_Enhancer {
418
  if ( $options[ 'play_on_mobile' ] == '1' ) {
419
  $params[ 'playsinline' ] = 1;
420
  }
 
421
  if ( is_embedpress_pro_active() ) {
422
- $params['start'] = (int) $options[ 'start_time' ];
423
  $params['ui-logo'] = (int) $options[ 'show_logo' ];
424
  }
425
 
@@ -433,7 +487,6 @@ class Feature_Enhancer {
433
 
434
  return $embed;
435
  }
436
-
437
  public function enhance_soundcloud( $embed ) {
438
 
439
  $isSoundcloud = ( isset($embed->provider_name) && strtoupper( $embed->provider_name ) === 'SOUNDCLOUD' ) || (isset( $embed->url) && isset( $embed->{$embed->url}) && isset( $embed->{$embed->url}['provider_name']) && strtoupper($embed->{$embed->url}['provider_name'] ) === 'SOUNDCLOUD');
@@ -476,7 +529,6 @@ class Feature_Enhancer {
476
 
477
  return $embed;
478
  }
479
-
480
  public function embedpress_gutenberg_register_block_youtube( $youtube_params ) {
481
  $youtube_options = $this->getOptions('youtube', $this->get_youtube_settings_schema());
482
  return $this->get_youtube_params( $youtube_options );
@@ -523,95 +575,66 @@ class Feature_Enhancer {
523
  return [
524
  'autoplay' => [
525
  'type' => 'bool',
526
- 'label' => 'Auto Play',
527
- 'description' => 'Automatically start to play the videos when the player loads.',
528
  'default' => false
529
  ],
530
  'color' => [
531
  'type' => 'string',
532
- 'label' => 'Progress bar color',
533
- 'description' => 'Specifies the color that will be used in the player\'s video progress bar to highlight the amount of the video that the viewer has already seen.<br/>Note: Setting the color to <strong>white</strong> will disable the <strong>Modest Branding</strong> option (causing a YouTube logo to be displayed in the control bar).',
534
- 'options' => [
535
- 'red' => 'Red',
536
- 'white' => 'White'
537
- ],
538
  'default' => 'red'
539
  ],
540
  'cc_load_policy' => [
541
  'type' => 'bool',
542
- 'label' => 'Force Closed Captions',
543
- 'description' => 'Setting this option to <strong>Yes</strong> causes closed captions to be shown by default, even if the user has turned captions off. This will be based on user preference otherwise.',
544
  'default' => false
545
  ],
546
  'controls' => [
547
  'type' => 'string',
548
- 'label' => 'Display Controls',
549
- 'description' => 'Indicates whether the video player controls are displayed.',
550
- 'options' => [
551
- '1' => 'Display immediately',
552
- '2' => 'Display after user initiation',
553
- '0' => 'Hide controls',
554
- ],
555
  'default' => '1'
556
  ],
557
  'fs' => [
558
  'type' => 'bool',
559
- 'label' => 'Enable Fullscreen button',
560
- 'description' => 'Indicates whether the fullscreen button is enabled.',
561
  'default' => true
562
  ],
563
  'iv_load_policy' => [
564
  'type' => 'radio',
565
- 'label' => 'Display video annotations',
566
- 'description' => 'Indicates whether video annotations are displayed.',
567
- 'options' => [
568
- '1' => 'Display',
569
- '3' => 'Do not display'
570
- ],
571
  'default' => '1'
572
  ],
573
  'rel' => [
574
  'type' => 'bool',
575
- 'label' => 'Display related videos',
576
- 'description' => 'Indicates whether the player should show related videos when playback of the initial video ends.',
577
  'default' => true
578
  ],
579
  'modestbranding' => [
580
  'type' => 'string',
581
- 'label' => 'Modest Branding',
582
- 'description' => 'Indicates whether the player should display a YouTube logo in the control bar.',
583
- 'options' => [
584
- '0' => 'Display',
585
- '1' => 'Do not display'
586
- ],
587
  'default' => '0'
588
  ],
589
  'logo_url' => [
590
  'type' => 'url',
591
- 'label' => __('Custom Logo URL', 'embedpress-pro'),
592
- 'description' => __('You can show custom logo watermark on your video', 'embedpress-pro'),
593
  ],
594
  'logo_xpos' => [
595
  'type' => 'number',
596
- 'label' => __( 'Logo X Position (%)', 'embedpress-pro' ),
597
- 'description' => __( 'Change this number to move your logo in horizontal direction.', 'embedpress-pro' ),
598
  'default' => 10
599
  ],
600
  'logo_ypos' => [
601
  'type' => 'number',
602
- 'label' => __( 'Logo Y Position (%)', 'embedpress-pro' ),
603
- 'description' => __( 'Change this number to move your logo in vertical direction.', 'embedpress-pro' ),
604
  'default' => 10
605
  ],
606
  'cta_url' => [
607
  'type' => 'url',
608
- 'label' => __( 'CTA link for Logo', 'embedpress-pro' ),
609
- 'description' => __( 'You can show the logo inside a link. Leave it empty to hide it', 'embedpress-pro' ),
 
 
 
 
 
 
610
  ],
611
  ];
612
  }
613
  public function get_vimeo_settings_schema() {
614
  return array(
 
 
 
 
615
  'autoplay' => array(
616
  'type' => 'bool',
617
  'default' => false
@@ -648,93 +671,64 @@ class Feature_Enhancer {
648
  );
649
  }
650
  public function get_wistia_settings_schema() {
651
- $schema = array(
 
 
 
 
652
  'display_fullscreen_button' => array(
653
  'type' => 'bool',
654
- 'label' => __('Fullscreen Button', 'embedpress'),
655
- 'description' => __('Indicates whether the fullscreen button is visible.', 'embedpress'),
656
  'default' => true
657
  ),
658
  'display_playbar' => array(
659
  'type' => 'bool',
660
- 'label' => __('Playbar', 'embedpress'),
661
- 'description' => __('Indicates whether the playbar is visible.', 'embedpress'),
662
  'default' => true
663
  ),
664
  'small_play_button' => array(
665
  'type' => 'bool',
666
- 'label' => __('Small Play Button', 'embedpress'),
667
- 'description' => __('Indicates whether the small play button is visible on the bottom left.',
668
- 'embedpress'),
669
  'default' => true
670
  ),
671
  'display_volume_control' => array(
672
  'type' => 'bool',
673
- 'label' => __('Volume Control', 'embedpress'),
674
- 'description' => __('Indicates whether the volume control is visible.', 'embedpress'),
675
  'default' => true
676
  ),
677
  'autoplay' => array(
678
  'type' => 'bool',
679
- 'label' => __('Auto Play', 'embedpress'),
680
- 'description' => __('Automatically start to play the videos when the player loads.',
681
- 'embedpress'),
682
  'default' => false
683
  ),
684
  'volume' => array(
685
  'type' => 'text',
686
- 'label' => __('Volume', 'embedpress'),
687
- 'description' => __('Start the video with a custom volume level. Set values between 0 and 100.',
688
- 'embedpress'),
689
  'default' => '100'
690
  ),
691
  'player_color' => array(
692
  'type' => 'text',
693
- 'label' => __('Color', 'embedpress'),
694
- 'description' => __('Specify the color of the video controls.', 'embedpress'),
695
  'default' => '#00adef',
696
- 'classes' => 'color-field'
697
  ),
698
  'plugin_resumable' => array(
699
  'type' => 'bool',
700
- 'label' => __('Plugin: Resumable', 'embedpress'),
701
- 'description' => __('Indicates whether the Resumable plugin is active. Allow to resume the video or start from the begining.',
702
- 'embedpress'),
703
  'default' => false
704
  ),
705
  'plugin_captions' => array(
706
  'type' => 'bool',
707
- 'label' => __('Plugin: Captions', 'embedpress'),
708
- 'description' => __('Indicates whether the Captions plugin is active.', 'embedpress'),
709
  'default' => false
710
  ),
711
  'plugin_captions_default' => array(
712
  'type' => 'bool',
713
- 'label' => __('Captions Enabled By Default', 'embedpress'),
714
- 'description' => __('Indicates whether the Captions are enabled by default.', 'embedpress'),
715
  'default' => false
716
  ),
717
  'plugin_focus' => array(
718
  'type' => 'bool',
719
- 'label' => __('Plugin: Focus', 'embedpress'),
720
- 'description' => __('Indicates whether the Focus plugin is active.', 'embedpress'),
721
  'default' => false
722
  ),
723
  'plugin_rewind' => array(
724
  'type' => 'bool',
725
- 'label' => __('Plugin: Rewind', 'embedpress'),
726
- 'description' => __('Indicates whether the Rewind plugin is active.', 'embedpress'),
727
  'default' => false
728
  ),
729
  'plugin_rewind_time' => array(
730
  'type' => 'text',
731
- 'label' => __('Rewind time (seconds)', 'embedpress'),
732
- 'description' => __('The amount of time to rewind, in seconds.', 'embedpress'),
733
  'default' => '10'
734
  ),
735
  );
736
-
737
- return $schema;
738
  }
739
  public function getVideoIDFromURL ($url) {
740
  // https://fast.wistia.com/embed/medias/xf1edjzn92.jsonp
@@ -748,7 +742,6 @@ class Feature_Enhancer {
748
 
749
  return $id;
750
  }
751
-
752
  public function embedpress_wistia_block_after_embed( $attributes ){
753
  $embedOptions= $this->embedpress_wistia_pro_get_options();
754
  // Get the video ID
@@ -826,10 +819,9 @@ class Feature_Enhancer {
826
  $embedOptions = json_encode($embedOptions);
827
  return apply_filters( 'embedpress_wistia_params_after_encode', $embedOptions);
828
  }
829
-
830
  public function get_twitch_settings_schema() {
831
  return [
832
- 'embedpress_pro_video_start_time' => [
833
  'type' => 'number',
834
  'default' => 0,
835
  ],
@@ -857,7 +849,6 @@ class Feature_Enhancer {
857
 
858
  ];
859
  }
860
-
861
  public function get_dailymotion_settings_schema() {
862
  return [
863
  'autoplay' => [
@@ -894,7 +885,6 @@ class Feature_Enhancer {
894
  ],
895
  ];
896
  }
897
-
898
  public function get_soundcloud_settings_schema() {
899
  return [
900
  'visual' => [
4
  class Feature_Enhancer {
5
 
6
  public function __construct() {
 
 
7
  add_filter( 'embedpress:onAfterEmbed', [$this, 'enhance_youtube'], 90 );
8
  add_filter( 'embedpress:onAfterEmbed', [$this, 'enhance_vimeo'], 90 );
9
  add_filter( 'embedpress:onAfterEmbed', [$this, 'enhance_wistia'], 90 );
15
  add_action( 'init', array( $this, 'embedpress_gutenberg_register_block_vimeo' ) );
16
  add_action('embedpress_gutenberg_wistia_block_after_embed', array($this,'embedpress_wistia_block_after_embed'));
17
  add_action( 'elementor/widget/embedpres_elementor/skins_init', [ $this, 'elementor_setting_init' ] );
 
 
 
18
  }
19
 
20
  public function elementor_setting_init( ) {
27
  add_filter( 'embedpress_elementor_embed', [Elementor_Enhancer::class, 'spotify'], 10, 2 );
28
  add_filter( 'embedpress_elementor_embed', [Elementor_Enhancer::class, 'vimeo'], 10, 2 );
29
  }
 
30
  public function remove_classic_filters( ) {
31
  remove_filter( 'embedpress:onAfterEmbed', [$this, 'enhance_youtube'], 90 );
32
  remove_filter( 'embedpress:onAfterEmbed', [$this, 'enhance_vimeo'], 90 );
35
  remove_filter( 'embedpress:onAfterEmbed', [$this, 'enhance_dailymotion'], 90 );
36
  remove_filter( 'embedpress:onAfterEmbed', [$this, 'enhance_soundcloud'], 90 );
37
  }
 
38
  public function getOptions($provider='', $schema=[])
39
  {
40
  $options = (array)get_option(EMBEDPRESS_PLG_NAME . ':' . $provider, []);
138
  $url_full = $match[ 1 ];
139
  $query = parse_url( $url_full, PHP_URL_QUERY );
140
  parse_str( $query, $params );
141
+ // Handle `color` option.
142
+ if ( !empty( $options[ 'color' ] ) ) {
143
+ $params[ 'color' ] = $options[ 'color' ];
144
+ } else {
145
+ unset( $params[ 'color' ] );
146
+ }
147
+ // Handle `rel` option.
148
+ if ( isset( $options[ 'rel' ] ) && in_array( (int)$options[ 'rel' ], [0, 1] ) ) {
149
+ $params[ 'rel' ] = (int)$options[ 'rel' ];
150
+ } else {
151
+ unset( $params[ 'rel' ] );
152
+ }
153
 
154
  // Handle `autoplay` option.
155
  if ( isset( $options[ 'autoplay' ] ) && (bool)$options[ 'autoplay' ] === true ) {
164
  } else {
165
  unset( $params[ 'controls' ] );
166
  }
167
+ if ( isset($options[ 'start_time' ]) ) {
168
+ $params[ 'start' ] = $options[ 'start_time' ];
169
+ }else {
170
+ unset($params[ 'start' ]);
171
+ }
172
+ if ( isset($options[ 'end_time' ]) ) {
173
+ $params[ 'end' ] = $options[ 'end_time' ];
174
+ }else {
175
+ unset($params[ 'end' ]);
176
+ }
177
 
178
  // Handle `fs` option.
179
  if ( isset( $options[ 'fs' ] ) && in_array( (int)$options[ 'fs' ], [0, 1] ) ) {
191
 
192
 
193
  // pro controls will be handled by the pro so remove it from the free.
194
+ $pro_controls = [ 'cc_load_policy', 'modestbranding'];
195
  foreach ( $pro_controls as $pro_control ) {
196
  if ( isset( $params[ $pro_control ]) ) {
197
  unset( $params[ $pro_control ]);
246
  } else {
247
  unset( $params['color'] );
248
  }
249
+ // Handle `display_author` option.
250
+ if ( isset( $options['display_author'] ) && (bool)$options['display_author'] === true ) {
251
+ $params['byline'] = 1;
252
+ } else {
253
+ $params['byline'] = 0;
254
+ }
255
+
256
+ // Handle `display_avatar` option.
257
+ if ( isset( $options['display_avatar'] ) && (bool)$options['display_avatar'] === true ) {
258
+ $params['portrait'] = 1;
259
+ } else {
260
+ $params['portrait'] = 0;
261
+ }
262
+
263
  // NOTE: 'vimeo_dnt' is actually only 'dnt' in the params, so unset 'dnt' only
264
  //@todo; maybe extract unsetting pro vars to a function later
265
+ $pro_controls = ['loop', 'autopause', 'dnt',];
266
  foreach ( $pro_controls as $pro_control ) {
267
  if ( isset( $params[ $pro_control ]) ) {
268
  unset( $params[ $pro_control ]);
273
  foreach ( $params as $param => $value ) {
274
  $url_modified = add_query_arg( $param, $value, $url_modified );
275
  }
276
+ if ( isset( $options[ 'start_time' ]) ) {
277
+ $url_modified .= '#t=' . $options[ 'start_time' ];
278
+ }
279
+
280
  do_action( 'embedpress_after_modified_url', $url_modified, $url_full, $params);
281
  // Replaces the old url with the new one.
282
  $embed->embed = str_replace( $url_full, $url_modified, $embed->embed );
308
  $embedOptions = new \stdClass;
309
  $embedOptions->videoFoam = true;
310
  $embedOptions->fullscreenButton = (isset($options['display_fullscreen_button']) && (bool) $options['display_fullscreen_button'] === true);
311
+ $embedOptions->playbar = (isset($options['display_playbar']) && (bool) $options['display_playbar'] === true);
312
+
313
  $embedOptions->smallPlayButton = (isset($options['small_play_button']) && (bool) $options['small_play_button'] === true);
314
 
315
  $embedOptions->autoPlay = (isset($options['autoplay']) && (bool) $options['autoplay'] === true);
316
 
317
+ $embedOptions->time = isset( $options[ 'start_time' ]) ? $options[ 'start_time' ] : 0;
318
 
319
  if (isset($options['player_color'])) {
320
  $color = $options['player_color'];
359
  $embedOptions->focus = $isFocusEnabled;
360
  }
361
 
362
+ // Rewind plugin
363
+ if (isset($options['plugin_rewind'])) {
364
+ if ($options['plugin_rewind']) {
365
+ $embedOptions->rewindTime = isset($options['plugin_rewind_time']) ? (int) $options['plugin_rewind_time'] : 10;
366
 
367
+ $pluginList['rewind'] = array(
368
+ 'src' => $pluginsBaseURL.'/rewind.min.js'
369
+ );
370
+ }
371
+ }
372
  $embedOptions->plugin = $pluginList;
373
  $embedOptions = json_encode($embedOptions);
374
 
417
  $settings = $this->getOptions('twitch', $this->get_twitch_settings_schema());
418
 
419
  $atts = isset( $embed_content->attributes) ? $embed_content->attributes : [];
420
+ $time = '0h0m0s';
421
  $type = $e['type'];
422
  $content_id = $e['content_id'];
423
  $channel = 'channel' === $type ? $content_id : '';
424
  $video = 'video' === $type ? $content_id : '';
425
+ $muted = ('yes' === $settings['embedpress_pro_twitch_mute']) ? 'true': 'false';
426
  $full_screen = ('yes' === $settings['embedpress_pro_fs']) ? 'true': 'false';
427
  $autoplay = ('yes' === $settings['embedpress_pro_twitch_autoplay']) ? 'true': 'false';
428
+ $theme = ! empty( $settings['embedpress_pro_twitch_theme'] ) ? $settings['embedpress_pro_twitch_theme'] : 'dark';
429
+
430
  $layout = 'video';
431
  $width = !empty( $atts->{'data-width'}) ? (int) $atts->{'data-width'} : 800;
432
  $height = !empty( $atts->{'data-height'}) ? (int) $atts->{'data-height'} : 450;
433
+ if ( ! empty( $settings['start_time'] ) ) {
434
+ $ta = explode( ':', gmdate( "G:i:s", $settings['start_time'] ) );
435
+ $h = $ta[0] . 'h';
436
+ $m = ( $ta[1] * 1 ) . 'm';
437
+ $s = ( $ta[2] * 1 ) . 's';
438
+ $time = $h . $m . $s;
439
+ }
440
+ $url = "https://embed.twitch.tv?autoplay={$autoplay}&channel={$channel}&height={$height}&layout={$layout}&migration=true&muted={$muted}&theme={$theme}&time={$time}&video={$video}&width={$width}&allowfullscreen={$full_screen}";
441
  $pars_url = wp_parse_url(get_site_url());
442
  $url = !empty($pars_url['host'])?$url.'&parent='.$pars_url['host']:$url;
443
  ob_start();
452
 
453
  return $embed_content;
454
  }
 
455
  public function enhance_dailymotion( $embed ) {
456
  $options = $this->getOptions('dailymotion', $this->get_dailymotion_settings_schema());
457
  $isDailymotion = ( isset($embed->provider_name) && strtoupper( $embed->provider_name ) === 'DAILYMOTION' ) || (isset( $embed->url) && isset( $embed->{$embed->url}) && isset( $embed->{$embed->url}['provider_name']) && strtoupper($embed->{$embed->url}['provider_name'] ) === 'DAILYMOTION');
472
  if ( $options[ 'play_on_mobile' ] == '1' ) {
473
  $params[ 'playsinline' ] = 1;
474
  }
475
+ $params['start'] = (int) $options[ 'start_time' ];
476
  if ( is_embedpress_pro_active() ) {
 
477
  $params['ui-logo'] = (int) $options[ 'show_logo' ];
478
  }
479
 
487
 
488
  return $embed;
489
  }
 
490
  public function enhance_soundcloud( $embed ) {
491
 
492
  $isSoundcloud = ( isset($embed->provider_name) && strtoupper( $embed->provider_name ) === 'SOUNDCLOUD' ) || (isset( $embed->url) && isset( $embed->{$embed->url}) && isset( $embed->{$embed->url}['provider_name']) && strtoupper($embed->{$embed->url}['provider_name'] ) === 'SOUNDCLOUD');
529
 
530
  return $embed;
531
  }
 
532
  public function embedpress_gutenberg_register_block_youtube( $youtube_params ) {
533
  $youtube_options = $this->getOptions('youtube', $this->get_youtube_settings_schema());
534
  return $this->get_youtube_params( $youtube_options );
575
  return [
576
  'autoplay' => [
577
  'type' => 'bool',
 
 
578
  'default' => false
579
  ],
580
  'color' => [
581
  'type' => 'string',
 
 
 
 
 
 
582
  'default' => 'red'
583
  ],
584
  'cc_load_policy' => [
585
  'type' => 'bool',
 
 
586
  'default' => false
587
  ],
588
  'controls' => [
589
  'type' => 'string',
 
 
 
 
 
 
 
590
  'default' => '1'
591
  ],
592
  'fs' => [
593
  'type' => 'bool',
 
 
594
  'default' => true
595
  ],
596
  'iv_load_policy' => [
597
  'type' => 'radio',
 
 
 
 
 
 
598
  'default' => '1'
599
  ],
600
  'rel' => [
601
  'type' => 'bool',
 
 
602
  'default' => true
603
  ],
604
  'modestbranding' => [
605
  'type' => 'string',
 
 
 
 
 
 
606
  'default' => '0'
607
  ],
608
  'logo_url' => [
609
  'type' => 'url',
 
 
610
  ],
611
  'logo_xpos' => [
612
  'type' => 'number',
 
 
613
  'default' => 10
614
  ],
615
  'logo_ypos' => [
616
  'type' => 'number',
 
 
617
  'default' => 10
618
  ],
619
  'cta_url' => [
620
  'type' => 'url',
621
+ ],
622
+ 'start_time' => [
623
+ 'type' => 'number',
624
+ 'default' => 10
625
+ ],
626
+ 'end_time' => [
627
+ 'type' => 'number',
628
+ 'default' => 10
629
  ],
630
  ];
631
  }
632
  public function get_vimeo_settings_schema() {
633
  return array(
634
+ 'start_time' => [
635
+ 'type' => 'number',
636
+ 'default' => 10
637
+ ],
638
  'autoplay' => array(
639
  'type' => 'bool',
640
  'default' => false
671
  );
672
  }
673
  public function get_wistia_settings_schema() {
674
+ return array(
675
+ 'start_time' => [
676
+ 'type' => 'number',
677
+ 'default' => 0
678
+ ],
679
  'display_fullscreen_button' => array(
680
  'type' => 'bool',
 
 
681
  'default' => true
682
  ),
683
  'display_playbar' => array(
684
  'type' => 'bool',
 
 
685
  'default' => true
686
  ),
687
  'small_play_button' => array(
688
  'type' => 'bool',
 
 
 
689
  'default' => true
690
  ),
691
  'display_volume_control' => array(
692
  'type' => 'bool',
 
 
693
  'default' => true
694
  ),
695
  'autoplay' => array(
696
  'type' => 'bool',
 
 
 
697
  'default' => false
698
  ),
699
  'volume' => array(
700
  'type' => 'text',
 
 
 
701
  'default' => '100'
702
  ),
703
  'player_color' => array(
704
  'type' => 'text',
 
 
705
  'default' => '#00adef',
 
706
  ),
707
  'plugin_resumable' => array(
708
  'type' => 'bool',
 
 
 
709
  'default' => false
710
  ),
711
  'plugin_captions' => array(
712
  'type' => 'bool',
 
 
713
  'default' => false
714
  ),
715
  'plugin_captions_default' => array(
716
  'type' => 'bool',
 
 
717
  'default' => false
718
  ),
719
  'plugin_focus' => array(
720
  'type' => 'bool',
 
 
721
  'default' => false
722
  ),
723
  'plugin_rewind' => array(
724
  'type' => 'bool',
 
 
725
  'default' => false
726
  ),
727
  'plugin_rewind_time' => array(
728
  'type' => 'text',
 
 
729
  'default' => '10'
730
  ),
731
  );
 
 
732
  }
733
  public function getVideoIDFromURL ($url) {
734
  // https://fast.wistia.com/embed/medias/xf1edjzn92.jsonp
742
 
743
  return $id;
744
  }
 
745
  public function embedpress_wistia_block_after_embed( $attributes ){
746
  $embedOptions= $this->embedpress_wistia_pro_get_options();
747
  // Get the video ID
819
  $embedOptions = json_encode($embedOptions);
820
  return apply_filters( 'embedpress_wistia_params_after_encode', $embedOptions);
821
  }
 
822
  public function get_twitch_settings_schema() {
823
  return [
824
+ 'start_time' => [
825
  'type' => 'number',
826
  'default' => 0,
827
  ],
849
 
850
  ];
851
  }
 
852
  public function get_dailymotion_settings_schema() {
853
  return [
854
  'autoplay' => [
885
  ],
886
  ];
887
  }
 
888
  public function get_soundcloud_settings_schema() {
889
  return [
890
  'visual' => [
EmbedPress/Includes/Traits/Branding.php ADDED
@@ -0,0 +1,191 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ namespace EmbedPress\Includes\Traits;
3
+ if ( !defined( 'ABSPATH' ) ) {
4
+ exit;
5
+ } // Exit if accessed directly
6
+ use Elementor\Controls_Manager as Controls_Manager;
7
+ use Elementor\Group_Control_Image_Size;
8
+
9
+ Trait Branding {
10
+ /**
11
+ * @param string $provider_name
12
+ */
13
+ public function init_branding_controls( $provider_name='' ) {
14
+ if ( !isset( $this->pro_class) ) {
15
+ $this->pro_class = '';
16
+ }
17
+ if ( !isset( $this->pro_text) ) {
18
+ $this->pro_text = '';
19
+ }
20
+ $logo_condition = [
21
+ "embedpress_pro_{$provider_name}_logo[url]!" =>''
22
+ ];
23
+ $this->add_control(
24
+ "{$provider_name}_custom_logo_cta_heading",
25
+ [
26
+ 'label' => __( 'Custom Logo & CTA', 'embedpress' ),
27
+ 'type' => Controls_Manager::HEADING,
28
+ 'separator' => 'before',
29
+ ]
30
+ );
31
+ $this->add_control(
32
+ "embedpress_pro_{$provider_name}_logo",
33
+ [
34
+ 'label' => sprintf(__( 'Custom Logo %s', 'embedpress' ), $this->pro_text ),
35
+ 'description' => __( 'Leave it empty to hide it', 'embedpress' ),
36
+ 'type' => Controls_Manager::MEDIA,
37
+ 'dynamic' => [
38
+ 'active' => true,
39
+ ],
40
+ 'classes' => $this->pro_class,
41
+ ]
42
+ );
43
+ $this->add_group_control(
44
+ Group_Control_Image_Size::get_type(),
45
+ [
46
+ 'name' => "embedpress_pro_{$provider_name}_logo",
47
+ 'default' => 'full',
48
+ 'condition' => $logo_condition,
49
+ 'classes' => $this->pro_class,
50
+ ]
51
+ );
52
+ $this->add_responsive_control(
53
+ "embedpress_pro_{$provider_name}_logo_xpos",
54
+ [
55
+ 'label' => sprintf( __( 'Logo X Position %s', 'embedpress' ), $this->pro_text),
56
+ 'description' => __( 'Change this number to move your logo in horizontal direction.', 'embedpress' ),
57
+ 'type' => Controls_Manager::SLIDER,
58
+ 'size_units' => [ 'px', '%' ],
59
+ 'range' => [
60
+ 'px' => [
61
+ 'min' => 0,
62
+ 'max' => 1000,
63
+ 'step' => 5,
64
+ ],
65
+ '%' => [
66
+ 'min' => 0,
67
+ 'max' => 100,
68
+ ],
69
+ ],
70
+ 'default' => [
71
+ 'unit' => '%',
72
+ 'size' => 10,
73
+ ],
74
+ 'selectors' => [
75
+ "{{WRAPPER}} .ose-{$provider_name} .watermark" => 'right: {{SIZE}}{{UNIT}};',
76
+ ],
77
+ 'condition' => $logo_condition,
78
+ 'classes' => $this->pro_class,
79
+ ]
80
+ );
81
+ $this->add_responsive_control(
82
+ "embedpress_pro_{$provider_name}_logo_ypos",
83
+ [
84
+ 'label' => sprintf( __( 'Logo Y Position %s', 'embedpress' ), $this->pro_text),
85
+ 'description' => __( 'Change this number to move your logo in vertical direction.', 'embedpress' ),
86
+ 'type' => Controls_Manager::SLIDER,
87
+ 'size_units' => [ 'px', '%' ],
88
+ 'range' => [
89
+ 'px' => [
90
+ 'min' => 0,
91
+ 'max' => 1000,
92
+ 'step' => 5,
93
+ ],
94
+ '%' => [
95
+ 'min' => 0,
96
+ 'max' => 100,
97
+ ],
98
+ ],
99
+ 'default' => [
100
+ 'unit' => '%',
101
+ 'size' => 10,
102
+ ],
103
+ 'selectors' => [
104
+ "{{WRAPPER}} .ose-{$provider_name} .watermark" => 'bottom: {{SIZE}}{{UNIT}};',
105
+ ],
106
+ 'condition' => $logo_condition,
107
+ 'classes' => $this->pro_class,
108
+
109
+ ]
110
+ );
111
+ $this->start_controls_tabs(
112
+ "ep_{$provider_name}_cta_style_tabs",
113
+ [
114
+ 'condition' => $logo_condition,
115
+ ]
116
+ );
117
+ $this->start_controls_tab( "ep_{$provider_name}_cta_normal_tab",
118
+ [
119
+ 'label' => __( 'Normal', 'embedpress' ),
120
+ ]
121
+ );
122
+ $this->add_control(
123
+ "embedpress_pro_{$provider_name}_logo_opacity",
124
+ [
125
+ 'label' => sprintf( __( 'Logo Opacity %s', 'embedpress' ), $this->pro_text),
126
+ 'type' => Controls_Manager::SLIDER,
127
+ 'default' => [
128
+ 'size' => .5,
129
+ ],
130
+ 'range' => [
131
+ 'px' => [
132
+ 'max' => 1,
133
+ 'step' => 0.01,
134
+ ],
135
+ ],
136
+ 'selectors' => [
137
+ "{{WRAPPER}} .ose-{$provider_name} .watermark" => 'opacity: {{SIZE}};',
138
+ ],
139
+ 'condition' => $logo_condition,
140
+ 'classes' => $this->pro_class,
141
+
142
+ ]
143
+ );
144
+ $this->end_controls_tab();
145
+ $this->start_controls_tab( "ep_{$provider_name}_cta_hover__tab",
146
+ [
147
+ 'label' => __( 'Hover', 'embedpress' ),
148
+ ]
149
+ );
150
+ $this->add_control(
151
+ "embedpress_pro_{$provider_name}_logo_opacity_hover",
152
+ [
153
+ 'label' => sprintf( __( 'Logo Opacity %s', 'embedpress' ), $this->pro_text),
154
+ 'type' => Controls_Manager::SLIDER,
155
+ 'size_units' => [ '%'],
156
+ 'default' => [
157
+ 'size' => 1,
158
+ ],
159
+ 'range' => [
160
+ 'px' => [
161
+ 'max' => 1,
162
+ 'step' => 0.01,
163
+ ],
164
+ ],
165
+ 'selectors' => [
166
+ "{{WRAPPER}} .ose-{$provider_name} .watermark:hover" => 'opacity: {{SIZE}};',
167
+ ],
168
+ 'condition' => $logo_condition,
169
+ 'classes' => $this->pro_class,
170
+
171
+ ]
172
+ );
173
+ $this->end_controls_tab();
174
+ $this->end_controls_tabs();
175
+ $this->add_control(
176
+ "embedpress_pro_{$provider_name}_cta",
177
+ [
178
+ 'label' => sprintf( __( 'CTA link for Logo %s', 'embedpress' ), $this->pro_text),
179
+ 'description' => __( 'You can show the logo inside a link. Leave it empty to hide it', 'embedpress' ),
180
+ 'type' => Controls_Manager::URL,
181
+ 'dynamic' => [
182
+ 'active' => true,
183
+ ],
184
+ 'placeholder' => __( 'https://your-link.com', 'embedpress' ),
185
+ 'condition' => $logo_condition,
186
+ 'classes' => $this->pro_class,
187
+ 'separator' => 'before',
188
+ ]
189
+ );
190
+ }
191
+ }
EmbedPress/Plugins/Plugin.php CHANGED
@@ -155,7 +155,7 @@ abstract class Plugin
155
  */
156
  public static function handleActionLinks($links, $file)
157
  {
158
- $settingsLink = '<a href="' . admin_url('admin.php?page=' . EMBEDPRESS_PLG_NAME . '&tab=' . static::SLUG) . '" aria-label="' . __('Open settings page',
159
  'embedpress') . '">' . __('Settings', 'embedpress') . '</a>';
160
 
161
  array_unshift($links, $settingsLink);
155
  */
156
  public static function handleActionLinks($links, $file)
157
  {
158
+ $settingsLink = '<a href="' . admin_url('admin.php?page=' . EMBEDPRESS_PLG_NAME . '&page_type=' . static::SLUG) . '" aria-label="' . __('Open settings page',
159
  'embedpress') . '">' . __('Settings', 'embedpress') . '</a>';
160
 
161
  array_unshift($links, $settingsLink);
EmbedPress/Shortcode.php CHANGED
@@ -166,10 +166,12 @@ class Shortcode {
166
  self::check_for_google_url($url);
167
  $provider_name = self::get_provider_name($urlData, $url);
168
  $embedTemplate = '<div ' . implode( ' ', $attributesHtml ) . '>{html}</div>';
169
- $parsedContent = self::get_content_from_template($url, $embedTemplate);
 
170
  // Replace all single quotes to double quotes. I.e: foo='joe' -> foo="joe"
171
  $parsedContent = str_replace( "'", '"', $parsedContent );
172
  $parsedContent = str_replace( "{provider_alias}", $provider_name , $parsedContent );
 
173
  self::purify_html_content( $parsedContent);
174
  self::modify_content_for_fb_and_canada( $provider_name, $parsedContent);
175
  unset( $embedTemplate, $serviceProvider );
@@ -617,10 +619,11 @@ KAMAL;
617
  $html = '';
618
  }else{
619
  $html = self::get_oembed()->get_html( $url, self::get_oembed_attributes() );
 
620
  }
621
 
622
  if ( !$html ) {
623
- $html = str_replace( '{html}', self::get_embera_instance()->autoEmbed($url), $template );
624
  }
625
  return str_replace( '{html}', $html, $template );
626
  }
@@ -677,8 +680,12 @@ KAMAL;
677
  $provider_name = '';
678
  if (isset( $urlData->provider_name )) {
679
  $provider_name = str_replace( [' ', ','], '-', strtolower( $urlData->provider_name));
680
- }elseif ( is_array( $urlData ) && isset( $urlData[ $url ][ 'provider_name' ] ) ) {
681
- $provider_name = str_replace( [' ', ','], '-', strtolower( $urlData[ $url ][ 'provider_name' ]));
 
 
 
 
682
  }
683
  return $provider_name;
684
  }
166
  self::check_for_google_url($url);
167
  $provider_name = self::get_provider_name($urlData, $url);
168
  $embedTemplate = '<div ' . implode( ' ', $attributesHtml ) . '>{html}</div>';
169
+
170
+ $parsedContent = self::get_content_from_template($url, $embedTemplate);
171
  // Replace all single quotes to double quotes. I.e: foo='joe' -> foo="joe"
172
  $parsedContent = str_replace( "'", '"', $parsedContent );
173
  $parsedContent = str_replace( "{provider_alias}", $provider_name , $parsedContent );
174
+
175
  self::purify_html_content( $parsedContent);
176
  self::modify_content_for_fb_and_canada( $provider_name, $parsedContent);
177
  unset( $embedTemplate, $serviceProvider );
619
  $html = '';
620
  }else{
621
  $html = self::get_oembed()->get_html( $url, self::get_oembed_attributes() );
622
+
623
  }
624
 
625
  if ( !$html ) {
626
+ $html = self::get_embera_instance()->autoEmbed($url);
627
  }
628
  return str_replace( '{html}', $html, $template );
629
  }
680
  $provider_name = '';
681
  if (isset( $urlData->provider_name )) {
682
  $provider_name = str_replace( [' ', ','], '-', strtolower( $urlData->provider_name));
683
+ }elseif ( is_array( $urlData ) && !empty( $urlData) ) {
684
+ $data = array_shift( $urlData);
685
+ if ( isset( $data[ 'provider_name' ]) ) {
686
+ $provider_name = str_replace( [' ', ','], '-', strtolower( $data[ 'provider_name' ]));
687
+
688
+ }
689
  }
690
  return $provider_name;
691
  }
Gutenberg/dist/blocks.build.js CHANGED
@@ -1 +1 @@
1
- !function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var n={};t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=6)}([function(e,t,n){"use strict";n.d(t,"c",function(){return l}),n.d(t,"h",function(){return c}),n.d(t,"g",function(){return s}),n.d(t,"e",function(){return u}),n.d(t,"d",function(){return p}),n.d(t,"f",function(){return m}),n.d(t,"i",function(){return f}),n.d(t,"j",function(){return d}),n.d(t,"k",function(){return h}),n.d(t,"a",function(){return b}),n.d(t,"b",function(){return w});var r=wp.components,i=r.G,o=r.Path,a=(r.Polygon,r.SVG),l=wp.element.createElement(a,{xmlns:"http://www.w3.org/1999/xlink",viewBox:"0 0 48 48"},wp.element.createElement(i,null,wp.element.createElement(o,{style:{fill:"#2196F3"},d:"M 37 45 L 11 45 C 9.34375 45 8 43.65625 8 42 L 8 6 C 8 4.34375 9.34375 3 11 3 L 30 3 L 40 13 L 40 42 C 40 43.65625 38.65625 45 37 45 Z "}),wp.element.createElement(o,{style:{fill:"#BBDEFB"},d:"M 40 13 L 30 13 L 30 3 Z "}),wp.element.createElement(o,{style:{fill:"#1565C0"},d:"M 30 13 L 40 23 L 40 13 Z "}),wp.element.createElement(o,{style:{fill:"#E3F2FD"},d:"M 15 23 L 33 23 L 33 25 L 15 25 Z "}),wp.element.createElement(o,{style:{fill:"#E3F2FD"},d:"M 15 27 L 33 27 L 33 29 L 15 29 Z "}),wp.element.createElement(o,{style:{fill:"#E3F2FD"},d:"M 15 31 L 33 31 L 33 33 L 15 33 Z "}),wp.element.createElement(o,{style:{fill:"#E3F2FD"},d:"M 15 35 L 25 35 L 25 37 L 15 37 Z "}))),c=wp.element.createElement(a,{xmlns:"http://www.w3.org/1999/xlink",enableBackground:"new 0 0 24 24",id:"Layer_2",version:"1.1",viewBox:"0 0 24 24"},wp.element.createElement(i,null,wp.element.createElement(o,{d:"M21,6l-6-6H5C3.8954306,0,3,0.8954305,3,2v20c0,1.1045704,0.8954306,2,2,2h14c1.1045704,0,2-0.8954296,2-2 V6z",style:{fill:"#FFC720"}}),wp.element.createElement(o,{d:"M17,6c-0.5444336,0-1.0367432-0.2190552-1.3973999-0.5719604L21,10.8254395V6H17z",style:{fill:"url(#SVGID_1_)"}}),wp.element.createElement(o,{d:"M19,23.75H5c-1.1045532,0-2-0.8954468-2-2V22c0,1.1045532,0.8954468,2,2,2h14c1.1045532,0,2-0.8954468,2-2 v-0.25C21,22.8545532,20.1045532,23.75,19,23.75z",style:{opacity:"0.1"}}),wp.element.createElement(o,{d:"M15,0v4c0,1.1045694,0.8954306,2,2,2h4L15,0z",style:{fill:"#FFE083"}}),wp.element.createElement(o,{d:"M17,5.75c-1.1045532,0-2-0.8954468-2-2V4c0,1.1045532,0.8954468,2,2,2h4l-0.25-0.25H17z",style:{opacity:"0.1"}}),wp.element.createElement(o,{d:"M15,0H5C3.8954468,0,3,0.8953857,3,2v0.25c0-1.1046143,0.8954468-2,2-2h10",style:{fill:"#FFFFFF",opacity:"0.2"}}),wp.element.createElement(o,{d:"M15.5,9h-7C7.6728516,9,7,9.6728516,7,10.5v6C7,17.3271484,7.6728516,18,8.5,18h7 c0.8271484,0,1.5-0.6728516,1.5-1.5v-6C17,9.6728516,16.3271484,9,15.5,9z M8,15.5V11h8v4.5H8z",style:{fill:"#FFFFFF"}}),wp.element.createElement(o,{d:"M21,6l-6-6H5C3.8954306,0,3,0.8954305,3,2v20c0,1.1045704,0.8954306,2,2,2h14 c1.1045704,0,2-0.8954296,2-2V6z",style:{fill:"url(#SVGID_2_)"}}))),s=wp.element.createElement(a,{xmlns:"http://www.w3.org/1999/xlink",viewBox:"0 0 48 48",version:"1.1"},wp.element.createElement(i,null,wp.element.createElement(o,{style:{fill:"#43A047"},d:"M 37 45 L 11 45 C 9.34375 45 8 43.65625 8 42 L 8 6 C 8 4.34375 9.34375 3 11 3 L 30 3 L 40 13 L 40 42 C 40 43.65625 38.65625 45 37 45 Z "}),wp.element.createElement(o,{style:{fill:"#C8E6C9"},d:"M 40 13 L 30 13 L 30 3 Z "}),wp.element.createElement(o,{style:{fill:"#2E7D32"},d:"M 30 13 L 40 23 L 40 13 Z "}),wp.element.createElement(o,{style:{fill:"#E8F5E9"},d:"M 31 23 L 15 23 L 15 37 L 33 37 L 33 23 Z M 17 25 L 21 25 L 21 27 L 17 27 Z M 17 29 L 21 29 L 21 31 L 17 31 Z M 17 33 L 21 33 L 21 35 L 17 35 Z M 31 35 L 23 35 L 23 33 L 31 33 Z M 31 31 L 23 31 L 23 29 L 31 29 Z M 31 27 L 23 27 L 23 25 L 31 25 Z "}))),u=wp.element.createElement(a,{xmlns:"http://www.w3.org/1999/xlink",viewBox:"0 0 48 48",version:"1.1"},wp.element.createElement(i,null,wp.element.createElement(o,{style:{fill:"#7850C1"},d:"M 37 45 L 11 45 C 9.34375 45 8 43.65625 8 42 L 8 6 C 8 4.34375 9.34375 3 11 3 L 30 3 L 40 13 L 40 42 C 40 43.65625 38.65625 45 37 45 Z "}),wp.element.createElement(o,{style:{fill:"#C2ABE1"},d:"M 40 13 L 30 13 L 30 3 Z "}),wp.element.createElement(o,{style:{fill:"#2E7D32"},d:"M 30 13 L 40 23 L 40 13 Z "}),wp.element.createElement(o,{style:{fill:"#E8F5E9"},d:"M 19 23 L 33 23 L 33 25 L 19 25 Z "}),wp.element.createElement(o,{style:{fill:"#E8F5E9"},d:"M 19 28 L 33 28 L 33 30 L 19 30 Z "}),wp.element.createElement(o,{style:{fill:"#E8F5E9"},d:"M 19 33 L 33 33 L 33 35 L 19 35 Z "}),wp.element.createElement(o,{style:{fill:"#E8F5E9"},d:"M 15 23 L 17 23 L 17 25 L 15 25 Z "}),wp.element.createElement(o,{style:{fill:"#E8F5E9"},d:"M 15 28 L 17 28 L 17 30 L 15 30 Z "}),wp.element.createElement(o,{style:{fill:"#E8F5E9"},d:"M 15 33 L 17 33 L 17 35 L 15 35 Z "}))),p=wp.element.createElement(a,{xmlns:"http://www.w3.org/1999/xlink",viewBox:"0 0 48 48",version:"1.1"},wp.element.createElement(i,null,wp.element.createElement(o,{style:{fill:"#DE5245"},d:"M37,45H11c-1.7,0-3-1.3-3-3V6c0-1.7,1.3-3,3-3h19l10,10v29C40,43.7,38.7,45,37,45z"}),wp.element.createElement(o,{style:{fill:"#EEA6A0"},d:"M40,13H30V3L40,13z"}),wp.element.createElement(o,{style:{fill:"#B3433A"},d:"M30,13l10,10V13H30z"}),wp.element.createElement(o,{style:{fill:"#FFFFFF"},d:"M20.5,32c-3,0-5.5-2.5-5.5-5.5c0-3,2.5-5.5,5.5-5.5s5.5,2.5,5.5,5.5C26,29.5,23.5,32,20.5,32z M20.5,23c-1.9,0-3.5,1.6-3.5,3.5s1.6,3.5,3.5,3.5s3.5-1.6,3.5-3.5S22.4,23,20.5,23z"}),wp.element.createElement(o,{style:{fill:"#FFFFFF"},d:"M27.6,29c-0.6,1.8-1.9,3.3-3.6,4.1V38h9v-9H27.6z"}))),m=wp.element.createElement(a,{xmlns:"http://www.w3.org/1999/xlink",viewBox:"0 0 48 48",version:"1.1"},wp.element.createElement(i,null,wp.element.createElement(o,{style:{fill:"#1C9957"},d:"M 42 39 L 42 9 C 42 7.34375 40.65625 6 39 6 L 9 6 C 7.34375 6 6 7.34375 6 9 L 6 39 C 6 40.65625 7.34375 42 9 42 L 39 42 C 40.65625 42 42 40.65625 42 39 Z "}),wp.element.createElement(o,{style:{fill:"#3E7BF1"},d:"M 9 42 L 39 42 C 40.65625 42 24 26 24 26 C 24 26 7.34375 42 9 42 Z "}),wp.element.createElement(o,{style:{fill:"#CBCCC9"},d:"M 42 39 L 42 9 C 42 7.34375 26 24 26 24 C 26 24 42 40.65625 42 39 Z "}),wp.element.createElement(o,{style:{fill:"#EFEFEF"},d:"M 39 42 C 40.65625 42 42 40.65625 42 39 L 42 38.753906 L 26.246094 23 L 23 26.246094 L 38.753906 42 Z "}),wp.element.createElement(o,{style:{fill:"#FFD73D"},d:"M 42 9 C 42 7.34375 40.65625 6 39 6 L 38.753906 6 L 6 38.753906 L 6 39 C 6 40.65625 7.34375 42 9 42 L 9.246094 42 L 42 9.246094 Z "}),wp.element.createElement(o,{style:{fill:"#D73F35"},d:"M 36 2 C 30.476563 2 26 6.476563 26 12 C 26 18.8125 33.664063 21.296875 35.332031 31.851563 C 35.441406 32.53125 35.449219 33 36 33 C 36.550781 33 36.558594 32.53125 36.667969 31.851563 C 38.335938 21.296875 46 18.8125 46 12 C 46 6.476563 41.523438 2 36 2 Z "}),wp.element.createElement(o,{style:{fill:"#752622"},d:"M 39.5 12 C 39.5 13.933594 37.933594 15.5 36 15.5 C 34.066406 15.5 32.5 13.933594 32.5 12 C 32.5 10.066406 34.066406 8.5 36 8.5 C 37.933594 8.5 39.5 10.066406 39.5 12 Z "}),wp.element.createElement(o,{style:{fill:"#FFFFFF"},d:"M 14.492188 12.53125 L 14.492188 14.632813 L 17.488281 14.632813 C 17.09375 15.90625 16.03125 16.816406 14.492188 16.816406 C 12.660156 16.816406 11.175781 15.332031 11.175781 13.5 C 11.175781 11.664063 12.660156 10.179688 14.492188 10.179688 C 15.316406 10.179688 16.070313 10.484375 16.648438 10.980469 L 18.195313 9.433594 C 17.21875 8.542969 15.921875 8 14.492188 8 C 11.453125 8 8.992188 10.464844 8.992188 13.5 C 8.992188 16.535156 11.453125 19 14.492188 19 C 19.304688 19 20.128906 14.683594 19.675781 12.539063 Z "}))),f=wp.element.createElement(a,{xmlns:"http://www.w3.org/1999/xlink",viewBox:"0 0 48 48",version:"1.1"},wp.element.createElement(i,null,wp.element.createElement(o,{style:{fill:"#FFFFFF"},d:"M 12 32 L 12 8 L 39 8 L 39 26 L 33 32 L 24 32 L 18 38 L 18 32 Z "}),wp.element.createElement(o,{style:{fill:"#8E24AA"},d:"M 9 5 L 6 12.121094 L 6 38 L 15 38 L 15 43 L 20 43 L 25 38 L 32 38 L 42 28 L 42 5 Z M 38 26 L 33 31 L 24 31 L 19 36 L 19 31 L 13 31 L 13 9 L 38 9 Z "}),wp.element.createElement(o,{style:{fill:"#8E24AA"},d:"M 32 25 L 27 25 L 27 15 L 32 15 Z "}),wp.element.createElement(o,{style:{fill:"#8E24AA"},d:"M 24 25 L 19 25 L 19 15 L 24 15 Z "}))),d=wp.element.createElement(a,{xmlns:"http://www.w3.org/1999/xlink",viewBox:"0 0 769 598",version:"1.1"},wp.element.createElement(i,null,wp.element.createElement(o,{style:{fill:"#148ee0"},d:"M766.89,229.17c0,0 -17.78,35.38 -106.5,91.3c-37.82,23.79 -116.36,49.1 -217.33,58.86c-54.52,5.29 -154.9,0.99 -197.96,0.99c-43.29,0 -63.13,9.12 -101.95,52.84c-143.15,161.36 -143.15,161.36 -143.15,161.36c0,0 49.57,0.24 87.01,0.24c37.43,0 271.55,13.59 375.43,-14.98c337.36,-92.72 304.46,-350.62 304.46,-350.62z"}),wp.element.createElement(o,{style:{fill:"#54bbff"},d:"M757.84,126.66c16.23,-98.97 -39.68,-126.16 -39.68,-126.16c0,0 2.36,80.57 -145.7,97.65c-131.42,15.16 -572.46,3.74 -572.46,3.74c0,0 0,0 141.74,162.54c38.39,44.06 58.76,49.17 101.92,52.22c43.16,2.89 138.42,1.86 202.99,-3.05c70.58,-5.41 171.17,-28.43 239.19,-81.11c34.88,-26.98 65.21,-64.48 72,-105.83z"}))),h=wp.element.createElement(a,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",role:"img","aria-hidden":"true",focusable:"false"},wp.element.createElement(o,{d:"M21.8 8s-.195-1.377-.795-1.984c-.76-.797-1.613-.8-2.004-.847-2.798-.203-6.996-.203-6.996-.203h-.01s-4.197 0-6.996.202c-.39.046-1.242.05-2.003.846C2.395 6.623 2.2 8 2.2 8S2 9.62 2 11.24v1.517c0 1.618.2 3.237.2 3.237s.195 1.378.795 1.985c.76.797 1.76.77 2.205.855 1.6.153 6.8.2 6.8.2s4.203-.005 7-.208c.392-.047 1.244-.05 2.005-.847.6-.607.795-1.985.795-1.985s.2-1.618.2-3.237v-1.517C22 9.62 21.8 8 21.8 8zM9.935 14.595v-5.62l5.403 2.82-5.403 2.8z"})),b=(wp.element.createElement("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 56 23"},wp.element.createElement("g",null,wp.element.createElement("g",null,wp.element.createElement("path",{style:{fill:"#DA2B28"},className:"st0",d:"M55.4,3.7c-0.2-0.9-0.6-1.6-1.3-2.2c-0.7-0.6-1.4-0.9-2.3-1c-2.7-0.3-6.8-0.4-12.3-0.4 c-5.5,0-9.6,0.1-12.3,0.4c-0.9,0.1-1.6,0.5-2.3,1c-0.7,0.6-1.1,1.3-1.3,2.2c-0.4,1.7-0.6,4.3-0.6,7.8c0,3.5,0.2,6.1,0.6,7.8 c0.2,0.9,0.6,1.6,1.3,2.2c0.7,0.6,1.4,0.9,2.3,1c2.7,0.3,6.8,0.5,12.3,0.5c5.5,0,9.6-0.2,12.3-0.5c0.9-0.1,1.6-0.4,2.3-1 c0.7-0.6,1.1-1.3,1.3-2.2c0.4-1.7,0.6-4.3,0.6-7.8C56,8,55.8,5.4,55.4,3.7L55.4,3.7z M32.5,6h-2.4v12.6h-2.2V6h-2.3V3.9h6.9V6z M38.5,18.6h-2v-1.2c-0.8,0.9-1.6,1.4-2.3,1.4c-0.7,0-1.1-0.3-1.3-0.8c-0.1-0.4-0.2-0.9-0.2-1.6V7.6h2v8.1c0,0.5,0,0.7,0,0.8 c0,0.3,0.2,0.5,0.5,0.5c0.4,0,0.8-0.3,1.3-0.9V7.6h2V18.6z M46.1,15.3c0,1.1-0.1,1.8-0.2,2.2c-0.3,0.8-0.8,1.2-1.6,1.2 c-0.7,0-1.4-0.4-2.1-1.2v1.1h-2V3.9h2v4.8c0.6-0.8,1.3-1.2,2.1-1.2c0.8,0,1.3,0.4,1.6,1.2c0.1,0.4,0.2,1.1,0.2,2.2V15.3z M53.5,13.5h-4v1.9c0,1,0.3,1.5,1,1.5c0.5,0,0.8-0.3,0.9-0.8c0-0.1,0-0.6,0-1.4h2v0.3c0,0.7,0,1.2,0,1.3c0,0.4-0.2,0.8-0.5,1.2 c-0.5,0.8-1.3,1.2-2.4,1.2c-1,0-1.8-0.4-2.4-1.1c-0.4-0.5-0.6-1.4-0.6-2.6v-3.8c0-1.2,0.2-2,0.6-2.6c0.6-0.8,1.4-1.1,2.4-1.1 c1,0,1.8,0.4,2.3,1.1c0.4,0.5,0.6,1.4,0.6,2.6V13.5z M53.5,13.5"}),wp.element.createElement("path",{className:"st0",d:"M43.2,9.3c-0.3,0-0.7,0.2-1,0.5v6.7c0.3,0.3,0.7,0.5,1,0.5c0.6,0,0.9-0.5,0.9-1.5v-4.7 C44.1,9.8,43.8,9.3,43.2,9.3L43.2,9.3z M43.2,9.3"}),wp.element.createElement("path",{className:"st0",d:"M50.6,9.3c-0.7,0-1,0.5-1,1.5v1h2v-1C51.6,9.8,51.2,9.3,50.6,9.3L50.6,9.3z M50.6,9.3"})),wp.element.createElement("g",null,wp.element.createElement("path",{d:"M2.8,12.8v6h2.2v-6L7.7,4H5.5L4,9.8L2.4,4H0.1c0.4,1.2,0.9,2.6,1.4,4.1C2.2,10.2,2.6,11.7,2.8,12.8L2.8,12.8z M2.8,12.8"}),wp.element.createElement("path",{d:"M10.7,19c1,0,1.8-0.4,2.3-1.1c0.4-0.5,0.6-1.4,0.6-2.6v-3.9c0-1.2-0.2-2-0.6-2.6c-0.5-0.8-1.3-1.1-2.3-1.1 c-1,0-1.8,0.4-2.3,1.1C8,9.3,7.8,10.2,7.8,11.4v3.9c0,1.2,0.2,2.1,0.6,2.6C8.9,18.6,9.7,19,10.7,19L10.7,19z M9.8,11 c0-1,0.3-1.5,1-1.5c0.6,0,1,0.5,1,1.5v4.7c0,1-0.3,1.6-1,1.6c-0.6,0-1-0.5-1-1.6V11z M9.8,11"}),wp.element.createElement("path",{d:"M16.8,19c0.7,0,1.5-0.5,2.3-1.4v1.2h2V7.8h-2v8.4c-0.4,0.6-0.9,1-1.3,1c-0.3,0-0.4-0.2-0.5-0.5c0,0,0-0.3,0-0.8V7.8h-2 v8.7c0,0.8,0.1,1.3,0.2,1.7C15.7,18.7,16.1,19,16.8,19L16.8,19z M16.8,19"})))),wp.element.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 276 340"},wp.element.createElement("path",{d:"M196.7.6H24.3C11.1.6.4 11.3.4 24.6v292.9c0 12.3 10 22.2 22.2 22.2H252c13.3 0 23.9-10.7 23.9-23.9V80.9L196.7.6z",fill:"#e94848"}),wp.element.createElement("path",{d:"M196.7 57c0 13.3 10.7 23.9 23.9 23.9H276L196.7.6V57z",fill:"#f19191"}),wp.element.createElement("linearGradient",{id:"A",gradientUnits:"userSpaceOnUse",x1:"44.744",y1:"77.111",x2:"116.568",y2:"77.111"},wp.element.createElement("stop",{offset:"0",stopColor:"#fff"}),wp.element.createElement("stop",{offset:"1",stopColor:"#fff0f0"})),wp.element.createElement("path",{d:"M113 84.5H48.3c-1.9 0-3.5-1.6-3.5-3.5v-7.7c0-1.9 1.6-3.5 3.5-3.5H113c1.9 0 3.5 1.6 3.5 3.5V81c.1 1.9-1.5 3.5-3.5 3.5z",fill:"url(#A)"}),wp.element.createElement("linearGradient",{id:"B",gradientUnits:"userSpaceOnUse",x1:"44.744",y1:"136.016",x2:"233.927",y2:"136.016"},wp.element.createElement("stop",{offset:"0",stopColor:"#fff"}),wp.element.createElement("stop",{offset:"1",stopColor:"#fff0f0"})),wp.element.createElement("use",{href:"#H",opacity:".8",fill:"url(#B)"}),wp.element.createElement("linearGradient",{id:"C",gradientUnits:"userSpaceOnUse",x1:"44.744",y1:"135.993",x2:"233.927",y2:"135.993"},wp.element.createElement("stop",{offset:"0",stopColor:"#fff"}),wp.element.createElement("stop",{offset:"1",stopColor:"#fff0f0"})),wp.element.createElement("use",{href:"#H",y:"33.6",opacity:".7",fill:"url(#C)"}),wp.element.createElement("linearGradient",{id:"D",gradientUnits:"userSpaceOnUse",x1:"44.744",y1:"135.969",x2:"233.927",y2:"135.969"},wp.element.createElement("stop",{offset:"0",stopColor:"#fff"}),wp.element.createElement("stop",{offset:"1",stopColor:"#fff0f0"})),wp.element.createElement("use",{href:"#H",y:"67.2",opacity:".6",fill:"url(#D)"}),wp.element.createElement("linearGradient",{id:"E",gradientUnits:"userSpaceOnUse",x1:"44.744",y1:"136.045",x2:"233.927",y2:"136.045"},wp.element.createElement("stop",{offset:"0",stopColor:"#fff"}),wp.element.createElement("stop",{offset:"1",stopColor:"#fff0f0"})),wp.element.createElement("use",{href:"#H",y:"100.7",opacity:".4",fill:"url(#E)"}),wp.element.createElement("linearGradient",{id:"F",gradientUnits:"userSpaceOnUse",x1:"44.744",y1:"270.322",x2:"174.778",y2:"270.322"},wp.element.createElement("stop",{offset:"0",stopColor:"#fff"}),wp.element.createElement("stop",{offset:"1",stopColor:"#fff0f0"})),wp.element.createElement("path",{d:"M171.9 277.7H47.6c-1.6 0-2.9-1.3-2.9-2.9v-9c0-1.6 1.3-2.9 2.9-2.9h124.3c1.6 0 2.9 1.3 2.9 2.9v9c0 1.6-1.3 2.9-2.9 2.9z",opacity:".3",fill:"url(#F)"}),wp.element.createElement("defs",null,wp.element.createElement("path",{id:"H",d:"M231 143.4H47.6c-1.6 0-2.9-1.3-2.9-2.9v-9c0-1.6 1.3-2.9 2.9-2.9H231c1.6 0 2.9 1.3 2.9 2.9v9c0 1.6-1.3 2.9-2.9 2.9z"})))),w=wp.element.createElement("svg",{width:"33",height:"20",version:"1.1",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:"0 0 270 270",role:"img",focusable:"false"},wp.element.createElement("g",null,wp.element.createElement("polygon",{className:"st0",fill:"#9595C1",points:"0,0 0,52 15,52 15,15 52,15 52,0 \t"}),wp.element.createElement("polygon",{className:"st0",fill:"#9595C1",points:"255,218 255,255 218,255 218,270 270,270 270,218 \t"}),wp.element.createElement("path",{fill:"#5B4E96",d:"M260.7,68.1c-10.4-18.6-29.3-31.2-50.6-33.6c-12.4-1.4-25,0.6-36.3,6c-1.3,0.6-2.6,1.3-3.9,2 C154.5,51,143,65.3,138.3,81.7l0,0.1l-36.4,103.8c-3.1,9.4-9.1,17-17.1,21.4c-0.7,0.4-1.4,0.7-2.1,1.1c-6.1,2.9-12.8,4-19.5,3.2 c-11.5-1.3-21.6-8.1-27.2-18.1c-4.6-8.3-5.7-18-3.1-27.2c2.6-9.2,8.7-16.9,17.1-21.5c0.7-0.4,1.4-0.8,2.1-1.1 c6.1-2.9,12.7-4,19.6-3.2c0.3,0,0.5,0.1,0.8,0.1L64.9,162c-0.5,1.5,0.3,3.1,1.8,3.6l19.4,6.3c1.5,0.5,3-0.3,3.5-1.7l16.7-47.4 c0.4-1.2,0.3-2.5-0.3-3.6c-0.6-1.1-1.6-2-2.8-2.4l-17.6-5.1c-0.4-0.1-0.8-0.2-1.2-0.3l-1.6-0.5l0,0.1c-2.5-0.6-5-1.1-7.5-1.3 c-12.5-1.4-25.1,0.6-36.4,6c-1.3,0.6-2.6,1.3-3.9,2c-15.6,8.7-27,22.9-31.9,40.1c-4.9,17.1-2.8,35.1,5.8,50.5 c10.4,18.6,29.3,31.2,50.6,33.6c12.4,1.4,25-0.6,36.3-6c1.3-0.6,2.6-1.3,3.9-2c15.3-8.5,26.8-22.8,31.6-39.2l0-0.1L167.8,91 l0.1-0.2l0-0.1c4.1-10.5,9.3-17,17-21.3c0.7-0.4,1.4-0.7,2.1-1.1c6.1-2.9,12.8-4,19.5-3.2c11.5,1.3,21.6,8.1,27.2,18.1 c9.6,17.2,3.3,39.1-14,48.7c-0.7,0.4-1.4,0.7-2.1,1.1c-6.1,2.9-12.8,4-19.7,3.2c-2-0.2-4.1-0.6-6.1-1.2l-0.2-0.1l-11.3-3.4 c-1.2-0.4-2.5,0.3-2.9,1.5l-8.8,24.8c-0.5,1.3,0.3,2.7,1.6,3.1l13.9,4c3.4,0.9,6.8,1.6,10.3,2c12.4,1.4,25-0.6,36.3-6l0.1,0 c1.3-0.6,2.6-1.3,3.9-2C266.8,140.8,278.5,100.1,260.7,68.1z"})))},function(e,t,n){"use strict";var __=wp.i18n.__,r=wp.components.Spinner,i=function(){return wp.element.createElement("div",{className:"wp-block-embed is-loading"},wp.element.createElement(r,null),wp.element.createElement("p",null,__("Embedding\u2026")))};t.a=i},function(e,t,n){"use strict";var __=wp.i18n.__,r=wp.element.Fragment,i=wp.components,o=i.IconButton,a=i.Toolbar,l=wp.blockEditor.BlockControls,c=function(e){var t=e.showEditButton,n=e.switchBackToURLInput;return wp.element.createElement(r,null,wp.element.createElement(l,null,wp.element.createElement(a,null,t&&wp.element.createElement(o,{className:"components-toolbar__control",label:__("Edit URL"),icon:"edit",onClick:n}))))};t.a=c},function(e,t,n){"use strict";var r=n(11),i=n.n(r),o=wp.i18n,__=o.__,_x=o._x,a=wp.components,l=a.Button,c=a.Placeholder,s=a.ExternalLink,u=wp.blockEditor.BlockIcon,p=function(e){var t=e.icon,n=e.label,r=e.value,o=e.onSubmit,a=e.onChange,p=e.cannotEmbed,m=e.docLink,f=e.DocTitle,d=i()("wp-block-embed",{});return wp.element.createElement("div",null,wp.element.createElement(c,{icon:wp.element.createElement(u,{icon:t,showColors:!0}),label:n,className:d},wp.element.createElement("form",{onSubmit:o},wp.element.createElement("input",{type:"url",value:r||"",className:"components-placeholder__input","aria-label":n,placeholder:__("Enter URL to embed here\u2026"),onChange:a}),wp.element.createElement(l,{isSmall:!0,type:"submit"},_x("Embed","button label")),p&&wp.element.createElement("p",{className:"components-placeholder__error"},__("Sorry, we could not embed that content."),wp.element.createElement("br",null))),m&&wp.element.createElement("div",{className:"components-placeholder__learn-more"},wp.element.createElement(s,{href:m},f))))};t.a=p},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function o(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(5),l=n.n(a),c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=wp.element.Component,p=function(e){function t(e){r(this,t);var n=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.myRef=React.createRef(),n}return o(t,e),s(t,[{key:"componentDidMount",value:function(){l.a.findDOMNode(this.myRef.current).addEventListener("load",this.props.onLoad)}},{key:"render",value:function(){return wp.element.createElement("iframe",c({ref:this.myRef},this.props))}}]),t}(u);t.a=p},function(e,t){e.exports=ReactDOM},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});n(7),n(12),n(16),n(20),n(24),n(28),n(32),n(36),n(40),n(44),n(48);!function(){var e=wp.element.createElement("svg",{width:"33",height:"20",version:"1.1",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:"0 0 270 270"},wp.element.createElement("g",null,wp.element.createElement("polygon",{className:"st0",fill:"#9595C1",points:"0,0 0,52 15,52 15,15 52,15 52,0 \t"}),wp.element.createElement("polygon",{className:"st0",fill:"#9595C1",points:"255,218 255,255 218,255 218,270 270,270 270,218 \t"}),wp.element.createElement("path",{fill:"#5B4E96",d:"M260.7,68.1c-10.4-18.6-29.3-31.2-50.6-33.6c-12.4-1.4-25,0.6-36.3,6c-1.3,0.6-2.6,1.3-3.9,2 C154.5,51,143,65.3,138.3,81.7l0,0.1l-36.4,103.8c-3.1,9.4-9.1,17-17.1,21.4c-0.7,0.4-1.4,0.7-2.1,1.1c-6.1,2.9-12.8,4-19.5,3.2 c-11.5-1.3-21.6-8.1-27.2-18.1c-4.6-8.3-5.7-18-3.1-27.2c2.6-9.2,8.7-16.9,17.1-21.5c0.7-0.4,1.4-0.8,2.1-1.1 c6.1-2.9,12.7-4,19.6-3.2c0.3,0,0.5,0.1,0.8,0.1L64.9,162c-0.5,1.5,0.3,3.1,1.8,3.6l19.4,6.3c1.5,0.5,3-0.3,3.5-1.7l16.7-47.4 c0.4-1.2,0.3-2.5-0.3-3.6c-0.6-1.1-1.6-2-2.8-2.4l-17.6-5.1c-0.4-0.1-0.8-0.2-1.2-0.3l-1.6-0.5l0,0.1c-2.5-0.6-5-1.1-7.5-1.3 c-12.5-1.4-25.1,0.6-36.4,6c-1.3,0.6-2.6,1.3-3.9,2c-15.6,8.7-27,22.9-31.9,40.1c-4.9,17.1-2.8,35.1,5.8,50.5 c10.4,18.6,29.3,31.2,50.6,33.6c12.4,1.4,25-0.6,36.3-6c1.3-0.6,2.6-1.3,3.9-2c15.3-8.5,26.8-22.8,31.6-39.2l0-0.1L167.8,91 l0.1-0.2l0-0.1c4.1-10.5,9.3-17,17-21.3c0.7-0.4,1.4-0.7,2.1-1.1c6.1-2.9,12.8-4,19.5-3.2c11.5,1.3,21.6,8.1,27.2,18.1 c9.6,17.2,3.3,39.1-14,48.7c-0.7,0.4-1.4,0.7-2.1,1.1c-6.1,2.9-12.8,4-19.7,3.2c-2-0.2-4.1-0.6-6.1-1.2l-0.2-0.1l-11.3-3.4 c-1.2-0.4-2.5,0.3-2.9,1.5l-8.8,24.8c-0.5,1.3,0.3,2.7,1.6,3.1l13.9,4c3.4,0.9,6.8,1.6,10.3,2c12.4,1.4,25-0.6,36.3-6l0.1,0 c1.3-0.6,2.6-1.3,3.9-2C266.8,140.8,278.5,100.1,260.7,68.1z"})));wp.blocks.updateCategory("embedpress",{icon:e})}()},function(e,t,n){"use strict";var r=n(8),i=(n.n(r),n(9)),o=(n.n(i),n(10)),a=n(0),__=wp.i18n.__,l=wp.blocks.registerBlockType;embedpressObj&&embedpressObj.active_blocks&&embedpressObj.active_blocks["google-docs-block"]&&l("embedpress/google-docs-block",{title:__("Google Docs"),icon:a.c,category:"embedpress",keywords:[__("embedpress"),__("google"),__("docs")],supports:{align:["wide","full","right","left"],default:""},attributes:{url:{type:"string",default:""},iframeSrc:{type:"string",default:""}},edit:o.a,save:function(e){var t=e.attributes.iframeSrc;if(t)return wp.element.createElement("figure",{className:"ose-google-docs-document"},wp.element.createElement("iframe",{src:t,frameBorder:"0",width:"600",height:"450",allowFullScreen:"true",mozallowfullscreen:"true",webkitallowfullscreen:"true"}))},deprecated:[{attributes:{align:{type:"string",enum:["left","center","right","wide","full"]}},save:function(e){var t=e.attributes.iframeSrc;if(t)return wp.element.createElement("div",{className:"ose-google-docs-document"},wp.element.createElement("iframe",{src:t,frameBorder:"0",width:"600",height:"450",allowFullScreen:"true",mozallowfullscreen:"true",webkitallowfullscreen:"true"}))}}]})},function(e,t){},function(e,t){},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function o(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(2),l=n(1),c=n(3),s=n(4),u=n(0),p=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),__=wp.i18n.__,m=wp.element.Component,f=function(e){function t(){r(this,t);var e=i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return e.switchBackToURLInput=e.switchBackToURLInput.bind(e),e.setUrl=e.setUrl.bind(e),e.updateAlignment=e.updateAlignment.bind(e),e.onLoad=e.onLoad.bind(e),e.hideOverlay=e.hideOverlay.bind(e),e.state={editingURL:!1,url:e.props.attributes.url,fetching:!0,cannotEmbed:!1,interactive:!1},e}return o(t,e),p(t,[{key:"hideOverlay",value:function(){this.setState({interactive:!0})}},{key:"onLoad",value:function(){this.setState({fetching:!1})}},{key:"decodeHTMLEntities",value:function(e){return e&&"string"===typeof e&&(e=e.replace(/<script[^>]*>([\S\s]*?)<\/script>/gim,""),e=e.replace(/<\/?\w(?:[^"'>]|"[^"]*"|'[^']*')*>/gim,"")),e}},{key:"updateAlignment",value:function(e){var t=this.props.setAttributes,n=-1!==["wide","full"].indexOf(e)?{width:void 0,height:void 0}:{};t(Object.assign({},n,{align:e}))}},{key:"setUrl",value:function(e){e&&e.preventDefault();var t=this.state.url,n=this.props.setAttributes;if(n({url:t}),t&&t.match(/^http[s]?:\/\/((?:www\.)?docs\.google\.com(?:.*)?(?:document|presentation|spreadsheets|forms|drawings)\/[a-z0-9\/\?=_\-\.\,&%\$#\@\!\+]*)/i)){var r=this.decodeHTMLEntities(t),i=/google\.com(?:.+)?(document|presentation|spreadsheets|forms|drawings)/i,o=i.exec(r),a=o[1];a&&"document"===a?(r.match(/([?&])embedded=true/i)||(r.indexOf("?")>-1?r+="&embedded=true":r+="?embedded=true"),this.setState({editingURL:!1,cannotEmbed:!1}),n({iframeSrc:r})):this.setState({cannotEmbed:!0,editingURL:!0})}else this.setState({cannotEmbed:!0,editingURL:!0})}},{key:"switchBackToURLInput",value:function(){this.setState({editingURL:!0})}},{key:"render",value:function(){var e=this,t=this.state,n=t.url,r=t.editingURL,i=t.fetching,o=t.cannotEmbed,p=t.interactive,m=this.props.attributes.iframeSrc,f=__("Google Docs URL");return!m||r?wp.element.createElement("div",null,wp.element.createElement(c.a,{label:f,onSubmit:this.setUrl,value:n,cannotEmbed:o,onChange:function(t){return e.setState({url:t.target.value})},icon:u.c,DocTitle:__("Learn more about Google doc embed"),docLink:"https://embedpress.com/docs/embed-google-docs-wordpress/"})):wp.element.createElement("div",null,i?wp.element.createElement(l.a,null):null,wp.element.createElement(s.a,{src:m,onMouseUp:this.hideOverlay,onLoad:this.onLoad,style:{display:i?"none":""},frameBorder:"0",width:"600",height:"450"}),!p&&wp.element.createElement("div",{className:"block-library-embed__interactive-overlay",onMouseUp:this.hideOverlay}),wp.element.createElement(a.a,{showEditButton:m&&!o,switchBackToURLInput:this.switchBackToURLInput}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return!e.isSelected&&t.interactive?{interactive:!1}:null}}]),t}(m);t.a=f},function(e,t,n){var r,i;!function(){"use strict";function n(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var i=typeof r;if("string"===i||"number"===i)e.push(r);else if(Array.isArray(r)){if(r.length){var a=n.apply(null,r);a&&e.push(a)}}else if("object"===i)if(r.toString===Object.prototype.toString)for(var l in r)o.call(r,l)&&r[l]&&e.push(l);else e.push(r.toString())}}return e.join(" ")}var o={}.hasOwnProperty;"undefined"!==typeof e&&e.exports?(n.default=n,e.exports=n):(r=[],void 0!==(i=function(){return n}.apply(t,r))&&(e.exports=i))}()},function(e,t,n){"use strict";var r=n(13),i=(n.n(r),n(14)),o=(n.n(i),n(15)),a=n(0),__=wp.i18n.__,l=wp.blocks.registerBlockType;embedpressObj&&embedpressObj.active_blocks&&embedpressObj.active_blocks["google-slides-block"]&&l("embedpress/google-slides-block",{title:__("Google Slides"),icon:a.h,category:"embedpress",keywords:[__("embedpress"),__("google"),__("slides")],supports:{align:["wide","full","right","left"],default:""},attributes:{url:{type:"string",default:""},iframeSrc:{type:"string",default:""}},edit:o.a,save:function(e){var t=e.attributes.iframeSrc;return wp.element.createElement("figure",{className:"ose-google-docs-presentation"},wp.element.createElement("iframe",{src:t,frameborder:"0",width:"600",height:"450",allowfullscreen:"true",mozallowfullscreen:"true",webkitallowfullscreen:"true"}))}})},function(e,t){},function(e,t){},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function o(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(2),l=n(1),c=n(3),s=n(4),u=n(0),p=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),__=wp.i18n.__,m=wp.element,f=m.Component,d=m.Fragment,h=function(e){function t(){r(this,t);var e=i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return e.switchBackToURLInput=e.switchBackToURLInput.bind(e),e.setUrl=e.setUrl.bind(e),e.onLoad=e.onLoad.bind(e),e.hideOverlay=e.hideOverlay.bind(e),e.state={editingURL:!1,url:e.props.attributes.url,fetching:!0,cannotEmbed:!1,interactive:!1},e}return o(t,e),p(t,[{key:"hideOverlay",value:function(){this.setState({interactive:!0})}},{key:"onLoad",value:function(){this.setState({fetching:!1})}},{key:"decodeHTMLEntities",value:function(e){return e&&"string"===typeof e&&(e=e.replace(/<script[^>]*>([\S\s]*?)<\/script>/gim,""),e=e.replace(/<\/?\w(?:[^"'>]|"[^"]*"|'[^']*')*>/gim,"")),e}},{key:"setUrl",value:function(e){e&&e.preventDefault();var t=this.state.url,n=this.props.setAttributes;if(n({url:t}),t&&t.match(/^http[s]?:\/\/((?:www\.)?docs\.google\.com(?:.*)?(?:document|presentation|spreadsheets|forms|drawings)\/[a-z0-9\/\?=_\-\.\,&%\$#\@\!\+]*)/i)){var r=this.decodeHTMLEntities(t),i=/google\.com(?:.+)?(document|presentation|spreadsheets|forms|drawings)/i,o=i.exec(r),a=o[1];a&&"presentation"==a?(r.match(/pub\?/i)&&(r=r.replace("/pub?","/embed?")),this.setState({editingURL:!1,cannotEmbed:!1}),n({iframeSrc:r})):this.setState({cannotEmbed:!0,editingURL:!0})}else this.setState({cannotEmbed:!0,editingURL:!0})}},{key:"switchBackToURLInput",value:function(){this.setState({editingURL:!0})}},{key:"render",value:function(){var e=this,t=this.state,n=t.url,r=t.editingURL,i=t.fetching,o=t.cannotEmbed,p=t.interactive,m=this.props.attributes.iframeSrc,f=__("Google Slides URL");return!m||r?wp.element.createElement(c.a,{label:f,onSubmit:this.setUrl,value:n,cannotEmbed:o,onChange:function(t){return e.setState({url:t.target.value})},icon:u.h,DocTitle:__("Learn more about Google slides embed"),docLink:"https://embedpress.com/docs/embed-google-slides-wordpress/"}):wp.element.createElement(d,null,i?wp.element.createElement(l.a,null):null,wp.element.createElement(s.a,{src:m,onFocus:this.hideOverlay,onLoad:this.onLoad,style:{display:i?"none":""},frameborder:"0",width:"600",height:"450"}),!p&&wp.element.createElement("div",{className:"block-library-embed__interactive-overlay",onMouseUp:this.hideOverlay}),wp.element.createElement(a.a,{showEditButton:m&&!o,switchBackToURLInput:this.switchBackToURLInput}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return!e.isSelected&&t.interactive?{interactive:!1}:null}}]),t}(f);t.a=h},function(e,t,n){"use strict";var r=n(17),i=(n.n(r),n(18)),o=(n.n(i),n(19)),a=n(0),__=wp.i18n.__,l=wp.blocks.registerBlockType;embedpressObj&&embedpressObj.active_blocks&&embedpressObj.active_blocks["google-sheets-block"]&&l("embedpress/google-sheets-block",{title:__("Google Sheets"),icon:a.g,category:"embedpress",keywords:[__("embedpress"),__("google"),__("sheets")],supports:{align:["wide","full","right","left"],default:""},attributes:{url:{type:"string",default:""},iframeSrc:{type:"string",default:""}},edit:o.a,save:function(e){var t=e.attributes.iframeSrc;return wp.element.createElement("figure",{className:"ose-google-docs-spreadsheets"},wp.element.createElement("iframe",{src:t,frameborder:"0",width:"600",height:"450",allowfullscreen:"true",mozallowfullscreen:"true",webkitallowfullscreen:"true"}))},deprecated:[{attributes:{align:{type:"string",enum:["left","center","right","wide","full"]}},save:function(e){var t=e.attributes.iframeSrc;if(t)return wp.element.createElement("div",{className:"ose-google-docs-spreadsheets"},wp.element.createElement("iframe",{src:t,frameBorder:"0",width:"600",height:"450",allowFullScreen:"true",mozallowfullscreen:"true",webkitallowfullscreen:"true"}))}}]})},function(e,t){},function(e,t){},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function o(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(2),l=n(1),c=n(3),s=n(4),u=n(0),p=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),__=wp.i18n.__,m=wp.element,f=m.Component,d=m.Fragment,h=function(e){function t(){r(this,t);var e=i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return e.switchBackToURLInput=e.switchBackToURLInput.bind(e),e.setUrl=e.setUrl.bind(e),e.onLoad=e.onLoad.bind(e),e.hideOverlay=e.hideOverlay.bind(e),e.state={editingURL:!1,url:e.props.attributes.url,fetching:!0,cannotEmbed:!1,interactive:!1},e}return o(t,e),p(t,[{key:"hideOverlay",value:function(){this.setState({interactive:!0})}},{key:"onLoad",value:function(){this.setState({fetching:!1})}},{key:"decodeHTMLEntities",value:function(e){return e&&"string"===typeof e&&(e=e.replace(/<script[^>]*>([\S\s]*?)<\/script>/gim,""),e=e.replace(/<\/?\w(?:[^"'>]|"[^"]*"|'[^']*')*>/gim,"")),e}},{key:"setUrl",value:function(e){e&&e.preventDefault();var t=this.state.url,n=this.props.setAttributes;if(n({url:t}),t&&t.match(/^http[s]?:\/\/((?:www\.)?docs\.google\.com(?:.*)?(?:document|presentation|spreadsheets|forms|drawings)\/[a-z0-9\/\?=_\-\.\,&%\$#\@\!\+]*)/i)){var r=this.decodeHTMLEntities(t),i=/google\.com(?:.+)?(document|presentation|spreadsheets|forms|drawings)/i,o=i.exec(r),a=o[1];if(a&&"spreadsheets"==a){if(r.indexOf("?")>-1){var l=r.split("?");if(l=l[1],l=l.split("&"),console.log(l),l.length>0){var c=!1,s=!1;l.map(function(e){e.indexOf("widget=")?s=!0:e.indexOf("headers=")&&(c=!0)}),s||(r+="&widget=true"),c||(r+="&headers=false")}}else r+="?widget=true&headers=false";this.setState({editingURL:!1,cannotEmbed:!1}),n({iframeSrc:r})}else this.setState({cannotEmbed:!0,editingURL:!0})}else this.setState({cannotEmbed:!0,editingURL:!0})}},{key:"switchBackToURLInput",value:function(){this.setState({editingURL:!0})}},{key:"render",value:function(){var e=this,t=this.state,n=t.url,r=t.editingURL,i=t.fetching,o=t.cannotEmbed,p=t.interactive,m=this.props.attributes.iframeSrc,f=__("Google Sheets URL");return!m||r?wp.element.createElement(c.a,{label:f,onSubmit:this.setUrl,value:n,cannotEmbed:o,onChange:function(t){return e.setState({url:t.target.value})},icon:u.g,DocTitle:__("Learn more about Google sheet embed"),docLink:"https://embedpress.com/docs/embed-google-sheets-wordpress/"}):wp.element.createElement(d,null,i?wp.element.createElement(l.a,null):null,wp.element.createElement(s.a,{src:m,onFocus:this.hideOverlay,onLoad:this.onLoad,style:{display:i?"none":""},frameborder:"0",width:"600",height:"450"}),!p&&wp.element.createElement("div",{className:"block-library-embed__interactive-overlay",onMouseUp:this.hideOverlay}),wp.element.createElement(a.a,{showEditButton:m&&!o,switchBackToURLInput:this.switchBackToURLInput}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return!e.isSelected&&t.interactive?{interactive:!1}:null}}]),t}(f);t.a=h},function(e,t,n){"use strict";var r=n(21),i=(n.n(r),n(22)),o=(n.n(i),n(23)),a=n(0),__=wp.i18n.__,l=wp.blocks.registerBlockType;embedpressObj&&embedpressObj.active_blocks&&embedpressObj.active_blocks["google-forms-block"]&&l("embedpress/google-forms-block",{title:__("Google Forms"),icon:a.e,category:"embedpress",keywords:[__("embedpress"),__("google"),__("forms")],supports:{align:["wide","full","right","left"],default:""},attributes:{url:{type:"string",default:""},iframeSrc:{type:"string",default:""}},edit:o.a,save:function(e){var t=e.attributes.iframeSrc;return wp.element.createElement("figure",{className:"ose-google-docs-forms"},wp.element.createElement("iframe",{src:t,frameborder:"0",width:"600",height:"450",allowfullscreen:"true",mozallowfullscreen:"true",webkitallowfullscreen:"true"}))}})},function(e,t){},function(e,t){},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function o(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(2),l=n(1),c=n(3),s=n(4),u=n(0),p=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),__=wp.i18n.__,m=wp.element,f=m.Component,d=m.Fragment,h=(wp.components.Disabled,function(e){function t(){r(this,t);var e=i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return e.switchBackToURLInput=e.switchBackToURLInput.bind(e),e.setUrl=e.setUrl.bind(e),e.onLoad=e.onLoad.bind(e),e.state={editingURL:!1,url:e.props.attributes.url,fetching:!0,cannotEmbed:!1,interactive:!1},e}return o(t,e),p(t,[{key:"hideOverlay",value:function(){this.setState({interactive:!0})}},{key:"onLoad",value:function(){this.setState({fetching:!1})}},{key:"decodeHTMLEntities",value:function(e){return e&&"string"===typeof e&&(e=e.replace(/<script[^>]*>([\S\s]*?)<\/script>/gim,""),e=e.replace(/<\/?\w(?:[^"'>]|"[^"]*"|'[^']*')*>/gim,"")),e}},{key:"setUrl",value:function(e){e&&e.preventDefault();var t=this.state.url,n=this.props.setAttributes;if(n({url:t}),t&&t.match(/^http[s]?:\/\/((?:www\.)?docs\.google\.com(?:.*)?(?:document|presentation|spreadsheets|forms|drawings)\/[a-z0-9\/\?=_\-\.\,&%\$#\@\!\+]*)/i)){var r=this.decodeHTMLEntities(t),i=/google\.com(?:.+)?(document|presentation|spreadsheets|forms|drawings)/i,o=i.exec(r),a=o[1];a&&"forms"==a?(this.setState({editingURL:!1,cannotEmbed:!1}),n({iframeSrc:r})):this.setState({cannotEmbed:!0,editingURL:!0})}else this.setState({cannotEmbed:!0,editingURL:!0})}},{key:"switchBackToURLInput",value:function(){this.setState({editingURL:!0})}},{key:"render",value:function(){var e=this,t=this.state,n=t.url,r=t.editingURL,i=t.fetching,o=t.cannotEmbed,p=t.interactive,m=this.props.attributes.iframeSrc,f=__("Google Forms URL");return!m||r?wp.element.createElement(c.a,{label:f,onSubmit:this.setUrl,value:n,cannotEmbed:o,onChange:function(t){return e.setState({url:t.target.value})},icon:u.e,DocTitle:__("Learn more about Google forms embed"),docLink:"https://embedpress.com/docs/embed-google-forms-wordpress/"}):wp.element.createElement(d,null,i?wp.element.createElement(l.a,null):null,wp.element.createElement(s.a,{src:m,onFocus:this.hideOverlay,onLoad:this.onLoad,style:{display:i?"none":""},frameborder:"0",width:"600",height:"450"}),!p&&wp.element.createElement("div",{className:"block-library-embed__interactive-overlay",onMouseUp:this.hideOverlay}),wp.element.createElement(a.a,{showEditButton:m&&!o,switchBackToURLInput:this.switchBackToURLInput}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return!e.isSelected&&t.interactive?{interactive:!1}:null}}]),t}(f));t.a=h},function(e,t,n){"use strict";var r=n(25),i=(n.n(r),n(26)),o=(n.n(i),n(27)),a=n(0),__=wp.i18n.__,l=wp.blocks.registerBlockType;embedpressObj&&embedpressObj.active_blocks&&embedpressObj.active_blocks["google-drawings-block"]&&l("embedpress/google-drawings-block",{title:__("Google Drawings"),icon:a.d,category:"embedpress",keywords:[__("embedpress"),__("google"),__("drawings")],supports:{align:["wide","full","right","left"],default:""},attributes:{url:{type:"string",default:""},iframeSrc:{type:"string",default:""}},edit:o.a,save:function(e){var t=e.attributes.iframeSrc;return wp.element.createElement("figure",{className:"ose-google-docs-drawings"},wp.element.createElement("img",{src:t,width:"960",height:"720"}))}})},function(e,t){},function(e,t){},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function o(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(2),l=n(1),c=n(3),s=n(0),u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),__=wp.i18n.__,p=wp.element,m=p.Component,f=p.Fragment,d=function(e){function t(){r(this,t);var e=i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return e.switchBackToURLInput=e.switchBackToURLInput.bind(e),e.setUrl=e.setUrl.bind(e),e.onLoad=e.onLoad.bind(e),e.state={editingURL:!1,url:e.props.attributes.url,fetching:!0,cannotEmbed:!1},e}return o(t,e),u(t,[{key:"onLoad",value:function(){this.setState({fetching:!1})}},{key:"decodeHTMLEntities",value:function(e){return e&&"string"===typeof e&&(e=e.replace(/<script[^>]*>([\S\s]*?)<\/script>/gim,""),e=e.replace(/<\/?\w(?:[^"'>]|"[^"]*"|'[^']*')*>/gim,"")),e}},{key:"setUrl",value:function(e){e&&e.preventDefault();var t=this.state.url,n=this.props.setAttributes;if(n({url:t}),t&&t.match(/^http[s]?:\/\/((?:www\.)?docs\.google\.com(?:.*)?(?:document|presentation|spreadsheets|forms|drawings)\/[a-z0-9\/\?=_\-\.\,&%\$#\@\!\+]*)/i)){var r=this.decodeHTMLEntities(t),i=/google\.com(?:.+)?(document|presentation|spreadsheets|forms|drawings)/i,o=i.exec(r),a=o[1];a&&"drawings"==a?(this.setState({editingURL:!1,cannotEmbed:!1}),n({iframeSrc:r})):this.setState({cannotEmbed:!0,editingURL:!0})}else this.setState({cannotEmbed:!0,editingURL:!0})}},{key:"switchBackToURLInput",value:function(){this.setState({editingURL:!0})}},{key:"render",value:function(){var e=this,t=this.state,n=t.url,r=t.editingURL,i=t.fetching,o=t.cannotEmbed,u=this.props.attributes.iframeSrc,p=__("Google Drawings URL (Get your link from File -> Publish to the web -> Link)");return!u||r?wp.element.createElement(c.a,{label:p,onSubmit:this.setUrl,value:n,cannotEmbed:o,onChange:function(t){return e.setState({url:t.target.value})},icon:s.d,DocTitle:__("Learn more about Google drawing embed"),docLink:"https://embedpress.com/docs/embed-google-drawings-wordpress/"}):wp.element.createElement(f,null,i?wp.element.createElement(l.a,null):null,wp.element.createElement("img",{src:u,onLoad:this.onLoad,style:{display:i?"none":""},width:"960",height:"720"}),wp.element.createElement(a.a,{showEditButton:u&&!o,switchBackToURLInput:this.switchBackToURLInput}))}}]),t}(m);t.a=d},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var i=n(29),o=(n.n(i),n(30)),a=(n.n(o),n(31)),l=n(0),__=wp.i18n.__,c=wp.blocks.registerBlockType;embedpressObj&&embedpressObj.active_blocks&&embedpressObj.active_blocks["google-maps-block"]&&c("embedpress/google-maps-block",{title:__("Google Maps"),icon:l.f,category:"embedpress",keywords:[__("embedpress"),__("google"),__("maps")],supports:{align:["wide","full","right","left"],default:""},attributes:{url:{type:"string",default:""},iframeSrc:{type:"string",default:""}},edit:a.a,save:function(e){var t=e.attributes.iframeSrc;return wp.element.createElement("figure",{className:"ose-google-maps"},wp.element.createElement("iframe",r({src:t,frameborder:"0",width:"600",height:"450"},"frameborder","0")))}})},function(e,t){},function(e,t){},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function o(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(2),l=n(1),c=n(3),s=n(4),u=n(0),p=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),__=wp.i18n.__,m=wp.element,f=m.Component,d=m.Fragment,h=function(e){function t(){r(this,t);var e=i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return e.switchBackToURLInput=e.switchBackToURLInput.bind(e),e.setUrl=e.setUrl.bind(e),e.onLoad=e.onLoad.bind(e),e.state={editingURL:!1,url:e.props.attributes.url,fetching:!0,cannotEmbed:!1,interactive:!1},e}return o(t,e),p(t,[{key:"hideOverlay",value:function(){this.setState({interactive:!0})}},{key:"onLoad",value:function(){this.setState({fetching:!1})}},{key:"decodeHTMLEntities",value:function(e){return e&&"string"===typeof e&&(e=e.replace(/<script[^>]*>([\S\s]*?)<\/script>/gim,""),e=e.replace(/<\/?\w(?:[^"'>]|"[^"]*"|'[^']*')*>/gim,"")),e}},{key:"setUrl",value:function(e){e&&e.preventDefault();var t=this.state.url,n=this.props.setAttributes;if(n({url:t}),t&&t.match(/^http[s]?:\/\/(?:(?:(?:www\.|maps\.)?(?:google\.com?))|(?:goo\.gl))(?:\.[a-z]{2})?\/(?:maps\/)?(?:place\/)?(?:[a-z0-9\/%+\-_]*)?([a-z0-9\/%,+\-_=!:@\.&*\$#?\']*)/i)){var r=this.decodeHTMLEntities(t);if(t.match("~(maps/embed|output=embed)~i"));else{var i=/@(-?[0-9\.]+,-?[0-9\.]+).+,([0-9\.]+[a-z])/i,o=i.exec(r);o&&o.length>1&&o[1]&&o[2]?r="https://maps.google.com/maps?hl=en&ie=UTF8&ll="+o[1]+"&spn="+o[1]+"&t=m&z="+Math.round(parseInt(o[2]))+"&output=embed":this.setState({cannotEmbed:!0,editingURL:!0})}this.setState({editingURL:!1,cannotEmbed:!1}),n({iframeSrc:r})}else this.setState({cannotEmbed:!0,editingURL:!0})}},{key:"switchBackToURLInput",value:function(){this.setState({editingURL:!0})}},{key:"render",value:function(){var e=this,t=this.state,n=t.url,r=t.editingURL,i=t.fetching,o=t.cannotEmbed,p=t.interactive,m=this.props.attributes.iframeSrc,f=__("Google Maps URL");return!m||r?wp.element.createElement(c.a,{label:f,onSubmit:this.setUrl,value:n,cannotEmbed:o,onChange:function(t){return e.setState({url:t.target.value})},icon:u.f,DocTitle:__("Learn more about Google map embed"),docLink:"https://embedpress.com/docs/embed-google-maps-wordpress/"}):wp.element.createElement(d,null,i?wp.element.createElement(l.a,null):null,wp.element.createElement(s.a,{src:m,onFocus:this.hideOverlay,onLoad:this.onLoad,style:{display:i?"none":""},frameborder:"0",width:"600",height:"450"}),!p&&wp.element.createElement("div",{className:"block-library-embed__interactive-overlay",onMouseUp:this.hideOverlay}),wp.element.createElement(a.a,{showEditButton:m&&!o,switchBackToURLInput:this.switchBackToURLInput}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return!e.isSelected&&t.interactive?{interactive:!1}:null}}]),t}(f);t.a=h},function(e,t,n){"use strict";var r=n(33),i=(n.n(r),n(34)),o=(n.n(i),n(35)),a=n(0),l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},__=wp.i18n.__,c=wp.blocks.registerBlockType;embedpressObj&&embedpressObj.active_blocks&&embedpressObj.active_blocks["twitch-block"]&&c("embedpress/twitch-block",{title:__("Twitch"),icon:a.i,category:"embedpress",keywords:[__("embedpress"),__("twitch")],supports:{align:["wide","full","right","left"],default:""},attributes:{url:{type:"string",default:""},iframeSrc:{type:"string",default:""},attrs:{type:"string",default:""}},edit:o.a,save:function(e){var t=e.attributes,n=t.iframeSrc,r=t.attrs,i=n+"&parent="+embedpressObj.twitch_host;return wp.element.createElement("figure",{className:"ose-twitch-presentation"},wp.element.createElement("iframe",l({src:i},r,{frameborder:"0",width:"600",height:"450"})))}})},function(e,t){},function(e,t){},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function o(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(2),l=n(1),c=n(3),s=n(4),u=n(0),p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},m=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),__=wp.i18n.__,f=wp.element,d=f.Component,h=f.Fragment,b=function(e){function t(){r(this,t);var e=i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return e.switchBackToURLInput=e.switchBackToURLInput.bind(e),e.setUrl=e.setUrl.bind(e),e.onLoad=e.onLoad.bind(e),e.hideOverlay=e.hideOverlay.bind(e),e.state={editingURL:!1,url:e.props.attributes.url,fetching:!0,cannotEmbed:!1,interactive:!1},e}return o(t,e),m(t,[{key:"hideOverlay",value:function(){this.setState({interactive:!0})}},{key:"onLoad",value:function(){this.setState({fetching:!1})}},{key:"decodeHTMLEntities",value:function(e){return e&&"string"===typeof e&&(e=e.replace(/<script[^>]*>([\S\s]*?)<\/script>/gim,""),e=e.replace(/<\/?\w(?:[^"'>]|"[^"]*"|'[^']*')*>/gim,"")),e}},{key:"setUrl",value:function(e){e&&e.preventDefault();var t=this.state.url,n=this.props.setAttributes;n({url:t});var r=/http[s]?:\/\/(?:www\.|clips\.)twitch\.tv\/([0-9a-zA-Z\-\_]+)\/?(chat\/?$|[0-9a-z\-\_]*)?/;if(t&&t.match(r)){var i=this.decodeHTMLEntities(t),o=r.exec(i),a=o[1];console.log(a);var l,c="channel";switch(t.indexOf("clips.twitch.tv")>-1?c="clip":t.indexOf("/videos/")>-1?c="video":t.indexOf("#/chat$#")>-1&&(c="chat"),console.log(c),c){case"channel":i="https://player.twitch.tv/?channel="+a,l={scrolling:"no",frameborder:"0",allowfullscreen:"true"};break;case"clip":i="https://clips.twitch.tv/embed?clip="+a+"&autoplay=false",l={scrolling:"no",frameborder:"0",allowfullscreen:"true"};break;case"video":a=o[2],i="https://player.twitch.tv/?video="+a,l={scrolling:"no",frameborder:"0",allowfullscreen:"true"};break;case"chat":i="http://www.twitch.tv/embed/"+a+"/chat",l={scrolling:"yes",frameborder:"0",allowfullscreen:"true",id:"'"+a+"'"}}this.setState({editingURL:!1,cannotEmbed:!1}),n({iframeSrc:i,attrs:l})}else this.setState({cannotEmbed:!0,editingURL:!0})}},{key:"switchBackToURLInput",value:function(){this.setState({editingURL:!0})}},{key:"render",value:function(){var e=this,t=this.state,n=t.url,r=t.editingURL,i=t.fetching,o=t.cannotEmbed,m=t.interactive,f=this.props.attributes,d=f.iframeSrc,b=f.attrs,w=__("Twitch URL");if(!d||r)return wp.element.createElement(c.a,{label:w,onSubmit:this.setUrl,value:n,cannotEmbed:o,onChange:function(t){return e.setState({url:t.target.value})},icon:u.i,DocTitle:__("Learn more about twitch embed"),docLink:"https://embedpress.com/docs/embed-twitch-streams-chat/"});var y=d+"&parent="+embedpressObj.twitch_host;return wp.element.createElement(h,null,i?wp.element.createElement(l.a,null):null,wp.element.createElement(s.a,p({src:y},b,{onLoad:this.onLoad,style:{display:i?"none":""},onFocus:this.hideOverlay,width:"600",height:"450"})),!m&&wp.element.createElement("div",{className:"block-library-embed__interactive-overlay",onMouseUp:this.hideOverlay}),wp.element.createElement(a.a,{showEditButton:d&&!o,switchBackToURLInput:this.switchBackToURLInput}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return!e.isSelected&&t.interactive?{interactive:!1}:null}}]),t}(d);t.a=b},function(e,t,n){"use strict";var r=n(37),i=(n.n(r),n(38)),o=(n.n(i),n(39)),a=n(0),__=wp.i18n.__,l=wp.blocks.registerBlockType;embedpressObj&&embedpressObj.active_blocks&&embedpressObj.active_blocks["wistia-block"]&&l("embedpress/wistia-block",{title:__("Wistia"),icon:a.j,category:"embedpress",keywords:[__("embedpress"),__("wistia")],supports:{align:["wide","full","right","left"],default:""},edit:o.a,save:function(e){return null},deprecated:[{attributes:{url:{type:"string",default:""},iframeSrc:{type:"string",default:""}},edit:o.a,save:function(e){var t=e.attributes.iframeSrc;return wp.element.createElement("div",{class:"ose-wistia"},wp.element.createElement("iframe",{src:t,allowtransparency:"true",frameborder:"0",class:"wistia_embed",name:"wistia_embed",width:"600",height:"330"}))}}]})},function(e,t){},function(e,t){},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function o(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(2),l=n(1),c=n(3),s=n(4),u=n(0),p=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),__=wp.i18n.__,m=wp.element,f=m.Component,d=m.Fragment,h=function(e){function t(){r(this,t);var e=i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return e.switchBackToURLInput=e.switchBackToURLInput.bind(e),e.setUrl=e.setUrl.bind(e),e.onLoad=e.onLoad.bind(e),e.hideOverlay=e.hideOverlay.bind(e),e.state={editingURL:!1,url:e.props.attributes.url,fetching:!0,cannotEmbed:!1,interactive:!1,mediaId:null},e.setUrl(),e}return o(t,e),p(t,[{key:"hideOverlay",value:function(){this.setState({interactive:!0})}},{key:"componentDidMount",value:function(){if(this.props.attributes.url){var e=this.props.attributes.url.match(/medias\/(.*)/),t=e[1];this.setState(Object.assign({},this.state,{mediaId:t}))}}},{key:"onLoad",value:function(){if(this.setState({fetching:!1}),embedpressObj.wisita_options){var e=Object.assign({},this.state);setTimeout(function(){var e=document.createElement("script");e.src="https://fast.wistia.com/assets/external/E-v1.js",e.charset="ISO-8859-1",document.body.appendChild(e)},100),setTimeout(function(){var t=document.createElement("script");t.type="text/javascript",t.innerHTML="window.pp_embed_wistia_labels = "+embedpressObj.wistia_labels,document.body.appendChild(t),t=document.createElement("script"),t.type="text/javascript",t.innerHTML='wistiaEmbed = Wistia.embed( "'+e.mediaId+'", '+embedpressObj.wisita_options+" );",document.body.appendChild(t)},400)}}},{key:"decodeHTMLEntities",value:function(e){return e&&"string"===typeof e&&(e=e.replace(/<script[^>]*>([\S\s]*?)<\/script>/gim,""),e=e.replace(/<\/?\w(?:[^"'>]|"[^"]*"|'[^']*')*>/gim,"")),e}},{key:"setUrl",value:function(e){e&&e.preventDefault();var t=this.state.url,n=this.props.setAttributes;if(n({url:t}),t&&(t.match(/^http[s]?:\/\/(?:www\.)?wistia\.com\/medias/i)||t.match(/^http[s]?:\/\/(?:www\.)?fast\/.wistia\.com\/embed\/medias/i.jsonp))){var r=t.match(/medias\/(.*)/),i=r[1],o="//fast.wistia.net/embed/iframe/"+i;this.setState({editingURL:!1,cannotEmbed:!1,mediaId:i}),n({iframeSrc:o})}else this.setState({cannotEmbed:!0,editingURL:!0})}},{key:"switchBackToURLInput",value:function(){this.setState({editingURL:!0})}},{key:"render",value:function(){var e=this,t=this.state,n=t.url,r=t.editingURL,i=t.fetching,o=t.cannotEmbed,p=t.interactive,m=this.props.attributes.iframeSrc,f=__("Wistia URL");return!m||r?wp.element.createElement(c.a,{label:f,onSubmit:this.setUrl,value:n,cannotEmbed:o,onChange:function(t){return e.setState({url:t.target.value})},icon:u.j,DocTitle:__("Learn more about Wistia embed"),docLink:"https://embedpress.com/docs/embed-wistia-videos-wordpress/"}):wp.element.createElement(d,null,i?wp.element.createElement(l.a,null):null,wp.element.createElement("div",{className:"ose-wistia",id:"wistia_"+this.state.mediaId},wp.element.createElement(s.a,{src:m,onFocus:this.hideOverlay,onLoad:this.onLoad,style:{display:i?"none":""},frameborder:"0",width:"600",height:"330"})),!p&&wp.element.createElement("div",{className:"block-library-embed__interactive-overlay",onMouseUp:this.hideOverlay}),wp.element.createElement(a.a,{showEditButton:m&&!o,switchBackToURLInput:this.switchBackToURLInput}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return!e.isSelected&&t.interactive?{interactive:!1}:null}}]),t}(f);t.a=h},function(e,t,n){"use strict";var r=n(41),i=(n.n(r),n(42)),o=(n.n(i),n(43)),a=n(0),__=wp.i18n.__,l=wp.blocks.registerBlockType;embedpressObj&&embedpressObj.active_blocks&&embedpressObj.active_blocks["youtube-block"]&&l("embedpress/youtube-block",{title:__("YouTube"),icon:a.k,category:"embedpress",keywords:[__("embedpress"),__("youtube")],supports:{align:["wide","full","right","left"],default:""},edit:o.a,save:function(){return null}})},function(e,t){},function(e,t){},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function o(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(2),l=n(1),c=n(3),s=n(4),u=n(0),p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},m=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),__=wp.i18n.__,f=wp.element,d=f.Component,h=f.Fragment,b=function(e){function t(){r(this,t);var e=i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return e.switchBackToURLInput=e.switchBackToURLInput.bind(e),e.setUrl=e.setUrl.bind(e),e.onLoad=e.onLoad.bind(e),e.hideOverlay=e.hideOverlay.bind(e),e.state={editingURL:!1,url:e.props.attributes.url,fetching:!0,cannotEmbed:!1,interactive:!1},e}return o(t,e),m(t,[{key:"hideOverlay",value:function(){this.setState({interactive:!0})}},{key:"componentWillMount",value:function(){this.state.url&&this.setUrl()}},{key:"onLoad",value:function(){this.setState({fetching:!1})}},{key:"decodeHTMLEntities",value:function(e){return e&&"string"===typeof e&&(e=e.replace(/<script[^>]*>([\S\s]*?)<\/script>/gim,""),e=e.replace(/<\/?\w(?:[^"'>]|"[^"]*"|'[^']*')*>/gim,"")),e}},{key:"setUrl",value:function(e){e&&e.preventDefault();var t=this.state.url,n=this.props.setAttributes;n({url:t});var r=t.match(/^(?:https?:\/\/)?(?:www\.)?(?:youtu\.be\/|youtube\.com\/(?:embed\/|v\/|watch\?v=|watch\?.+&v=))((\w|-){11})(?:\S+)?$/);if(t&&r){var i=r[1],o="https://www.youtube.com/embed/"+i,a=new URL(o);if("undefined"!==typeof embedpressProObj)for(var l in embedpressProObj.youtubeParams)a.searchParams.set(l,embedpressProObj.youtubeParams[l]);this.setState({editingURL:!1,cannotEmbed:!1}),n({iframeSrc:a.href,mediaId:i})}else this.setState({cannotEmbed:!0,editingURL:!0})}},{key:"switchBackToURLInput",value:function(){this.setState({editingURL:!0})}},{key:"render",value:function(){var e=this,t=this.state,n=t.url,r=t.editingURL,i=t.fetching,o=t.cannotEmbed,m=t.interactive,f=this.props.attributes,d=f.iframeSrc,b=f.attrs,w=__("YouTube URL");return!d||r?wp.element.createElement(c.a,{label:w,onSubmit:this.setUrl,value:n,cannotEmbed:o,onChange:function(t){return e.setState({url:t.target.value})},icon:u.k,DocTitle:__("Learn More About YouTube Embed"),docLink:"https://embedpress.com/docs/embed-youtube-wordpress/"}):wp.element.createElement(h,null,i?wp.element.createElement(l.a,null):null,wp.element.createElement(s.a,p({src:d},b,{onLoad:this.onLoad,style:{display:i?"none":""},width:"640",onFocus:this.hideOverlay,height:"450"})),!m&&wp.element.createElement("div",{className:"block-library-embed__interactive-overlay",onMouseUp:this.hideOverlay}),wp.element.createElement(a.a,{showEditButton:d&&!o,switchBackToURLInput:this.switchBackToURLInput}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return!e.isSelected&&t.interactive?{interactive:!1}:null}}]),t}(d);t.a=b},function(e,t,n){"use strict";var r=n(45),i=(n.n(r),n(46)),o=(n.n(i),n(47)),a=n(0),__=wp.i18n.__,l=wp.blocks.registerBlockType;embedpressObj&&embedpressObj.active_blocks&&embedpressObj.active_blocks.document&&l("embedpress/document",{title:__("Document"),icon:a.a,category:"embedpress",keywords:[__("embedpress"),__("pdf"),__("doc"),__("ppt")],supports:{align:["wide","full","right","left"],default:""},attributes:{id:{type:"string"},href:{type:"string"},powered_by:{type:"boolean",default:!0},width:{type:"number",default:600},height:{type:"number",default:600},fileName:{type:"string"},mime:{type:"string"}},edit:o.a,save:function(e){var t=e.attributes,n=t.href,r=t.mime,i=t.id,o=t.width,a=t.height,l=t.powered_by,c="//view.officeapps.live.com/op/embed.aspx?src="+n;return wp.element.createElement("figure",{className:"embedpress-embed-document"},"application/pdf"===r&&wp.element.createElement("div",{style:{height:a,width:o},className:"embedpress-embed-document-pdf "+i,"data-emid":i,"data-emsrc":n}),"application/pdf"!==r&&wp.element.createElement("iframe",{style:{height:a,width:o},src:c,mozallowfullscreen:"true",webkitallowfullscreen:"true"}),l&&wp.element.createElement("p",{className:"embedpress-el-powered"},"Powered By EmbedPress"))}})},function(e,t){},function(e,t){},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function o(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(4),l=n(1),c=n(0),s=function(){function e(e,t){var n=[],_n=!0,r=!1,i=void 0;try{for(var o,a=e[Symbol.iterator]();!(_n=(o=a.next()).done)&&(n.push(o.value),!t||n.length!==t);_n=!0);}catch(e){r=!0,i=e}finally{try{!_n&&a.return&&a.return()}finally{if(r)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),__=wp.i18n.__,p=wp.blob,m=p.getBlobByURL,f=p.isBlobURL,d=p.revokeBlobURL,h=wp.editor,b=h.BlockIcon,w=h.MediaPlaceholder,y=h.InspectorControls,v=wp.element,g=v.Component,E=v.Fragment,L=wp.components,k=L.RangeControl,_=L.PanelBody,O=L.ExternalLink,S=L.ToggleControl,U=["application/pdf","application/msword","application/vnd.ms-powerpoint","application/vnd.ms-excel","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/vnd.openxmlformats-officedocument.presentationml.presentation"],j=function(e){function t(){r(this,t);var e=i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return e.onSelectFile=e.onSelectFile.bind(e),e.onUploadError=e.onUploadError.bind(e),e.onLoad=e.onLoad.bind(e),e.hideOverlay=e.hideOverlay.bind(e),e.state={hasError:!1,fetching:!1,interactive:!1,loadPdf:!0},e}return o(t,e),u(t,[{key:"componentDidMount",value:function(){var e=this,t=this.props,n=t.attributes,r=t.mediaUpload,i=t.noticeOperations,o=n.href;if(f(o)){r({filesList:[m(o)],onFileChange:function(t){var n=s(t,1),r=n[0];return e.onSelectFile(r)},onError:function(t){e.setState({hasError:!0}),i.createErrorNotice(t)}}),d(o)}this.props.attributes.href&&"application/pdf"===this.props.attributes.mime&&this.state.loadPdf&&(this.setState({loadPdf:!1}),PDFObject.embed(this.props.attributes.href,"."+this.props.attributes.id))}},{key:"componentDidUpdate",value:function(e){e.isSelected&&!this.props.isSelected&&this.setState({showCopyConfirmation:!1})}},{key:"hideOverlay",value:function(){this.setState({interactive:!0})}},{key:"onLoad",value:function(){this.setState({fetching:!1})}},{key:"onSelectFile",value:function(e){e&&e.url&&(this.setState({hasError:!1}),this.props.setAttributes({href:e.url,fileName:e.title,id:"embedpress-pdf-"+Date.now(),mime:e.mime}),embedpressObj.embedpress_pro&&this.props.setAttributes({powered_by:!1}),"application/pdf"===e.mime&&(this.setState({loadPdf:!1}),PDFObject.embed(e.url,"."+this.props.attributes.id)))}},{key:"onUploadError",value:function(e){var t=this.props.noticeOperations;t.removeAllNotices(),t.createErrorNotice(e)}},{key:"render",value:function(){var e=this.props,t=e.attributes,n=e.noticeUI,r=e.setAttributes,i=t.href,o=t.mime,s=t.id,u=t.width,p=t.height,m=t.powered_by,f=this.state,d=f.hasError,h=f.interactive,v=f.fetching,g=f.loadPdf;if(!i||d)return wp.element.createElement("div",{className:"embedpress-document-editmode"},wp.element.createElement(w,{icon:wp.element.createElement(b,{icon:c.a}),labels:{title:__("Document"),instructions:__("Upload a file or pick one from your media library for embed.")},onSelect:this.onSelectFile,notices:n,allowedTypes:U,onError:this.onUploadError},wp.element.createElement("div",{style:{width:"100%"},className:"components-placeholder__learn-more embedpress-doc-link"},wp.element.createElement(O,{href:"https://embedpress.com/docs/embed-docuemnt/"},"Learn more about Embedded document "))));var L="//view.officeapps.live.com/op/embed.aspx?src="+i;return wp.element.createElement(E,null,v&&"application/pdf"!==o?wp.element.createElement(l.a,null):null,"application/pdf"===o&&wp.element.createElement("div",{style:{height:p,width:u},className:"embedpress-embed-document-pdf "+s,"data-emid":s,"data-emsrc":i}),"application/pdf"!==o&&wp.element.createElement(a.a,{onMouseUponMouseUp:this.hideOverlay,style:{height:p,width:u,display:v||!g?"none":""},onLoad:this.onLoad,src:L}),!h&&wp.element.createElement("div",{className:"block-library-embed__interactive-overlay",onMouseUp:this.hideOverlay}),m&&wp.element.createElement("p",{className:"embedpress-el-powered"},"Powered By EmbedPress"),wp.element.createElement(y,{key:"inspector"},wp.element.createElement(_,{title:__("Embed Size","embedpress")},wp.element.createElement(k,{label:__("Width","embedpress"),value:u,onChange:function(e){return r({width:e})},max:1e3,min:1}),wp.element.createElement(k,{label:__("Height","embedpress"),value:p,onChange:function(e){return r({height:e})},max:1e3,min:1}),wp.element.createElement(S,{label:__("Powered By"),onChange:function(e){return r({powered_by:e})},checked:m}))))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return!e.isSelected&&t.interactive?{interactive:!1}:null}}]),t}(g);t.a=j},function(e,t,n){"use strict";var r=n(49),i=(n.n(r),n(50)),o=(n.n(i),n(51)),a=n(0),__=wp.i18n.__,l=wp.blocks.registerBlockType;embedpressObj&&embedpressObj.active_blocks&&embedpressObj.active_blocks.embedpress&&l("embedpress/embedpress",{title:__("EmbedPress"),icon:a.b,category:"embedpress",keywords:["embedpress","embed","google","youtube","docs"],supports:{align:["right","left","center"],default:"center",lightBlockWrapper:!0},attributes:{url:{type:"string",default:""},embedHTML:{type:"string",default:""},height:{type:"string",default:"450"},width:{type:"string",default:"600"},editingURL:{type:"boolean",default:!1},fetching:{type:"boolean",default:!1},cannotEmbed:{type:"boolean",default:!1},interactive:{type:"boolean",default:!1},align:{type:"string",default:"center"}},edit:o.a,save:function(){return null}})},function(e,t){},function(e,t){},function(e,t,n){"use strict";function r(e){return function(){var t=e.apply(this,arguments);return new Promise(function(e,n){function r(i,o){try{var a=t[i](o),l=a.value}catch(e){return void n(e)}if(!a.done)return Promise.resolve(l).then(function(e){r("next",e)},function(e){r("throw",e)});e(l)}return r("next")})}}function i(e){function t(){m({editingURL:!0})}function n(e){var t=this;if(e&&e.preventDefault(),h){m({fetching:!0});(function(){var e=r(a.a.mark(function e(n){return a.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(embedpressObj.site_url+"/wp-json/embedpress/v1/oembed/embedpress?url="+n+"&width="+_+"&height="+k).then(function(e){return e.json()});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},e,t)}));return function(_x){return e.apply(this,arguments)}})()(h).then(function(e){m({fetching:!1}),m(e.data&&404===e.data.status||!e.embed?{cannotEmbed:!0,editingURL:!0}:{embedHTML:e.embed,cannotEmbed:!1,editingURL:!1})})}else m({cannotEmbed:!0,fetching:!1,editingURL:!0})}var i=e.attributes,o=e.className,m=e.setAttributes,h=i.url,v=i.editingURL,g=i.fetching,E=i.cannotEmbed,L=(i.interactive,i.embedHTML),k=i.height,_=i.width,O=w?w():[];return wp.element.createElement(y,null,wp.element.createElement(b,null,wp.element.createElement(d,{title:__("Customize Embedded Link")},wp.element.createElement("p",null,__("You can adjust the width and height of embedded content.")),wp.element.createElement(f,{label:__("Width"),value:_,onChange:function(e){return m({width:e})}}),wp.element.createElement(f,{label:__("Height"),value:k,onChange:function(e){return m({height:e})}}),L&&!v&&wp.element.createElement("button",{onClick:n},__("Apply")))),(!L||v)&&!g&&wp.element.createElement("div",O,wp.element.createElement(s.a,{label:__("EmbedPress - Embed anything from 100+ sites"),onSubmit:n,value:h,cannotEmbed:E,onChange:function(e){return m({url:e.target.value})},icon:p.b,DocTitle:__("Learn more about EmbedPress"),docLink:"https://embedpress.com/docs/"})),g?wp.element.createElement("div",{className:o},wp.element.createElement(c.a,null)," "):null,L&&!v&&!g&&wp.element.createElement("figure",O,wp.element.createElement(u.a,{style:{display:g?"none":""},dangerouslySetInnerHTML:{__html:L}}),L.includes("g-ytsubscribe")&&wp.element.createElement("p",null,__("Note: Subscription button will show in the frontend.")),wp.element.createElement("div",{className:"block-library-embed__interactive-overlay",onMouseUp:m({interactive:!0})}),wp.element.createElement(l.a,{showEditButton:L&&!E,switchBackToURLInput:t})))}t.a=i;var o=n(52),a=n.n(o),l=n(2),c=n(1),s=n(3),u=n(55),p=n(0),__=wp.i18n.__,m=wp.components,f=m.TextControl,d=m.PanelBody,h=wp.blockEditor,b=h.InspectorControls,w=h.useBlockProps,y=wp.element.Fragment},function(e,t,n){e.exports=n(53)},function(e,t,n){var r=function(){return this}()||Function("return this")(),i=r.regeneratorRuntime&&Object.getOwnPropertyNames(r).indexOf("regeneratorRuntime")>=0,o=i&&r.regeneratorRuntime;if(r.regeneratorRuntime=void 0,e.exports=n(54),i)r.regeneratorRuntime=o;else try{delete r.regeneratorRuntime}catch(e){r.regeneratorRuntime=void 0}},function(e,t){!function(t){"use strict";function n(e,t,n,r){var o=t&&t.prototype instanceof i?t:i,a=Object.create(o.prototype),l=new f(r||[]);return a._invoke=s(e,n,l),a}function r(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}function i(){}function o(){}function a(){}function l(e){["next","throw","return"].forEach(function(t){e[t]=function(e){return this._invoke(t,e)}})}function c(e){function t(n,i,o,a){var l=r(e[n],e,i);if("throw"!==l.type){var c=l.arg,s=c.value;return s&&"object"===typeof s&&y.call(s,"__await")?Promise.resolve(s.__await).then(function(e){t("next",e,o,a)},function(e){t("throw",e,o,a)}):Promise.resolve(s).then(function(e){c.value=e,o(c)},a)}a(l.arg)}function n(e,n){function r(){return new Promise(function(r,i){t(e,n,r,i)})}return i=i?i.then(r,r):r()}var i;this._invoke=n}function s(e,t,n){var i=O;return function(o,a){if(i===U)throw new Error("Generator is already running");if(i===j){if("throw"===o)throw a;return h()}for(n.method=o,n.arg=a;;){var l=n.delegate;if(l){var c=u(l,n);if(c){if(c===R)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===O)throw i=j,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=U;var s=r(e,t,n);if("normal"===s.type){if(i=n.done?j:S,s.arg===R)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(i=j,n.method="throw",n.arg=s.arg)}}}function u(e,t){var n=e.iterator[t.method];if(n===b){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=b,u(e,t),"throw"===t.method))return R;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return R}var i=r(n,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,R;var o=i.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=b),t.delegate=null,R):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,R)}function p(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function m(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function f(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(p,this),this.reset(!0)}function d(e){if(e){var t=e[g];if(t)return t.call(e);if("function"===typeof e.next)return e;if(!isNaN(e.length)){var n=-1,r=function t(){for(;++n<e.length;)if(y.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=b,t.done=!0,t};return r.next=r}}return{next:h}}function h(){return{value:b,done:!0}}var b,w=Object.prototype,y=w.hasOwnProperty,v="function"===typeof Symbol?Symbol:{},g=v.iterator||"@@iterator",E=v.asyncIterator||"@@asyncIterator",L=v.toStringTag||"@@toStringTag",k="object"===typeof e,_=t.regeneratorRuntime;if(_)return void(k&&(e.exports=_));_=t.regeneratorRuntime=k?e.exports:{},_.wrap=n;var O="suspendedStart",S="suspendedYield",U="executing",j="completed",R={},C={};C[g]=function(){return this};var x=Object.getPrototypeOf,T=x&&x(x(d([])));T&&T!==w&&y.call(T,g)&&(C=T);var M=a.prototype=i.prototype=Object.create(C);o.prototype=M.constructor=a,a.constructor=o,a[L]=o.displayName="GeneratorFunction",_.isGeneratorFunction=function(e){var t="function"===typeof e&&e.constructor;return!!t&&(t===o||"GeneratorFunction"===(t.displayName||t.name))},_.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,a):(e.__proto__=a,L in e||(e[L]="GeneratorFunction")),e.prototype=Object.create(M),e},_.awrap=function(e){return{__await:e}},l(c.prototype),c.prototype[E]=function(){return this},_.AsyncIterator=c,_.async=function(e,t,r,i){var o=new c(n(e,t,r,i));return _.isGeneratorFunction(t)?o:o.next().then(function(e){return e.done?e.value:o.next()})},l(M),M[L]="Generator",M[g]=function(){return this},M.toString=function(){return"[object Generator]"},_.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},_.values=d,f.prototype={constructor:f,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=b,this.done=!1,this.delegate=null,this.method="next",this.arg=b,this.tryEntries.forEach(m),!e)for(var t in this)"t"===t.charAt(0)&&y.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=b)},stop:function(){this.done=!0;var e=this.tryEntries[0],t=e.completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){function t(t,r){return o.type="throw",o.arg=e,n.next=t,r&&(n.method="next",n.arg=b),!!r}if(this.done)throw e;for(var n=this,r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r],o=i.completion;if("root"===i.tryLoc)return t("end");if(i.tryLoc<=this.prev){var a=y.call(i,"catchLoc"),l=y.call(i,"finallyLoc");if(a&&l){if(this.prev<i.catchLoc)return t(i.catchLoc,!0);if(this.prev<i.finallyLoc)return t(i.finallyLoc)}else if(a){if(this.prev<i.catchLoc)return t(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return t(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&y.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=e,o.arg=t,i?(this.method="next",this.next=i.finallyLoc,R):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),R},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),m(n),R}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;m(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:d(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=b),R}}}(function(){return this}()||Function("return this")())},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function o(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(5),l=n.n(a),c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=wp.element.Component,p=function(e){function t(e){r(this,t);var n=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.myRef=React.createRef(),n}return o(t,e),s(t,[{key:"componentDidMount",value:function(){l.a.findDOMNode(this.myRef.current).addEventListener("load",this.props.onLoad)}},{key:"render",value:function(){return wp.element.createElement("div",c({ref:this.myRef},this.props))}}]),t}(u);t.a=p}]);
1
+ !function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var n={};t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=7)}([function(e,t,n){"use strict";n.d(t,"c",function(){return l}),n.d(t,"h",function(){return c}),n.d(t,"g",function(){return s}),n.d(t,"e",function(){return u}),n.d(t,"d",function(){return p}),n.d(t,"f",function(){return m}),n.d(t,"i",function(){return d}),n.d(t,"j",function(){return f}),n.d(t,"k",function(){return h}),n.d(t,"a",function(){return b}),n.d(t,"b",function(){return w});var r=wp.components,i=r.G,o=r.Path,a=(r.Polygon,r.SVG),l=wp.element.createElement(a,{xmlns:"http://www.w3.org/1999/xlink",viewBox:"0 0 48 48"},wp.element.createElement(i,null,wp.element.createElement(o,{style:{fill:"#2196F3"},d:"M 37 45 L 11 45 C 9.34375 45 8 43.65625 8 42 L 8 6 C 8 4.34375 9.34375 3 11 3 L 30 3 L 40 13 L 40 42 C 40 43.65625 38.65625 45 37 45 Z "}),wp.element.createElement(o,{style:{fill:"#BBDEFB"},d:"M 40 13 L 30 13 L 30 3 Z "}),wp.element.createElement(o,{style:{fill:"#1565C0"},d:"M 30 13 L 40 23 L 40 13 Z "}),wp.element.createElement(o,{style:{fill:"#E3F2FD"},d:"M 15 23 L 33 23 L 33 25 L 15 25 Z "}),wp.element.createElement(o,{style:{fill:"#E3F2FD"},d:"M 15 27 L 33 27 L 33 29 L 15 29 Z "}),wp.element.createElement(o,{style:{fill:"#E3F2FD"},d:"M 15 31 L 33 31 L 33 33 L 15 33 Z "}),wp.element.createElement(o,{style:{fill:"#E3F2FD"},d:"M 15 35 L 25 35 L 25 37 L 15 37 Z "}))),c=wp.element.createElement(a,{xmlns:"http://www.w3.org/1999/xlink",enableBackground:"new 0 0 24 24",id:"Layer_2",version:"1.1",viewBox:"0 0 24 24"},wp.element.createElement(i,null,wp.element.createElement(o,{d:"M21,6l-6-6H5C3.8954306,0,3,0.8954305,3,2v20c0,1.1045704,0.8954306,2,2,2h14c1.1045704,0,2-0.8954296,2-2 V6z",style:{fill:"#FFC720"}}),wp.element.createElement(o,{d:"M17,6c-0.5444336,0-1.0367432-0.2190552-1.3973999-0.5719604L21,10.8254395V6H17z",style:{fill:"url(#SVGID_1_)"}}),wp.element.createElement(o,{d:"M19,23.75H5c-1.1045532,0-2-0.8954468-2-2V22c0,1.1045532,0.8954468,2,2,2h14c1.1045532,0,2-0.8954468,2-2 v-0.25C21,22.8545532,20.1045532,23.75,19,23.75z",style:{opacity:"0.1"}}),wp.element.createElement(o,{d:"M15,0v4c0,1.1045694,0.8954306,2,2,2h4L15,0z",style:{fill:"#FFE083"}}),wp.element.createElement(o,{d:"M17,5.75c-1.1045532,0-2-0.8954468-2-2V4c0,1.1045532,0.8954468,2,2,2h4l-0.25-0.25H17z",style:{opacity:"0.1"}}),wp.element.createElement(o,{d:"M15,0H5C3.8954468,0,3,0.8953857,3,2v0.25c0-1.1046143,0.8954468-2,2-2h10",style:{fill:"#FFFFFF",opacity:"0.2"}}),wp.element.createElement(o,{d:"M15.5,9h-7C7.6728516,9,7,9.6728516,7,10.5v6C7,17.3271484,7.6728516,18,8.5,18h7 c0.8271484,0,1.5-0.6728516,1.5-1.5v-6C17,9.6728516,16.3271484,9,15.5,9z M8,15.5V11h8v4.5H8z",style:{fill:"#FFFFFF"}}),wp.element.createElement(o,{d:"M21,6l-6-6H5C3.8954306,0,3,0.8954305,3,2v20c0,1.1045704,0.8954306,2,2,2h14 c1.1045704,0,2-0.8954296,2-2V6z",style:{fill:"url(#SVGID_2_)"}}))),s=wp.element.createElement(a,{xmlns:"http://www.w3.org/1999/xlink",viewBox:"0 0 48 48",version:"1.1"},wp.element.createElement(i,null,wp.element.createElement(o,{style:{fill:"#43A047"},d:"M 37 45 L 11 45 C 9.34375 45 8 43.65625 8 42 L 8 6 C 8 4.34375 9.34375 3 11 3 L 30 3 L 40 13 L 40 42 C 40 43.65625 38.65625 45 37 45 Z "}),wp.element.createElement(o,{style:{fill:"#C8E6C9"},d:"M 40 13 L 30 13 L 30 3 Z "}),wp.element.createElement(o,{style:{fill:"#2E7D32"},d:"M 30 13 L 40 23 L 40 13 Z "}),wp.element.createElement(o,{style:{fill:"#E8F5E9"},d:"M 31 23 L 15 23 L 15 37 L 33 37 L 33 23 Z M 17 25 L 21 25 L 21 27 L 17 27 Z M 17 29 L 21 29 L 21 31 L 17 31 Z M 17 33 L 21 33 L 21 35 L 17 35 Z M 31 35 L 23 35 L 23 33 L 31 33 Z M 31 31 L 23 31 L 23 29 L 31 29 Z M 31 27 L 23 27 L 23 25 L 31 25 Z "}))),u=wp.element.createElement(a,{xmlns:"http://www.w3.org/1999/xlink",viewBox:"0 0 48 48",version:"1.1"},wp.element.createElement(i,null,wp.element.createElement(o,{style:{fill:"#7850C1"},d:"M 37 45 L 11 45 C 9.34375 45 8 43.65625 8 42 L 8 6 C 8 4.34375 9.34375 3 11 3 L 30 3 L 40 13 L 40 42 C 40 43.65625 38.65625 45 37 45 Z "}),wp.element.createElement(o,{style:{fill:"#C2ABE1"},d:"M 40 13 L 30 13 L 30 3 Z "}),wp.element.createElement(o,{style:{fill:"#2E7D32"},d:"M 30 13 L 40 23 L 40 13 Z "}),wp.element.createElement(o,{style:{fill:"#E8F5E9"},d:"M 19 23 L 33 23 L 33 25 L 19 25 Z "}),wp.element.createElement(o,{style:{fill:"#E8F5E9"},d:"M 19 28 L 33 28 L 33 30 L 19 30 Z "}),wp.element.createElement(o,{style:{fill:"#E8F5E9"},d:"M 19 33 L 33 33 L 33 35 L 19 35 Z "}),wp.element.createElement(o,{style:{fill:"#E8F5E9"},d:"M 15 23 L 17 23 L 17 25 L 15 25 Z "}),wp.element.createElement(o,{style:{fill:"#E8F5E9"},d:"M 15 28 L 17 28 L 17 30 L 15 30 Z "}),wp.element.createElement(o,{style:{fill:"#E8F5E9"},d:"M 15 33 L 17 33 L 17 35 L 15 35 Z "}))),p=wp.element.createElement(a,{xmlns:"http://www.w3.org/1999/xlink",viewBox:"0 0 48 48",version:"1.1"},wp.element.createElement(i,null,wp.element.createElement(o,{style:{fill:"#DE5245"},d:"M37,45H11c-1.7,0-3-1.3-3-3V6c0-1.7,1.3-3,3-3h19l10,10v29C40,43.7,38.7,45,37,45z"}),wp.element.createElement(o,{style:{fill:"#EEA6A0"},d:"M40,13H30V3L40,13z"}),wp.element.createElement(o,{style:{fill:"#B3433A"},d:"M30,13l10,10V13H30z"}),wp.element.createElement(o,{style:{fill:"#FFFFFF"},d:"M20.5,32c-3,0-5.5-2.5-5.5-5.5c0-3,2.5-5.5,5.5-5.5s5.5,2.5,5.5,5.5C26,29.5,23.5,32,20.5,32z M20.5,23c-1.9,0-3.5,1.6-3.5,3.5s1.6,3.5,3.5,3.5s3.5-1.6,3.5-3.5S22.4,23,20.5,23z"}),wp.element.createElement(o,{style:{fill:"#FFFFFF"},d:"M27.6,29c-0.6,1.8-1.9,3.3-3.6,4.1V38h9v-9H27.6z"}))),m=wp.element.createElement(a,{xmlns:"http://www.w3.org/1999/xlink",viewBox:"0 0 48 48",version:"1.1"},wp.element.createElement(i,null,wp.element.createElement(o,{style:{fill:"#1C9957"},d:"M 42 39 L 42 9 C 42 7.34375 40.65625 6 39 6 L 9 6 C 7.34375 6 6 7.34375 6 9 L 6 39 C 6 40.65625 7.34375 42 9 42 L 39 42 C 40.65625 42 42 40.65625 42 39 Z "}),wp.element.createElement(o,{style:{fill:"#3E7BF1"},d:"M 9 42 L 39 42 C 40.65625 42 24 26 24 26 C 24 26 7.34375 42 9 42 Z "}),wp.element.createElement(o,{style:{fill:"#CBCCC9"},d:"M 42 39 L 42 9 C 42 7.34375 26 24 26 24 C 26 24 42 40.65625 42 39 Z "}),wp.element.createElement(o,{style:{fill:"#EFEFEF"},d:"M 39 42 C 40.65625 42 42 40.65625 42 39 L 42 38.753906 L 26.246094 23 L 23 26.246094 L 38.753906 42 Z "}),wp.element.createElement(o,{style:{fill:"#FFD73D"},d:"M 42 9 C 42 7.34375 40.65625 6 39 6 L 38.753906 6 L 6 38.753906 L 6 39 C 6 40.65625 7.34375 42 9 42 L 9.246094 42 L 42 9.246094 Z "}),wp.element.createElement(o,{style:{fill:"#D73F35"},d:"M 36 2 C 30.476563 2 26 6.476563 26 12 C 26 18.8125 33.664063 21.296875 35.332031 31.851563 C 35.441406 32.53125 35.449219 33 36 33 C 36.550781 33 36.558594 32.53125 36.667969 31.851563 C 38.335938 21.296875 46 18.8125 46 12 C 46 6.476563 41.523438 2 36 2 Z "}),wp.element.createElement(o,{style:{fill:"#752622"},d:"M 39.5 12 C 39.5 13.933594 37.933594 15.5 36 15.5 C 34.066406 15.5 32.5 13.933594 32.5 12 C 32.5 10.066406 34.066406 8.5 36 8.5 C 37.933594 8.5 39.5 10.066406 39.5 12 Z "}),wp.element.createElement(o,{style:{fill:"#FFFFFF"},d:"M 14.492188 12.53125 L 14.492188 14.632813 L 17.488281 14.632813 C 17.09375 15.90625 16.03125 16.816406 14.492188 16.816406 C 12.660156 16.816406 11.175781 15.332031 11.175781 13.5 C 11.175781 11.664063 12.660156 10.179688 14.492188 10.179688 C 15.316406 10.179688 16.070313 10.484375 16.648438 10.980469 L 18.195313 9.433594 C 17.21875 8.542969 15.921875 8 14.492188 8 C 11.453125 8 8.992188 10.464844 8.992188 13.5 C 8.992188 16.535156 11.453125 19 14.492188 19 C 19.304688 19 20.128906 14.683594 19.675781 12.539063 Z "}))),d=wp.element.createElement(a,{xmlns:"http://www.w3.org/1999/xlink",viewBox:"0 0 48 48",version:"1.1"},wp.element.createElement(i,null,wp.element.createElement(o,{style:{fill:"#FFFFFF"},d:"M 12 32 L 12 8 L 39 8 L 39 26 L 33 32 L 24 32 L 18 38 L 18 32 Z "}),wp.element.createElement(o,{style:{fill:"#8E24AA"},d:"M 9 5 L 6 12.121094 L 6 38 L 15 38 L 15 43 L 20 43 L 25 38 L 32 38 L 42 28 L 42 5 Z M 38 26 L 33 31 L 24 31 L 19 36 L 19 31 L 13 31 L 13 9 L 38 9 Z "}),wp.element.createElement(o,{style:{fill:"#8E24AA"},d:"M 32 25 L 27 25 L 27 15 L 32 15 Z "}),wp.element.createElement(o,{style:{fill:"#8E24AA"},d:"M 24 25 L 19 25 L 19 15 L 24 15 Z "}))),f=wp.element.createElement(a,{xmlns:"http://www.w3.org/1999/xlink",viewBox:"0 0 769 598",version:"1.1"},wp.element.createElement(i,null,wp.element.createElement(o,{style:{fill:"#148ee0"},d:"M766.89,229.17c0,0 -17.78,35.38 -106.5,91.3c-37.82,23.79 -116.36,49.1 -217.33,58.86c-54.52,5.29 -154.9,0.99 -197.96,0.99c-43.29,0 -63.13,9.12 -101.95,52.84c-143.15,161.36 -143.15,161.36 -143.15,161.36c0,0 49.57,0.24 87.01,0.24c37.43,0 271.55,13.59 375.43,-14.98c337.36,-92.72 304.46,-350.62 304.46,-350.62z"}),wp.element.createElement(o,{style:{fill:"#54bbff"},d:"M757.84,126.66c16.23,-98.97 -39.68,-126.16 -39.68,-126.16c0,0 2.36,80.57 -145.7,97.65c-131.42,15.16 -572.46,3.74 -572.46,3.74c0,0 0,0 141.74,162.54c38.39,44.06 58.76,49.17 101.92,52.22c43.16,2.89 138.42,1.86 202.99,-3.05c70.58,-5.41 171.17,-28.43 239.19,-81.11c34.88,-26.98 65.21,-64.48 72,-105.83z"}))),h=wp.element.createElement(a,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",role:"img","aria-hidden":"true",focusable:"false"},wp.element.createElement(o,{d:"M21.8 8s-.195-1.377-.795-1.984c-.76-.797-1.613-.8-2.004-.847-2.798-.203-6.996-.203-6.996-.203h-.01s-4.197 0-6.996.202c-.39.046-1.242.05-2.003.846C2.395 6.623 2.2 8 2.2 8S2 9.62 2 11.24v1.517c0 1.618.2 3.237.2 3.237s.195 1.378.795 1.985c.76.797 1.76.77 2.205.855 1.6.153 6.8.2 6.8.2s4.203-.005 7-.208c.392-.047 1.244-.05 2.005-.847.6-.607.795-1.985.795-1.985s.2-1.618.2-3.237v-1.517C22 9.62 21.8 8 21.8 8zM9.935 14.595v-5.62l5.403 2.82-5.403 2.8z"})),b=(wp.element.createElement("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 56 23"},wp.element.createElement("g",null,wp.element.createElement("g",null,wp.element.createElement("path",{style:{fill:"#DA2B28"},className:"st0",d:"M55.4,3.7c-0.2-0.9-0.6-1.6-1.3-2.2c-0.7-0.6-1.4-0.9-2.3-1c-2.7-0.3-6.8-0.4-12.3-0.4 c-5.5,0-9.6,0.1-12.3,0.4c-0.9,0.1-1.6,0.5-2.3,1c-0.7,0.6-1.1,1.3-1.3,2.2c-0.4,1.7-0.6,4.3-0.6,7.8c0,3.5,0.2,6.1,0.6,7.8 c0.2,0.9,0.6,1.6,1.3,2.2c0.7,0.6,1.4,0.9,2.3,1c2.7,0.3,6.8,0.5,12.3,0.5c5.5,0,9.6-0.2,12.3-0.5c0.9-0.1,1.6-0.4,2.3-1 c0.7-0.6,1.1-1.3,1.3-2.2c0.4-1.7,0.6-4.3,0.6-7.8C56,8,55.8,5.4,55.4,3.7L55.4,3.7z M32.5,6h-2.4v12.6h-2.2V6h-2.3V3.9h6.9V6z M38.5,18.6h-2v-1.2c-0.8,0.9-1.6,1.4-2.3,1.4c-0.7,0-1.1-0.3-1.3-0.8c-0.1-0.4-0.2-0.9-0.2-1.6V7.6h2v8.1c0,0.5,0,0.7,0,0.8 c0,0.3,0.2,0.5,0.5,0.5c0.4,0,0.8-0.3,1.3-0.9V7.6h2V18.6z M46.1,15.3c0,1.1-0.1,1.8-0.2,2.2c-0.3,0.8-0.8,1.2-1.6,1.2 c-0.7,0-1.4-0.4-2.1-1.2v1.1h-2V3.9h2v4.8c0.6-0.8,1.3-1.2,2.1-1.2c0.8,0,1.3,0.4,1.6,1.2c0.1,0.4,0.2,1.1,0.2,2.2V15.3z M53.5,13.5h-4v1.9c0,1,0.3,1.5,1,1.5c0.5,0,0.8-0.3,0.9-0.8c0-0.1,0-0.6,0-1.4h2v0.3c0,0.7,0,1.2,0,1.3c0,0.4-0.2,0.8-0.5,1.2 c-0.5,0.8-1.3,1.2-2.4,1.2c-1,0-1.8-0.4-2.4-1.1c-0.4-0.5-0.6-1.4-0.6-2.6v-3.8c0-1.2,0.2-2,0.6-2.6c0.6-0.8,1.4-1.1,2.4-1.1 c1,0,1.8,0.4,2.3,1.1c0.4,0.5,0.6,1.4,0.6,2.6V13.5z M53.5,13.5"}),wp.element.createElement("path",{className:"st0",d:"M43.2,9.3c-0.3,0-0.7,0.2-1,0.5v6.7c0.3,0.3,0.7,0.5,1,0.5c0.6,0,0.9-0.5,0.9-1.5v-4.7 C44.1,9.8,43.8,9.3,43.2,9.3L43.2,9.3z M43.2,9.3"}),wp.element.createElement("path",{className:"st0",d:"M50.6,9.3c-0.7,0-1,0.5-1,1.5v1h2v-1C51.6,9.8,51.2,9.3,50.6,9.3L50.6,9.3z M50.6,9.3"})),wp.element.createElement("g",null,wp.element.createElement("path",{d:"M2.8,12.8v6h2.2v-6L7.7,4H5.5L4,9.8L2.4,4H0.1c0.4,1.2,0.9,2.6,1.4,4.1C2.2,10.2,2.6,11.7,2.8,12.8L2.8,12.8z M2.8,12.8"}),wp.element.createElement("path",{d:"M10.7,19c1,0,1.8-0.4,2.3-1.1c0.4-0.5,0.6-1.4,0.6-2.6v-3.9c0-1.2-0.2-2-0.6-2.6c-0.5-0.8-1.3-1.1-2.3-1.1 c-1,0-1.8,0.4-2.3,1.1C8,9.3,7.8,10.2,7.8,11.4v3.9c0,1.2,0.2,2.1,0.6,2.6C8.9,18.6,9.7,19,10.7,19L10.7,19z M9.8,11 c0-1,0.3-1.5,1-1.5c0.6,0,1,0.5,1,1.5v4.7c0,1-0.3,1.6-1,1.6c-0.6,0-1-0.5-1-1.6V11z M9.8,11"}),wp.element.createElement("path",{d:"M16.8,19c0.7,0,1.5-0.5,2.3-1.4v1.2h2V7.8h-2v8.4c-0.4,0.6-0.9,1-1.3,1c-0.3,0-0.4-0.2-0.5-0.5c0,0,0-0.3,0-0.8V7.8h-2 v8.7c0,0.8,0.1,1.3,0.2,1.7C15.7,18.7,16.1,19,16.8,19L16.8,19z M16.8,19"})))),wp.element.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 276 340"},wp.element.createElement("path",{d:"M196.7.6H24.3C11.1.6.4 11.3.4 24.6v292.9c0 12.3 10 22.2 22.2 22.2H252c13.3 0 23.9-10.7 23.9-23.9V80.9L196.7.6z",fill:"#e94848"}),wp.element.createElement("path",{d:"M196.7 57c0 13.3 10.7 23.9 23.9 23.9H276L196.7.6V57z",fill:"#f19191"}),wp.element.createElement("linearGradient",{id:"A",gradientUnits:"userSpaceOnUse",x1:"44.744",y1:"77.111",x2:"116.568",y2:"77.111"},wp.element.createElement("stop",{offset:"0",stopColor:"#fff"}),wp.element.createElement("stop",{offset:"1",stopColor:"#fff0f0"})),wp.element.createElement("path",{d:"M113 84.5H48.3c-1.9 0-3.5-1.6-3.5-3.5v-7.7c0-1.9 1.6-3.5 3.5-3.5H113c1.9 0 3.5 1.6 3.5 3.5V81c.1 1.9-1.5 3.5-3.5 3.5z",fill:"url(#A)"}),wp.element.createElement("linearGradient",{id:"B",gradientUnits:"userSpaceOnUse",x1:"44.744",y1:"136.016",x2:"233.927",y2:"136.016"},wp.element.createElement("stop",{offset:"0",stopColor:"#fff"}),wp.element.createElement("stop",{offset:"1",stopColor:"#fff0f0"})),wp.element.createElement("use",{href:"#H",opacity:".8",fill:"url(#B)"}),wp.element.createElement("linearGradient",{id:"C",gradientUnits:"userSpaceOnUse",x1:"44.744",y1:"135.993",x2:"233.927",y2:"135.993"},wp.element.createElement("stop",{offset:"0",stopColor:"#fff"}),wp.element.createElement("stop",{offset:"1",stopColor:"#fff0f0"})),wp.element.createElement("use",{href:"#H",y:"33.6",opacity:".7",fill:"url(#C)"}),wp.element.createElement("linearGradient",{id:"D",gradientUnits:"userSpaceOnUse",x1:"44.744",y1:"135.969",x2:"233.927",y2:"135.969"},wp.element.createElement("stop",{offset:"0",stopColor:"#fff"}),wp.element.createElement("stop",{offset:"1",stopColor:"#fff0f0"})),wp.element.createElement("use",{href:"#H",y:"67.2",opacity:".6",fill:"url(#D)"}),wp.element.createElement("linearGradient",{id:"E",gradientUnits:"userSpaceOnUse",x1:"44.744",y1:"136.045",x2:"233.927",y2:"136.045"},wp.element.createElement("stop",{offset:"0",stopColor:"#fff"}),wp.element.createElement("stop",{offset:"1",stopColor:"#fff0f0"})),wp.element.createElement("use",{href:"#H",y:"100.7",opacity:".4",fill:"url(#E)"}),wp.element.createElement("linearGradient",{id:"F",gradientUnits:"userSpaceOnUse",x1:"44.744",y1:"270.322",x2:"174.778",y2:"270.322"},wp.element.createElement("stop",{offset:"0",stopColor:"#fff"}),wp.element.createElement("stop",{offset:"1",stopColor:"#fff0f0"})),wp.element.createElement("path",{d:"M171.9 277.7H47.6c-1.6 0-2.9-1.3-2.9-2.9v-9c0-1.6 1.3-2.9 2.9-2.9h124.3c1.6 0 2.9 1.3 2.9 2.9v9c0 1.6-1.3 2.9-2.9 2.9z",opacity:".3",fill:"url(#F)"}),wp.element.createElement("defs",null,wp.element.createElement("path",{id:"H",d:"M231 143.4H47.6c-1.6 0-2.9-1.3-2.9-2.9v-9c0-1.6 1.3-2.9 2.9-2.9H231c1.6 0 2.9 1.3 2.9 2.9v9c0 1.6-1.3 2.9-2.9 2.9z"})))),w=wp.element.createElement("svg",{width:"33",height:"20",version:"1.1",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:"0 0 270 270",role:"img",focusable:"false"},wp.element.createElement("g",null,wp.element.createElement("polygon",{className:"st0",fill:"#9595C1",points:"0,0 0,52 15,52 15,15 52,15 52,0 \t"}),wp.element.createElement("polygon",{className:"st0",fill:"#9595C1",points:"255,218 255,255 218,255 218,270 270,270 270,218 \t"}),wp.element.createElement("path",{fill:"#5B4E96",d:"M260.7,68.1c-10.4-18.6-29.3-31.2-50.6-33.6c-12.4-1.4-25,0.6-36.3,6c-1.3,0.6-2.6,1.3-3.9,2 C154.5,51,143,65.3,138.3,81.7l0,0.1l-36.4,103.8c-3.1,9.4-9.1,17-17.1,21.4c-0.7,0.4-1.4,0.7-2.1,1.1c-6.1,2.9-12.8,4-19.5,3.2 c-11.5-1.3-21.6-8.1-27.2-18.1c-4.6-8.3-5.7-18-3.1-27.2c2.6-9.2,8.7-16.9,17.1-21.5c0.7-0.4,1.4-0.8,2.1-1.1 c6.1-2.9,12.7-4,19.6-3.2c0.3,0,0.5,0.1,0.8,0.1L64.9,162c-0.5,1.5,0.3,3.1,1.8,3.6l19.4,6.3c1.5,0.5,3-0.3,3.5-1.7l16.7-47.4 c0.4-1.2,0.3-2.5-0.3-3.6c-0.6-1.1-1.6-2-2.8-2.4l-17.6-5.1c-0.4-0.1-0.8-0.2-1.2-0.3l-1.6-0.5l0,0.1c-2.5-0.6-5-1.1-7.5-1.3 c-12.5-1.4-25.1,0.6-36.4,6c-1.3,0.6-2.6,1.3-3.9,2c-15.6,8.7-27,22.9-31.9,40.1c-4.9,17.1-2.8,35.1,5.8,50.5 c10.4,18.6,29.3,31.2,50.6,33.6c12.4,1.4,25-0.6,36.3-6c1.3-0.6,2.6-1.3,3.9-2c15.3-8.5,26.8-22.8,31.6-39.2l0-0.1L167.8,91 l0.1-0.2l0-0.1c4.1-10.5,9.3-17,17-21.3c0.7-0.4,1.4-0.7,2.1-1.1c6.1-2.9,12.8-4,19.5-3.2c11.5,1.3,21.6,8.1,27.2,18.1 c9.6,17.2,3.3,39.1-14,48.7c-0.7,0.4-1.4,0.7-2.1,1.1c-6.1,2.9-12.8,4-19.7,3.2c-2-0.2-4.1-0.6-6.1-1.2l-0.2-0.1l-11.3-3.4 c-1.2-0.4-2.5,0.3-2.9,1.5l-8.8,24.8c-0.5,1.3,0.3,2.7,1.6,3.1l13.9,4c3.4,0.9,6.8,1.6,10.3,2c12.4,1.4,25-0.6,36.3-6l0.1,0 c1.3-0.6,2.6-1.3,3.9-2C266.8,140.8,278.5,100.1,260.7,68.1z"})))},function(e,t,n){"use strict";var __=wp.i18n.__,r=wp.components.Spinner,i=function(){return wp.element.createElement("div",{className:"wp-block-embed is-loading"},wp.element.createElement(r,null),wp.element.createElement("p",null,__("Embedding\u2026")))};t.a=i},function(e,t,n){"use strict";var __=wp.i18n.__,r=wp.element.Fragment,i=wp.components,o=i.IconButton,a=i.Toolbar,l=wp.blockEditor.BlockControls,c=function(e){var t=e.showEditButton,n=e.switchBackToURLInput;return wp.element.createElement(r,null,wp.element.createElement(l,null,wp.element.createElement(a,null,t&&wp.element.createElement(o,{className:"components-toolbar__control",label:__("Edit URL"),icon:"edit",onClick:n}))))};t.a=c},function(e,t,n){"use strict";var r=n(12),i=n.n(r),o=wp.i18n,__=o.__,_x=o._x,a=wp.components,l=a.Button,c=a.Placeholder,s=a.ExternalLink,u=wp.blockEditor.BlockIcon,p=function(e){var t=e.icon,n=e.label,r=e.value,o=e.onSubmit,a=e.onChange,p=e.cannotEmbed,m=e.docLink,d=e.DocTitle,f=i()("wp-block-embed",{});return wp.element.createElement("div",null,wp.element.createElement(c,{icon:wp.element.createElement(u,{icon:t,showColors:!0}),label:n,className:f},wp.element.createElement("form",{onSubmit:o},wp.element.createElement("input",{type:"url",value:r||"",className:"components-placeholder__input","aria-label":n,placeholder:__("Enter URL to embed here\u2026"),onChange:a}),wp.element.createElement(l,{isSmall:!0,type:"submit"},_x("Embed","button label")),p&&wp.element.createElement("p",{className:"components-placeholder__error"},__("Sorry, we could not embed that content."),wp.element.createElement("br",null))),m&&wp.element.createElement("div",{className:"components-placeholder__learn-more"},wp.element.createElement(s,{href:m},d))))};t.a=p},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function o(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(5),l=n.n(a),c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=wp.element.Component,p=function(e){function t(e){r(this,t);var n=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.myRef=React.createRef(),n}return o(t,e),s(t,[{key:"componentDidMount",value:function(){l.a.findDOMNode(this.myRef.current).addEventListener("load",this.props.onLoad)}},{key:"render",value:function(){return wp.element.createElement("iframe",c({ref:this.myRef},this.props))}}]),t}(u);t.a=p},function(e,t){e.exports=ReactDOM},function(e,t,n){"use strict";function r(e){var t=embedpressObj.document_cta,n="",r="";if(embedpressObj.embedpress_pro&&t&&t.logo_url){console.dir(t);var o=t.cta_url?t.cta_url:null,a=t.logo_xpos?t.logo_xpos+"%":"10%",l=t.logo_ypos?t.logo_ypos+"%":"10%",c=t.logo_opacity?t.logo_opacity/100:"10%",s=".ep-doc-"+e.id;return n="\n "+s+"{\n text-align: left;\n position: relative;\n }\n "+s+" .watermark {\n \t\tdisplay:inline-block;\n border: 0;\n position: absolute;\n bottom: "+l+";\n right: "+a+";\n max-width: 150px;\n max-height: 75px;\n opacity: "+c+";\n z-index: 5;\n -o-transition: opacity 0.5s ease-in-out;\n -moz-transition: opacity 0.5s ease-in-out;\n -webkit-transition: opacity 0.5s ease-in-out;\n transition: opacity 0.5s ease-in-out;\n }\n "+s+" .watermark:hover {\n\t\t\t\t\t opacity: 1;\n\t\t\t\t }\n\t\t",o&&""!==o&&(r+="<a href="+o+">"),r+='<img class="watermark" alt="" src="'+t.logo_url+'"/>',o&&""!==o&&(r+="</a>"),wp.element.createElement(i,null,wp.element.createElement("style",{dangerouslySetInnerHTML:{__html:n}}),wp.element.createElement("div",{dangerouslySetInnerHTML:{__html:r}}))}return""}var i=wp.element.Fragment;t.a=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});n(8),n(13),n(17),n(21),n(25),n(29),n(33),n(37),n(41),n(45),n(49);!function(){var e=wp.element.createElement("svg",{width:"33",height:"20",version:"1.1",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:"0 0 270 270"},wp.element.createElement("g",null,wp.element.createElement("polygon",{className:"st0",fill:"#9595C1",points:"0,0 0,52 15,52 15,15 52,15 52,0 \t"}),wp.element.createElement("polygon",{className:"st0",fill:"#9595C1",points:"255,218 255,255 218,255 218,270 270,270 270,218 \t"}),wp.element.createElement("path",{fill:"#5B4E96",d:"M260.7,68.1c-10.4-18.6-29.3-31.2-50.6-33.6c-12.4-1.4-25,0.6-36.3,6c-1.3,0.6-2.6,1.3-3.9,2 C154.5,51,143,65.3,138.3,81.7l0,0.1l-36.4,103.8c-3.1,9.4-9.1,17-17.1,21.4c-0.7,0.4-1.4,0.7-2.1,1.1c-6.1,2.9-12.8,4-19.5,3.2 c-11.5-1.3-21.6-8.1-27.2-18.1c-4.6-8.3-5.7-18-3.1-27.2c2.6-9.2,8.7-16.9,17.1-21.5c0.7-0.4,1.4-0.8,2.1-1.1 c6.1-2.9,12.7-4,19.6-3.2c0.3,0,0.5,0.1,0.8,0.1L64.9,162c-0.5,1.5,0.3,3.1,1.8,3.6l19.4,6.3c1.5,0.5,3-0.3,3.5-1.7l16.7-47.4 c0.4-1.2,0.3-2.5-0.3-3.6c-0.6-1.1-1.6-2-2.8-2.4l-17.6-5.1c-0.4-0.1-0.8-0.2-1.2-0.3l-1.6-0.5l0,0.1c-2.5-0.6-5-1.1-7.5-1.3 c-12.5-1.4-25.1,0.6-36.4,6c-1.3,0.6-2.6,1.3-3.9,2c-15.6,8.7-27,22.9-31.9,40.1c-4.9,17.1-2.8,35.1,5.8,50.5 c10.4,18.6,29.3,31.2,50.6,33.6c12.4,1.4,25-0.6,36.3-6c1.3-0.6,2.6-1.3,3.9-2c15.3-8.5,26.8-22.8,31.6-39.2l0-0.1L167.8,91 l0.1-0.2l0-0.1c4.1-10.5,9.3-17,17-21.3c0.7-0.4,1.4-0.7,2.1-1.1c6.1-2.9,12.8-4,19.5-3.2c11.5,1.3,21.6,8.1,27.2,18.1 c9.6,17.2,3.3,39.1-14,48.7c-0.7,0.4-1.4,0.7-2.1,1.1c-6.1,2.9-12.8,4-19.7,3.2c-2-0.2-4.1-0.6-6.1-1.2l-0.2-0.1l-11.3-3.4 c-1.2-0.4-2.5,0.3-2.9,1.5l-8.8,24.8c-0.5,1.3,0.3,2.7,1.6,3.1l13.9,4c3.4,0.9,6.8,1.6,10.3,2c12.4,1.4,25-0.6,36.3-6l0.1,0 c1.3-0.6,2.6-1.3,3.9-2C266.8,140.8,278.5,100.1,260.7,68.1z"})));wp.blocks.updateCategory("embedpress",{icon:e})}()},function(e,t,n){"use strict";var r=n(9),i=(n.n(r),n(10)),o=(n.n(i),n(11)),a=n(0),__=wp.i18n.__,l=wp.blocks.registerBlockType;embedpressObj&&embedpressObj.active_blocks&&embedpressObj.active_blocks["google-docs-block"]&&l("embedpress/google-docs-block",{title:__("Google Docs"),icon:a.c,category:"embedpress",keywords:[__("embedpress"),__("google"),__("docs")],supports:{align:["wide","full","right","left"],default:""},attributes:{url:{type:"string",default:""},iframeSrc:{type:"string",default:""}},edit:o.a,save:function(e){var t=e.attributes.iframeSrc;if(t)return wp.element.createElement("figure",{className:"ose-google-docs-document"},wp.element.createElement("iframe",{src:t,frameBorder:"0",width:"600",height:"450",allowFullScreen:"true",mozallowfullscreen:"true",webkitallowfullscreen:"true"}))},deprecated:[{attributes:{align:{type:"string",enum:["left","center","right","wide","full"]}},save:function(e){var t=e.attributes.iframeSrc;if(t)return wp.element.createElement("div",{className:"ose-google-docs-document"},wp.element.createElement("iframe",{src:t,frameBorder:"0",width:"600",height:"450",allowFullScreen:"true",mozallowfullscreen:"true",webkitallowfullscreen:"true"}))}}]})},function(e,t){},function(e,t){},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function o(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(2),l=n(1),c=n(3),s=n(4),u=n(0),p=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),__=wp.i18n.__,m=wp.element.Component,d=function(e){function t(){r(this,t);var e=i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return e.switchBackToURLInput=e.switchBackToURLInput.bind(e),e.setUrl=e.setUrl.bind(e),e.updateAlignment=e.updateAlignment.bind(e),e.onLoad=e.onLoad.bind(e),e.hideOverlay=e.hideOverlay.bind(e),e.state={editingURL:!1,url:e.props.attributes.url,fetching:!0,cannotEmbed:!1,interactive:!1},e}return o(t,e),p(t,[{key:"hideOverlay",value:function(){this.setState({interactive:!0})}},{key:"onLoad",value:function(){this.setState({fetching:!1})}},{key:"decodeHTMLEntities",value:function(e){return e&&"string"===typeof e&&(e=e.replace(/<script[^>]*>([\S\s]*?)<\/script>/gim,""),e=e.replace(/<\/?\w(?:[^"'>]|"[^"]*"|'[^']*')*>/gim,"")),e}},{key:"updateAlignment",value:function(e){var t=this.props.setAttributes,n=-1!==["wide","full"].indexOf(e)?{width:void 0,height:void 0}:{};t(Object.assign({},n,{align:e}))}},{key:"setUrl",value:function(e){e&&e.preventDefault();var t=this.state.url,n=this.props.setAttributes;if(n({url:t}),t&&t.match(/^http[s]?:\/\/((?:www\.)?docs\.google\.com(?:.*)?(?:document|presentation|spreadsheets|forms|drawings)\/[a-z0-9\/\?=_\-\.\,&%\$#\@\!\+]*)/i)){var r=this.decodeHTMLEntities(t),i=/google\.com(?:.+)?(document|presentation|spreadsheets|forms|drawings)/i,o=i.exec(r),a=o[1];a&&"document"===a?(r.match(/([?&])embedded=true/i)||(r.indexOf("?")>-1?r+="&embedded=true":r+="?embedded=true"),this.setState({editingURL:!1,cannotEmbed:!1}),n({iframeSrc:r})):this.setState({cannotEmbed:!0,editingURL:!0})}else this.setState({cannotEmbed:!0,editingURL:!0})}},{key:"switchBackToURLInput",value:function(){this.setState({editingURL:!0})}},{key:"render",value:function(){var e=this,t=this.state,n=t.url,r=t.editingURL,i=t.fetching,o=t.cannotEmbed,p=t.interactive,m=this.props.attributes.iframeSrc,d=__("Google Docs URL");return!m||r?wp.element.createElement("div",null,wp.element.createElement(c.a,{label:d,onSubmit:this.setUrl,value:n,cannotEmbed:o,onChange:function(t){return e.setState({url:t.target.value})},icon:u.c,DocTitle:__("Learn more about Google doc embed"),docLink:"https://embedpress.com/docs/embed-google-docs-wordpress/"})):wp.element.createElement("div",null,i?wp.element.createElement(l.a,null):null,wp.element.createElement(s.a,{src:m,onMouseUp:this.hideOverlay,onLoad:this.onLoad,style:{display:i?"none":""},frameBorder:"0",width:"600",height:"450"}),!p&&wp.element.createElement("div",{className:"block-library-embed__interactive-overlay",onMouseUp:this.hideOverlay}),wp.element.createElement(a.a,{showEditButton:m&&!o,switchBackToURLInput:this.switchBackToURLInput}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return!e.isSelected&&t.interactive?{interactive:!1}:null}}]),t}(m);t.a=d},function(e,t,n){var r,i;!function(){"use strict";function n(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var i=typeof r;if("string"===i||"number"===i)e.push(r);else if(Array.isArray(r)){if(r.length){var a=n.apply(null,r);a&&e.push(a)}}else if("object"===i)if(r.toString===Object.prototype.toString)for(var l in r)o.call(r,l)&&r[l]&&e.push(l);else e.push(r.toString())}}return e.join(" ")}var o={}.hasOwnProperty;"undefined"!==typeof e&&e.exports?(n.default=n,e.exports=n):(r=[],void 0!==(i=function(){return n}.apply(t,r))&&(e.exports=i))}()},function(e,t,n){"use strict";var r=n(14),i=(n.n(r),n(15)),o=(n.n(i),n(16)),a=n(0),__=wp.i18n.__,l=wp.blocks.registerBlockType;embedpressObj&&embedpressObj.active_blocks&&embedpressObj.active_blocks["google-slides-block"]&&l("embedpress/google-slides-block",{title:__("Google Slides"),icon:a.h,category:"embedpress",keywords:[__("embedpress"),__("google"),__("slides")],supports:{align:["wide","full","right","left"],default:""},attributes:{url:{type:"string",default:""},iframeSrc:{type:"string",default:""}},edit:o.a,save:function(e){var t=e.attributes.iframeSrc;return wp.element.createElement("figure",{className:"ose-google-docs-presentation"},wp.element.createElement("iframe",{src:t,frameborder:"0",width:"600",height:"450",allowfullscreen:"true",mozallowfullscreen:"true",webkitallowfullscreen:"true"}))}})},function(e,t){},function(e,t){},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function o(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(2),l=n(1),c=n(3),s=n(4),u=n(0),p=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),__=wp.i18n.__,m=wp.element,d=m.Component,f=m.Fragment,h=function(e){function t(){r(this,t);var e=i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return e.switchBackToURLInput=e.switchBackToURLInput.bind(e),e.setUrl=e.setUrl.bind(e),e.onLoad=e.onLoad.bind(e),e.hideOverlay=e.hideOverlay.bind(e),e.state={editingURL:!1,url:e.props.attributes.url,fetching:!0,cannotEmbed:!1,interactive:!1},e}return o(t,e),p(t,[{key:"hideOverlay",value:function(){this.setState({interactive:!0})}},{key:"onLoad",value:function(){this.setState({fetching:!1})}},{key:"decodeHTMLEntities",value:function(e){return e&&"string"===typeof e&&(e=e.replace(/<script[^>]*>([\S\s]*?)<\/script>/gim,""),e=e.replace(/<\/?\w(?:[^"'>]|"[^"]*"|'[^']*')*>/gim,"")),e}},{key:"setUrl",value:function(e){e&&e.preventDefault();var t=this.state.url,n=this.props.setAttributes;if(n({url:t}),t&&t.match(/^http[s]?:\/\/((?:www\.)?docs\.google\.com(?:.*)?(?:document|presentation|spreadsheets|forms|drawings)\/[a-z0-9\/\?=_\-\.\,&%\$#\@\!\+]*)/i)){var r=this.decodeHTMLEntities(t),i=/google\.com(?:.+)?(document|presentation|spreadsheets|forms|drawings)/i,o=i.exec(r),a=o[1];a&&"presentation"==a?(r.match(/pub\?/i)&&(r=r.replace("/pub?","/embed?")),this.setState({editingURL:!1,cannotEmbed:!1}),n({iframeSrc:r})):this.setState({cannotEmbed:!0,editingURL:!0})}else this.setState({cannotEmbed:!0,editingURL:!0})}},{key:"switchBackToURLInput",value:function(){this.setState({editingURL:!0})}},{key:"render",value:function(){var e=this,t=this.state,n=t.url,r=t.editingURL,i=t.fetching,o=t.cannotEmbed,p=t.interactive,m=this.props.attributes.iframeSrc,d=__("Google Slides URL");return!m||r?wp.element.createElement(c.a,{label:d,onSubmit:this.setUrl,value:n,cannotEmbed:o,onChange:function(t){return e.setState({url:t.target.value})},icon:u.h,DocTitle:__("Learn more about Google slides embed"),docLink:"https://embedpress.com/docs/embed-google-slides-wordpress/"}):wp.element.createElement(f,null,i?wp.element.createElement(l.a,null):null,wp.element.createElement(s.a,{src:m,onFocus:this.hideOverlay,onLoad:this.onLoad,style:{display:i?"none":""},frameborder:"0",width:"600",height:"450"}),!p&&wp.element.createElement("div",{className:"block-library-embed__interactive-overlay",onMouseUp:this.hideOverlay}),wp.element.createElement(a.a,{showEditButton:m&&!o,switchBackToURLInput:this.switchBackToURLInput}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return!e.isSelected&&t.interactive?{interactive:!1}:null}}]),t}(d);t.a=h},function(e,t,n){"use strict";var r=n(18),i=(n.n(r),n(19)),o=(n.n(i),n(20)),a=n(0),__=wp.i18n.__,l=wp.blocks.registerBlockType;embedpressObj&&embedpressObj.active_blocks&&embedpressObj.active_blocks["google-sheets-block"]&&l("embedpress/google-sheets-block",{title:__("Google Sheets"),icon:a.g,category:"embedpress",keywords:[__("embedpress"),__("google"),__("sheets")],supports:{align:["wide","full","right","left"],default:""},attributes:{url:{type:"string",default:""},iframeSrc:{type:"string",default:""}},edit:o.a,save:function(e){var t=e.attributes.iframeSrc;return wp.element.createElement("figure",{className:"ose-google-docs-spreadsheets"},wp.element.createElement("iframe",{src:t,frameborder:"0",width:"600",height:"450",allowfullscreen:"true",mozallowfullscreen:"true",webkitallowfullscreen:"true"}))},deprecated:[{attributes:{align:{type:"string",enum:["left","center","right","wide","full"]}},save:function(e){var t=e.attributes.iframeSrc;if(t)return wp.element.createElement("div",{className:"ose-google-docs-spreadsheets"},wp.element.createElement("iframe",{src:t,frameBorder:"0",width:"600",height:"450",allowFullScreen:"true",mozallowfullscreen:"true",webkitallowfullscreen:"true"}))}}]})},function(e,t){},function(e,t){},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function o(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(2),l=n(1),c=n(3),s=n(4),u=n(0),p=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),__=wp.i18n.__,m=wp.element,d=m.Component,f=m.Fragment,h=function(e){function t(){r(this,t);var e=i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return e.switchBackToURLInput=e.switchBackToURLInput.bind(e),e.setUrl=e.setUrl.bind(e),e.onLoad=e.onLoad.bind(e),e.hideOverlay=e.hideOverlay.bind(e),e.state={editingURL:!1,url:e.props.attributes.url,fetching:!0,cannotEmbed:!1,interactive:!1},e}return o(t,e),p(t,[{key:"hideOverlay",value:function(){this.setState({interactive:!0})}},{key:"onLoad",value:function(){this.setState({fetching:!1})}},{key:"decodeHTMLEntities",value:function(e){return e&&"string"===typeof e&&(e=e.replace(/<script[^>]*>([\S\s]*?)<\/script>/gim,""),e=e.replace(/<\/?\w(?:[^"'>]|"[^"]*"|'[^']*')*>/gim,"")),e}},{key:"setUrl",value:function(e){e&&e.preventDefault();var t=this.state.url,n=this.props.setAttributes;if(n({url:t}),t&&t.match(/^http[s]?:\/\/((?:www\.)?docs\.google\.com(?:.*)?(?:document|presentation|spreadsheets|forms|drawings)\/[a-z0-9\/\?=_\-\.\,&%\$#\@\!\+]*)/i)){var r=this.decodeHTMLEntities(t),i=/google\.com(?:.+)?(document|presentation|spreadsheets|forms|drawings)/i,o=i.exec(r),a=o[1];if(a&&"spreadsheets"==a){if(r.indexOf("?")>-1){var l=r.split("?");if(l=l[1],l=l.split("&"),console.log(l),l.length>0){var c=!1,s=!1;l.map(function(e){e.indexOf("widget=")?s=!0:e.indexOf("headers=")&&(c=!0)}),s||(r+="&widget=true"),c||(r+="&headers=false")}}else r+="?widget=true&headers=false";this.setState({editingURL:!1,cannotEmbed:!1}),n({iframeSrc:r})}else this.setState({cannotEmbed:!0,editingURL:!0})}else this.setState({cannotEmbed:!0,editingURL:!0})}},{key:"switchBackToURLInput",value:function(){this.setState({editingURL:!0})}},{key:"render",value:function(){var e=this,t=this.state,n=t.url,r=t.editingURL,i=t.fetching,o=t.cannotEmbed,p=t.interactive,m=this.props.attributes.iframeSrc,d=__("Google Sheets URL");return!m||r?wp.element.createElement(c.a,{label:d,onSubmit:this.setUrl,value:n,cannotEmbed:o,onChange:function(t){return e.setState({url:t.target.value})},icon:u.g,DocTitle:__("Learn more about Google sheet embed"),docLink:"https://embedpress.com/docs/embed-google-sheets-wordpress/"}):wp.element.createElement(f,null,i?wp.element.createElement(l.a,null):null,wp.element.createElement(s.a,{src:m,onFocus:this.hideOverlay,onLoad:this.onLoad,style:{display:i?"none":""},frameborder:"0",width:"600",height:"450"}),!p&&wp.element.createElement("div",{className:"block-library-embed__interactive-overlay",onMouseUp:this.hideOverlay}),wp.element.createElement(a.a,{showEditButton:m&&!o,switchBackToURLInput:this.switchBackToURLInput}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return!e.isSelected&&t.interactive?{interactive:!1}:null}}]),t}(d);t.a=h},function(e,t,n){"use strict";var r=n(22),i=(n.n(r),n(23)),o=(n.n(i),n(24)),a=n(0),__=wp.i18n.__,l=wp.blocks.registerBlockType;embedpressObj&&embedpressObj.active_blocks&&embedpressObj.active_blocks["google-forms-block"]&&l("embedpress/google-forms-block",{title:__("Google Forms"),icon:a.e,category:"embedpress",keywords:[__("embedpress"),__("google"),__("forms")],supports:{align:["wide","full","right","left"],default:""},attributes:{url:{type:"string",default:""},iframeSrc:{type:"string",default:""}},edit:o.a,save:function(e){var t=e.attributes.iframeSrc;return wp.element.createElement("figure",{className:"ose-google-docs-forms"},wp.element.createElement("iframe",{src:t,frameborder:"0",width:"600",height:"450",allowfullscreen:"true",mozallowfullscreen:"true",webkitallowfullscreen:"true"}))}})},function(e,t){},function(e,t){},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function o(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(2),l=n(1),c=n(3),s=n(4),u=n(0),p=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),__=wp.i18n.__,m=wp.element,d=m.Component,f=m.Fragment,h=(wp.components.Disabled,function(e){function t(){r(this,t);var e=i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return e.switchBackToURLInput=e.switchBackToURLInput.bind(e),e.setUrl=e.setUrl.bind(e),e.onLoad=e.onLoad.bind(e),e.state={editingURL:!1,url:e.props.attributes.url,fetching:!0,cannotEmbed:!1,interactive:!1},e}return o(t,e),p(t,[{key:"hideOverlay",value:function(){this.setState({interactive:!0})}},{key:"onLoad",value:function(){this.setState({fetching:!1})}},{key:"decodeHTMLEntities",value:function(e){return e&&"string"===typeof e&&(e=e.replace(/<script[^>]*>([\S\s]*?)<\/script>/gim,""),e=e.replace(/<\/?\w(?:[^"'>]|"[^"]*"|'[^']*')*>/gim,"")),e}},{key:"setUrl",value:function(e){e&&e.preventDefault();var t=this.state.url,n=this.props.setAttributes;if(n({url:t}),t&&t.match(/^http[s]?:\/\/((?:www\.)?docs\.google\.com(?:.*)?(?:document|presentation|spreadsheets|forms|drawings)\/[a-z0-9\/\?=_\-\.\,&%\$#\@\!\+]*)/i)){var r=this.decodeHTMLEntities(t),i=/google\.com(?:.+)?(document|presentation|spreadsheets|forms|drawings)/i,o=i.exec(r),a=o[1];a&&"forms"==a?(this.setState({editingURL:!1,cannotEmbed:!1}),n({iframeSrc:r})):this.setState({cannotEmbed:!0,editingURL:!0})}else this.setState({cannotEmbed:!0,editingURL:!0})}},{key:"switchBackToURLInput",value:function(){this.setState({editingURL:!0})}},{key:"render",value:function(){var e=this,t=this.state,n=t.url,r=t.editingURL,i=t.fetching,o=t.cannotEmbed,p=t.interactive,m=this.props.attributes.iframeSrc,d=__("Google Forms URL");return!m||r?wp.element.createElement(c.a,{label:d,onSubmit:this.setUrl,value:n,cannotEmbed:o,onChange:function(t){return e.setState({url:t.target.value})},icon:u.e,DocTitle:__("Learn more about Google forms embed"),docLink:"https://embedpress.com/docs/embed-google-forms-wordpress/"}):wp.element.createElement(f,null,i?wp.element.createElement(l.a,null):null,wp.element.createElement(s.a,{src:m,onFocus:this.hideOverlay,onLoad:this.onLoad,style:{display:i?"none":""},frameborder:"0",width:"600",height:"450"}),!p&&wp.element.createElement("div",{className:"block-library-embed__interactive-overlay",onMouseUp:this.hideOverlay}),wp.element.createElement(a.a,{showEditButton:m&&!o,switchBackToURLInput:this.switchBackToURLInput}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return!e.isSelected&&t.interactive?{interactive:!1}:null}}]),t}(d));t.a=h},function(e,t,n){"use strict";var r=n(26),i=(n.n(r),n(27)),o=(n.n(i),n(28)),a=n(0),__=wp.i18n.__,l=wp.blocks.registerBlockType;embedpressObj&&embedpressObj.active_blocks&&embedpressObj.active_blocks["google-drawings-block"]&&l("embedpress/google-drawings-block",{title:__("Google Drawings"),icon:a.d,category:"embedpress",keywords:[__("embedpress"),__("google"),__("drawings")],supports:{align:["wide","full","right","left"],default:""},attributes:{url:{type:"string",default:""},iframeSrc:{type:"string",default:""}},edit:o.a,save:function(e){var t=e.attributes.iframeSrc;return wp.element.createElement("figure",{className:"ose-google-docs-drawings"},wp.element.createElement("img",{src:t,width:"960",height:"720"}))}})},function(e,t){},function(e,t){},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function o(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(2),l=n(1),c=n(3),s=n(0),u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),__=wp.i18n.__,p=wp.element,m=p.Component,d=p.Fragment,f=function(e){function t(){r(this,t);var e=i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return e.switchBackToURLInput=e.switchBackToURLInput.bind(e),e.setUrl=e.setUrl.bind(e),e.onLoad=e.onLoad.bind(e),e.state={editingURL:!1,url:e.props.attributes.url,fetching:!0,cannotEmbed:!1},e}return o(t,e),u(t,[{key:"onLoad",value:function(){this.setState({fetching:!1})}},{key:"decodeHTMLEntities",value:function(e){return e&&"string"===typeof e&&(e=e.replace(/<script[^>]*>([\S\s]*?)<\/script>/gim,""),e=e.replace(/<\/?\w(?:[^"'>]|"[^"]*"|'[^']*')*>/gim,"")),e}},{key:"setUrl",value:function(e){e&&e.preventDefault();var t=this.state.url,n=this.props.setAttributes;if(n({url:t}),t&&t.match(/^http[s]?:\/\/((?:www\.)?docs\.google\.com(?:.*)?(?:document|presentation|spreadsheets|forms|drawings)\/[a-z0-9\/\?=_\-\.\,&%\$#\@\!\+]*)/i)){var r=this.decodeHTMLEntities(t),i=/google\.com(?:.+)?(document|presentation|spreadsheets|forms|drawings)/i,o=i.exec(r),a=o[1];a&&"drawings"==a?(this.setState({editingURL:!1,cannotEmbed:!1}),n({iframeSrc:r})):this.setState({cannotEmbed:!0,editingURL:!0})}else this.setState({cannotEmbed:!0,editingURL:!0})}},{key:"switchBackToURLInput",value:function(){this.setState({editingURL:!0})}},{key:"render",value:function(){var e=this,t=this.state,n=t.url,r=t.editingURL,i=t.fetching,o=t.cannotEmbed,u=this.props.attributes.iframeSrc,p=__("Google Drawings URL (Get your link from File -> Publish to the web -> Link)");return!u||r?wp.element.createElement(c.a,{label:p,onSubmit:this.setUrl,value:n,cannotEmbed:o,onChange:function(t){return e.setState({url:t.target.value})},icon:s.d,DocTitle:__("Learn more about Google drawing embed"),docLink:"https://embedpress.com/docs/embed-google-drawings-wordpress/"}):wp.element.createElement(d,null,i?wp.element.createElement(l.a,null):null,wp.element.createElement("img",{src:u,onLoad:this.onLoad,style:{display:i?"none":""},width:"960",height:"720"}),wp.element.createElement(a.a,{showEditButton:u&&!o,switchBackToURLInput:this.switchBackToURLInput}))}}]),t}(m);t.a=f},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var i=n(30),o=(n.n(i),n(31)),a=(n.n(o),n(32)),l=n(0),__=wp.i18n.__,c=wp.blocks.registerBlockType;embedpressObj&&embedpressObj.active_blocks&&embedpressObj.active_blocks["google-maps-block"]&&c("embedpress/google-maps-block",{title:__("Google Maps"),icon:l.f,category:"embedpress",keywords:[__("embedpress"),__("google"),__("maps")],supports:{align:["wide","full","right","left"],default:""},attributes:{url:{type:"string",default:""},iframeSrc:{type:"string",default:""}},edit:a.a,save:function(e){var t=e.attributes.iframeSrc;return wp.element.createElement("figure",{className:"ose-google-maps"},wp.element.createElement("iframe",r({src:t,frameborder:"0",width:"600",height:"450"},"frameborder","0")))}})},function(e,t){},function(e,t){},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function o(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(2),l=n(1),c=n(3),s=n(4),u=n(0),p=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),__=wp.i18n.__,m=wp.element,d=m.Component,f=m.Fragment,h=function(e){function t(){r(this,t);var e=i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return e.switchBackToURLInput=e.switchBackToURLInput.bind(e),e.setUrl=e.setUrl.bind(e),e.onLoad=e.onLoad.bind(e),e.state={editingURL:!1,url:e.props.attributes.url,fetching:!0,cannotEmbed:!1,interactive:!1},e}return o(t,e),p(t,[{key:"hideOverlay",value:function(){this.setState({interactive:!0})}},{key:"onLoad",value:function(){this.setState({fetching:!1})}},{key:"decodeHTMLEntities",value:function(e){return e&&"string"===typeof e&&(e=e.replace(/<script[^>]*>([\S\s]*?)<\/script>/gim,""),e=e.replace(/<\/?\w(?:[^"'>]|"[^"]*"|'[^']*')*>/gim,"")),e}},{key:"setUrl",value:function(e){e&&e.preventDefault();var t=this.state.url,n=this.props.setAttributes;if(n({url:t}),t&&t.match(/^http[s]?:\/\/(?:(?:(?:www\.|maps\.)?(?:google\.com?))|(?:goo\.gl))(?:\.[a-z]{2})?\/(?:maps\/)?(?:place\/)?(?:[a-z0-9\/%+\-_]*)?([a-z0-9\/%,+\-_=!:@\.&*\$#?\']*)/i)){var r=this.decodeHTMLEntities(t);if(t.match("~(maps/embed|output=embed)~i"));else{var i=/@(-?[0-9\.]+,-?[0-9\.]+).+,([0-9\.]+[a-z])/i,o=i.exec(r);o&&o.length>1&&o[1]&&o[2]?r="https://maps.google.com/maps?hl=en&ie=UTF8&ll="+o[1]+"&spn="+o[1]+"&t=m&z="+Math.round(parseInt(o[2]))+"&output=embed":this.setState({cannotEmbed:!0,editingURL:!0})}this.setState({editingURL:!1,cannotEmbed:!1}),n({iframeSrc:r})}else this.setState({cannotEmbed:!0,editingURL:!0})}},{key:"switchBackToURLInput",value:function(){this.setState({editingURL:!0})}},{key:"render",value:function(){var e=this,t=this.state,n=t.url,r=t.editingURL,i=t.fetching,o=t.cannotEmbed,p=t.interactive,m=this.props.attributes.iframeSrc,d=__("Google Maps URL");return!m||r?wp.element.createElement(c.a,{label:d,onSubmit:this.setUrl,value:n,cannotEmbed:o,onChange:function(t){return e.setState({url:t.target.value})},icon:u.f,DocTitle:__("Learn more about Google map embed"),docLink:"https://embedpress.com/docs/embed-google-maps-wordpress/"}):wp.element.createElement(f,null,i?wp.element.createElement(l.a,null):null,wp.element.createElement(s.a,{src:m,onFocus:this.hideOverlay,onLoad:this.onLoad,style:{display:i?"none":""},frameborder:"0",width:"600",height:"450"}),!p&&wp.element.createElement("div",{className:"block-library-embed__interactive-overlay",onMouseUp:this.hideOverlay}),wp.element.createElement(a.a,{showEditButton:m&&!o,switchBackToURLInput:this.switchBackToURLInput}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return!e.isSelected&&t.interactive?{interactive:!1}:null}}]),t}(d);t.a=h},function(e,t,n){"use strict";var r=n(34),i=(n.n(r),n(35)),o=(n.n(i),n(36)),a=n(0),l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},__=wp.i18n.__,c=wp.blocks.registerBlockType;embedpressObj&&embedpressObj.active_blocks&&embedpressObj.active_blocks["twitch-block"]&&c("embedpress/twitch-block",{title:__("Twitch"),icon:a.i,category:"embedpress",keywords:[__("embedpress"),__("twitch")],supports:{align:["wide","full","right","left"],default:""},attributes:{url:{type:"string",default:""},iframeSrc:{type:"string",default:""},attrs:{type:"string",default:""}},edit:o.a,save:function(e){var t=e.attributes,n=t.iframeSrc,r=t.attrs,i=n+"&parent="+embedpressObj.twitch_host;return wp.element.createElement("figure",{className:"ose-twitch-presentation"},wp.element.createElement("iframe",l({src:i},r,{frameborder:"0",width:"600",height:"450"})))}})},function(e,t){},function(e,t){},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function o(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(2),l=n(1),c=n(3),s=n(4),u=n(0),p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},m=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),__=wp.i18n.__,d=wp.element,f=d.Component,h=d.Fragment,b=function(e){function t(){r(this,t);var e=i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return e.switchBackToURLInput=e.switchBackToURLInput.bind(e),e.setUrl=e.setUrl.bind(e),e.onLoad=e.onLoad.bind(e),e.hideOverlay=e.hideOverlay.bind(e),e.state={editingURL:!1,url:e.props.attributes.url,fetching:!0,cannotEmbed:!1,interactive:!1},e}return o(t,e),m(t,[{key:"hideOverlay",value:function(){this.setState({interactive:!0})}},{key:"onLoad",value:function(){this.setState({fetching:!1})}},{key:"decodeHTMLEntities",value:function(e){return e&&"string"===typeof e&&(e=e.replace(/<script[^>]*>([\S\s]*?)<\/script>/gim,""),e=e.replace(/<\/?\w(?:[^"'>]|"[^"]*"|'[^']*')*>/gim,"")),e}},{key:"setUrl",value:function(e){e&&e.preventDefault();var t=this.state.url,n=this.props.setAttributes;n({url:t});var r=/http[s]?:\/\/(?:www\.|clips\.)twitch\.tv\/([0-9a-zA-Z\-\_]+)\/?(chat\/?$|[0-9a-z\-\_]*)?/;if(t&&t.match(r)){var i=this.decodeHTMLEntities(t),o=r.exec(i),a=o[1];console.log(a);var l,c="channel";switch(t.indexOf("clips.twitch.tv")>-1?c="clip":t.indexOf("/videos/")>-1?c="video":t.indexOf("#/chat$#")>-1&&(c="chat"),console.log(c),c){case"channel":i="https://player.twitch.tv/?channel="+a,l={scrolling:"no",frameborder:"0",allowfullscreen:"true"};break;case"clip":i="https://clips.twitch.tv/embed?clip="+a+"&autoplay=false",l={scrolling:"no",frameborder:"0",allowfullscreen:"true"};break;case"video":a=o[2],i="https://player.twitch.tv/?video="+a,l={scrolling:"no",frameborder:"0",allowfullscreen:"true"};break;case"chat":i="http://www.twitch.tv/embed/"+a+"/chat",l={scrolling:"yes",frameborder:"0",allowfullscreen:"true",id:"'"+a+"'"}}this.setState({editingURL:!1,cannotEmbed:!1}),n({iframeSrc:i,attrs:l})}else this.setState({cannotEmbed:!0,editingURL:!0})}},{key:"switchBackToURLInput",value:function(){this.setState({editingURL:!0})}},{key:"render",value:function(){var e=this,t=this.state,n=t.url,r=t.editingURL,i=t.fetching,o=t.cannotEmbed,m=t.interactive,d=this.props.attributes,f=d.iframeSrc,b=d.attrs,w=__("Twitch URL");if(!f||r)return wp.element.createElement(c.a,{label:w,onSubmit:this.setUrl,value:n,cannotEmbed:o,onChange:function(t){return e.setState({url:t.target.value})},icon:u.i,DocTitle:__("Learn more about twitch embed"),docLink:"https://embedpress.com/docs/embed-twitch-streams-chat/"});var y=f+"&parent="+embedpressObj.twitch_host;return wp.element.createElement(h,null,i?wp.element.createElement(l.a,null):null,wp.element.createElement(s.a,p({src:y},b,{onLoad:this.onLoad,style:{display:i?"none":""},onFocus:this.hideOverlay,width:"600",height:"450"})),!m&&wp.element.createElement("div",{className:"block-library-embed__interactive-overlay",onMouseUp:this.hideOverlay}),wp.element.createElement(a.a,{showEditButton:f&&!o,switchBackToURLInput:this.switchBackToURLInput}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return!e.isSelected&&t.interactive?{interactive:!1}:null}}]),t}(f);t.a=b},function(e,t,n){"use strict";var r=n(38),i=(n.n(r),n(39)),o=(n.n(i),n(40)),a=n(0),__=wp.i18n.__,l=wp.blocks.registerBlockType;embedpressObj&&embedpressObj.active_blocks&&embedpressObj.active_blocks["wistia-block"]&&l("embedpress/wistia-block",{title:__("Wistia"),icon:a.j,category:"embedpress",keywords:[__("embedpress"),__("wistia")],supports:{align:["wide","full","right","left"],default:""},edit:o.a,save:function(e){return null},deprecated:[{attributes:{url:{type:"string",default:""},iframeSrc:{type:"string",default:""}},edit:o.a,save:function(e){var t=e.attributes.iframeSrc;return wp.element.createElement("div",{class:"ose-wistia"},wp.element.createElement("iframe",{src:t,allowtransparency:"true",frameborder:"0",class:"wistia_embed",name:"wistia_embed",width:"600",height:"330"}))}}]})},function(e,t){},function(e,t){},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function o(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(2),l=n(1),c=n(3),s=n(4),u=n(0),p=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),__=wp.i18n.__,m=wp.element,d=m.Component,f=m.Fragment,h=function(e){function t(){r(this,t);var e=i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return e.switchBackToURLInput=e.switchBackToURLInput.bind(e),e.setUrl=e.setUrl.bind(e),e.onLoad=e.onLoad.bind(e),e.hideOverlay=e.hideOverlay.bind(e),e.state={editingURL:!1,url:e.props.attributes.url,fetching:!0,cannotEmbed:!1,interactive:!1,mediaId:null},e.setUrl(),e}return o(t,e),p(t,[{key:"hideOverlay",value:function(){this.setState({interactive:!0})}},{key:"componentDidMount",value:function(){if(this.props.attributes.url){var e=this.props.attributes.url.match(/medias\/(.*)/),t=e[1];this.setState(Object.assign({},this.state,{mediaId:t}))}}},{key:"onLoad",value:function(){if(this.setState({fetching:!1}),embedpressObj.wisita_options){var e=Object.assign({},this.state);setTimeout(function(){var e=document.createElement("script");e.src="https://fast.wistia.com/assets/external/E-v1.js",e.charset="ISO-8859-1",document.body.appendChild(e)},100),setTimeout(function(){var t=document.createElement("script");t.type="text/javascript",t.innerHTML="window.pp_embed_wistia_labels = "+embedpressObj.wistia_labels,document.body.appendChild(t),t=document.createElement("script"),t.type="text/javascript",t.innerHTML='wistiaEmbed = Wistia.embed( "'+e.mediaId+'", '+embedpressObj.wisita_options+" );",document.body.appendChild(t)},400)}}},{key:"decodeHTMLEntities",value:function(e){return e&&"string"===typeof e&&(e=e.replace(/<script[^>]*>([\S\s]*?)<\/script>/gim,""),e=e.replace(/<\/?\w(?:[^"'>]|"[^"]*"|'[^']*')*>/gim,"")),e}},{key:"setUrl",value:function(e){e&&e.preventDefault();var t=this.state.url,n=this.props.setAttributes;if(n({url:t}),t&&(t.match(/^http[s]?:\/\/(?:www\.)?wistia\.com\/medias/i)||t.match(/^http[s]?:\/\/(?:www\.)?fast\/.wistia\.com\/embed\/medias/i.jsonp))){var r=t.match(/medias\/(.*)/),i=r[1],o="//fast.wistia.net/embed/iframe/"+i;this.setState({editingURL:!1,cannotEmbed:!1,mediaId:i}),n({iframeSrc:o})}else this.setState({cannotEmbed:!0,editingURL:!0})}},{key:"switchBackToURLInput",value:function(){this.setState({editingURL:!0})}},{key:"render",value:function(){var e=this,t=this.state,n=t.url,r=t.editingURL,i=t.fetching,o=t.cannotEmbed,p=t.interactive,m=this.props.attributes.iframeSrc,d=__("Wistia URL");return!m||r?wp.element.createElement(c.a,{label:d,onSubmit:this.setUrl,value:n,cannotEmbed:o,onChange:function(t){return e.setState({url:t.target.value})},icon:u.j,DocTitle:__("Learn more about Wistia embed"),docLink:"https://embedpress.com/docs/embed-wistia-videos-wordpress/"}):wp.element.createElement(f,null,i?wp.element.createElement(l.a,null):null,wp.element.createElement("div",{className:"ose-wistia",id:"wistia_"+this.state.mediaId},wp.element.createElement(s.a,{src:m,onFocus:this.hideOverlay,onLoad:this.onLoad,style:{display:i?"none":""},frameborder:"0",width:"600",height:"330"})),!p&&wp.element.createElement("div",{className:"block-library-embed__interactive-overlay",onMouseUp:this.hideOverlay}),wp.element.createElement(a.a,{showEditButton:m&&!o,switchBackToURLInput:this.switchBackToURLInput}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return!e.isSelected&&t.interactive?{interactive:!1}:null}}]),t}(d);t.a=h},function(e,t,n){"use strict";var r=n(42),i=(n.n(r),n(43)),o=(n.n(i),n(44)),a=n(0),__=wp.i18n.__,l=wp.blocks.registerBlockType;embedpressObj&&embedpressObj.active_blocks&&embedpressObj.active_blocks["youtube-block"]&&l("embedpress/youtube-block",{title:__("YouTube"),icon:a.k,category:"embedpress",keywords:[__("embedpress"),__("youtube")],supports:{align:["wide","full","right","left"],default:""},edit:o.a,save:function(){return null}})},function(e,t){},function(e,t){},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function o(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(2),l=n(1),c=n(3),s=n(4),u=n(0),p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},m=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),__=wp.i18n.__,d=wp.element,f=d.Component,h=d.Fragment,b=function(e){function t(){r(this,t);var e=i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return e.switchBackToURLInput=e.switchBackToURLInput.bind(e),e.setUrl=e.setUrl.bind(e),e.onLoad=e.onLoad.bind(e),e.hideOverlay=e.hideOverlay.bind(e),e.state={editingURL:!1,url:e.props.attributes.url,fetching:!0,cannotEmbed:!1,interactive:!1},e}return o(t,e),m(t,[{key:"hideOverlay",value:function(){this.setState({interactive:!0})}},{key:"componentWillMount",value:function(){this.state.url&&this.setUrl()}},{key:"onLoad",value:function(){this.setState({fetching:!1})}},{key:"decodeHTMLEntities",value:function(e){return e&&"string"===typeof e&&(e=e.replace(/<script[^>]*>([\S\s]*?)<\/script>/gim,""),e=e.replace(/<\/?\w(?:[^"'>]|"[^"]*"|'[^']*')*>/gim,"")),e}},{key:"setUrl",value:function(e){e&&e.preventDefault();var t=this.state.url,n=this.props.setAttributes;n({url:t});var r=t.match(/^(?:https?:\/\/)?(?:www\.)?(?:youtu\.be\/|youtube\.com\/(?:embed\/|v\/|watch\?v=|watch\?.+&v=))((\w|-){11})(?:\S+)?$/);if(t&&r){var i=r[1],o="https://www.youtube.com/embed/"+i,a=new URL(o);if("undefined"!==typeof embedpressProObj)for(var l in embedpressProObj.youtubeParams)a.searchParams.set(l,embedpressProObj.youtubeParams[l]);this.setState({editingURL:!1,cannotEmbed:!1}),n({iframeSrc:a.href,mediaId:i})}else this.setState({cannotEmbed:!0,editingURL:!0})}},{key:"switchBackToURLInput",value:function(){this.setState({editingURL:!0})}},{key:"render",value:function(){var e=this,t=this.state,n=t.url,r=t.editingURL,i=t.fetching,o=t.cannotEmbed,m=t.interactive,d=this.props.attributes,f=d.iframeSrc,b=d.attrs,w=__("YouTube URL");return!f||r?wp.element.createElement(c.a,{label:w,onSubmit:this.setUrl,value:n,cannotEmbed:o,onChange:function(t){return e.setState({url:t.target.value})},icon:u.k,DocTitle:__("Learn More About YouTube Embed"),docLink:"https://embedpress.com/docs/embed-youtube-wordpress/"}):wp.element.createElement(h,null,i?wp.element.createElement(l.a,null):null,wp.element.createElement(s.a,p({src:f},b,{onLoad:this.onLoad,style:{display:i?"none":""},width:"640",onFocus:this.hideOverlay,height:"450"})),!m&&wp.element.createElement("div",{className:"block-library-embed__interactive-overlay",onMouseUp:this.hideOverlay}),wp.element.createElement(a.a,{showEditButton:f&&!o,switchBackToURLInput:this.switchBackToURLInput}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return!e.isSelected&&t.interactive?{interactive:!1}:null}}]),t}(f);t.a=b},function(e,t,n){"use strict";var r=n(46),i=(n.n(r),n(47)),o=(n.n(i),n(48)),a=n(0),l=n(6),__=wp.i18n.__,c=wp.blocks.registerBlockType;embedpressObj&&embedpressObj.active_blocks&&embedpressObj.active_blocks.document&&c("embedpress/document",{title:__("Document"),icon:a.a,category:"embedpress",keywords:[__("embedpress"),__("pdf"),__("doc"),__("ppt")],supports:{align:["wide","full","right","left"],default:""},attributes:{id:{type:"string"},href:{type:"string"},powered_by:{type:"boolean",default:!0},width:{type:"number",default:600},height:{type:"number",default:600},fileName:{type:"string"},mime:{type:"string"}},edit:o.a,save:function(e){var t=e.attributes,n=t.href,r=t.mime,i=t.id,o=t.width,a=t.height,c=t.powered_by,s="//view.officeapps.live.com/op/embed.aspx?src="+n;return wp.element.createElement("div",{className:"embedpress-document-embed ep-doc-"+i,style:{height:a,width:o}},"application/pdf"===r&&wp.element.createElement("div",{style:{height:a,width:o},className:"embedpress-embed-document-pdf "+i,"data-emid":i,"data-emsrc":n}),"application/pdf"!==r&&wp.element.createElement("iframe",{style:{height:a,width:o},src:s,mozallowfullscreen:"true",webkitallowfullscreen:"true"}),c&&wp.element.createElement("p",{className:"embedpress-el-powered"},"Powered By EmbedPress"),embedpressObj.embedpress_pro&&wp.element.createElement(l.a,{id:i}))}})},function(e,t){},function(e,t){},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function o(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(4),l=n(6),c=n(1),s=n(0),u=function(){function e(e,t){var n=[],_n=!0,r=!1,i=void 0;try{for(var o,a=e[Symbol.iterator]();!(_n=(o=a.next()).done)&&(n.push(o.value),!t||n.length!==t);_n=!0);}catch(e){r=!0,i=e}finally{try{!_n&&a.return&&a.return()}finally{if(r)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),p=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),__=wp.i18n.__,m=wp.blob,d=m.getBlobByURL,f=m.isBlobURL,h=m.revokeBlobURL,b=wp.blockEditor,w=b.BlockIcon,y=b.MediaPlaceholder,v=b.InspectorControls,g=wp.element,E=g.Component,L=g.Fragment,k=wp.components,_=k.RangeControl,O=k.PanelBody,S=k.ExternalLink,U=k.ToggleControl,j=["application/pdf","application/msword","application/vnd.ms-powerpoint","application/vnd.ms-excel","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/vnd.openxmlformats-officedocument.presentationml.presentation"],R=function(e){function t(){r(this,t);var e=i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return e.onSelectFile=e.onSelectFile.bind(e),e.onUploadError=e.onUploadError.bind(e),e.onLoad=e.onLoad.bind(e),e.hideOverlay=e.hideOverlay.bind(e),e.state={hasError:!1,fetching:!1,interactive:!1,loadPdf:!0},e}return o(t,e),p(t,[{key:"componentDidMount",value:function(){var e=this,t=this.props,n=t.attributes,r=t.mediaUpload,i=t.noticeOperations,o=n.href;if(f(o)){r({filesList:[d(o)],onFileChange:function(t){var n=u(t,1),r=n[0];return e.onSelectFile(r)},onError:function(t){e.setState({hasError:!0}),i.createErrorNotice(t)}}),h(o)}this.props.attributes.href&&"application/pdf"===this.props.attributes.mime&&this.state.loadPdf&&(this.setState({loadPdf:!1}),PDFObject.embed(this.props.attributes.href,"."+this.props.attributes.id))}},{key:"componentDidUpdate",value:function(e){e.isSelected&&!this.props.isSelected&&this.setState({showCopyConfirmation:!1})}},{key:"hideOverlay",value:function(){this.setState({interactive:!0})}},{key:"onLoad",value:function(){this.setState({fetching:!1})}},{key:"onSelectFile",value:function(e){e&&e.url&&(this.setState({hasError:!1}),this.props.setAttributes({href:e.url,fileName:e.title,id:"embedpress-pdf-"+Date.now(),mime:e.mime}),embedpressObj.embedpress_pro&&this.props.setAttributes({powered_by:!1}),"application/pdf"===e.mime&&(this.setState({loadPdf:!1}),PDFObject.embed(e.url,"."+this.props.attributes.id)))}},{key:"onUploadError",value:function(e){var t=this.props.noticeOperations;t.removeAllNotices(),t.createErrorNotice(e)}},{key:"render",value:function(){var e=this.props,t=e.attributes,n=e.noticeUI,r=e.setAttributes,i=t.href,o=t.mime,u=t.id,p=t.width,m=t.height,d=t.powered_by,f=this.state,h=f.hasError,b=f.interactive,g=f.fetching,E=f.loadPdf;if(!i||h)return wp.element.createElement("div",{className:"embedpress-document-editmode"},wp.element.createElement(y,{icon:wp.element.createElement(w,{icon:s.a}),labels:{title:__("Document"),instructions:__("Upload a file or pick one from your media library for embed.")},onSelect:this.onSelectFile,notices:n,allowedTypes:j,onError:this.onUploadError},wp.element.createElement("div",{style:{width:"100%"},className:"components-placeholder__learn-more embedpress-doc-link"},wp.element.createElement(S,{href:"https://embedpress.com/docs/embed-docuemnt/"},"Learn more about Embedded document "))));var k="//view.officeapps.live.com/op/embed.aspx?src="+i;return wp.element.createElement(L,null,g&&"application/pdf"!==o?wp.element.createElement(c.a,null):null,wp.element.createElement("div",{className:"embedpress-document-embed ep-doc-"+u,style:{height:m,width:p}},"application/pdf"===o&&wp.element.createElement("div",{style:{height:m,width:p},className:"embedpress-embed-document-pdf "+u,"data-emid":u,"data-emsrc":i}),"application/pdf"!==o&&wp.element.createElement(a.a,{onMouseUponMouseUp:this.hideOverlay,style:{height:m,width:p,display:g||!E?"none":""},onLoad:this.onLoad,src:k}),!b&&wp.element.createElement("div",{className:"block-library-embed__interactive-overlay",onMouseUp:this.hideOverlay}),d&&wp.element.createElement("p",{className:"embedpress-el-powered"},"Powered By EmbedPress"),!g&&wp.element.createElement(l.a,{id:u})),wp.element.createElement(v,{key:"inspector"},wp.element.createElement(O,{title:__("Embed Size","embedpress")},wp.element.createElement(_,{label:__("Width","embedpress"),value:p,onChange:function(e){return r({width:e})},max:1e3,min:1}),wp.element.createElement(_,{label:__("Height","embedpress"),value:m,onChange:function(e){return r({height:e})},max:1e3,min:1}),wp.element.createElement(U,{label:__("Powered By"),onChange:function(e){return r({powered_by:e})},checked:d}))))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return!e.isSelected&&t.interactive?{interactive:!1}:null}}]),t}(E);t.a=R},function(e,t,n){"use strict";var r=n(50),i=(n.n(r),n(51)),o=(n.n(i),n(52)),a=n(0),__=wp.i18n.__,l=wp.blocks.registerBlockType;embedpressObj&&embedpressObj.active_blocks&&embedpressObj.active_blocks.embedpress&&l("embedpress/embedpress",{title:__("EmbedPress"),icon:a.b,category:"embedpress",keywords:["embedpress","embed","google","youtube","docs"],supports:{align:["right","left","center"],default:"center",lightBlockWrapper:!0},attributes:{url:{type:"string",default:""},embedHTML:{type:"string",default:""},height:{type:"string",default:"450"},width:{type:"string",default:"600"},editingURL:{type:"boolean",default:!1},fetching:{type:"boolean",default:!1},cannotEmbed:{type:"boolean",default:!1},interactive:{type:"boolean",default:!1},align:{type:"string",default:"center"}},edit:o.a,save:function(){return null}})},function(e,t){},function(e,t){},function(e,t,n){"use strict";function r(e){return function(){var t=e.apply(this,arguments);return new Promise(function(e,n){function r(i,o){try{var a=t[i](o),l=a.value}catch(e){return void n(e)}if(!a.done)return Promise.resolve(l).then(function(e){r("next",e)},function(e){r("throw",e)});e(l)}return r("next")})}}function i(e){function t(){m({editingURL:!0})}function n(e){var t=this;if(e&&e.preventDefault(),h){m({fetching:!0});(function(){var e=r(a.a.mark(function e(n){return a.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(embedpressObj.site_url+"/wp-json/embedpress/v1/oembed/embedpress?url="+n+"&width="+_+"&height="+k).then(function(e){return e.json()});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},e,t)}));return function(_x){return e.apply(this,arguments)}})()(h).then(function(e){m({fetching:!1}),m(e.data&&404===e.data.status||!e.embed?{cannotEmbed:!0,editingURL:!0}:{embedHTML:e.embed,cannotEmbed:!1,editingURL:!1})})}else m({cannotEmbed:!0,fetching:!1,editingURL:!0})}var i=e.attributes,o=e.className,m=e.setAttributes,h=i.url,v=i.editingURL,g=i.fetching,E=i.cannotEmbed,L=(i.interactive,i.embedHTML),k=i.height,_=i.width,O=w?w():[];return wp.element.createElement(y,null,wp.element.createElement(b,null,wp.element.createElement(f,{title:__("Customize Embedded Link")},wp.element.createElement("p",null,__("You can adjust the width and height of embedded content.")),wp.element.createElement(d,{label:__("Width"),value:_,onChange:function(e){return m({width:e})}}),wp.element.createElement(d,{label:__("Height"),value:k,onChange:function(e){return m({height:e})}}),L&&!v&&wp.element.createElement("button",{onClick:n},__("Apply")))),(!L||v)&&!g&&wp.element.createElement("div",O,wp.element.createElement(s.a,{label:__("EmbedPress - Embed anything from 100+ sites"),onSubmit:n,value:h,cannotEmbed:E,onChange:function(e){return m({url:e.target.value})},icon:p.b,DocTitle:__("Learn more about EmbedPress"),docLink:"https://embedpress.com/docs/"})),g?wp.element.createElement("div",{className:o},wp.element.createElement(c.a,null)," "):null,L&&!v&&!g&&wp.element.createElement("figure",O,wp.element.createElement(u.a,{style:{display:g?"none":""},dangerouslySetInnerHTML:{__html:L}}),wp.element.createElement("div",{className:"block-library-embed__interactive-overlay",onMouseUp:m({interactive:!0})}),wp.element.createElement(l.a,{showEditButton:L&&!E,switchBackToURLInput:t})))}t.a=i;var o=n(53),a=n.n(o),l=n(2),c=n(1),s=n(3),u=n(56),p=n(0),__=wp.i18n.__,m=wp.components,d=m.TextControl,f=m.PanelBody,h=wp.blockEditor,b=h.InspectorControls,w=h.useBlockProps,y=wp.element.Fragment},function(e,t,n){e.exports=n(54)},function(e,t,n){var r=function(){return this}()||Function("return this")(),i=r.regeneratorRuntime&&Object.getOwnPropertyNames(r).indexOf("regeneratorRuntime")>=0,o=i&&r.regeneratorRuntime;if(r.regeneratorRuntime=void 0,e.exports=n(55),i)r.regeneratorRuntime=o;else try{delete r.regeneratorRuntime}catch(e){r.regeneratorRuntime=void 0}},function(e,t){!function(t){"use strict";function n(e,t,n,r){var o=t&&t.prototype instanceof i?t:i,a=Object.create(o.prototype),l=new d(r||[]);return a._invoke=s(e,n,l),a}function r(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}function i(){}function o(){}function a(){}function l(e){["next","throw","return"].forEach(function(t){e[t]=function(e){return this._invoke(t,e)}})}function c(e){function t(n,i,o,a){var l=r(e[n],e,i);if("throw"!==l.type){var c=l.arg,s=c.value;return s&&"object"===typeof s&&y.call(s,"__await")?Promise.resolve(s.__await).then(function(e){t("next",e,o,a)},function(e){t("throw",e,o,a)}):Promise.resolve(s).then(function(e){c.value=e,o(c)},a)}a(l.arg)}function n(e,n){function r(){return new Promise(function(r,i){t(e,n,r,i)})}return i=i?i.then(r,r):r()}var i;this._invoke=n}function s(e,t,n){var i=O;return function(o,a){if(i===U)throw new Error("Generator is already running");if(i===j){if("throw"===o)throw a;return h()}for(n.method=o,n.arg=a;;){var l=n.delegate;if(l){var c=u(l,n);if(c){if(c===R)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===O)throw i=j,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=U;var s=r(e,t,n);if("normal"===s.type){if(i=n.done?j:S,s.arg===R)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(i=j,n.method="throw",n.arg=s.arg)}}}function u(e,t){var n=e.iterator[t.method];if(n===b){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=b,u(e,t),"throw"===t.method))return R;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return R}var i=r(n,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,R;var o=i.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=b),t.delegate=null,R):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,R)}function p(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function m(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function d(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(p,this),this.reset(!0)}function f(e){if(e){var t=e[g];if(t)return t.call(e);if("function"===typeof e.next)return e;if(!isNaN(e.length)){var n=-1,r=function t(){for(;++n<e.length;)if(y.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=b,t.done=!0,t};return r.next=r}}return{next:h}}function h(){return{value:b,done:!0}}var b,w=Object.prototype,y=w.hasOwnProperty,v="function"===typeof Symbol?Symbol:{},g=v.iterator||"@@iterator",E=v.asyncIterator||"@@asyncIterator",L=v.toStringTag||"@@toStringTag",k="object"===typeof e,_=t.regeneratorRuntime;if(_)return void(k&&(e.exports=_));_=t.regeneratorRuntime=k?e.exports:{},_.wrap=n;var O="suspendedStart",S="suspendedYield",U="executing",j="completed",R={},C={};C[g]=function(){return this};var x=Object.getPrototypeOf,T=x&&x(x(f([])));T&&T!==w&&y.call(T,g)&&(C=T);var M=a.prototype=i.prototype=Object.create(C);o.prototype=M.constructor=a,a.constructor=o,a[L]=o.displayName="GeneratorFunction",_.isGeneratorFunction=function(e){var t="function"===typeof e&&e.constructor;return!!t&&(t===o||"GeneratorFunction"===(t.displayName||t.name))},_.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,a):(e.__proto__=a,L in e||(e[L]="GeneratorFunction")),e.prototype=Object.create(M),e},_.awrap=function(e){return{__await:e}},l(c.prototype),c.prototype[E]=function(){return this},_.AsyncIterator=c,_.async=function(e,t,r,i){var o=new c(n(e,t,r,i));return _.isGeneratorFunction(t)?o:o.next().then(function(e){return e.done?e.value:o.next()})},l(M),M[L]="Generator",M[g]=function(){return this},M.toString=function(){return"[object Generator]"},_.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},_.values=f,d.prototype={constructor:d,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=b,this.done=!1,this.delegate=null,this.method="next",this.arg=b,this.tryEntries.forEach(m),!e)for(var t in this)"t"===t.charAt(0)&&y.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=b)},stop:function(){this.done=!0;var e=this.tryEntries[0],t=e.completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){function t(t,r){return o.type="throw",o.arg=e,n.next=t,r&&(n.method="next",n.arg=b),!!r}if(this.done)throw e;for(var n=this,r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r],o=i.completion;if("root"===i.tryLoc)return t("end");if(i.tryLoc<=this.prev){var a=y.call(i,"catchLoc"),l=y.call(i,"finallyLoc");if(a&&l){if(this.prev<i.catchLoc)return t(i.catchLoc,!0);if(this.prev<i.finallyLoc)return t(i.finallyLoc)}else if(a){if(this.prev<i.catchLoc)return t(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return t(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&y.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=e,o.arg=t,i?(this.method="next",this.next=i.finallyLoc,R):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),R},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),m(n),R}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;m(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:f(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=b),R}}}(function(){return this}()||Function("return this")())},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function o(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(5),l=n.n(a),c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=wp.element.Component,p=function(e){function t(e){r(this,t);var n=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.myRef=React.createRef(),n}return o(t,e),s(t,[{key:"componentDidMount",value:function(){l.a.findDOMNode(this.myRef.current).addEventListener("load",this.props.onLoad)}},{key:"render",value:function(){return wp.element.createElement("div",c({ref:this.myRef},this.props))}}]),t}(u);t.a=p}]);
Gutenberg/dist/blocks.editor.build.css CHANGED
@@ -1,2 +1,2 @@
1
  .embedpress-document-editmode .components-placeholder__instructions:after{content:"\ASupported File Type: PDF, DOC, PPT, XLS etc ";white-space:pre}
2
- .wp-block-embedpress-embedpress iframe{max-width:100%}.ose-the-new-york-times iframe{min-height:500px;max-height:100%}.block-editor-block-list__layout .wp-block figure,.block-editor-block-list__layout .wp-block iframe{margin:0}@media screen and (max-width: 782px){.block-editor-block-list__layout .wp-block figure,.block-editor-block-list__layout .wp-block iframe{height:250px}}.embedpress-event .link{color:#0098ab}.embedpress-event .visibility--a11yHide{border:0;clip:rect(0 0 0 0);position:absolute;overflow:hidden;margin:-1px;padding:0;width:1px;height:1px}.embedpress-event .text--small{font-size:14px;margin:0}.embedpress-event .flex{display:-ms-flexbox;display:flex;-webkit-box-sizing:border-box;box-sizing:border-box}.embedpress-event .flex--wrap{-ms-flex-wrap:wrap;flex-wrap:wrap}.embedpress-event .flex--row{-ms-flex-align:center;align-items:center;-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:nowrap;flex-wrap:nowrap}.embedpress-event .flex-item{-ms-flex-preferred-size:0;flex-basis:0;-ms-flex-positive:1;flex-grow:1;width:auto;min-width:0;-webkit-box-sizing:border-box;box-sizing:border-box}.embedpress-event .flex-item--shrink{-ms-flex-preferred-size:auto;flex-basis:auto;-ms-flex-positive:0;flex-grow:0;-ms-flex-negative:0;flex-shrink:0;width:auto}.embedpress-event .flex--row>.flex-item:first-child{padding-left:0}.embedpress-event .text--bold{font-weight:700}.embedpress-event h1,h2,h3,h4,h5,h6{font-size:inherit}.embedpress-event .ep-event--title{font-size:32px;font-weight:700}.embedpress-event .ep-event--date{color:#757575;font-weight:400;font-size:16px}.embedpress-event .ep-event--host{margin-top:20px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;margin-bottom:20px}.ep-event--host .avatar-print{border-radius:50%;height:50px;width:50px}.embedpress-event img.avatar--person{background-image:none !important;background-repeat:no-repeat;background-position:50%;background-size:cover;border-radius:50%;-webkit-box-sizing:border-box;box-sizing:border-box;vertical-align:middle}.event-info-hosts-text{padding-left:20px;font-size:16px;font-weight:400}.embedpress-event .event-description{margin-top:20px}.text--sectionTitle{font-size:20px;line-height:28px}.ep-event--attendees{margin-top:50px}.ep-event--attendees>.flex{margin-bottom:20px}.ep-event--attendees .gridList{list-style:none;margin:0 -16px 0 0;padding:0}.ep-event--attendees .gridList-item{width:auto}.ep-event--attendees .gridList--autoHeight--has4>.gridList-item{-ms-flex:0 0 50%;flex:0 0 50%;max-width:50%}.ep-event--attendees .groupMember-name{line-height:1.2 !important}.ep-event--attendees .avatar--person{margin-bottom:15px;display:inline-block;border-radius:50%}.ep-event--attendees img.avatar-print{border-radius:50%}.ep-event--attendees .groupMember-role{font-size:12px;color:#757575;padding-top:2px;margin:0}.ep-event--attendees .groupMember{min-height:100%;min-width:128px;padding-left:8px;padding-right:8px}.embedpress-event .align--center{text-align:center}.embedpress-event .card{background:#fff;background-clip:padding-box;background-size:cover;border:1px solid rgba(46,62,72,0.12);border-radius:8px;-webkit-box-sizing:border-box;box-sizing:border-box;display:block;min-height:100%;padding:16px 16px 18px;position:relative;white-space:normal}.embedpress-event .card--hasHoverShadow{-webkit-transition:-webkit-box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1),-webkit-transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);transition:-webkit-box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1),-webkit-transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);-o-transition:box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1),transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);transition:box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1),transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);transition:box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1),transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),-webkit-box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1),-webkit-transform 0.25s cubic-bezier(0.4, 0, 0.2, 1)}.embedpress-event .ep-event-group-link{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-align:center;align-items:center;background:#ffffff;border-radius:8px;padding:20px;margin-bottom:20px;border:1px solid rgba(46,62,72,0.12)}.embedpress-event .ep-event-group--name{padding-left:20px;font-size:14px;line-height:1.45;margin:0;width:70%;word-break:break-word}.embedpress-event .ep-event-group--image{-o-object-fit:cover;object-fit:cover;width:56px;height:56px;border-radius:4px}.embedpress-event .ep-event-time-location{background:#ffffff;border-radius:8px;padding:16px 20px 0 20px;border:1px solid rgba(46,62,72,0.12)}.embedpress-event .ep-event-time-location .ep-event-datetime,.embedpress-event .ep-event-time-location .ep-event-location{padding-bottom:20px}.embedpress-event .ep-event-location .wrap--singleLine--truncate,.embedpress-event .ep-event-time-location .ep-event-datetime{font-size:15px;line-height:1.5;color:#2e3e48;font-style:normal;margin:0}.embedpress-event .ep-event-location address{font-style:normal;margin:0}.embedpress-event .ep-event-location .venueDisplay-venue-address{font-style:normal;color:#757575;margin:0}.embedpress-event .ep-event-location p{line-height:20px}.ep-event--attendees .gridList-item{-webkit-box-sizing:border-box;box-sizing:border-box;display:inline-block;font-size:1rem;margin:0;vertical-align:top;width:50%}.gridList-itemInner{-webkit-box-sizing:border-box;box-sizing:border-box;height:100%;padding:0 16px 16px 0}@media only screen and (min-width: 530px){.ep-event--attendees .gridList--autoHeight--has4>.gridList-item{-ms-flex:0 0 33.333333%;flex:0 0 33.333333%;max-width:33.333333%}}@media only screen and (min-width: 640px){.embedpress-event .card{padding:18px 18px 20px}.ep-event--attendees .gridList--autoHeight--has4>.gridList-item{-ms-flex:0 0 25%;flex:0 0 25%;max-width:25%}}
1
  .embedpress-document-editmode .components-placeholder__instructions:after{content:"\ASupported File Type: PDF, DOC, PPT, XLS etc ";white-space:pre}
2
+ .wp-block-embedpress-embedpress iframe{max-width:100%}.ose-the-new-york-times iframe{min-height:500px;max-height:100%}.block-editor-block-list__layout .wp-block figure,.block-editor-block-list__layout .wp-block iframe{margin:0}@media screen and (max-width: 782px){.block-editor-block-list__layout .wp-block figure,.block-editor-block-list__layout .wp-block iframe{height:250px}}.embedpress-event .link{color:#0098ab}.embedpress-event .visibility--a11yHide{border:0;clip:rect(0 0 0 0);position:absolute;overflow:hidden;margin:-1px;padding:0;width:1px;height:1px}.embedpress-event .text--small{font-size:14px;margin:0}.embedpress-event .flex{display:-ms-flexbox;display:flex;-webkit-box-sizing:border-box;box-sizing:border-box}.embedpress-event .flex--wrap{-ms-flex-wrap:wrap;flex-wrap:wrap}.embedpress-event .flex--row{-ms-flex-align:center;align-items:center;-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:nowrap;flex-wrap:nowrap}.embedpress-event .flex-item{-ms-flex-preferred-size:0;flex-basis:0;-ms-flex-positive:1;flex-grow:1;width:auto;min-width:0;-webkit-box-sizing:border-box;box-sizing:border-box}.embedpress-event .flex-item--shrink{-ms-flex-preferred-size:auto;flex-basis:auto;-ms-flex-positive:0;flex-grow:0;-ms-flex-negative:0;flex-shrink:0;width:auto}.embedpress-event .flex--row>.flex-item:first-child{padding-left:0}.embedpress-event .text--bold{font-weight:700}.embedpress-event h1,.embedpress-event h2,.embedpress-event h3,.embedpress-event h4,.embedpress-event h5,.embedpress-event h6{font-size:inherit}.embedpress-event .ep-event--title{font-size:32px;font-weight:700}.embedpress-event .ep-event--date{color:#757575;font-weight:400;font-size:16px}.embedpress-event .ep-event--host{margin-top:20px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;margin-bottom:20px}.ep-event--host .avatar-print{border-radius:50%;height:50px;width:50px}.embedpress-event img.avatar--person{background-image:none !important;background-repeat:no-repeat;background-position:50%;background-size:cover;border-radius:50%;-webkit-box-sizing:border-box;box-sizing:border-box;vertical-align:middle}.event-info-hosts-text{padding-left:20px;font-size:16px;font-weight:400}.embedpress-event .event-description{margin-top:20px}.text--sectionTitle{font-size:20px;line-height:28px}.ep-event--attendees{margin-top:50px}.ep-event--attendees>.flex{margin-bottom:20px}.ep-event--attendees .gridList{list-style:none;margin:0 -16px 0 0;padding:0}.ep-event--attendees .gridList-item{width:auto}.ep-event--attendees .gridList--autoHeight--has4>.gridList-item{-ms-flex:0 0 50%;flex:0 0 50%;max-width:50%}.ep-event--attendees .groupMember-name{line-height:1.2 !important}.ep-event--attendees .avatar--person{margin-bottom:15px;display:inline-block;border-radius:50%}.ep-event--attendees img.avatar-print{border-radius:50%}.ep-event--attendees .groupMember-role{font-size:12px;color:#757575;padding-top:2px;margin:0}.ep-event--attendees .groupMember{min-height:100%;min-width:128px;padding-left:8px;padding-right:8px}.embedpress-event .align--center{text-align:center}.embedpress-event .card{background:#fff;background-clip:padding-box;background-size:cover;border:1px solid rgba(46,62,72,0.12);border-radius:8px;-webkit-box-sizing:border-box;box-sizing:border-box;display:block;min-height:100%;padding:16px 16px 18px;position:relative;white-space:normal}.embedpress-event .card--hasHoverShadow{-webkit-transition:-webkit-box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1),-webkit-transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);transition:-webkit-box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1),-webkit-transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);-o-transition:box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1),transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);transition:box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1),transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);transition:box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1),transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),-webkit-box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1),-webkit-transform 0.25s cubic-bezier(0.4, 0, 0.2, 1)}.embedpress-event .ep-event-group-link{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-align:center;align-items:center;background:#ffffff;border-radius:8px;padding:20px;margin-bottom:20px;border:1px solid rgba(46,62,72,0.12)}.embedpress-event .ep-event-group--name{padding-left:20px;font-size:14px;line-height:1.45;margin:0;width:70%;word-break:break-word}.embedpress-event .ep-event-group--image{-o-object-fit:cover;object-fit:cover;width:56px;height:56px;border-radius:4px}.embedpress-event .ep-event-time-location{background:#ffffff;border-radius:8px;padding:16px 20px 0 20px;border:1px solid rgba(46,62,72,0.12)}.embedpress-event .ep-event-time-location .ep-event-datetime,.embedpress-event .ep-event-time-location .ep-event-location{padding-bottom:20px}.embedpress-event .ep-event-location .wrap--singleLine--truncate,.embedpress-event .ep-event-time-location .ep-event-datetime{font-size:15px;line-height:1.5;color:#2e3e48;font-style:normal;margin:0}.embedpress-event .ep-event-location address{font-style:normal;margin:0}.embedpress-event .ep-event-location .venueDisplay-venue-address{font-style:normal;color:#757575;margin:0}.embedpress-event .ep-event-location p{line-height:20px}.ep-event--attendees .gridList-item{-webkit-box-sizing:border-box;box-sizing:border-box;display:inline-block;font-size:1rem;margin:0;vertical-align:top;width:50%}.gridList-itemInner{-webkit-box-sizing:border-box;box-sizing:border-box;height:100%;padding:0 16px 16px 0}@media only screen and (min-width: 530px){.ep-event--attendees .gridList--autoHeight--has4>.gridList-item{-ms-flex:0 0 33.333333%;flex:0 0 33.333333%;max-width:33.333333%}}@media only screen and (min-width: 640px){.embedpress-event .card{padding:18px 18px 20px}.ep-event--attendees .gridList--autoHeight--has4>.gridList-item{-ms-flex:0 0 25%;flex:0 0 25%;max-width:25%}}
Gutenberg/plugin.php CHANGED
@@ -44,6 +44,11 @@ add_action( 'enqueue_block_assets', 'embedpress_blocks_cgb_block_assets' );
44
  */
45
  function embedpress_blocks_cgb_editor_assets() { // phpcs:ignore
46
  // Scripts.
 
 
 
 
 
47
  wp_enqueue_script(
48
  'embedpress_blocks-cgb-block-js', // Handle.
49
  EMBEDPRESS_GUTENBERG_DIR_URL.'/dist/blocks.build.js', // Block.build.js: We register the block here. Built with Webpack.
@@ -64,6 +69,7 @@ function embedpress_blocks_cgb_editor_assets() { // phpcs:ignore
64
  $wistia_options = embedpress_wisita_pro_get_options();
65
  endif;
66
  $pars_url = wp_parse_url(get_site_url());
 
67
  wp_localize_script( 'embedpress_blocks-cgb-block-js', 'embedpressObj', array(
68
  'wistia_labels' => $wistia_labels,
69
  'wisita_options' => $wistia_options,
@@ -72,6 +78,7 @@ function embedpress_blocks_cgb_editor_assets() { // phpcs:ignore
72
  'twitch_host' => !empty($pars_url['host'])?$pars_url['host']:'',
73
  'site_url' => site_url(),
74
  'active_blocks' => $active_blocks,
 
75
  ) );
76
 
77
  // Styles.
@@ -142,14 +149,6 @@ function embedpress_gutenberg_register_all_block() {
142
  }
143
  }
144
 
145
- //register_block_type( 'embedpress/twitch-block' );
146
- //register_block_type( 'embedpress/google-slides-block' );
147
- //register_block_type( 'embedpress/google-sheets-block' );
148
- //register_block_type( 'embedpress/google-maps-block' );
149
- //register_block_type( 'embedpress/google-forms-block' );
150
- //register_block_type( 'embedpress/google-drawings-block' );
151
- //register_block_type( 'embedpress/google-docs-block' );
152
-
153
  endif;
154
  }
155
 
44
  */
45
  function embedpress_blocks_cgb_editor_assets() { // phpcs:ignore
46
  // Scripts.
47
+ if (! wp_script_is( 'embedpress-pdfobject') ) {
48
+ wp_enqueue_script( 'embedpress-pdfobject', EMBEDPRESS_URL_ASSETS . 'js/pdfobject.min.js', [],
49
+ EMBEDPRESS_VERSION );
50
+ }
51
+
52
  wp_enqueue_script(
53
  'embedpress_blocks-cgb-block-js', // Handle.
54
  EMBEDPRESS_GUTENBERG_DIR_URL.'/dist/blocks.build.js', // Block.build.js: We register the block here. Built with Webpack.
69
  $wistia_options = embedpress_wisita_pro_get_options();
70
  endif;
71
  $pars_url = wp_parse_url(get_site_url());
72
+ $documents_cta_options = (array) get_option(EMBEDPRESS_PLG_NAME . ':document');
73
  wp_localize_script( 'embedpress_blocks-cgb-block-js', 'embedpressObj', array(
74
  'wistia_labels' => $wistia_labels,
75
  'wisita_options' => $wistia_options,
78
  'twitch_host' => !empty($pars_url['host'])?$pars_url['host']:'',
79
  'site_url' => site_url(),
80
  'active_blocks' => $active_blocks,
81
+ 'document_cta' => $documents_cta_options,
82
  ) );
83
 
84
  // Styles.
149
  }
150
  }
151
 
 
 
 
 
 
 
 
 
152
  endif;
153
  }
154
 
assets/css/addons.css DELETED
@@ -1,63 +0,0 @@
1
- .ep-module-settings {
2
- overflow: hidden;
3
- padding-top: 20px;
4
- }
5
-
6
- .ep-module-settings:after {
7
- clear: both;
8
- content: "";
9
- display: block;
10
- }
11
-
12
- .ep-module-settings td > button {
13
- border: none !important;
14
- }
15
-
16
- .ep-block-addons-items {
17
- margin: 0;
18
- max-width: 740px;
19
- }
20
-
21
- .ep-block-addons-items li {
22
- display: block;
23
- width: 225px;
24
- height: 450px;
25
- float: left;
26
- margin-right: 20px;
27
- margin-bottom: 20px;
28
- background: #fff;
29
- }
30
-
31
- .ep-block-addons-items li img {
32
- width: 100%;
33
- }
34
-
35
- .ep-block-addons-items li h3 {
36
- padding: 0 10px;
37
- text-align: center;
38
- height: 40px;
39
- }
40
-
41
- .ep-block-addons-items li p {
42
- padding: 0 10px;
43
- height: 90px;
44
- }
45
-
46
- .ep-block-addons-items li div {
47
- padding: 5px;
48
- padding-top: 10px;
49
- text-align: center;
50
- margin: 0 10px;
51
- background: #efefef;
52
- height: 22px;
53
- }
54
-
55
- .ep-block-addons-items li a.button {
56
- margin-left: 30px;
57
- height: 34px;
58
- text-shadow: none;
59
- padding-top: 4px;
60
- box-shadow: none;
61
- border-width: 2px;
62
- border-radius: 4px;
63
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
assets/css/admin.css CHANGED
@@ -14,18 +14,18 @@
14
  background-color: #655997 !important;
15
  }
16
 
17
- #toplevel_page_embedpress .dashicons-admin-generic::before,
18
- #toplevel_page_embedpress .current .dashicons-admin-generic::before {
19
- background-image: url(../images/menu-icon.png);
20
- background-repeat: no-repeat;
21
- background-position: 0 8px;
22
- background-size: 19px auto;
23
- content: " ";
24
- transition: none;
25
- -moz-transition: none;
26
- -webkit-transition: none;
27
- -o-transition: none;
28
- }
29
 
30
  #toplevel_page_embedpress:active .wp-not-current-submenu .dashicons-admin-generic::before,
31
  #toplevel_page_embedpress:hover .wp-not-current-submenu .dashicons-admin-generic::before {
14
  background-color: #655997 !important;
15
  }
16
 
17
+ /*#toplevel_page_embedpress .dashicons-admin-generic::before,*/
18
+ /*#toplevel_page_embedpress .current .dashicons-admin-generic::before {*/
19
+ /* background-image: url(../images/menu-icon.png);*/
20
+ /* background-repeat: no-repeat;*/
21
+ /* background-position: 0 8px;*/
22
+ /* background-size: 19px auto;*/
23
+ /* content: " ";*/
24
+ /* transition: none;*/
25
+ /* -moz-transition: none;*/
26
+ /* -webkit-transition: none;*/
27
+ /* -o-transition: none;*/
28
+ /*}*/
29
 
30
  #toplevel_page_embedpress:active .wp-not-current-submenu .dashicons-admin-generic::before,
31
  #toplevel_page_embedpress:hover .wp-not-current-submenu .dashicons-admin-generic::before {
assets/css/el-icon.css CHANGED
@@ -39,7 +39,8 @@
39
  }
40
  /*Second long class needed for yt channel link control, otherwise it wont get effected.*/
41
  .elementor-control.embedpress-pro-control::before,
42
- .elementor-control.elementor-control-yt_sub_channel.elementor-control-type-text.embedpress-pro-control.elementor-label-block.elementor-control-separator-default.elementor-control-dynamic::before{
 
43
  content: '';
44
  position: absolute;
45
  width: 100%;
39
  }
40
  /*Second long class needed for yt channel link control, otherwise it wont get effected.*/
41
  .elementor-control.embedpress-pro-control::before,
42
+ .elementor-control.elementor-control-yt_sub_channel.elementor-control-type-text.embedpress-pro-control.elementor-label-block.elementor-control-separator-default.elementor-control-dynamic::before,
43
+ .elementor-control.elementor-control-yt_lc_show.elementor-control-type-switcher.embedpress-pro-control.elementor-label-inline::before{
44
  content: '';
45
  position: absolute;
46
  width: 100%;
assets/css/embedpress-elementor.css CHANGED
@@ -115,7 +115,12 @@
115
  font-weight: 700;
116
  }
117
 
118
- .embedpress-event h1, h2, h3, h4, h5, h6{
 
 
 
 
 
119
  font-size: inherit;
120
  }
121
 
115
  font-weight: 700;
116
  }
117
 
118
+ .embedpress-event h1,
119
+ .embedpress-event h2,
120
+ .embedpress-event h3,
121
+ .embedpress-event h4,
122
+ .embedpress-event h5,
123
+ .embedpress-event h6{
124
  font-size: inherit;
125
  }
126
 
assets/images/embedpress-vimeo.jpg DELETED
Binary file
assets/images/embedpress-wistia.jpg DELETED
Binary file
assets/images/embedpress-youtube.jpg DELETED
Binary file
assets/images/embedpress.png DELETED
Binary file
assets/images/essential-blocks.png DELETED
Binary file
assets/images/icon-why-premium.svg DELETED
@@ -1,102 +0,0 @@
1
- <?xml version="1.0" encoding="utf-8"?>
2
- <!-- Generator: Adobe Illustrator 23.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
3
- <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
4
- viewBox="0 0 500 500" style="enable-background:new 0 0 500 500;" xml:space="preserve">
5
- <style type="text/css">
6
- .st0{fill:url(#SVGID_1_);}
7
- .st1{fill:url(#SVGID_2_);}
8
- .st2{fill:url(#SVGID_3_);}
9
- .st3{fill:url(#SVGID_4_);}
10
- .st4{fill:url(#SVGID_5_);}
11
- .st5{fill:url(#SVGID_6_);}
12
- .st6{fill:url(#SVGID_7_);}
13
- .st7{fill:url(#SVGID_8_);}
14
- .st8{fill:url(#SVGID_9_);}
15
- .st9{fill:url(#SVGID_10_);}
16
- </style>
17
- <g>
18
- <linearGradient id="SVGID_1_" gradientUnits="userSpaceOnUse" x1="-2.5273" y1="250.782" x2="497.9953" y2="250.782">
19
- <stop offset="0" style="stop-color:#5725FF"/>
20
- <stop offset="1" style="stop-color:#9271FF"/>
21
- </linearGradient>
22
- <path class="st0" d="M428.9,76.4C382.2,28.3,319.4,1.4,252,0.6c-1,0-2,0-3,0c-65.7,0-127.8,25.5-175,71.8
23
- C26.5,119.2-0.1,182-0.8,249.1c-0.4,66,24.8,128.6,71,176.1c46.6,48,109.3,74.9,176.5,75.8c1.1,0,2.1,0,3.2,0c0,0,0,0,0,0
24
- c65.7,0,127.8-25.5,174.9-71.7c47.7-46.8,74.3-109.5,74.9-176.6C500.3,186.6,475.2,124,428.9,76.4z M249.8,481.4l-0.8,0
25
- C121.8,481,18.5,377.4,18.8,250.4c0.3-127,103.7-230.3,230.5-230.3l0.4,0c127.2,0.2,230.5,103.7,230.4,230.8
26
- C480.1,378,376.7,481.4,249.8,481.4z"/>
27
- <linearGradient id="SVGID_2_" gradientUnits="userSpaceOnUse" x1="-2.5273" y1="237.9246" x2="498.4112" y2="237.9246">
28
- <stop offset="0" style="stop-color:#5725FF"/>
29
- <stop offset="1" style="stop-color:#9271FF"/>
30
- </linearGradient>
31
- <path class="st1" d="M258.1,108.1c-3.1-3.1-5.8-4.5-8.6-4.5c-2.8,0-5.5,1.4-8.5,4.5c-33.2,33.2-66.5,66.4-99.7,99.7
32
- c-6,6-6.1,11.2-0.2,17.1c10.1,10.3,20.6,20.7,31.1,31.1c3.2,3.1,5.9,4.6,8.6,4.6c2.7,0,5.4-1.4,8.5-4.5c5-4.9,10-9.9,14.8-14.7
33
- c2.5-2.5,5-5,7.5-7.5c0.7-0.7,1.4-1.4,2.4-2.3c0,0,0,0,0.1,0l0,126.5c0,11.5,2.7,14.2,14.4,14.2l25.4,0l17.6,0
34
- c10.6,0,13.5-2.9,13.5-13.7c0-31.8,0-127.4,0-127.4c2.3,2.3,4.6,4.7,7,7c5.8,5.9,11.8,11.9,17.8,17.8c3.1,3.1,5.9,4.5,8.5,4.5
35
- c0,0,0,0,0,0c2.7,0,5.4-1.4,8.6-4.6c10.1-10,20.6-20.5,31.1-31.1c5.9-6,5.9-11.1-0.1-17.1C324.5,174.5,291.3,141.3,258.1,108.1z
36
- M317.5,236.4l-6.4-6.4c-7-7-14-14.1-21.1-21.2c-0.7-0.7-1.4-1.5-2.1-2.2c-1.7-1.9-3.5-3.9-5.7-5.2c-2.7-1.5-5.9-2.5-8.5-2.5
37
- c-0.6,0-1.3,0.1-1.8,0.2c-4,0.7-6.4,4.4-6.5,9.7c0,2.7,0,5.4,0,8.1l0,39.2c0,30.2,0,60.5,0,90.7c0,0.6,0,1.2,0,1.7c0,2,0,3.6-0.3,4
38
- c-0.2,0.2-1.7,0.2-2.2,0.2c-0.4,0-0.8,0-1.2,0c-0.6,0-1.2,0-1.9,0l-1.9,0c-2,0-4,0-6,0c-2,0-4,0-6.1,0c-3.3,0-6.1,0.1-8.6,0.2
39
- c-0.2,0-0.4,0-0.6,0c-1.2,0-1.9-0.2-2.4-0.6c-0.6-0.6-0.7-2.1-0.7-3.9c0.1-35.8,0.1-72.2,0.1-107.4l0-29.2c0-0.8,0-1.6,0-2.4
40
- c0-5.3-2.1-8.8-6.2-10.4c-1.2-0.5-2.5-0.7-3.7-0.7c-2.8,0-5.5,1.3-8,3.8c-9.7,9.8-19.7,19.7-29.3,29.3l-4.3,4.3
41
- c-0.2,0.2-0.3,0.3-0.5,0.5L162,216.5l87.7-87.7l87.3,87.4L317.5,236.4z"/>
42
- <linearGradient id="SVGID_3_" gradientUnits="userSpaceOnUse" x1="-2.5273" y1="223.0584" x2="498.4112" y2="223.0584">
43
- <stop offset="0" style="stop-color:#5725FF"/>
44
- <stop offset="1" style="stop-color:#9271FF"/>
45
- </linearGradient>
46
- <path class="st2" d="M71.6,228.6c6.4-47.4,28.3-86.7,64.9-116.7c24.7-20.3,53.7-33.1,86-38.1c9-1.4,18.2-2.1,27.2-2.1
47
- c8.8,0,17.8,0.7,26.7,2c0.9,0.1,1.7,0.2,2.6,0.2c5.5,0,9.2-3.1,10.1-8.2c0.4-2.5-0.1-4.9-1.5-6.8c-1.7-2.3-4.5-3.9-8.2-4.5
48
- c-9.7-1.6-19.7-2.4-29.5-2.4c-12.3,0-24.9,1.3-37.4,3.7C160,66,118.4,92.5,88.7,134.3c-40.8,57.5-49,120.9-24.4,188.5
49
- c8.8,24.2,23.4,46.7,43.3,67.1c1.9,1.9,4.6,4.2,8.1,4.2c1.1,0,2.2-0.2,3.4-0.6c3.3-1.2,5.5-3.6,6.2-6.5c0.8-3.6-0.7-7.6-4.1-11.2
50
- c-32-33.2-49.1-73.7-50.7-120.5c0-1.4,0-2.7,0-4.1c0-3.1-0.1-6.2,0.1-9.3C70.8,236.5,71.1,232.4,71.6,228.6z"/>
51
- <linearGradient id="SVGID_4_" gradientUnits="userSpaceOnUse" x1="-2.5273" y1="242.9939" x2="498.4112" y2="242.9939">
52
- <stop offset="0" style="stop-color:#5725FF"/>
53
- <stop offset="1" style="stop-color:#9271FF"/>
54
- </linearGradient>
55
- <path class="st3" d="M396.5,117.2c-6.4-6.9-13.6-13.2-20.5-19.3c-1.1-1-2.2-1.9-3.3-2.9c-2-1.8-4.4-2.8-6.9-2.8
56
- c-2.8,0-5.4,1.2-7.3,3.4c-3.6,4.3-3,9.6,1.6,14c0.9,0.9,1.8,1.7,2.8,2.4c0.4,0.3,0.7,0.6,1.1,0.9c44.2,37.9,65.9,86.3,64.5,143.7
57
- c-1,40.4-14.9,77-41.3,108.7c-1.4,1.7-2.9,3.3-4.4,4.8c-2.4,2.5-4.9,5.1-6.8,8c-1.8,2.7-2.4,7.2-1.3,10.2c0.9,2.6,5,5.4,7.8,5.4
58
- l0.1,0c3.4-0.1,7.1-2.4,9.3-4.6c35.3-36.5,55.3-82.5,56.3-129.6C448.9,204.2,430.5,153.7,396.5,117.2z"/>
59
- <linearGradient id="SVGID_5_" gradientUnits="userSpaceOnUse" x1="-2.5273" y1="77.7156" x2="498.4112" y2="77.7156">
60
- <stop offset="0" style="stop-color:#5725FF"/>
61
- <stop offset="1" style="stop-color:#9271FF"/>
62
- </linearGradient>
63
- <path class="st4" d="M311.6,82.5c5.7,2.7,12,5.4,19.2,8.3c1.2,0.5,2.5,0.8,3.8,0.8c3.7,0,7.1-2.1,8.7-5.5c2.4-5,0.4-10.4-4.7-12.9
64
- c-4.7-2.3-9.5-4.3-14.2-6.3c-1.4-0.6-2.7-1.2-4.1-1.7c-1-0.4-2.1-0.7-3-1c-0.3-0.1-0.6-0.2-0.9-0.3l-0.2-0.1l-0.3,0
65
- c-5.4,0.6-8.7,3.3-9.7,7.9C305.1,76.4,307.1,80.4,311.6,82.5z"/>
66
- <linearGradient id="SVGID_6_" gradientUnits="userSpaceOnUse" x1="-2.5273" y1="431.2239" x2="498.4112" y2="431.2239">
67
- <stop offset="0" style="stop-color:#5725FF"/>
68
- <stop offset="1" style="stop-color:#9271FF"/>
69
- </linearGradient>
70
- <path class="st5" d="M249.7,412.9l-0.2,0c-5.3,0-9.3,3.8-9.7,9.5c-0.2,2-0.1,4-0.1,5.9c0,0.9,0,1.8,0,2.7c0,0.8,0,1.7,0,2.5
71
- c0,2-0.1,4,0.1,6c0.4,5.7,4.5,9.9,9.6,10l0.2,0c5.1,0,9.4-4.2,9.7-9.7c0.3-5.6,0.3-11.5,0-17.6C258.9,416.9,255,413,249.7,412.9z"
72
- />
73
- <linearGradient id="SVGID_7_" gradientUnits="userSpaceOnUse" x1="-2.5273" y1="407.6321" x2="498.4112" y2="407.6321">
74
- <stop offset="0" style="stop-color:#5725FF"/>
75
- <stop offset="1" style="stop-color:#9271FF"/>
76
- </linearGradient>
77
- <path class="st6" d="M164.4,390.4l-0.4,0l-0.3,0.2c-0.2,0.2-0.6,0.4-1.1,0.6c-1.5,0.8-3.5,1.8-4.7,3.5c-3.7,5.3-6.8,11.1-9.4,16
78
- c-2.4,4.5-0.9,9.6,3.5,12.4c1.7,1,3.5,1.6,5.4,1.6c3,0,5.7-1.5,7.4-4c4.1-6.1,7.3-11.7,9.8-17c1.3-2.8,1.2-5.9-0.4-8.5
79
- C172.2,392.3,168.7,390.5,164.4,390.4z"/>
80
- <linearGradient id="SVGID_8_" gradientUnits="userSpaceOnUse" x1="-2.5273" y1="407.1936" x2="498.4112" y2="407.1936">
81
- <stop offset="0" style="stop-color:#5725FF"/>
82
- <stop offset="1" style="stop-color:#9271FF"/>
83
- </linearGradient>
84
- <path class="st7" d="M351.5,414.6c0-0.6,0-1.3-0.3-1.9c-1-1.7-1.9-3.4-2.8-5.1c-2.6-4.8-5.3-9.7-8.5-14.3c-1.4-2-3.6-3.1-6.1-3.1
85
- c-1.8,0-3.7,0.6-5.5,1.7c-4.5,2.8-6,7.1-3.9,11.4c2.9,5.9,6.1,12.2,10.4,17.8c1.6,2.1,5.5,3.1,8.4,3.1c0.5,0,1,0,1.4-0.1
86
- c4-0.5,6.7-3.9,7-8.7l0-0.1l0-0.1C351.5,415,351.5,414.8,351.5,414.6z"/>
87
- <linearGradient id="SVGID_9_" gradientUnits="userSpaceOnUse" x1="-2.5273" y1="425.1868" x2="498.4112" y2="425.1868">
88
- <stop offset="0" style="stop-color:#5725FF"/>
89
- <stop offset="1" style="stop-color:#9271FF"/>
90
- </linearGradient>
91
- <path class="st8" d="M208.8,407.6c-0.9-0.3-1.8-0.4-2.8-0.4c-3.9,0-7.4,2.3-8.6,5.7c-1.6,4.6-2.9,9.4-4,13.6
92
- c-0.4,1.6-0.8,3.2-1.3,4.6l0,0.1l0,0.1c-0.2,5.9,2.4,10.2,7,11.4c0.9,0.2,1.9,0.4,2.8,0.4c0,0,0,0,0,0c4.2,0,7.5-2.4,8.8-6.2
93
- c2.1-6.5,3.8-12.8,5-18.9C216.5,413.2,214,409.3,208.8,407.6z"/>
94
- <linearGradient id="SVGID_10_" gradientUnits="userSpaceOnUse" x1="-2.5273" y1="425.1707" x2="498.4112" y2="425.1707">
95
- <stop offset="0" style="stop-color:#5725FF"/>
96
- <stop offset="1" style="stop-color:#9271FF"/>
97
- </linearGradient>
98
- <path class="st9" d="M305.6,426.7c-1.1-4.3-2.4-9.3-4.2-14c-1.3-3.5-4.3-5.5-8.1-5.5c-0.9,0-1.9,0.1-2.9,0.4
99
- c-5.2,1.4-8,5.4-7.1,10.3c1.2,6.6,3,13.3,5.4,19.8c1.2,3.5,4.2,5.5,8.1,5.5c0.9,0,1.9-0.1,2.9-0.4c4.8-1.2,7.2-4.7,7.4-10.9l0-0.2
100
- l-0.1-0.2C306.5,430.1,306.1,428.4,305.6,426.7z"/>
101
- </g>
102
- </svg>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
assets/images/menu-icon.png DELETED
Binary file
assets/images/menu-icon.svg ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <!-- Generator: Adobe Illustrator 25.2.3, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
3
+ <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
4
+ viewBox="0 0 100 100" width="20px" xml:space="preserve">
5
+ <style type="text/css">
6
+ .st0{fill:#FFFFFF;}
7
+ </style>
8
+ <g>
9
+ <polygon class="st0" points="0,0 0,19.3 5.6,19.3 5.6,5.6 19.3,5.6 19.3,0 "/>
10
+ <polygon class="st0" points="94.4,80.7 94.4,94.4 80.7,94.4 80.7,100 100,100 100,80.7 "/>
11
+ <path class="st0" d="M96.6,25.2c-3.8-6.9-10.8-11.5-18.7-12.5c-4.6-0.5-9.3,0.2-13.5,2.2c-0.5,0.2-1,0.5-1.4,0.7
12
+ c-5.7,3.2-9.9,8.5-11.7,14.5l0,0L37.7,68.7c-1.1,3.5-3.4,6.3-6.3,7.9c-0.2,0.1-0.5,0.3-0.8,0.4c-2.3,1.1-4.8,1.5-7.2,1.2
13
+ c-4.2-0.5-8-3-10.1-6.7c-1.7-3.1-2.1-6.7-1.1-10.1c1-3.4,3.2-6.2,6.3-8c0.3-0.1,0.5-0.3,0.8-0.4c2.3-1.1,4.7-1.5,7.3-1.2
14
+ c0.1,0,0.2,0,0.3,0L24,60c-0.2,0.6,0.1,1.2,0.7,1.3l7.2,2.3c0.5,0.2,1.1-0.1,1.3-0.6l6.2-17.6c0.2-0.5,0.1-0.9-0.1-1.3
15
+ c-0.2-0.4-0.6-0.7-1.1-0.9l-6.5-1.9c-0.2,0-0.3-0.1-0.5-0.1L30.7,41l0,0c-0.9-0.2-1.8-0.4-2.8-0.5c-4.6-0.5-9.3,0.2-13.5,2.2
16
+ c-0.5,0.2-1,0.5-1.5,0.7C7.2,46.8,3,52,1.2,58.4c-1.8,6.3-1,13,2.2,18.7C7.2,84,14.2,88.7,22.1,89.6c4.6,0.5,9.3-0.2,13.5-2.2
17
+ c0.5-0.2,1-0.5,1.4-0.7c5.7-3.2,9.9-8.4,11.7-14.5l0,0l13.5-38.4l0-0.1l0,0c1.5-3.9,3.4-6.3,6.3-7.9c0.3-0.1,0.5-0.3,0.8-0.4
18
+ c2.3-1.1,4.8-1.5,7.2-1.2c4.2,0.5,8,3,10.1,6.7c3.6,6.4,1.2,14.5-5.2,18c-0.3,0.1-0.5,0.3-0.8,0.4c-2.3,1.1-4.7,1.5-7.3,1.2
19
+ c-0.8-0.1-1.5-0.2-2.3-0.4l-0.1,0l-4.2-1.2c-0.5-0.1-0.9,0.1-1.1,0.6l-3.2,9.2c-0.2,0.5,0.1,1,0.6,1.1l5.1,1.5
20
+ c1.2,0.3,2.5,0.6,3.8,0.7c4.6,0.5,9.2-0.2,13.4-2.2l0,0c0.5-0.2,1-0.5,1.5-0.8C98.8,52.2,103.2,37.1,96.6,25.2z"/>
21
+ </g>
22
+ </svg>
assets/images/nx-icon.svg DELETED
@@ -1,19 +0,0 @@
1
- <svg width="387px" height="392px" viewBox="0 0 387 392" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
2
- <!-- Generator: Sketch 51.2 (57519) - http://www.bohemiancoding.com/sketch -->
3
- <desc>Created with Sketch.</desc>
4
- <defs></defs>
5
- <g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
6
- <g id="NotificationX_final" transform="translate(-1564.000000, -253.000000)">
7
- <g id="Group" transform="translate(1564.000000, 253.000000)">
8
- <path d="M135.45,358.68 C173.45,358.68 211.27,358.68 249.07,358.68 C247.02,371.83 221.24,388.59 199.26,390.98 C173.92,393.73 143.23,378.38 135.45,358.68 Z" id="Shape" fill="#5614D5" fill-rule="nonzero"></path>
9
- <path d="M372.31,305.79 C369.97,305.59 367.6,305.71 365.24,305.71 C359.63,305.7 354.02,305.71 347.08,305.71 C347.08,301.43 347.08,298.42 347.08,295.41 C347.07,248.75 347.25,202.09 346.91,155.43 C346.83,144.89 345.88,134.19 343.79,123.87 C326.39,37.9 239.94,-16.19 154.81,5.22 C86.84,22.31 37.91,84.26 38.19,154.7 C38.36,197.12 38.21,239.54 38.2,281.96 C38.2,285.8 38.18,297.79 38.16,305.7 C32.98,305.66 18.07,305.57 12.86,305.88 C5.13,306.33 -0.06,312.31 0.04,319.97 C0.14,327.43 5.08,332.74 12.67,333.42 C14.78,333.61 16.91,333.57 19.03,333.57 C134.74,333.61 250.46,333.64 366.17,333.66 C368.29,333.66 370.42,333.69 372.53,333.48 C380.01,332.73 385.14,327.23 385.28,319.95 C385.41,312.58 379.86,306.44 372.31,305.79 Z" id="Shape" fill="#5614D5" fill-rule="nonzero"></path>
10
- <circle id="Oval" fill="#836EFF" fill-rule="nonzero" cx="281.55" cy="255.92" r="15.49"></circle>
11
- <path d="M295.67,140.1 L295.91,139.94 C295.7,138.63 295.52,137.29 295.27,136.02 C285.87,89.57 245.83,55.34 198.79,52.53 C198.73,52.53 198.67,52.52 198.61,52.52 C196.59,52.4 194.57,52.32 192.53,52.32 C192.48,52.32 192.44,52.32 192.39,52.32 C192.34,52.32 192.3,52.32 192.25,52.32 C190.21,52.32 188.18,52.4 186.17,52.52 C186.11,52.52 186.05,52.53 185.99,52.53 C138.95,55.34 98.91,89.57 89.51,136.02 C89.25,137.29 89.07,138.63 88.87,139.94 L89.11,140.1 C88.2,145.6 87.72,151.22 87.74,156.9 C87.76,161.42 87.77,256.77 87.78,269.74 L119.91,304.42 C119.91,280.14 119.9,170.57 119.85,156.78 C119.72,124.18 142.81,94.69 174.76,86.66 C177.41,85.99 180.09,85.5 182.78,85.13 C183.23,85.07 183.67,85 184.13,84.95 C185.15,84.83 186.17,84.74 187.18,84.66 C188.64,84.56 190.1,84.48 191.58,84.47 C191.85,84.47 192.12,84.45 192.39,84.44 C192.66,84.44 192.93,84.46 193.2,84.47 C194.68,84.48 196.14,84.56 197.6,84.66 C198.62,84.74 199.64,84.83 200.65,84.95 C201.1,85 201.55,85.07 202,85.13 C204.69,85.5 207.37,85.99 210.02,86.66 C241.96,94.69 265.06,124.19 264.93,156.78 C264.91,161.95 264.9,207.07 264.89,228.18 L297.03,206.73 C297.03,194.5 297.04,158.28 297.04,156.91 C297.06,151.21 296.59,145.6 295.67,140.1 Z" id="Shape" fill="#836EFF" fill-rule="nonzero"></path>
12
- <path d="M31.94,305.72 C25.58,305.85 19.2,305.51 12.86,305.88 C5.13,306.33 -0.06,312.31 0.04,319.97 C0.14,327.43 5.08,332.74 12.67,333.42 C14.78,333.61 16.91,333.57 19.03,333.57 C134.74,333.61 250.45,333.63 366.17,333.66 C368.29,333.66 370.42,333.69 372.53,333.48 C380.01,332.73 385.14,327.23 385.28,319.95 C385.42,312.58 379.87,306.45 372.32,305.79 C369.98,305.59 367.61,305.71 365.25,305.71 C359.64,305.7 354.03,305.71 347.09,305.71 C347.09,301.43 347.09,298.42 347.09,295.41 C347.08,254.74 347.2,214.07 347.01,173.41 L131.62,317.03 L53.58,232.81 L87.05,202.02 L138.72,257.62 L343.2,121.26 C324.59,36.81 239.08,-15.98 154.82,5.21 C86.85,22.3 37.92,84.25 38.2,154.69 C38.37,197.11 38.22,239.53 38.21,281.95 C38.21,287.84 38.3,293.74 38.16,299.62" id="Shape"></path>
13
- <path d="M346.91,155.42 C346.95,161.41 346.97,167.41 347,173.4 L386.14,147.41 L360.9,109.57 L343.2,121.26 C343.39,122.13 343.62,122.98 343.8,123.85 C345.88,134.18 346.84,144.89 346.91,155.42 Z" id="Shape" fill="#00F9AC" fill-rule="nonzero"></path>
14
- <path d="M87.05,202.03 L53.58,232.82 L131.62,317.04 L347,173.41 C346.97,167.42 346.96,161.42 346.91,155.43 C346.83,144.89 345.88,134.19 343.79,123.87 C343.61,122.99 343.39,122.14 343.19,121.28 L138.72,257.63 L87.05,202.03 Z" id="Shape"></path>
15
- <path d="M87.05,202.03 L53.58,232.82 L131.62,317.04 L347,173.41 C346.97,167.42 346.96,161.42 346.91,155.43 C346.83,144.89 345.88,134.19 343.79,123.87 C343.61,122.99 343.39,122.14 343.19,121.28 L138.72,257.63 L87.05,202.03 Z" id="Shape" fill="#21D8A3" fill-rule="nonzero" opacity="0.9"></path>
16
- </g>
17
- </g>
18
- </g>
19
- </svg>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
assets/js/admin.js CHANGED
@@ -7,7 +7,6 @@
7
  */
8
  (function ($) {
9
  'use strict';
10
- //alert(EMBEDPRESS_ADMIN_PARAMS.ajaxurl);
11
 
12
  $(document).on('click', '.embedpress-plugin-notice-dismissible.is-dismissible', function () {
13
  var data = {
7
  */
8
  (function ($) {
9
  'use strict';
 
10
 
11
  $(document).on('click', '.embedpress-plugin-notice-dismissible.is-dismissible', function () {
12
  var data = {
embedpress.php CHANGED
@@ -5,7 +5,7 @@
5
  * Description: EmbedPress lets you embed videos, images, posts, audio, maps and upload PDF, DOC, PPT & all other types of content into your WordPress site with one-click and showcase it beautifully for the visitors. 100+ sources supported.
6
  * Author: WPDeveloper
7
  * Author URI: https://wpdeveloper.net
8
- * Version: 3.1.1
9
  * Text Domain: embedpress
10
  * Domain Path: /languages
11
  *
@@ -92,20 +92,3 @@ Shortcode::register();
92
  if ( !class_exists( '\simple_html_dom') ) {
93
  include_once EMBEDPRESS_PATH_CORE . 'simple_html_dom.php';
94
  }
95
-
96
- //@todo; cleanup after testing
97
- //add_action( 'after_setup_theme', function (){
98
- //
99
- // add_filter( 'editor_stylesheets', function ( $stylesheets ) {
100
- // $stylesheets[] = plugins_url( 'embedpress/assets/css/addons.css' );
101
- // error_log( print_r( $stylesheets, 1));
102
- //
103
- // return $stylesheets;
104
- // });
105
- //});
106
- //add_action( 'init', function () {
107
- // add_theme_support( 'editor-style' );
108
- //
109
- // $url = plugins_url( 'embedpress/assets/css/addons.css' );
110
- // add_editor_style($url );
111
- //});
5
  * Description: EmbedPress lets you embed videos, images, posts, audio, maps and upload PDF, DOC, PPT & all other types of content into your WordPress site with one-click and showcase it beautifully for the visitors. 100+ sources supported.
6
  * Author: WPDeveloper
7
  * Author URI: https://wpdeveloper.net
8
+ * Version: 3.1.2
9
  * Text Domain: embedpress
10
  * Domain Path: /languages
11
  *
92
  if ( !class_exists( '\simple_html_dom') ) {
93
  include_once EMBEDPRESS_PATH_CORE . 'simple_html_dom.php';
94
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
includes.php CHANGED
@@ -22,7 +22,7 @@ if ( ! defined('EMBEDPRESS_PLG_NAME')) {
22
  }
23
 
24
  if ( ! defined('EMBEDPRESS_VERSION')) {
25
- define('EMBEDPRESS_VERSION', "3.1.1");
26
  /**
27
  * @deprecated 2.2.0
28
  */
22
  }
23
 
24
  if ( ! defined('EMBEDPRESS_VERSION')) {
25
+ define('EMBEDPRESS_VERSION', "3.1.2");
26
  /**
27
  * @deprecated 2.2.0
28
  */
languages/embedpress.pot CHANGED
@@ -2,14 +2,14 @@
2
  # This file is distributed under the same license as the EmbedPress plugin.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: EmbedPress 3.1.0\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/embedpress\n"
7
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
8
  "Language-Team: LANGUAGE <LL@li.org>\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
- "POT-Creation-Date: 2021-08-04T11:42:29+00:00\n"
13
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
14
  "X-Generator: WP-CLI 2.5.0\n"
15
  "X-Domain: embedpress\n"
@@ -44,7 +44,7 @@ msgstr ""
44
 
45
  #: EmbedPress/Core.php:508
46
  #: EmbedPress/CoreLegacy.php:309
47
- #: EmbedPress/Ends/Back/Settings/templates/custom-logo.php:123
48
  #: EmbedPress/Ends/Back/Settings/templates/partials/sidebar.php:18
49
  #: EmbedPress/Plugins/Plugin.php:159
50
  msgid "Settings"
@@ -56,90 +56,91 @@ msgstr ""
56
  msgid "Go Pro"
57
  msgstr ""
58
 
59
- #: EmbedPress/Elementor/Widgets/Embedpress_Document.php:23
60
  msgid "EmbedPress Document"
61
  msgstr ""
62
 
63
- #: EmbedPress/Elementor/Widgets/Embedpress_Document.php:65
64
  #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:83
65
  msgid "Content Settings"
66
  msgstr ""
67
 
68
- #: EmbedPress/Elementor/Widgets/Embedpress_Document.php:72
69
  msgid "Document Type"
70
  msgstr ""
71
 
72
- #: EmbedPress/Elementor/Widgets/Embedpress_Document.php:76
73
  msgid "File"
74
  msgstr ""
75
 
76
- #: EmbedPress/Elementor/Widgets/Embedpress_Document.php:77
77
- #: EmbedPress/Elementor/Widgets/Embedpress_Document.php:114
78
  msgid "URL"
79
  msgstr ""
80
 
81
- #: EmbedPress/Elementor/Widgets/Embedpress_Document.php:86
82
  msgid "Upload File"
83
  msgstr ""
84
 
85
- #: EmbedPress/Elementor/Widgets/Embedpress_Document.php:103
86
  msgid "Upload a file or pick one from your media library for embed. Supported File Type: PDF, DOC/DOCX, PPT/PPTX, XLS/XLSX etc."
87
  msgstr ""
88
 
89
- #: EmbedPress/Elementor/Widgets/Embedpress_Document.php:116
90
  msgid "https://your-link.com/file.pdf"
91
  msgstr ""
92
 
93
- #: EmbedPress/Elementor/Widgets/Embedpress_Document.php:130
94
- #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:1385
95
- #: Gutenberg/src/document/edit.js:196
96
  msgid "Width"
97
  msgstr ""
98
 
99
- #: EmbedPress/Elementor/Widgets/Embedpress_Document.php:153
100
- #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:1404
101
- #: Gutenberg/src/document/edit.js:208
102
  msgid "Height"
103
  msgstr ""
104
 
105
- #: EmbedPress/Elementor/Widgets/Embedpress_Document.php:175
106
  msgid "Alignment"
107
  msgstr ""
108
 
109
- #: EmbedPress/Elementor/Widgets/Embedpress_Document.php:179
110
  msgid "Left"
111
  msgstr ""
112
 
113
- #: EmbedPress/Elementor/Widgets/Embedpress_Document.php:183
114
  msgid "Center"
115
  msgstr ""
116
 
117
- #: EmbedPress/Elementor/Widgets/Embedpress_Document.php:187
118
  msgid "Right"
119
  msgstr ""
120
 
121
- #: EmbedPress/Elementor/Widgets/Embedpress_Document.php:198
122
  msgid "Powered By"
123
  msgstr ""
124
 
125
- #: EmbedPress/Elementor/Widgets/Embedpress_Document.php:200
126
- #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:436
127
- #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:452
128
- #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:468
129
- #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:485
130
- #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:501
131
- #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:517
132
- #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:800
133
- #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:812
134
- #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:845
135
- #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:874
136
- #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:892
137
- #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:908
138
- #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:926
139
- #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:943
140
- #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:960
141
- #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:976
142
- #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:992
 
143
  #: EmbedPress/Ends/Back/Settings/templates/soundcloud.php:78
144
  #: EmbedPress/Ends/Back/Settings/templates/soundcloud.php:96
145
  #: EmbedPress/Ends/Back/Settings/templates/soundcloud.php:113
@@ -147,29 +148,30 @@ msgstr ""
147
  #: EmbedPress/Ends/Back/Settings/templates/soundcloud.php:144
148
  #: EmbedPress/Ends/Back/Settings/templates/soundcloud.php:163
149
  #: EmbedPress/Ends/Back/Settings/templates/soundcloud.php:182
150
- #: EmbedPress/Ends/Back/Settings/templates/youtube.php:117
151
- #: EmbedPress/Ends/Back/Settings/templates/youtube.php:147
152
  msgid "Show"
153
  msgstr ""
154
 
155
- #: EmbedPress/Elementor/Widgets/Embedpress_Document.php:201
156
- #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:435
157
- #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:451
158
- #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:467
159
- #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:484
160
- #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:500
161
- #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:516
162
- #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:799
163
- #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:811
164
- #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:844
165
- #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:873
166
- #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:891
167
- #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:907
168
- #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:925
169
- #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:942
170
- #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:959
171
- #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:975
172
- #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:991
 
173
  #: EmbedPress/Ends/Back/Settings/templates/soundcloud.php:74
174
  #: EmbedPress/Ends/Back/Settings/templates/soundcloud.php:92
175
  #: EmbedPress/Ends/Back/Settings/templates/soundcloud.php:109
@@ -177,12 +179,12 @@ msgstr ""
177
  #: EmbedPress/Ends/Back/Settings/templates/soundcloud.php:140
178
  #: EmbedPress/Ends/Back/Settings/templates/soundcloud.php:159
179
  #: EmbedPress/Ends/Back/Settings/templates/soundcloud.php:178
180
- #: EmbedPress/Ends/Back/Settings/templates/youtube.php:118
181
- #: EmbedPress/Ends/Back/Settings/templates/youtube.php:146
182
  msgid "Hide"
183
  msgstr ""
184
 
185
- #: EmbedPress/Elementor/Widgets/Embedpress_Document.php:252
186
  msgid "Powered By EmbedPress"
187
  msgstr ""
188
 
@@ -195,10 +197,10 @@ msgid "Source Name"
195
  msgstr ""
196
 
197
  #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:96
198
- #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:382
199
- #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:400
200
- #: EmbedPress/Ends/Back/Settings/templates/youtube.php:186
201
- #: EmbedPress/Ends/Back/Settings/templates/youtube.php:202
202
  msgid "Default"
203
  msgstr ""
204
 
@@ -241,31 +243,31 @@ msgid "Enter your Link"
241
  msgstr ""
242
 
243
  #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:123
244
- #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:1147
245
  msgid "Player Background"
246
  msgstr ""
247
 
248
  #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:124
249
- #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:1148
250
  #: EmbedPress/Ends/Back/Settings/templates/spotify.php:31
251
  msgid "Dynamic option will use the most vibrant color from the album art."
252
  msgstr ""
253
 
254
  #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:129
255
- #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:1153
256
  msgid "Dynamic"
257
  msgstr ""
258
 
259
  #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:130
260
- #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:1154
261
  msgid "Black & White"
262
  msgstr ""
263
 
264
  #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:141
265
- msgid "Start Time %s"
266
  msgstr ""
267
 
268
- #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:144
269
  msgid "Specify a start time (in seconds)"
270
  msgstr ""
271
 
@@ -286,22 +288,21 @@ msgid "Specify an end time (in seconds)"
286
  msgstr ""
287
 
288
  #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:206
289
- #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:446
290
- #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:543
291
- #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:868
292
- #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:1004
293
  #: EmbedPress/Ends/Back/Settings/templates/dailymotion.php:37
294
  #: EmbedPress/Ends/Back/Settings/templates/soundcloud.php:51
295
- #: EmbedPress/Ends/Back/Settings/templates/twitch.php:33
296
- #: EmbedPress/Ends/Back/Settings/templates/vimeo.php:24
297
- #: EmbedPress/Ends/Back/Settings/templates/wistia.php:109
298
- #: EmbedPress/Ends/Back/Settings/templates/youtube.php:33
299
- #: EmbedPress/Includes/Classes/Feature_Enhancer.php:679
300
  msgid "Auto Play"
301
  msgstr ""
302
 
303
  #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:217
304
- #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:588
305
  msgid "Player Options"
306
  msgstr ""
307
 
@@ -310,17 +311,17 @@ msgid "Controls"
310
  msgstr ""
311
 
312
  #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:230
313
- #: EmbedPress/Ends/Back/Settings/templates/youtube.php:87
314
  msgid "Display immediately"
315
  msgstr ""
316
 
317
  #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:231
318
- #: EmbedPress/Ends/Back/Settings/templates/youtube.php:88
319
  msgid "Display after user initiation"
320
  msgstr ""
321
 
322
  #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:232
323
- #: EmbedPress/Ends/Back/Settings/templates/youtube.php:89
324
  msgid "Hide controls"
325
  msgstr ""
326
 
@@ -333,176 +334,181 @@ msgid "Video Annotations"
333
  msgstr ""
334
 
335
  #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:259
336
- #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:302
337
  msgid "Display"
338
  msgstr ""
339
 
340
  #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:260
341
- #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:303
342
  msgid "Do Not Display"
343
  msgstr ""
344
 
345
  #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:269
346
- msgid "Progress Bar Color %s"
 
347
  msgstr ""
348
 
349
- #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:275
350
- #: EmbedPress/Ends/Back/Settings/templates/youtube.php:54
351
  msgid "Red"
352
  msgstr ""
353
 
354
- #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:276
355
- #: EmbedPress/Ends/Back/Settings/templates/youtube.php:55
356
  msgid "White"
357
  msgstr ""
358
 
359
- #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:284
360
  msgid "Closed Captions %s"
361
  msgstr ""
362
 
363
- #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:297
364
  msgid "Modest Branding %s"
365
  msgstr ""
366
 
367
- #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:316
368
  msgid "Related Videos %s"
369
  msgstr ""
370
 
371
- #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:335
372
  msgid "YouTube Subscriber Option"
373
  msgstr ""
374
 
375
- #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:346
376
  msgid "Channel Link or ID %s"
377
  msgstr ""
378
 
379
- #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:351
380
  msgid "Enter Channel Link or ID"
381
  msgstr ""
382
 
383
- #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:361
384
  msgid "Subscription Text %s"
385
  msgstr ""
386
 
387
- #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:366
388
- #: EmbedPress/Ends/Back/Settings/templates/youtube.php:172
389
  msgid "Eg. Don't miss out! Subscribe"
390
  msgstr ""
391
 
392
- #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:377
393
  msgid "Layout %s"
394
  msgstr ""
395
 
396
- #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:383
397
- #: EmbedPress/Ends/Back/Settings/templates/youtube.php:187
398
  msgid "Full"
399
  msgstr ""
400
 
401
- #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:395
402
- #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:820
403
  msgid "Theme %s"
404
  msgstr ""
405
 
406
- #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:401
407
- #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:824
408
- #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:1169
409
- #: EmbedPress/Ends/Back/Settings/templates/twitch.php:71
410
- #: EmbedPress/Ends/Back/Settings/templates/youtube.php:203
411
  msgid "Dark"
412
  msgstr ""
413
 
414
- #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:413
415
  msgid "Subscriber Count %s"
416
  msgstr ""
417
 
418
- #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:430
 
 
 
 
 
 
 
 
419
  msgid "Logo %s"
420
  msgstr ""
421
 
422
- #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:462
423
  msgid "Play On Mobile"
424
  msgstr ""
425
 
426
- #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:479
427
  #: EmbedPress/Ends/Back/Settings/templates/dailymotion.php:71
428
  msgid "Mute"
429
  msgstr ""
430
 
431
- #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:495
432
  msgid "Player Controls"
433
  msgstr ""
434
 
435
- #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:511
436
  msgid "Video Info"
437
  msgstr ""
438
 
439
- #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:529
440
  msgid "Control Color"
441
  msgstr ""
442
 
443
- #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:557
444
- #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:855
445
- #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:1019
446
  #: EmbedPress/Ends/Back/Settings/templates/soundcloud.php:44
447
  msgid "Scheme"
448
  msgstr ""
449
 
450
- #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:572
451
- #: EmbedPress/Ends/Back/Settings/templates/wistia.php:167
452
- #: EmbedPress/Includes/Classes/Feature_Enhancer.php:713
453
  msgid "Captions Enabled By Default"
454
  msgstr ""
455
 
456
- #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:602
457
- #: EmbedPress/Ends/Back/Settings/templates/wistia.php:31
458
- #: EmbedPress/Includes/Classes/Feature_Enhancer.php:654
459
  msgid "Fullscreen Button"
460
  msgstr ""
461
 
462
- #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:616
463
- #: EmbedPress/Ends/Back/Settings/templates/wistia.php:64
464
- #: EmbedPress/Includes/Classes/Feature_Enhancer.php:666
465
  msgid "Small Play Button"
466
  msgstr ""
467
 
468
- #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:633
469
  msgid "Resumable"
470
  msgstr ""
471
 
472
- #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:648
473
  msgid "Focus"
474
  msgstr ""
475
 
476
- #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:663
477
  msgid "Captions %s"
478
  msgstr ""
479
 
480
- #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:677
481
- msgid "Playbar %s"
482
  msgstr ""
483
 
484
- #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:692
485
  msgid "Volume Control %s"
486
  msgstr ""
487
 
488
- #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:708
489
  msgid "Volume %s"
490
  msgstr ""
491
 
492
- #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:730
493
- msgid "Rewind %s"
494
  msgstr ""
495
 
496
- #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:745
497
  msgid "Rewind time"
498
  msgstr ""
499
 
500
- #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:773
501
  msgid "Autoplay"
502
  msgstr ""
503
 
504
- #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:775
505
- #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:786
506
  #: EmbedPress/Ends/Back/Settings/templates/dailymotion.php:42
507
  #: EmbedPress/Ends/Back/Settings/templates/dailymotion.php:59
508
  #: EmbedPress/Ends/Back/Settings/templates/dailymotion.php:76
@@ -511,36 +517,37 @@ msgstr ""
511
  #: EmbedPress/Ends/Back/Settings/templates/dailymotion.php:131
512
  #: EmbedPress/Ends/Back/Settings/templates/soundcloud.php:34
513
  #: EmbedPress/Ends/Back/Settings/templates/soundcloud.php:56
514
- #: EmbedPress/Ends/Back/Settings/templates/twitch.php:38
515
- #: EmbedPress/Ends/Back/Settings/templates/twitch.php:54
516
- #: EmbedPress/Ends/Back/Settings/templates/twitch.php:85
517
- #: EmbedPress/Ends/Back/Settings/templates/twitch.php:101
518
- #: EmbedPress/Ends/Back/Settings/templates/vimeo.php:29
519
- #: EmbedPress/Ends/Back/Settings/templates/vimeo.php:45
520
- #: EmbedPress/Ends/Back/Settings/templates/vimeo.php:62
521
- #: EmbedPress/Ends/Back/Settings/templates/vimeo.php:79
522
- #: EmbedPress/Ends/Back/Settings/templates/vimeo.php:104
523
- #: EmbedPress/Ends/Back/Settings/templates/vimeo.php:120
524
- #: EmbedPress/Ends/Back/Settings/templates/vimeo.php:137
525
- #: EmbedPress/Ends/Back/Settings/templates/wistia.php:36
526
- #: EmbedPress/Ends/Back/Settings/templates/wistia.php:52
527
- #: EmbedPress/Ends/Back/Settings/templates/wistia.php:69
528
- #: EmbedPress/Ends/Back/Settings/templates/wistia.php:85
529
- #: EmbedPress/Ends/Back/Settings/templates/wistia.php:114
530
- #: EmbedPress/Ends/Back/Settings/templates/wistia.php:139
531
- #: EmbedPress/Ends/Back/Settings/templates/wistia.php:155
532
- #: EmbedPress/Ends/Back/Settings/templates/wistia.php:172
533
- #: EmbedPress/Ends/Back/Settings/templates/wistia.php:189
534
- #: EmbedPress/Ends/Back/Settings/templates/wistia.php:205
535
- #: EmbedPress/Ends/Back/Settings/templates/youtube.php:38
536
- #: EmbedPress/Ends/Back/Settings/templates/youtube.php:69
537
- #: EmbedPress/Ends/Back/Settings/templates/youtube.php:101
538
- #: EmbedPress/Ends/Back/Settings/templates/youtube.php:218
 
539
  msgid "No"
540
  msgstr ""
541
 
542
- #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:776
543
- #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:787
544
  #: EmbedPress/Ends/Back/Settings/templates/dailymotion.php:46
545
  #: EmbedPress/Ends/Back/Settings/templates/dailymotion.php:63
546
  #: EmbedPress/Ends/Back/Settings/templates/dailymotion.php:80
@@ -549,200 +556,213 @@ msgstr ""
549
  #: EmbedPress/Ends/Back/Settings/templates/dailymotion.php:135
550
  #: EmbedPress/Ends/Back/Settings/templates/soundcloud.php:38
551
  #: EmbedPress/Ends/Back/Settings/templates/soundcloud.php:60
552
- #: EmbedPress/Ends/Back/Settings/templates/twitch.php:42
553
- #: EmbedPress/Ends/Back/Settings/templates/twitch.php:58
554
- #: EmbedPress/Ends/Back/Settings/templates/twitch.php:89
555
- #: EmbedPress/Ends/Back/Settings/templates/twitch.php:105
556
- #: EmbedPress/Ends/Back/Settings/templates/vimeo.php:33
557
- #: EmbedPress/Ends/Back/Settings/templates/vimeo.php:49
558
- #: EmbedPress/Ends/Back/Settings/templates/vimeo.php:66
559
- #: EmbedPress/Ends/Back/Settings/templates/vimeo.php:83
560
- #: EmbedPress/Ends/Back/Settings/templates/vimeo.php:108
561
- #: EmbedPress/Ends/Back/Settings/templates/vimeo.php:124
562
- #: EmbedPress/Ends/Back/Settings/templates/vimeo.php:141
563
- #: EmbedPress/Ends/Back/Settings/templates/wistia.php:40
564
- #: EmbedPress/Ends/Back/Settings/templates/wistia.php:56
565
- #: EmbedPress/Ends/Back/Settings/templates/wistia.php:73
566
- #: EmbedPress/Ends/Back/Settings/templates/wistia.php:89
567
- #: EmbedPress/Ends/Back/Settings/templates/wistia.php:118
568
- #: EmbedPress/Ends/Back/Settings/templates/wistia.php:143
569
- #: EmbedPress/Ends/Back/Settings/templates/wistia.php:159
570
- #: EmbedPress/Ends/Back/Settings/templates/wistia.php:176
571
- #: EmbedPress/Ends/Back/Settings/templates/wistia.php:193
572
- #: EmbedPress/Ends/Back/Settings/templates/wistia.php:209
573
- #: EmbedPress/Ends/Back/Settings/templates/youtube.php:42
574
- #: EmbedPress/Ends/Back/Settings/templates/youtube.php:73
575
- #: EmbedPress/Ends/Back/Settings/templates/youtube.php:105
576
- #: EmbedPress/Ends/Back/Settings/templates/youtube.php:222
 
577
  msgid "Yes"
578
  msgstr ""
579
 
580
- #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:784
581
  msgid "Allow Full Screen Video"
582
  msgstr ""
583
 
584
- #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:797
585
  msgid "Show Chat %s"
586
  msgstr ""
587
 
588
- #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:809
589
- msgid "Mute on start %s"
 
 
 
 
 
 
590
  msgstr ""
591
 
592
- #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:825
593
- #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:1168
594
- #: EmbedPress/Ends/Back/Settings/templates/twitch.php:72
595
  msgid "Light"
596
  msgstr ""
597
 
598
- #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:839
599
  #: EmbedPress/Ends/Back/Settings/templates/soundcloud.php:29
600
  msgid "Visual Player"
601
  msgstr ""
602
 
603
- #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:886
604
  #: EmbedPress/Ends/Back/Settings/templates/soundcloud.php:104
605
  msgid "Share Button"
606
  msgstr ""
607
 
608
- #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:902
609
  #: EmbedPress/Ends/Back/Settings/templates/soundcloud.php:119
610
  msgid "Comments"
611
  msgstr ""
612
 
613
- #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:920
614
  #: EmbedPress/Ends/Back/Settings/templates/soundcloud.php:135
615
  msgid "Artwork"
616
  msgstr ""
617
 
618
- #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:937
619
  #: EmbedPress/Ends/Back/Settings/templates/soundcloud.php:154
620
  msgid "Play Count"
621
  msgstr ""
622
 
623
- #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:954
624
  msgid "User Name"
625
  msgstr ""
626
 
627
- #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:970
628
  msgid "Buy Button %s"
629
  msgstr ""
630
 
631
- #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:986
632
  msgid "Download Button %s"
633
  msgstr ""
634
 
635
- #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:1032
636
  msgid "Author Information"
637
  msgstr ""
638
 
639
- #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:1044
640
  msgid "Title"
641
  msgstr ""
642
 
643
- #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:1060
644
- msgid "Author %s"
645
  msgstr ""
646
 
647
- #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:1075
648
- msgid "Avatar %s"
649
  msgstr ""
650
 
651
- #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:1090
652
  msgid "Loop %s"
653
  msgstr ""
654
 
655
- #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:1105
656
  msgid "Auto Pause %s"
657
  msgstr ""
658
 
659
- #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:1120
660
  msgid "DNT %s"
661
  msgstr ""
662
 
663
- #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:1125
664
  msgid "Set this parameter to \"yes\" will block the player from tracking any session data, including all cookies"
665
  msgstr ""
666
 
667
- #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:1163
668
  msgid "Follow Widget Background"
669
  msgstr ""
670
 
671
- #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:1186
 
672
  msgid "Custom Logo & CTA"
673
  msgstr ""
674
 
675
- #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:1195
 
676
  msgid "Custom Logo %s"
677
  msgstr ""
678
 
679
- #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:1196
 
680
  msgid "Leave it empty to hide it"
681
  msgstr ""
682
 
683
- #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:1217
 
684
  msgid "Logo X Position"
685
  msgstr ""
686
 
687
- #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:1218
 
688
  msgid "Change this number to move your logo in horizontal direction."
689
  msgstr ""
690
 
691
- #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:1246
692
- #: EmbedPress/Ends/Back/Settings/templates/custom-logo.php:156
 
693
  msgid "Logo Y Position (%)"
694
  msgstr ""
695
 
696
- #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:1247
 
697
  msgid "Change this number to move your logo in vertical direction."
698
  msgstr ""
699
 
700
- #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:1281
 
701
  msgid "Normal"
702
  msgstr ""
703
 
704
- #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:1287
705
- #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:1315
 
 
706
  msgid "Logo Opacity"
707
  msgstr ""
708
 
709
- #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:1309
 
710
  msgid "Hover"
711
  msgstr ""
712
 
713
- #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:1340
 
714
  msgid "CTA link for Logo"
715
  msgstr ""
716
 
717
- #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:1341
 
718
  msgid "You can show the logo inside a link. Leave it empty to hide it"
719
  msgstr ""
720
 
721
- #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:1346
 
722
  msgid "https://your-link.com"
723
  msgstr ""
724
 
725
- #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:1358
726
  msgid "Style"
727
  msgstr ""
728
 
729
- #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:1365
730
- msgid "Aspect Ratio"
731
- msgstr ""
732
-
733
- #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:1366
734
- msgid "Good for any video. You may turn it off for other embed type."
735
- msgstr ""
736
-
737
- #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:1423
738
  msgid "Margin"
739
  msgstr ""
740
 
741
- #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:1434
742
  msgid "Padding"
743
  msgstr ""
744
 
745
- #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:1446
746
  msgid "Background"
747
  msgstr ""
748
 
@@ -772,43 +792,47 @@ msgstr ""
772
  msgid "Custom Logo"
773
  msgstr ""
774
 
775
- #: EmbedPress/Ends/Back/Settings/templates/custom-logo.php:59
 
 
 
 
776
  #: EmbedPress/Ends/Back/Settings/templates/dailymotion.php:155
777
  #: EmbedPress/Ends/Back/Settings/templates/general.php:64
778
  #: EmbedPress/Ends/Back/Settings/templates/soundcloud.php:189
779
  #: EmbedPress/Ends/Back/Settings/templates/spotify.php:84
780
- #: EmbedPress/Ends/Back/Settings/templates/twitch.php:113
781
- #: EmbedPress/Ends/Back/Settings/templates/vimeo.php:149
782
- #: EmbedPress/Ends/Back/Settings/templates/wistia.php:225
783
- #: EmbedPress/Ends/Back/Settings/templates/youtube.php:231
784
  msgid "Save Changes"
785
  msgstr ""
786
 
787
- #: EmbedPress/Ends/Back/Settings/templates/custom-logo.php:116
788
  msgid "%s Custom Branding"
789
  msgstr ""
790
 
791
- #: EmbedPress/Ends/Back/Settings/templates/custom-logo.php:130
792
  msgid "Click To Upload"
793
  msgstr ""
794
 
795
- #: EmbedPress/Ends/Back/Settings/templates/custom-logo.php:142
796
  msgid "Logo Opacity (%)"
797
  msgstr ""
798
 
799
- #: EmbedPress/Ends/Back/Settings/templates/custom-logo.php:149
800
  msgid "Logo X Position (%)"
801
  msgstr ""
802
 
803
- #: EmbedPress/Ends/Back/Settings/templates/custom-logo.php:163
804
  msgid "Call to Action Link"
805
  msgstr ""
806
 
807
- #: EmbedPress/Ends/Back/Settings/templates/custom-logo.php:167
808
  msgid "You may link the logo to any CTA link."
809
  msgstr ""
810
 
811
- #: EmbedPress/Ends/Back/Settings/templates/custom-logo.php:172
812
  msgid "Live Preview"
813
  msgstr ""
814
 
@@ -818,21 +842,26 @@ msgstr ""
818
 
819
  #: EmbedPress/Ends/Back/Settings/templates/dailymotion.php:27
820
  #: EmbedPress/Ends/Back/Settings/templates/twitch.php:24
 
 
 
821
  msgid "Start Time (In Seconds)"
822
  msgstr ""
823
 
824
  #: EmbedPress/Ends/Back/Settings/templates/dailymotion.php:30
825
  #: EmbedPress/Ends/Back/Settings/templates/twitch.php:27
 
 
 
826
  msgid "You can put a custom time in seconds to start video. Example: 500"
827
  msgstr ""
828
 
829
  #: EmbedPress/Ends/Back/Settings/templates/dailymotion.php:49
830
  #: EmbedPress/Ends/Back/Settings/templates/soundcloud.php:63
831
- #: EmbedPress/Ends/Back/Settings/templates/twitch.php:45
832
- #: EmbedPress/Ends/Back/Settings/templates/vimeo.php:36
833
- #: EmbedPress/Ends/Back/Settings/templates/wistia.php:121
834
- #: EmbedPress/Ends/Back/Settings/templates/youtube.php:45
835
- #: EmbedPress/Includes/Classes/Feature_Enhancer.php:680
836
  msgid "Automatically start to play the videos when the player loads."
837
  msgstr ""
838
 
@@ -853,7 +882,7 @@ msgid "Display Player Controls"
853
  msgstr ""
854
 
855
  #: EmbedPress/Ends/Back/Settings/templates/dailymotion.php:102
856
- #: EmbedPress/Ends/Back/Settings/templates/youtube.php:92
857
  msgid "Indicates whether the video player controls are displayed."
858
  msgstr ""
859
 
@@ -874,9 +903,8 @@ msgid "Controls Color"
874
  msgstr ""
875
 
876
  #: EmbedPress/Ends/Back/Settings/templates/dailymotion.php:149
877
- #: EmbedPress/Ends/Back/Settings/templates/vimeo.php:95
878
- #: EmbedPress/Ends/Back/Settings/templates/wistia.php:129
879
- #: EmbedPress/Includes/Classes/Feature_Enhancer.php:694
880
  msgid "Specify the color of the video controls."
881
  msgstr ""
882
 
@@ -1076,96 +1104,90 @@ msgstr ""
1076
  msgid "Twitch Settings"
1077
  msgstr ""
1078
 
1079
- #: EmbedPress/Ends/Back/Settings/templates/twitch.php:49
1080
  msgid "Show Chat"
1081
  msgstr ""
1082
 
1083
- #: EmbedPress/Ends/Back/Settings/templates/twitch.php:62
1084
  msgid "You can show or hide chat using this setting"
1085
  msgstr ""
1086
 
1087
- #: EmbedPress/Ends/Back/Settings/templates/twitch.php:66
1088
- #: EmbedPress/Ends/Back/Settings/templates/youtube.php:197
1089
- msgid "Theme"
1090
- msgstr ""
1091
-
1092
- #: EmbedPress/Ends/Back/Settings/templates/twitch.php:76
1093
  msgid "Set dark or light theme for the twitch comment."
1094
  msgstr ""
1095
 
1096
- #: EmbedPress/Ends/Back/Settings/templates/twitch.php:80
1097
- #: EmbedPress/Ends/Back/Settings/templates/youtube.php:96
1098
  msgid "Enable Fullscreen Button"
1099
  msgstr ""
1100
 
1101
- #: EmbedPress/Ends/Back/Settings/templates/twitch.php:92
1102
- #: EmbedPress/Ends/Back/Settings/templates/youtube.php:108
1103
  msgid "Indicates whether the fullscreen button is enabled."
1104
  msgstr ""
1105
 
1106
- #: EmbedPress/Ends/Back/Settings/templates/twitch.php:96
1107
  msgid "Mute On Start"
1108
  msgstr ""
1109
 
1110
- #: EmbedPress/Ends/Back/Settings/templates/twitch.php:109
1111
  msgid "Set it to Yes to mute the video on start."
1112
  msgstr ""
1113
 
1114
- #: EmbedPress/Ends/Back/Settings/templates/vimeo.php:17
1115
  msgid "Vimeo Settings"
1116
  msgstr ""
1117
 
1118
- #: EmbedPress/Ends/Back/Settings/templates/vimeo.php:40
1119
  msgid "Loop"
1120
  msgstr ""
1121
 
1122
- #: EmbedPress/Ends/Back/Settings/templates/vimeo.php:53
1123
  msgid "Play the video again automatically when it reaches the end."
1124
  msgstr ""
1125
 
1126
- #: EmbedPress/Ends/Back/Settings/templates/vimeo.php:57
1127
  msgid "Auto Pause"
1128
  msgstr ""
1129
 
1130
- #: EmbedPress/Ends/Back/Settings/templates/vimeo.php:70
1131
  msgid "Pause this video automatically when another one plays."
1132
  msgstr ""
1133
 
1134
- #: EmbedPress/Ends/Back/Settings/templates/vimeo.php:74
1135
  msgid "DNT"
1136
  msgstr ""
1137
 
1138
- #: EmbedPress/Ends/Back/Settings/templates/vimeo.php:87
1139
  msgid "Setting this parameter to \"yes\" will block the player from tracking any session data, including all cookies."
1140
  msgstr ""
1141
 
1142
- #: EmbedPress/Ends/Back/Settings/templates/vimeo.php:91
1143
- #: EmbedPress/Ends/Back/Settings/templates/wistia.php:126
1144
- #: EmbedPress/Includes/Classes/Feature_Enhancer.php:693
1145
  msgid "Color"
1146
  msgstr ""
1147
 
1148
- #: EmbedPress/Ends/Back/Settings/templates/vimeo.php:99
1149
  msgid "Display Title"
1150
  msgstr ""
1151
 
1152
- #: EmbedPress/Ends/Back/Settings/templates/vimeo.php:111
1153
  msgid "Indicates whether the title is displayed."
1154
  msgstr ""
1155
 
1156
- #: EmbedPress/Ends/Back/Settings/templates/vimeo.php:115
1157
  msgid "Display Author"
1158
  msgstr ""
1159
 
1160
- #: EmbedPress/Ends/Back/Settings/templates/vimeo.php:128
1161
  msgid "Indicates whether the author is displayed."
1162
  msgstr ""
1163
 
1164
- #: EmbedPress/Ends/Back/Settings/templates/vimeo.php:132
1165
  msgid "Display Avatar"
1166
  msgstr ""
1167
 
1168
- #: EmbedPress/Ends/Back/Settings/templates/vimeo.php:145
1169
  msgid "Indicates whether the avatar is displayed."
1170
  msgstr ""
1171
 
@@ -1173,183 +1195,171 @@ msgstr ""
1173
  msgid "Wistia Settings"
1174
  msgstr ""
1175
 
1176
- #: EmbedPress/Ends/Back/Settings/templates/wistia.php:43
1177
- #: EmbedPress/Includes/Classes/Feature_Enhancer.php:655
1178
  msgid "Indicates whether the fullscreen button is visible."
1179
  msgstr ""
1180
 
1181
- #: EmbedPress/Ends/Back/Settings/templates/wistia.php:47
1182
- #: EmbedPress/Includes/Classes/Feature_Enhancer.php:660
1183
  msgid "Playbar"
1184
  msgstr ""
1185
 
1186
- #: EmbedPress/Ends/Back/Settings/templates/wistia.php:60
1187
- #: EmbedPress/Includes/Classes/Feature_Enhancer.php:661
1188
  msgid "Indicates whether the playbar is visible."
1189
  msgstr ""
1190
 
1191
- #: EmbedPress/Ends/Back/Settings/templates/wistia.php:76
1192
- #: EmbedPress/Includes/Classes/Feature_Enhancer.php:667
1193
  msgid "Indicates whether the small play button is visible on the bottom left."
1194
  msgstr ""
1195
 
1196
- #: EmbedPress/Ends/Back/Settings/templates/wistia.php:80
1197
- #: EmbedPress/Includes/Classes/Feature_Enhancer.php:673
1198
  msgid "Volume Control"
1199
  msgstr ""
1200
 
1201
- #: EmbedPress/Ends/Back/Settings/templates/wistia.php:93
1202
- #: EmbedPress/Includes/Classes/Feature_Enhancer.php:674
1203
  msgid "Indicates whether the volume control is visible."
1204
  msgstr ""
1205
 
1206
- #: EmbedPress/Ends/Back/Settings/templates/wistia.php:98
1207
- #: EmbedPress/Includes/Classes/Feature_Enhancer.php:686
1208
  msgid "Volume"
1209
  msgstr ""
1210
 
1211
- #: EmbedPress/Ends/Back/Settings/templates/wistia.php:102
1212
- #: EmbedPress/Includes/Classes/Feature_Enhancer.php:687
1213
  msgid "Start the video with a custom volume level. Set values between 0 and 100."
1214
  msgstr ""
1215
 
1216
- #: EmbedPress/Ends/Back/Settings/templates/wistia.php:134
1217
- #: EmbedPress/Includes/Classes/Feature_Enhancer.php:700
1218
  msgid "Plugin: Resumable"
1219
  msgstr ""
1220
 
1221
- #: EmbedPress/Ends/Back/Settings/templates/wistia.php:146
1222
  msgid "Indicates whether the Resumable plugin is active. Allow to resume the video or start from the beginning."
1223
  msgstr ""
1224
 
1225
- #: EmbedPress/Ends/Back/Settings/templates/wistia.php:150
1226
- #: EmbedPress/Includes/Classes/Feature_Enhancer.php:707
1227
  msgid "Plugin: Captions"
1228
  msgstr ""
1229
 
1230
- #: EmbedPress/Ends/Back/Settings/templates/wistia.php:163
1231
- #: EmbedPress/Includes/Classes/Feature_Enhancer.php:708
1232
  msgid "Indicates whether the Captions plugin is active."
1233
  msgstr ""
1234
 
1235
- #: EmbedPress/Ends/Back/Settings/templates/wistia.php:180
1236
- #: EmbedPress/Includes/Classes/Feature_Enhancer.php:714
1237
  msgid "Indicates whether the Captions are enabled by default."
1238
  msgstr ""
1239
 
1240
- #: EmbedPress/Ends/Back/Settings/templates/wistia.php:196
1241
- #: EmbedPress/Includes/Classes/Feature_Enhancer.php:720
1242
  msgid "Indicates whether the Focus plugin is active."
1243
  msgstr ""
1244
 
1245
- #: EmbedPress/Ends/Back/Settings/templates/wistia.php:200
1246
- #: EmbedPress/Includes/Classes/Feature_Enhancer.php:725
1247
  msgid "Plugin: Rewind"
1248
  msgstr ""
1249
 
1250
- #: EmbedPress/Ends/Back/Settings/templates/wistia.php:213
1251
- #: EmbedPress/Includes/Classes/Feature_Enhancer.php:726
1252
  msgid "Indicates whether the Rewind plugin is active."
1253
  msgstr ""
1254
 
1255
- #: EmbedPress/Ends/Back/Settings/templates/wistia.php:217
1256
  msgid "Rewind Time (In Seconds)"
1257
  msgstr ""
1258
 
1259
- #: EmbedPress/Ends/Back/Settings/templates/wistia.php:220
1260
- #: EmbedPress/Includes/Classes/Feature_Enhancer.php:732
1261
  msgid "The amount of time to rewind, in seconds."
1262
  msgstr ""
1263
 
1264
- #: EmbedPress/Ends/Back/Settings/templates/youtube.php:26
1265
  msgid "YouTube Settings"
1266
  msgstr ""
1267
 
1268
- #: EmbedPress/Ends/Back/Settings/templates/youtube.php:49
1269
- msgid "Progress Bar Color"
1270
- msgstr ""
1271
-
1272
- #: EmbedPress/Ends/Back/Settings/templates/youtube.php:60
1273
  msgid "Specifies the color that will be used in the player's video progress bar to highlight the amount of the video that the viewer has already seen. %s Note: Setting the color to white will disable the Modest Branding option (causing a YouTube logo to be displayed in the control bar)."
1274
  msgstr ""
1275
 
1276
- #: EmbedPress/Ends/Back/Settings/templates/youtube.php:64
1277
  msgid "Force Closed Captions"
1278
  msgstr ""
1279
 
1280
- #: EmbedPress/Ends/Back/Settings/templates/youtube.php:78
1281
  msgid "Setting this option to %s causes closed captions to be shown by default, even if the user has turned captions off. This will be based on user preference otherwise."
1282
  msgstr ""
1283
 
1284
- #: EmbedPress/Ends/Back/Settings/templates/youtube.php:82
1285
  msgid "Display Controls"
1286
  msgstr ""
1287
 
1288
- #: EmbedPress/Ends/Back/Settings/templates/youtube.php:112
1289
  msgid "Display Video Annotations"
1290
  msgstr ""
1291
 
1292
- #: EmbedPress/Ends/Back/Settings/templates/youtube.php:121
1293
  msgid "Indicates whether video annotations are displayed."
1294
  msgstr ""
1295
 
1296
- #: EmbedPress/Ends/Back/Settings/templates/youtube.php:125
1297
  msgid "Display Related Videos"
1298
  msgstr ""
1299
 
1300
- #: EmbedPress/Ends/Back/Settings/templates/youtube.php:130
1301
  msgid "From the same channel of the video"
1302
  msgstr ""
1303
 
1304
- #: EmbedPress/Ends/Back/Settings/templates/youtube.php:131
1305
  msgid "Based on User's watch history"
1306
  msgstr ""
1307
 
1308
- #: EmbedPress/Ends/Back/Settings/templates/youtube.php:137
1309
  msgid "Indicates how the player should show related videos when playback of the video pauses or ends."
1310
  msgstr ""
1311
 
1312
- #: EmbedPress/Ends/Back/Settings/templates/youtube.php:141
1313
  msgid "Modest Branding"
1314
  msgstr ""
1315
 
1316
- #: EmbedPress/Ends/Back/Settings/templates/youtube.php:152
1317
  msgid "Indicates whether the player should display a YouTube logo in the control bar."
1318
  msgstr ""
1319
 
1320
- #: EmbedPress/Ends/Back/Settings/templates/youtube.php:156
 
 
 
 
 
 
 
 
1321
  msgid "Subscription Button"
1322
  msgstr ""
1323
 
1324
- #: EmbedPress/Ends/Back/Settings/templates/youtube.php:159
1325
  msgid "Channel Link or ID"
1326
  msgstr ""
1327
 
1328
- #: EmbedPress/Ends/Back/Settings/templates/youtube.php:163
1329
  msgid "You can use either your channel link or channel ID to show the subscription button."
1330
  msgstr ""
1331
 
1332
- #: EmbedPress/Ends/Back/Settings/templates/youtube.php:170
1333
  msgid "Subscription Text"
1334
  msgstr ""
1335
 
1336
- #: EmbedPress/Ends/Back/Settings/templates/youtube.php:174
1337
  msgid "Optionally you can output some CTA text before the subscriber button."
1338
  msgstr ""
1339
 
1340
- #: EmbedPress/Ends/Back/Settings/templates/youtube.php:181
1341
  msgid "Layout"
1342
  msgstr ""
1343
 
1344
- #: EmbedPress/Ends/Back/Settings/templates/youtube.php:192
1345
  msgid "Full layout shows channel image. Default layout shows only channel name and subscription button."
1346
  msgstr ""
1347
 
1348
- #: EmbedPress/Ends/Back/Settings/templates/youtube.php:208
1349
  msgid "Default theme is good for white background. Dark theme is good for black background."
1350
  msgstr ""
1351
 
1352
- #: EmbedPress/Ends/Back/Settings/templates/youtube.php:213
1353
  msgid "Show Subscriber Count"
1354
  msgstr ""
1355
 
@@ -1421,36 +1431,24 @@ msgstr ""
1421
  msgid "Just Deactivate"
1422
  msgstr ""
1423
 
1424
- #: EmbedPress/Includes/Classes/Feature_Enhancer.php:348
1425
- #: EmbedPress/Includes/Classes/Feature_Enhancer.php:759
1426
  #: Gutenberg/plugin.php:55
1427
  msgid "Watch from the beginning"
1428
  msgstr ""
1429
 
1430
- #: EmbedPress/Includes/Classes/Feature_Enhancer.php:349
1431
- #: EmbedPress/Includes/Classes/Feature_Enhancer.php:760
1432
  #: Gutenberg/plugin.php:56
1433
  msgid "Skip to where you left off"
1434
  msgstr ""
1435
 
1436
- #: EmbedPress/Includes/Classes/Feature_Enhancer.php:350
1437
- #: EmbedPress/Includes/Classes/Feature_Enhancer.php:761
1438
  #: Gutenberg/plugin.php:57
1439
  msgid "It looks like you've watched<br />part of this video before!"
1440
  msgstr ""
1441
 
1442
- #: EmbedPress/Includes/Classes/Feature_Enhancer.php:701
1443
- msgid "Indicates whether the Resumable plugin is active. Allow to resume the video or start from the begining."
1444
- msgstr ""
1445
-
1446
- #: EmbedPress/Includes/Classes/Feature_Enhancer.php:719
1447
- msgid "Plugin: Focus"
1448
- msgstr ""
1449
-
1450
- #: EmbedPress/Includes/Classes/Feature_Enhancer.php:731
1451
- msgid "Rewind time (seconds)"
1452
- msgstr ""
1453
-
1454
  #: EmbedPress/Includes/Traits/Shared.php:26
1455
  msgid "Want to help make <strong>EmbedPress</strong> even more awesome? You can get a <strong>10% discount coupon</strong> for Premium extensions if you allow us to track the usage."
1456
  msgstr ""
@@ -1507,6 +1505,6 @@ msgstr ""
1507
  msgid "This message is only visible to you."
1508
  msgstr ""
1509
 
1510
- #: Gutenberg/src/document/edit.js:193
1511
  msgid "Embed Size"
1512
  msgstr ""
2
  # This file is distributed under the same license as the EmbedPress plugin.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: EmbedPress 3.1.1\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/embedpress\n"
7
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
8
  "Language-Team: LANGUAGE <LL@li.org>\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
+ "POT-Creation-Date: 2021-08-23T05:24:06+00:00\n"
13
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
14
  "X-Generator: WP-CLI 2.5.0\n"
15
  "X-Domain: embedpress\n"
44
 
45
  #: EmbedPress/Core.php:508
46
  #: EmbedPress/CoreLegacy.php:309
47
+ #: EmbedPress/Ends/Back/Settings/templates/custom-logo.php:132
48
  #: EmbedPress/Ends/Back/Settings/templates/partials/sidebar.php:18
49
  #: EmbedPress/Plugins/Plugin.php:159
50
  msgid "Settings"
56
  msgid "Go Pro"
57
  msgstr ""
58
 
59
+ #: EmbedPress/Elementor/Widgets/Embedpress_Document.php:24
60
  msgid "EmbedPress Document"
61
  msgstr ""
62
 
63
+ #: EmbedPress/Elementor/Widgets/Embedpress_Document.php:66
64
  #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:83
65
  msgid "Content Settings"
66
  msgstr ""
67
 
68
+ #: EmbedPress/Elementor/Widgets/Embedpress_Document.php:73
69
  msgid "Document Type"
70
  msgstr ""
71
 
72
+ #: EmbedPress/Elementor/Widgets/Embedpress_Document.php:77
73
  msgid "File"
74
  msgstr ""
75
 
76
+ #: EmbedPress/Elementor/Widgets/Embedpress_Document.php:78
77
+ #: EmbedPress/Elementor/Widgets/Embedpress_Document.php:115
78
  msgid "URL"
79
  msgstr ""
80
 
81
+ #: EmbedPress/Elementor/Widgets/Embedpress_Document.php:87
82
  msgid "Upload File"
83
  msgstr ""
84
 
85
+ #: EmbedPress/Elementor/Widgets/Embedpress_Document.php:104
86
  msgid "Upload a file or pick one from your media library for embed. Supported File Type: PDF, DOC/DOCX, PPT/PPTX, XLS/XLSX etc."
87
  msgstr ""
88
 
89
+ #: EmbedPress/Elementor/Widgets/Embedpress_Document.php:117
90
  msgid "https://your-link.com/file.pdf"
91
  msgstr ""
92
 
93
+ #: EmbedPress/Elementor/Widgets/Embedpress_Document.php:131
94
+ #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:1408
95
+ #: Gutenberg/src/document/edit.js:201
96
  msgid "Width"
97
  msgstr ""
98
 
99
+ #: EmbedPress/Elementor/Widgets/Embedpress_Document.php:154
100
+ #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:1427
101
+ #: Gutenberg/src/document/edit.js:213
102
  msgid "Height"
103
  msgstr ""
104
 
105
+ #: EmbedPress/Elementor/Widgets/Embedpress_Document.php:176
106
  msgid "Alignment"
107
  msgstr ""
108
 
109
+ #: EmbedPress/Elementor/Widgets/Embedpress_Document.php:180
110
  msgid "Left"
111
  msgstr ""
112
 
113
+ #: EmbedPress/Elementor/Widgets/Embedpress_Document.php:184
114
  msgid "Center"
115
  msgstr ""
116
 
117
+ #: EmbedPress/Elementor/Widgets/Embedpress_Document.php:188
118
  msgid "Right"
119
  msgstr ""
120
 
121
+ #: EmbedPress/Elementor/Widgets/Embedpress_Document.php:199
122
  msgid "Powered By"
123
  msgstr ""
124
 
125
+ #: EmbedPress/Elementor/Widgets/Embedpress_Document.php:201
126
+ #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:446
127
+ #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:466
128
+ #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:482
129
+ #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:498
130
+ #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:515
131
+ #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:531
132
+ #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:547
133
+ #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:827
134
+ #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:839
135
+ #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:870
136
+ #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:899
137
+ #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:917
138
+ #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:933
139
+ #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:951
140
+ #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:968
141
+ #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:985
142
+ #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:1001
143
+ #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:1017
144
  #: EmbedPress/Ends/Back/Settings/templates/soundcloud.php:78
145
  #: EmbedPress/Ends/Back/Settings/templates/soundcloud.php:96
146
  #: EmbedPress/Ends/Back/Settings/templates/soundcloud.php:113
148
  #: EmbedPress/Ends/Back/Settings/templates/soundcloud.php:144
149
  #: EmbedPress/Ends/Back/Settings/templates/soundcloud.php:163
150
  #: EmbedPress/Ends/Back/Settings/templates/soundcloud.php:182
151
+ #: EmbedPress/Ends/Back/Settings/templates/youtube.php:127
152
+ #: EmbedPress/Ends/Back/Settings/templates/youtube.php:156
153
  msgid "Show"
154
  msgstr ""
155
 
156
+ #: EmbedPress/Elementor/Widgets/Embedpress_Document.php:202
157
+ #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:445
158
+ #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:465
159
+ #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:481
160
+ #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:497
161
+ #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:514
162
+ #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:530
163
+ #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:546
164
+ #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:826
165
+ #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:838
166
+ #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:869
167
+ #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:898
168
+ #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:916
169
+ #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:932
170
+ #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:950
171
+ #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:967
172
+ #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:984
173
+ #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:1000
174
+ #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:1016
175
  #: EmbedPress/Ends/Back/Settings/templates/soundcloud.php:74
176
  #: EmbedPress/Ends/Back/Settings/templates/soundcloud.php:92
177
  #: EmbedPress/Ends/Back/Settings/templates/soundcloud.php:109
179
  #: EmbedPress/Ends/Back/Settings/templates/soundcloud.php:140
180
  #: EmbedPress/Ends/Back/Settings/templates/soundcloud.php:159
181
  #: EmbedPress/Ends/Back/Settings/templates/soundcloud.php:178
182
+ #: EmbedPress/Ends/Back/Settings/templates/youtube.php:128
183
+ #: EmbedPress/Ends/Back/Settings/templates/youtube.php:155
184
  msgid "Hide"
185
  msgstr ""
186
 
187
+ #: EmbedPress/Elementor/Widgets/Embedpress_Document.php:257
188
  msgid "Powered By EmbedPress"
189
  msgstr ""
190
 
197
  msgstr ""
198
 
199
  #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:96
200
+ #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:380
201
+ #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:398
202
+ #: EmbedPress/Ends/Back/Settings/templates/youtube.php:216
203
+ #: EmbedPress/Ends/Back/Settings/templates/youtube.php:232
204
  msgid "Default"
205
  msgstr ""
206
 
243
  msgstr ""
244
 
245
  #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:123
246
+ #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:1170
247
  msgid "Player Background"
248
  msgstr ""
249
 
250
  #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:124
251
+ #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:1171
252
  #: EmbedPress/Ends/Back/Settings/templates/spotify.php:31
253
  msgid "Dynamic option will use the most vibrant color from the album art."
254
  msgstr ""
255
 
256
  #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:129
257
+ #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:1176
258
  msgid "Dynamic"
259
  msgstr ""
260
 
261
  #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:130
262
+ #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:1177
263
  msgid "Black & White"
264
  msgstr ""
265
 
266
  #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:141
267
+ msgid "Start Time"
268
  msgstr ""
269
 
270
+ #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:143
271
  msgid "Specify a start time (in seconds)"
272
  msgstr ""
273
 
288
  msgstr ""
289
 
290
  #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:206
291
+ #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:476
292
+ #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:573
293
+ #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:893
294
+ #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:1029
295
  #: EmbedPress/Ends/Back/Settings/templates/dailymotion.php:37
296
  #: EmbedPress/Ends/Back/Settings/templates/soundcloud.php:51
297
+ #: EmbedPress/Ends/Back/Settings/templates/twitch.php:32
298
+ #: EmbedPress/Ends/Back/Settings/templates/vimeo.php:34
299
+ #: EmbedPress/Ends/Back/Settings/templates/wistia.php:116
300
+ #: EmbedPress/Ends/Back/Settings/templates/youtube.php:45
 
301
  msgid "Auto Play"
302
  msgstr ""
303
 
304
  #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:217
305
+ #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:618
306
  msgid "Player Options"
307
  msgstr ""
308
 
311
  msgstr ""
312
 
313
  #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:230
314
+ #: EmbedPress/Ends/Back/Settings/templates/youtube.php:97
315
  msgid "Display immediately"
316
  msgstr ""
317
 
318
  #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:231
319
+ #: EmbedPress/Ends/Back/Settings/templates/youtube.php:98
320
  msgid "Display after user initiation"
321
  msgstr ""
322
 
323
  #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:232
324
+ #: EmbedPress/Ends/Back/Settings/templates/youtube.php:99
325
  msgid "Hide controls"
326
  msgstr ""
327
 
334
  msgstr ""
335
 
336
  #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:259
337
+ #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:301
338
  msgid "Display"
339
  msgstr ""
340
 
341
  #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:260
342
+ #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:302
343
  msgid "Do Not Display"
344
  msgstr ""
345
 
346
  #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:269
347
+ #: EmbedPress/Ends/Back/Settings/templates/youtube.php:61
348
+ msgid "Progress Bar Color"
349
  msgstr ""
350
 
351
+ #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:274
352
+ #: EmbedPress/Ends/Back/Settings/templates/youtube.php:66
353
  msgid "Red"
354
  msgstr ""
355
 
356
+ #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:275
357
+ #: EmbedPress/Ends/Back/Settings/templates/youtube.php:67
358
  msgid "White"
359
  msgstr ""
360
 
361
+ #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:283
362
  msgid "Closed Captions %s"
363
  msgstr ""
364
 
365
+ #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:296
366
  msgid "Modest Branding %s"
367
  msgstr ""
368
 
369
+ #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:315
370
  msgid "Related Videos %s"
371
  msgstr ""
372
 
373
+ #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:333
374
  msgid "YouTube Subscriber Option"
375
  msgstr ""
376
 
377
+ #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:344
378
  msgid "Channel Link or ID %s"
379
  msgstr ""
380
 
381
+ #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:349
382
  msgid "Enter Channel Link or ID"
383
  msgstr ""
384
 
385
+ #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:359
386
  msgid "Subscription Text %s"
387
  msgstr ""
388
 
389
+ #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:364
390
+ #: EmbedPress/Ends/Back/Settings/templates/youtube.php:202
391
  msgid "Eg. Don't miss out! Subscribe"
392
  msgstr ""
393
 
394
+ #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:375
395
  msgid "Layout %s"
396
  msgstr ""
397
 
398
+ #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:381
399
+ #: EmbedPress/Ends/Back/Settings/templates/youtube.php:217
400
  msgid "Full"
401
  msgstr ""
402
 
403
+ #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:393
 
404
  msgid "Theme %s"
405
  msgstr ""
406
 
407
+ #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:399
408
+ #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:850
409
+ #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:1192
410
+ #: EmbedPress/Ends/Back/Settings/templates/twitch.php:70
411
+ #: EmbedPress/Ends/Back/Settings/templates/youtube.php:233
412
  msgid "Dark"
413
  msgstr ""
414
 
415
+ #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:411
416
  msgid "Subscriber Count %s"
417
  msgstr ""
418
 
419
+ #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:431
420
+ msgid "YouTube Live Chat Option"
421
+ msgstr ""
422
+
423
+ #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:440
424
+ msgid "Show YouTube Live Chat"
425
+ msgstr ""
426
+
427
+ #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:460
428
  msgid "Logo %s"
429
  msgstr ""
430
 
431
+ #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:492
432
  msgid "Play On Mobile"
433
  msgstr ""
434
 
435
+ #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:509
436
  #: EmbedPress/Ends/Back/Settings/templates/dailymotion.php:71
437
  msgid "Mute"
438
  msgstr ""
439
 
440
+ #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:525
441
  msgid "Player Controls"
442
  msgstr ""
443
 
444
+ #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:541
445
  msgid "Video Info"
446
  msgstr ""
447
 
448
+ #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:559
449
  msgid "Control Color"
450
  msgstr ""
451
 
452
+ #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:587
453
+ #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:880
454
+ #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:1044
455
  #: EmbedPress/Ends/Back/Settings/templates/soundcloud.php:44
456
  msgid "Scheme"
457
  msgstr ""
458
 
459
+ #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:602
460
+ #: EmbedPress/Ends/Back/Settings/templates/wistia.php:174
 
461
  msgid "Captions Enabled By Default"
462
  msgstr ""
463
 
464
+ #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:632
465
+ #: EmbedPress/Ends/Back/Settings/templates/wistia.php:39
 
466
  msgid "Fullscreen Button"
467
  msgstr ""
468
 
469
+ #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:646
470
+ #: EmbedPress/Ends/Back/Settings/templates/wistia.php:71
 
471
  msgid "Small Play Button"
472
  msgstr ""
473
 
474
+ #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:663
475
  msgid "Resumable"
476
  msgstr ""
477
 
478
+ #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:678
479
  msgid "Focus"
480
  msgstr ""
481
 
482
+ #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:693
483
  msgid "Captions %s"
484
  msgstr ""
485
 
486
+ #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:707
487
+ msgid "Playbar "
488
  msgstr ""
489
 
490
+ #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:721
491
  msgid "Volume Control %s"
492
  msgstr ""
493
 
494
+ #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:737
495
  msgid "Volume %s"
496
  msgstr ""
497
 
498
+ #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:759
499
+ msgid "Rewind"
500
  msgstr ""
501
 
502
+ #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:773
503
  msgid "Rewind time"
504
  msgstr ""
505
 
506
+ #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:800
507
  msgid "Autoplay"
508
  msgstr ""
509
 
510
+ #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:802
511
+ #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:813
512
  #: EmbedPress/Ends/Back/Settings/templates/dailymotion.php:42
513
  #: EmbedPress/Ends/Back/Settings/templates/dailymotion.php:59
514
  #: EmbedPress/Ends/Back/Settings/templates/dailymotion.php:76
517
  #: EmbedPress/Ends/Back/Settings/templates/dailymotion.php:131
518
  #: EmbedPress/Ends/Back/Settings/templates/soundcloud.php:34
519
  #: EmbedPress/Ends/Back/Settings/templates/soundcloud.php:56
520
+ #: EmbedPress/Ends/Back/Settings/templates/twitch.php:37
521
+ #: EmbedPress/Ends/Back/Settings/templates/twitch.php:53
522
+ #: EmbedPress/Ends/Back/Settings/templates/twitch.php:83
523
+ #: EmbedPress/Ends/Back/Settings/templates/twitch.php:99
524
+ #: EmbedPress/Ends/Back/Settings/templates/vimeo.php:39
525
+ #: EmbedPress/Ends/Back/Settings/templates/vimeo.php:55
526
+ #: EmbedPress/Ends/Back/Settings/templates/vimeo.php:72
527
+ #: EmbedPress/Ends/Back/Settings/templates/vimeo.php:89
528
+ #: EmbedPress/Ends/Back/Settings/templates/vimeo.php:114
529
+ #: EmbedPress/Ends/Back/Settings/templates/vimeo.php:130
530
+ #: EmbedPress/Ends/Back/Settings/templates/vimeo.php:146
531
+ #: EmbedPress/Ends/Back/Settings/templates/wistia.php:44
532
+ #: EmbedPress/Ends/Back/Settings/templates/wistia.php:60
533
+ #: EmbedPress/Ends/Back/Settings/templates/wistia.php:76
534
+ #: EmbedPress/Ends/Back/Settings/templates/wistia.php:92
535
+ #: EmbedPress/Ends/Back/Settings/templates/wistia.php:121
536
+ #: EmbedPress/Ends/Back/Settings/templates/wistia.php:146
537
+ #: EmbedPress/Ends/Back/Settings/templates/wistia.php:162
538
+ #: EmbedPress/Ends/Back/Settings/templates/wistia.php:179
539
+ #: EmbedPress/Ends/Back/Settings/templates/wistia.php:196
540
+ #: EmbedPress/Ends/Back/Settings/templates/wistia.php:212
541
+ #: EmbedPress/Ends/Back/Settings/templates/youtube.php:50
542
+ #: EmbedPress/Ends/Back/Settings/templates/youtube.php:79
543
+ #: EmbedPress/Ends/Back/Settings/templates/youtube.php:111
544
+ #: EmbedPress/Ends/Back/Settings/templates/youtube.php:172
545
+ #: EmbedPress/Ends/Back/Settings/templates/youtube.php:248
546
  msgid "No"
547
  msgstr ""
548
 
549
+ #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:803
550
+ #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:814
551
  #: EmbedPress/Ends/Back/Settings/templates/dailymotion.php:46
552
  #: EmbedPress/Ends/Back/Settings/templates/dailymotion.php:63
553
  #: EmbedPress/Ends/Back/Settings/templates/dailymotion.php:80
556
  #: EmbedPress/Ends/Back/Settings/templates/dailymotion.php:135
557
  #: EmbedPress/Ends/Back/Settings/templates/soundcloud.php:38
558
  #: EmbedPress/Ends/Back/Settings/templates/soundcloud.php:60
559
+ #: EmbedPress/Ends/Back/Settings/templates/twitch.php:41
560
+ #: EmbedPress/Ends/Back/Settings/templates/twitch.php:57
561
+ #: EmbedPress/Ends/Back/Settings/templates/twitch.php:87
562
+ #: EmbedPress/Ends/Back/Settings/templates/twitch.php:103
563
+ #: EmbedPress/Ends/Back/Settings/templates/vimeo.php:43
564
+ #: EmbedPress/Ends/Back/Settings/templates/vimeo.php:59
565
+ #: EmbedPress/Ends/Back/Settings/templates/vimeo.php:76
566
+ #: EmbedPress/Ends/Back/Settings/templates/vimeo.php:93
567
+ #: EmbedPress/Ends/Back/Settings/templates/vimeo.php:118
568
+ #: EmbedPress/Ends/Back/Settings/templates/vimeo.php:134
569
+ #: EmbedPress/Ends/Back/Settings/templates/vimeo.php:150
570
+ #: EmbedPress/Ends/Back/Settings/templates/wistia.php:48
571
+ #: EmbedPress/Ends/Back/Settings/templates/wistia.php:64
572
+ #: EmbedPress/Ends/Back/Settings/templates/wistia.php:80
573
+ #: EmbedPress/Ends/Back/Settings/templates/wistia.php:96
574
+ #: EmbedPress/Ends/Back/Settings/templates/wistia.php:125
575
+ #: EmbedPress/Ends/Back/Settings/templates/wistia.php:150
576
+ #: EmbedPress/Ends/Back/Settings/templates/wistia.php:166
577
+ #: EmbedPress/Ends/Back/Settings/templates/wistia.php:183
578
+ #: EmbedPress/Ends/Back/Settings/templates/wistia.php:200
579
+ #: EmbedPress/Ends/Back/Settings/templates/wistia.php:216
580
+ #: EmbedPress/Ends/Back/Settings/templates/youtube.php:54
581
+ #: EmbedPress/Ends/Back/Settings/templates/youtube.php:83
582
+ #: EmbedPress/Ends/Back/Settings/templates/youtube.php:115
583
+ #: EmbedPress/Ends/Back/Settings/templates/youtube.php:176
584
+ #: EmbedPress/Ends/Back/Settings/templates/youtube.php:252
585
  msgid "Yes"
586
  msgstr ""
587
 
588
+ #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:811
589
  msgid "Allow Full Screen Video"
590
  msgstr ""
591
 
592
+ #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:824
593
  msgid "Show Chat %s"
594
  msgstr ""
595
 
596
+ #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:836
597
+ msgid "Mute on start"
598
+ msgstr ""
599
+
600
+ #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:846
601
+ #: EmbedPress/Ends/Back/Settings/templates/twitch.php:65
602
+ #: EmbedPress/Ends/Back/Settings/templates/youtube.php:227
603
+ msgid "Theme"
604
  msgstr ""
605
 
606
+ #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:851
607
+ #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:1191
608
+ #: EmbedPress/Ends/Back/Settings/templates/twitch.php:71
609
  msgid "Light"
610
  msgstr ""
611
 
612
+ #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:864
613
  #: EmbedPress/Ends/Back/Settings/templates/soundcloud.php:29
614
  msgid "Visual Player"
615
  msgstr ""
616
 
617
+ #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:911
618
  #: EmbedPress/Ends/Back/Settings/templates/soundcloud.php:104
619
  msgid "Share Button"
620
  msgstr ""
621
 
622
+ #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:927
623
  #: EmbedPress/Ends/Back/Settings/templates/soundcloud.php:119
624
  msgid "Comments"
625
  msgstr ""
626
 
627
+ #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:945
628
  #: EmbedPress/Ends/Back/Settings/templates/soundcloud.php:135
629
  msgid "Artwork"
630
  msgstr ""
631
 
632
+ #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:962
633
  #: EmbedPress/Ends/Back/Settings/templates/soundcloud.php:154
634
  msgid "Play Count"
635
  msgstr ""
636
 
637
+ #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:979
638
  msgid "User Name"
639
  msgstr ""
640
 
641
+ #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:995
642
  msgid "Buy Button %s"
643
  msgstr ""
644
 
645
+ #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:1011
646
  msgid "Download Button %s"
647
  msgstr ""
648
 
649
+ #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:1057
650
  msgid "Author Information"
651
  msgstr ""
652
 
653
+ #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:1069
654
  msgid "Title"
655
  msgstr ""
656
 
657
+ #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:1085
658
+ msgid "Author"
659
  msgstr ""
660
 
661
+ #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:1099
662
+ msgid "Avatar"
663
  msgstr ""
664
 
665
+ #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:1113
666
  msgid "Loop %s"
667
  msgstr ""
668
 
669
+ #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:1128
670
  msgid "Auto Pause %s"
671
  msgstr ""
672
 
673
+ #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:1143
674
  msgid "DNT %s"
675
  msgstr ""
676
 
677
+ #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:1148
678
  msgid "Set this parameter to \"yes\" will block the player from tracking any session data, including all cookies"
679
  msgstr ""
680
 
681
+ #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:1186
682
  msgid "Follow Widget Background"
683
  msgstr ""
684
 
685
+ #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:1209
686
+ #: EmbedPress/Includes/Traits/Branding.php:26
687
  msgid "Custom Logo & CTA"
688
  msgstr ""
689
 
690
+ #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:1218
691
+ #: EmbedPress/Includes/Traits/Branding.php:34
692
  msgid "Custom Logo %s"
693
  msgstr ""
694
 
695
+ #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:1219
696
+ #: EmbedPress/Includes/Traits/Branding.php:35
697
  msgid "Leave it empty to hide it"
698
  msgstr ""
699
 
700
+ #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:1240
701
+ #: EmbedPress/Includes/Traits/Branding.php:55
702
  msgid "Logo X Position"
703
  msgstr ""
704
 
705
+ #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:1241
706
+ #: EmbedPress/Includes/Traits/Branding.php:56
707
  msgid "Change this number to move your logo in horizontal direction."
708
  msgstr ""
709
 
710
+ #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:1269
711
+ #: EmbedPress/Ends/Back/Settings/templates/custom-logo.php:165
712
+ #: EmbedPress/Includes/Traits/Branding.php:84
713
  msgid "Logo Y Position (%)"
714
  msgstr ""
715
 
716
+ #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:1270
717
+ #: EmbedPress/Includes/Traits/Branding.php:85
718
  msgid "Change this number to move your logo in vertical direction."
719
  msgstr ""
720
 
721
+ #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:1304
722
+ #: EmbedPress/Includes/Traits/Branding.php:119
723
  msgid "Normal"
724
  msgstr ""
725
 
726
+ #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:1310
727
+ #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:1338
728
+ #: EmbedPress/Includes/Traits/Branding.php:125
729
+ #: EmbedPress/Includes/Traits/Branding.php:153
730
  msgid "Logo Opacity"
731
  msgstr ""
732
 
733
+ #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:1332
734
+ #: EmbedPress/Includes/Traits/Branding.php:147
735
  msgid "Hover"
736
  msgstr ""
737
 
738
+ #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:1363
739
+ #: EmbedPress/Includes/Traits/Branding.php:178
740
  msgid "CTA link for Logo"
741
  msgstr ""
742
 
743
+ #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:1364
744
+ #: EmbedPress/Includes/Traits/Branding.php:179
745
  msgid "You can show the logo inside a link. Leave it empty to hide it"
746
  msgstr ""
747
 
748
+ #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:1369
749
+ #: EmbedPress/Includes/Traits/Branding.php:184
750
  msgid "https://your-link.com"
751
  msgstr ""
752
 
753
+ #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:1381
754
  msgid "Style"
755
  msgstr ""
756
 
757
+ #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:1446
 
 
 
 
 
 
 
 
758
  msgid "Margin"
759
  msgstr ""
760
 
761
+ #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:1457
762
  msgid "Padding"
763
  msgstr ""
764
 
765
+ #: EmbedPress/Elementor/Widgets/Embedpress_Elementor.php:1469
766
  msgid "Background"
767
  msgstr ""
768
 
792
  msgid "Custom Logo"
793
  msgstr ""
794
 
795
+ #: EmbedPress/Ends/Back/Settings/templates/custom-logo.php:58
796
+ msgid "For Document"
797
+ msgstr ""
798
+
799
+ #: EmbedPress/Ends/Back/Settings/templates/custom-logo.php:65
800
  #: EmbedPress/Ends/Back/Settings/templates/dailymotion.php:155
801
  #: EmbedPress/Ends/Back/Settings/templates/general.php:64
802
  #: EmbedPress/Ends/Back/Settings/templates/soundcloud.php:189
803
  #: EmbedPress/Ends/Back/Settings/templates/spotify.php:84
804
+ #: EmbedPress/Ends/Back/Settings/templates/twitch.php:110
805
+ #: EmbedPress/Ends/Back/Settings/templates/vimeo.php:157
806
+ #: EmbedPress/Ends/Back/Settings/templates/wistia.php:230
807
+ #: EmbedPress/Ends/Back/Settings/templates/youtube.php:261
808
  msgid "Save Changes"
809
  msgstr ""
810
 
811
+ #: EmbedPress/Ends/Back/Settings/templates/custom-logo.php:125
812
  msgid "%s Custom Branding"
813
  msgstr ""
814
 
815
+ #: EmbedPress/Ends/Back/Settings/templates/custom-logo.php:139
816
  msgid "Click To Upload"
817
  msgstr ""
818
 
819
+ #: EmbedPress/Ends/Back/Settings/templates/custom-logo.php:151
820
  msgid "Logo Opacity (%)"
821
  msgstr ""
822
 
823
+ #: EmbedPress/Ends/Back/Settings/templates/custom-logo.php:158
824
  msgid "Logo X Position (%)"
825
  msgstr ""
826
 
827
+ #: EmbedPress/Ends/Back/Settings/templates/custom-logo.php:172
828
  msgid "Call to Action Link"
829
  msgstr ""
830
 
831
+ #: EmbedPress/Ends/Back/Settings/templates/custom-logo.php:176
832
  msgid "You may link the logo to any CTA link."
833
  msgstr ""
834
 
835
+ #: EmbedPress/Ends/Back/Settings/templates/custom-logo.php:181
836
  msgid "Live Preview"
837
  msgstr ""
838
 
842
 
843
  #: EmbedPress/Ends/Back/Settings/templates/dailymotion.php:27
844
  #: EmbedPress/Ends/Back/Settings/templates/twitch.php:24
845
+ #: EmbedPress/Ends/Back/Settings/templates/vimeo.php:26
846
+ #: EmbedPress/Ends/Back/Settings/templates/wistia.php:31
847
+ #: EmbedPress/Ends/Back/Settings/templates/youtube.php:37
848
  msgid "Start Time (In Seconds)"
849
  msgstr ""
850
 
851
  #: EmbedPress/Ends/Back/Settings/templates/dailymotion.php:30
852
  #: EmbedPress/Ends/Back/Settings/templates/twitch.php:27
853
+ #: EmbedPress/Ends/Back/Settings/templates/vimeo.php:29
854
+ #: EmbedPress/Ends/Back/Settings/templates/wistia.php:34
855
+ #: EmbedPress/Ends/Back/Settings/templates/youtube.php:40
856
  msgid "You can put a custom time in seconds to start video. Example: 500"
857
  msgstr ""
858
 
859
  #: EmbedPress/Ends/Back/Settings/templates/dailymotion.php:49
860
  #: EmbedPress/Ends/Back/Settings/templates/soundcloud.php:63
861
+ #: EmbedPress/Ends/Back/Settings/templates/twitch.php:44
862
+ #: EmbedPress/Ends/Back/Settings/templates/vimeo.php:46
863
+ #: EmbedPress/Ends/Back/Settings/templates/wistia.php:128
864
+ #: EmbedPress/Ends/Back/Settings/templates/youtube.php:57
 
865
  msgid "Automatically start to play the videos when the player loads."
866
  msgstr ""
867
 
882
  msgstr ""
883
 
884
  #: EmbedPress/Ends/Back/Settings/templates/dailymotion.php:102
885
+ #: EmbedPress/Ends/Back/Settings/templates/youtube.php:102
886
  msgid "Indicates whether the video player controls are displayed."
887
  msgstr ""
888
 
903
  msgstr ""
904
 
905
  #: EmbedPress/Ends/Back/Settings/templates/dailymotion.php:149
906
+ #: EmbedPress/Ends/Back/Settings/templates/vimeo.php:105
907
+ #: EmbedPress/Ends/Back/Settings/templates/wistia.php:136
 
908
  msgid "Specify the color of the video controls."
909
  msgstr ""
910
 
1104
  msgid "Twitch Settings"
1105
  msgstr ""
1106
 
1107
+ #: EmbedPress/Ends/Back/Settings/templates/twitch.php:48
1108
  msgid "Show Chat"
1109
  msgstr ""
1110
 
1111
+ #: EmbedPress/Ends/Back/Settings/templates/twitch.php:61
1112
  msgid "You can show or hide chat using this setting"
1113
  msgstr ""
1114
 
1115
+ #: EmbedPress/Ends/Back/Settings/templates/twitch.php:74
 
 
 
 
 
1116
  msgid "Set dark or light theme for the twitch comment."
1117
  msgstr ""
1118
 
1119
+ #: EmbedPress/Ends/Back/Settings/templates/twitch.php:78
1120
+ #: EmbedPress/Ends/Back/Settings/templates/youtube.php:106
1121
  msgid "Enable Fullscreen Button"
1122
  msgstr ""
1123
 
1124
+ #: EmbedPress/Ends/Back/Settings/templates/twitch.php:90
1125
+ #: EmbedPress/Ends/Back/Settings/templates/youtube.php:118
1126
  msgid "Indicates whether the fullscreen button is enabled."
1127
  msgstr ""
1128
 
1129
+ #: EmbedPress/Ends/Back/Settings/templates/twitch.php:94
1130
  msgid "Mute On Start"
1131
  msgstr ""
1132
 
1133
+ #: EmbedPress/Ends/Back/Settings/templates/twitch.php:106
1134
  msgid "Set it to Yes to mute the video on start."
1135
  msgstr ""
1136
 
1137
+ #: EmbedPress/Ends/Back/Settings/templates/vimeo.php:19
1138
  msgid "Vimeo Settings"
1139
  msgstr ""
1140
 
1141
+ #: EmbedPress/Ends/Back/Settings/templates/vimeo.php:50
1142
  msgid "Loop"
1143
  msgstr ""
1144
 
1145
+ #: EmbedPress/Ends/Back/Settings/templates/vimeo.php:63
1146
  msgid "Play the video again automatically when it reaches the end."
1147
  msgstr ""
1148
 
1149
+ #: EmbedPress/Ends/Back/Settings/templates/vimeo.php:67
1150
  msgid "Auto Pause"
1151
  msgstr ""
1152
 
1153
+ #: EmbedPress/Ends/Back/Settings/templates/vimeo.php:80
1154
  msgid "Pause this video automatically when another one plays."
1155
  msgstr ""
1156
 
1157
+ #: EmbedPress/Ends/Back/Settings/templates/vimeo.php:84
1158
  msgid "DNT"
1159
  msgstr ""
1160
 
1161
+ #: EmbedPress/Ends/Back/Settings/templates/vimeo.php:97
1162
  msgid "Setting this parameter to \"yes\" will block the player from tracking any session data, including all cookies."
1163
  msgstr ""
1164
 
1165
+ #: EmbedPress/Ends/Back/Settings/templates/vimeo.php:101
1166
+ #: EmbedPress/Ends/Back/Settings/templates/wistia.php:133
 
1167
  msgid "Color"
1168
  msgstr ""
1169
 
1170
+ #: EmbedPress/Ends/Back/Settings/templates/vimeo.php:109
1171
  msgid "Display Title"
1172
  msgstr ""
1173
 
1174
+ #: EmbedPress/Ends/Back/Settings/templates/vimeo.php:121
1175
  msgid "Indicates whether the title is displayed."
1176
  msgstr ""
1177
 
1178
+ #: EmbedPress/Ends/Back/Settings/templates/vimeo.php:125
1179
  msgid "Display Author"
1180
  msgstr ""
1181
 
1182
+ #: EmbedPress/Ends/Back/Settings/templates/vimeo.php:137
1183
  msgid "Indicates whether the author is displayed."
1184
  msgstr ""
1185
 
1186
+ #: EmbedPress/Ends/Back/Settings/templates/vimeo.php:141
1187
  msgid "Display Avatar"
1188
  msgstr ""
1189
 
1190
+ #: EmbedPress/Ends/Back/Settings/templates/vimeo.php:153
1191
  msgid "Indicates whether the avatar is displayed."
1192
  msgstr ""
1193
 
1195
  msgid "Wistia Settings"
1196
  msgstr ""
1197
 
1198
+ #: EmbedPress/Ends/Back/Settings/templates/wistia.php:51
 
1199
  msgid "Indicates whether the fullscreen button is visible."
1200
  msgstr ""
1201
 
1202
+ #: EmbedPress/Ends/Back/Settings/templates/wistia.php:55
 
1203
  msgid "Playbar"
1204
  msgstr ""
1205
 
1206
+ #: EmbedPress/Ends/Back/Settings/templates/wistia.php:67
 
1207
  msgid "Indicates whether the playbar is visible."
1208
  msgstr ""
1209
 
1210
+ #: EmbedPress/Ends/Back/Settings/templates/wistia.php:83
 
1211
  msgid "Indicates whether the small play button is visible on the bottom left."
1212
  msgstr ""
1213
 
1214
+ #: EmbedPress/Ends/Back/Settings/templates/wistia.php:87
 
1215
  msgid "Volume Control"
1216
  msgstr ""
1217
 
1218
+ #: EmbedPress/Ends/Back/Settings/templates/wistia.php:100
 
1219
  msgid "Indicates whether the volume control is visible."
1220
  msgstr ""
1221
 
1222
+ #: EmbedPress/Ends/Back/Settings/templates/wistia.php:105
 
1223
  msgid "Volume"
1224
  msgstr ""
1225
 
1226
+ #: EmbedPress/Ends/Back/Settings/templates/wistia.php:109
 
1227
  msgid "Start the video with a custom volume level. Set values between 0 and 100."
1228
  msgstr ""
1229
 
1230
+ #: EmbedPress/Ends/Back/Settings/templates/wistia.php:141
 
1231
  msgid "Plugin: Resumable"
1232
  msgstr ""
1233
 
1234
+ #: EmbedPress/Ends/Back/Settings/templates/wistia.php:153
1235
  msgid "Indicates whether the Resumable plugin is active. Allow to resume the video or start from the beginning."
1236
  msgstr ""
1237
 
1238
+ #: EmbedPress/Ends/Back/Settings/templates/wistia.php:157
 
1239
  msgid "Plugin: Captions"
1240
  msgstr ""
1241
 
1242
+ #: EmbedPress/Ends/Back/Settings/templates/wistia.php:170
 
1243
  msgid "Indicates whether the Captions plugin is active."
1244
  msgstr ""
1245
 
1246
+ #: EmbedPress/Ends/Back/Settings/templates/wistia.php:187
 
1247
  msgid "Indicates whether the Captions are enabled by default."
1248
  msgstr ""
1249
 
1250
+ #: EmbedPress/Ends/Back/Settings/templates/wistia.php:203
 
1251
  msgid "Indicates whether the Focus plugin is active."
1252
  msgstr ""
1253
 
1254
+ #: EmbedPress/Ends/Back/Settings/templates/wistia.php:207
 
1255
  msgid "Plugin: Rewind"
1256
  msgstr ""
1257
 
1258
+ #: EmbedPress/Ends/Back/Settings/templates/wistia.php:219
 
1259
  msgid "Indicates whether the Rewind plugin is active."
1260
  msgstr ""
1261
 
1262
+ #: EmbedPress/Ends/Back/Settings/templates/wistia.php:223
1263
  msgid "Rewind Time (In Seconds)"
1264
  msgstr ""
1265
 
1266
+ #: EmbedPress/Ends/Back/Settings/templates/wistia.php:226
 
1267
  msgid "The amount of time to rewind, in seconds."
1268
  msgstr ""
1269
 
1270
+ #: EmbedPress/Ends/Back/Settings/templates/youtube.php:30
1271
  msgid "YouTube Settings"
1272
  msgstr ""
1273
 
1274
+ #: EmbedPress/Ends/Back/Settings/templates/youtube.php:70
 
 
 
 
1275
  msgid "Specifies the color that will be used in the player's video progress bar to highlight the amount of the video that the viewer has already seen. %s Note: Setting the color to white will disable the Modest Branding option (causing a YouTube logo to be displayed in the control bar)."
1276
  msgstr ""
1277
 
1278
+ #: EmbedPress/Ends/Back/Settings/templates/youtube.php:74
1279
  msgid "Force Closed Captions"
1280
  msgstr ""
1281
 
1282
+ #: EmbedPress/Ends/Back/Settings/templates/youtube.php:88
1283
  msgid "Setting this option to %s causes closed captions to be shown by default, even if the user has turned captions off. This will be based on user preference otherwise."
1284
  msgstr ""
1285
 
1286
+ #: EmbedPress/Ends/Back/Settings/templates/youtube.php:92
1287
  msgid "Display Controls"
1288
  msgstr ""
1289
 
1290
+ #: EmbedPress/Ends/Back/Settings/templates/youtube.php:122
1291
  msgid "Display Video Annotations"
1292
  msgstr ""
1293
 
1294
+ #: EmbedPress/Ends/Back/Settings/templates/youtube.php:131
1295
  msgid "Indicates whether video annotations are displayed."
1296
  msgstr ""
1297
 
1298
+ #: EmbedPress/Ends/Back/Settings/templates/youtube.php:135
1299
  msgid "Display Related Videos"
1300
  msgstr ""
1301
 
1302
+ #: EmbedPress/Ends/Back/Settings/templates/youtube.php:140
1303
  msgid "From the same channel of the video"
1304
  msgstr ""
1305
 
1306
+ #: EmbedPress/Ends/Back/Settings/templates/youtube.php:141
1307
  msgid "Based on User's watch history"
1308
  msgstr ""
1309
 
1310
+ #: EmbedPress/Ends/Back/Settings/templates/youtube.php:144
1311
  msgid "Indicates how the player should show related videos when playback of the video pauses or ends."
1312
  msgstr ""
1313
 
1314
+ #: EmbedPress/Ends/Back/Settings/templates/youtube.php:150
1315
  msgid "Modest Branding"
1316
  msgstr ""
1317
 
1318
+ #: EmbedPress/Ends/Back/Settings/templates/youtube.php:161
1319
  msgid "Indicates whether the player should display a YouTube logo in the control bar."
1320
  msgstr ""
1321
 
1322
+ #: EmbedPress/Ends/Back/Settings/templates/youtube.php:167
1323
+ msgid " Live Chat"
1324
+ msgstr ""
1325
+
1326
+ #: EmbedPress/Ends/Back/Settings/templates/youtube.php:181
1327
+ msgid "Enabling this option will show chat on all YouTube videos. However, YouTube Live Chat feature only works with Live Streaming videos."
1328
+ msgstr ""
1329
+
1330
+ #: EmbedPress/Ends/Back/Settings/templates/youtube.php:186
1331
  msgid "Subscription Button"
1332
  msgstr ""
1333
 
1334
+ #: EmbedPress/Ends/Back/Settings/templates/youtube.php:189
1335
  msgid "Channel Link or ID"
1336
  msgstr ""
1337
 
1338
+ #: EmbedPress/Ends/Back/Settings/templates/youtube.php:193
1339
  msgid "You can use either your channel link or channel ID to show the subscription button."
1340
  msgstr ""
1341
 
1342
+ #: EmbedPress/Ends/Back/Settings/templates/youtube.php:200
1343
  msgid "Subscription Text"
1344
  msgstr ""
1345
 
1346
+ #: EmbedPress/Ends/Back/Settings/templates/youtube.php:204
1347
  msgid "Optionally you can output some CTA text before the subscriber button."
1348
  msgstr ""
1349
 
1350
+ #: EmbedPress/Ends/Back/Settings/templates/youtube.php:211
1351
  msgid "Layout"
1352
  msgstr ""
1353
 
1354
+ #: EmbedPress/Ends/Back/Settings/templates/youtube.php:222
1355
  msgid "Full layout shows channel image. Default layout shows only channel name and subscription button."
1356
  msgstr ""
1357
 
1358
+ #: EmbedPress/Ends/Back/Settings/templates/youtube.php:238
1359
  msgid "Default theme is good for white background. Dark theme is good for black background."
1360
  msgstr ""
1361
 
1362
+ #: EmbedPress/Ends/Back/Settings/templates/youtube.php:243
1363
  msgid "Show Subscriber Count"
1364
  msgstr ""
1365
 
1431
  msgid "Just Deactivate"
1432
  msgstr ""
1433
 
1434
+ #: EmbedPress/Includes/Classes/Feature_Enhancer.php:385
1435
+ #: EmbedPress/Includes/Classes/Feature_Enhancer.php:734
1436
  #: Gutenberg/plugin.php:55
1437
  msgid "Watch from the beginning"
1438
  msgstr ""
1439
 
1440
+ #: EmbedPress/Includes/Classes/Feature_Enhancer.php:386
1441
+ #: EmbedPress/Includes/Classes/Feature_Enhancer.php:735
1442
  #: Gutenberg/plugin.php:56
1443
  msgid "Skip to where you left off"
1444
  msgstr ""
1445
 
1446
+ #: EmbedPress/Includes/Classes/Feature_Enhancer.php:387
1447
+ #: EmbedPress/Includes/Classes/Feature_Enhancer.php:736
1448
  #: Gutenberg/plugin.php:57
1449
  msgid "It looks like you've watched<br />part of this video before!"
1450
  msgstr ""
1451
 
 
 
 
 
 
 
 
 
 
 
 
 
1452
  #: EmbedPress/Includes/Traits/Shared.php:26
1453
  msgid "Want to help make <strong>EmbedPress</strong> even more awesome? You can get a <strong>10% discount coupon</strong> for Premium extensions if you allow us to track the usage."
1454
  msgstr ""
1505
  msgid "This message is only visible to you."
1506
  msgstr ""
1507
 
1508
+ #: Gutenberg/src/document/edit.js:198
1509
  msgid "Embed Size"
1510
  msgstr ""
readme.txt CHANGED
@@ -2,11 +2,11 @@
2
  Contributors: EmbedPress, asif2bd, re_enter_rupok, wpdevteam, manzurahammed, kamalahmed
3
  Author: WPDeveloper
4
  Author URI: https://wpdeveloper.net
5
- Tags: embed, embed youtube, gutenberg embed, pdf, doc, docs, ppt, elementor embed, video embed, Google Doc, map embed, youTube Embed, content embed, iframes, vimeo embed, wistia, google sheet, youtube player, block editor, embed wordpress, elementor
6
  Requires at least: 4.6
7
  Tested up to: 5.8
8
  Requires PHP: 5.6
9
- Stable tag: 3.1.1
10
  License: GPLv3 or later
11
  License URI: https://opensource.org/licenses/GPL-3.0
12
 
@@ -302,6 +302,12 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/)
302
  and this project adheres to [Semantic Versioning](http://semver.org/).
303
 
304
 
 
 
 
 
 
 
305
  = [3.1.1] - 2021-08-05 =
306
  * Added: WPML compatibility.
307
  * Fixed: Deprecated notice in WP 5.8.
2
  Contributors: EmbedPress, asif2bd, re_enter_rupok, wpdevteam, manzurahammed, kamalahmed
3
  Author: WPDeveloper
4
  Author URI: https://wpdeveloper.net
5
+ Tags: embed, embed youtube, gutenberg embed, pdf, doc, docs, ppt, elementor embed, video embed, Google Doc, map embed, youTube Embed, content embed, iframes, vimeo embed, wistia, google sheet, youtube player, block editor, embed wordpress, elementor, WPML, Meetup, Boomplay, PDF Logo
6
  Requires at least: 4.6
7
  Tested up to: 5.8
8
  Requires PHP: 5.6
9
+ Stable tag: 3.1.2
10
  License: GPLv3 or later
11
  License URI: https://opensource.org/licenses/GPL-3.0
12
 
302
  and this project adheres to [Semantic Versioning](http://semver.org/).
303
 
304
 
305
+ = [3.1.2] - 2021-08-25 =
306
+ * Added: Some pro features into free plugin
307
+ * Fixed: Conflict with Web Hook plugin.
308
+ * Fixed: Responsive issue for PDF embed.
309
+ * Few minor bug fixes and improvements.
310
+
311
  = [3.1.1] - 2021-08-05 =
312
  * Added: WPML compatibility.
313
  * Fixed: Deprecated notice in WP 5.8.