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

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.3.3
Comparing to
See all releases

Code changes from version 3.3.2 to 3.3.3

EmbedPress/Elementor/Widgets/Embedpress_Calendar.php CHANGED
@@ -298,7 +298,8 @@ class Embedpress_Calendar extends Widget_Base
298
  $this->add_render_attribute( 'embedpress-calendar', [
299
  'class' => ['embedpress-calendar-embed', 'ep-cal-'.md5( $id), 'ose-calendar']
300
  ] );
301
-
 
302
  ?>
303
  <div <?php echo $this->get_render_attribute_string( 'embedpress-calendar' ); ?> style="<?php echo esc_attr( $dimension); ?>; max-width:100%; display: inline-block">
304
 
@@ -313,21 +314,32 @@ class Embedpress_Calendar extends Widget_Base
313
  frameborder="0"></iframe>
314
  <?php
315
  } else {
316
- if ( Plugin::$instance->editor->is_edit_mode() ) {
317
  ?>
318
- <p><?php esc_html_e( 'You need EmbedPress Pro to display Private Calendar Data.', 'embedpress'); ?></p>
319
  <?php
320
- }
321
- if ( is_embedpress_pro_active() ) {
322
- if ( Plugin::$instance->editor->is_edit_mode() ) {
 
323
  ?>
324
- <p><?php esc_html_e( 'Private Calendar Data will be displayed in the frontend', 'embedpress'); ?></p>
325
  <?php
326
  }else{
327
- echo Embedpress_Google_Helper::shortcode();
 
 
 
 
 
 
 
328
  }
329
  }
330
- }?>
 
 
 
331
  </div>
332
  <?php
333
  if ( $settings[ 'embedpress_calendar_powered_by' ] === 'yes' ) {
298
  $this->add_render_attribute( 'embedpress-calendar', [
299
  'class' => ['embedpress-calendar-embed', 'ep-cal-'.md5( $id), 'ose-calendar']
300
  ] );
301
+ $is_private_cal = (!empty( $settings['embedpress_calendar_type']) && 'private' === $settings['embedpress_calendar_type']);
302
+ $is_editor_view = Plugin::$instance->editor->is_edit_mode();
303
  ?>
304
  <div <?php echo $this->get_render_attribute_string( 'embedpress-calendar' ); ?> style="<?php echo esc_attr( $dimension); ?>; max-width:100%; display: inline-block">
305
 
314
  frameborder="0"></iframe>
315
  <?php
316
  } else {
317
+ if ( $is_editor_view && empty( $settings['embedpress_public_cal_link']) && !$is_private_cal ) {
318
  ?>
319
+ <p><?php esc_html_e( 'Please paste your public google calendar link.', 'embedpress'); ?></p>
320
  <?php
321
+ }
322
+ // handle notice display
323
+ if ( $is_editor_view && $is_private_cal ) {
324
+ if ( !is_embedpress_pro_active()) {
325
  ?>
326
+ <p><?php esc_html_e( 'You need EmbedPress Pro to display Private Calendar Data.', 'embedpress'); ?></p>
327
  <?php
328
  }else{
329
+ ?>
330
+ <p><?php esc_html_e( 'Private Calendar Data will be displayed in the frontend', 'embedpress'); ?></p>
331
+ <?php
332
+ }
333
+ }else{
334
+ // handle printing private calendar data
335
+ if ( is_embedpress_pro_active() ) {
336
+ echo Embedpress_Google_Helper::shortcode();
337
  }
338
  }
339
+
340
+
341
+ }
342
+ ?>
343
  </div>
344
  <?php
345
  if ( $settings[ 'embedpress_calendar_powered_by' ] === 'yes' ) {
EmbedPress/Elementor/Widgets/Embedpress_Elementor.php CHANGED
@@ -1177,21 +1177,6 @@ class Embedpress_Elementor extends Widget_Base {
1177
  'condition' => $condition
1178
  ]
1179
  );
1180
-
1181
- $this->add_control(
1182
- 'spotify_follow_theme',
1183
- [
1184
- 'label' => __( 'Follow Widget Background', 'embedpress' ),
1185
- 'type' => Controls_Manager::SELECT,
1186
- 'label_block' => false,
1187
- 'default' => 'light',
1188
- 'options' => [
1189
- 'light' => __( 'Light', 'embedpress' ),
1190
- 'dark' => __( 'Dark', 'embedpress' )
1191
- ],
1192
- 'condition' => $condition
1193
- ]
1194
- );
1195
  }
1196
 
1197
  public function init_style_controls() {
@@ -1305,22 +1290,6 @@ class Embedpress_Elementor extends Widget_Base {
1305
  'default' => '',
1306
  ]
1307
  );
1308
- $this->add_group_control(
1309
- Group_Control_Background::get_type(),
1310
- [
1311
- 'name' => 'background',
1312
- 'label' => __( 'Background', 'embedpress' ),
1313
- 'types' => [ 'classic', 'gradient' ],
1314
- 'selector' => '{{WRAPPER}} .embedpress-elements-wrapper .embedpress-wrapper, {{WRAPPER}} .embedpress-fit-aspect-ratio .embedpress-wrapper iframe',
1315
- ]
1316
- );
1317
- $this->add_group_control(
1318
- Group_Control_Css_Filter::get_type(),
1319
- [
1320
- 'name' => 'embedpress_elementor_css_filters',
1321
- 'selector' => '{{WRAPPER}} .embedpress-elements-wrapper .embedpress-wrapper',
1322
- ]
1323
- );
1324
  $this->end_controls_section();
1325
  }
1326
  protected function render() {
1177
  'condition' => $condition
1178
  ]
1179
  );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1180
  }
1181
 
1182
  public function init_style_controls() {
1290
  'default' => '',
1291
  ]
1292
  );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1293
  $this->end_controls_section();
1294
  }
1295
  protected function render() {
EmbedPress/Ends/Back/Settings/EmbedpressSettings.php CHANGED
@@ -64,8 +64,8 @@ class EmbedpressSettings {
64
  $migration_v_320 = 'embedpress_v_320_migration';
65
  if ( !get_option( $migration_v_320, false) ) {
66
  $elements = (array) get_option( EMBEDPRESS_PLG_NAME.":elements", []);
67
- $elements['gutenberg']['embedpress-pdf'] = ['embedpress-pdf'];
68
- $elements['elementor']['embedpress-pdf'] = ['embedpress-pdf'];
69
  update_option( EMBEDPRESS_PLG_NAME.":elements", $elements);
70
  update_option( $migration_v_320, true);
71
  }
@@ -73,8 +73,8 @@ class EmbedpressSettings {
73
  $migration_v_330 = 'embedpress_v_330_migration';
74
  if ( !get_option( $migration_v_330, false) ) {
75
  $elements = (array) get_option( EMBEDPRESS_PLG_NAME.":elements", []);
76
- $elements['gutenberg']['embedpress-calendar'] = ['embedpress-calendar'];
77
- $elements['elementor']['embedpress-calendar'] = ['embedpress-calendar'];
78
  update_option( EMBEDPRESS_PLG_NAME.":elements", $elements);
79
  update_option( $migration_v_330, true);
80
  }
@@ -293,7 +293,6 @@ class EmbedpressSettings {
293
  $settings['theme'] = isset( $_POST['spotify_theme']) ? sanitize_text_field( $_POST['spotify_theme']) : '1';
294
  $settings['license_key'] = 1; // backward compatibility
295
 
296
- // Pro will handle g_loading_animation settings and other
297
  $settings = apply_filters( 'ep_spotify_settings_before_save', $settings);
298
  update_option( $option_name, $settings);
299
  do_action( 'ep_spotify_settings_after_save', $settings);
64
  $migration_v_320 = 'embedpress_v_320_migration';
65
  if ( !get_option( $migration_v_320, false) ) {
66
  $elements = (array) get_option( EMBEDPRESS_PLG_NAME.":elements", []);
67
+ $elements['gutenberg']['embedpress-pdf'] = 'embedpress-pdf';
68
+ $elements['elementor']['embedpress-pdf'] = 'embedpress-pdf';
69
  update_option( EMBEDPRESS_PLG_NAME.":elements", $elements);
70
  update_option( $migration_v_320, true);
71
  }
73
  $migration_v_330 = 'embedpress_v_330_migration';
74
  if ( !get_option( $migration_v_330, false) ) {
75
  $elements = (array) get_option( EMBEDPRESS_PLG_NAME.":elements", []);
76
+ $elements['gutenberg']['embedpress-calendar'] = 'embedpress-calendar';
77
+ $elements['elementor']['embedpress-calendar'] = 'embedpress-calendar';
78
  update_option( EMBEDPRESS_PLG_NAME.":elements", $elements);
79
  update_option( $migration_v_330, true);
80
  }
293
  $settings['theme'] = isset( $_POST['spotify_theme']) ? sanitize_text_field( $_POST['spotify_theme']) : '1';
294
  $settings['license_key'] = 1; // backward compatibility
295
 
 
296
  $settings = apply_filters( 'ep_spotify_settings_before_save', $settings);
297
  update_option( $option_name, $settings);
298
  do_action( 'ep_spotify_settings_after_save', $settings);
EmbedPress/Ends/Back/Settings/templates/spotify.php CHANGED
@@ -5,9 +5,7 @@
5
  * */
6
  $settings = get_option( EMBEDPRESS_PLG_NAME.':spotify');
7
  $spotify_theme = isset( $settings['theme']) ? $settings['theme'] : '1';
8
- $follow_theme = isset( $settings['follow_theme']) ? $settings['follow_theme'] : 'light';
9
- $follow_layout = isset( $settings['follow_layout']) ? $settings['follow_layout'] : 'detail';
10
- $follow_count = isset( $settings['follow_count']) ? $settings['follow_count'] : 1;
11
  ?>
12
 
13
  <div class="embedpress__settings background__white radius-25 p40">
@@ -31,54 +29,6 @@ $follow_count = isset( $settings['follow_count']) ? $settings['follow_count'] :
31
  <p><?php printf( esc_html__( "Dynamic option will use the most vibrant color from the album art.", 'embedpress'), '<br>'); ?></p>
32
  </div>
33
  </div>
34
- <h3><?php esc_html_e( "Artist Follower Widget", "embedpress" ); ?></h3>
35
-
36
- <div class="form__group">
37
- <label class="form__label" for="follow_theme"><?php esc_html_e( "Follow Widget Theme", "embedpress-pro" ); echo !$pro_active ? ' <span class="isPro">PRO</span>' : ''; ?></label>
38
- <div class="form__control__wrap">
39
- <div class="embedpress__select <?php echo $pro_active ? '': 'isPro'; ?>">
40
- <span><i class="ep-icon ep-caret-down"></i></span>
41
- <select name="follow_theme" id="follow_theme" data-default="<?php echo esc_attr( $follow_theme ); ?>" <?php echo !$pro_active ? 'disabled' : ''; ?>>
42
- <option value="light" <?php selected( 'light', $follow_theme); ?> ><?php esc_html_e( "For Light Background", "embedpress-pro" ); ?></option>
43
- <option value="dark" <?php selected( 'dark', $follow_theme); ?> ><?php esc_html_e( "For Dark Background", "embedpress-pro" ); ?></option>
44
- </select>
45
- </div>
46
- <?php if ( !$pro_active ) { include EMBEDPRESS_SETTINGS_PATH . 'templates/partials/alert-pro.php'; } ?>
47
-
48
- </div>
49
- </div>
50
-
51
- <div class="form__group">
52
- <label class="form__label" for="follow_layout"><?php esc_html_e( "Follow Widget Layout", "embedpress-pro" ); echo !$pro_active ? ' <span class="isPro">PRO</span>' : ''; ?></label>
53
- <div class="form__control__wrap">
54
- <div class="embedpress__select <?php echo $pro_active ? '': 'isPro'; ?>">
55
- <span><i class="ep-icon ep-caret-down"></i></span>
56
- <select name="follow_layout" id="follow_layout" data-default="<?php echo esc_attr( $follow_layout ); ?>" <?php echo !$pro_active ? 'disabled' : ''; ?>>
57
- <option value="detail" <?php selected( 'detail', $follow_layout); ?> ><?php esc_html_e( "Details", "embedpress-pro" ); ?></option>
58
- <option value="basic" <?php selected( 'basic', $follow_layout); ?> ><?php esc_html_e( "Basic", "embedpress-pro" ); ?></option>
59
- </select>
60
- </div>
61
- <?php if ( !$pro_active ) { include EMBEDPRESS_SETTINGS_PATH . 'templates/partials/alert-pro.php'; } ?>
62
-
63
- </div>
64
- </div>
65
- <div class="form__group">
66
- <label class="form__label" for="follow_count"><?php esc_html_e( "Show Follower Statistics", "embedpress-pro" ); echo !$pro_active ? ' <span class="isPro">PRO</span>' : ''; ?></label>
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="follow_count" id="follow_count" data-default="<?php echo esc_attr( $follow_count ); ?>" <?php echo !$pro_active ? 'disabled' : ''; ?>>
71
- <option value="1" <?php selected( '1', $follow_count); ?> ><?php esc_html_e( "Yes", "embedpress-pro" ); ?></option>
72
- <option value="0" <?php selected( '0', $follow_count); ?> ><?php esc_html_e( "No", "embedpress-pro" ); ?></option>
73
- </select>
74
- </div>
75
- <?php if ( !$pro_active ) { include EMBEDPRESS_SETTINGS_PATH . 'templates/partials/alert-pro.php'; } ?>
76
- </div>
77
- </div>
78
-
79
- <div class="form__group">
80
- <p class="embedpress-note" style="font-size: 14px; color:#7C8DB5;"><strong><?php esc_html_e( "Note:", "embedpress" ); ?></strong><?php printf( __( "To add follow widget, please add '%s:follow_widget%s' to the end of an artist URL. For details, check out this %s documentation%s.", "embedpress" ), '<strong>','</strong>', '<a class="ep-link" href="https://embedpress.com/docs/how-to-embed-spotify-artist-follower-widget/" target="_blank">', '</a>'); ?></p>
81
- </div>
82
 
83
  <?php do_action( 'embedpress_after_spotify_settings_fields'); ?>
84
  <button class="button button__themeColor radius-10 embedpress-submit-btn" name="submit" value="spotify"><?php esc_html_e( 'Save Changes', 'embedpress'); ?></button>
5
  * */
6
  $settings = get_option( EMBEDPRESS_PLG_NAME.':spotify');
7
  $spotify_theme = isset( $settings['theme']) ? $settings['theme'] : '1';
8
+
 
 
9
  ?>
10
 
11
  <div class="embedpress__settings background__white radius-25 p40">
29
  <p><?php printf( esc_html__( "Dynamic option will use the most vibrant color from the album art.", 'embedpress'), '<br>'); ?></p>
30
  </div>
31
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
32
 
33
  <?php do_action( 'embedpress_after_spotify_settings_fields'); ?>
34
  <button class="button button__themeColor radius-10 embedpress-submit-btn" name="submit" value="spotify"><?php esc_html_e( 'Save Changes', 'embedpress'); ?></button>
EmbedPress/Shortcode.php CHANGED
@@ -91,7 +91,6 @@ class Shortcode {
91
  }
92
  $attributes = wp_parse_args( $attributes, $default );
93
  $embed = self::parseContent( $subject, true, $attributes );
94
-
95
  return is_object( $embed ) ? $embed->embed : $embed;
96
  }
97
 
@@ -265,6 +264,8 @@ KAMAL;
265
  $embed = self::modify_spotify_content( $embed);
266
  $embed = apply_filters( 'embedpress:onAfterEmbed', $embed );
267
  //set_transient( $hash, $embed, HOUR_IN_SECONDS * 6);
 
 
268
  return $embed;
269
  }
270
  }
91
  }
92
  $attributes = wp_parse_args( $attributes, $default );
93
  $embed = self::parseContent( $subject, true, $attributes );
 
94
  return is_object( $embed ) ? $embed->embed : $embed;
95
  }
96
 
264
  $embed = self::modify_spotify_content( $embed);
265
  $embed = apply_filters( 'embedpress:onAfterEmbed', $embed );
266
  //set_transient( $hash, $embed, HOUR_IN_SECONDS * 6);
267
+ //error_log( '----embed-----');
268
+ //error_log( print_r( $embed, 1));
269
  return $embed;
270
  }
271
  }
Gutenberg/plugin.php CHANGED
@@ -65,6 +65,7 @@ function embedpress_blocks_cgb_editor_assets() { // phpcs:ignore
65
  );
66
  $elements = (array) get_option( EMBEDPRESS_PLG_NAME.":elements", []);
67
  $active_blocks = isset( $elements['gutenberg']) ? (array) $elements['gutenberg'] : [];
 
68
  $wistia_labels = json_encode( $wistia_labels );
69
  $wistia_options = null;
70
  if ( function_exists( 'embedpress_wisita_pro_get_options' ) ):
@@ -134,7 +135,7 @@ function embedpress_gutenberg_register_all_block() {
134
 
135
  $elements = (array) get_option( EMBEDPRESS_PLG_NAME.":elements", []);
136
  $g_blocks = isset( $elements['gutenberg']) ? (array) $elements['gutenberg'] : [];
137
- $blocks_to_registers = [ 'twitch-block', 'google-slides-block','google-sheets-block', 'google-maps-block', 'google-forms-block', 'google-drawings-block', 'google-docs-block', 'embedpress', 'embedpress-pdf', 'embedpress-calendar'];
138
 
139
  foreach ( $blocks_to_registers as $blocks_to_register ) {
140
  if ( !empty($g_blocks[$blocks_to_register]) ) {
65
  );
66
  $elements = (array) get_option( EMBEDPRESS_PLG_NAME.":elements", []);
67
  $active_blocks = isset( $elements['gutenberg']) ? (array) $elements['gutenberg'] : [];
68
+
69
  $wistia_labels = json_encode( $wistia_labels );
70
  $wistia_options = null;
71
  if ( function_exists( 'embedpress_wisita_pro_get_options' ) ):
135
 
136
  $elements = (array) get_option( EMBEDPRESS_PLG_NAME.":elements", []);
137
  $g_blocks = isset( $elements['gutenberg']) ? (array) $elements['gutenberg'] : [];
138
+ $blocks_to_registers = [ 'twitch-block', 'google-slides-block','google-sheets-block', 'google-maps-block', 'google-forms-block', 'google-drawings-block', 'google-docs-block', 'embedpress', 'embedpress-pdf', 'embedpress-calendar', 'document'];
139
 
140
  foreach ( $blocks_to_registers as $blocks_to_register ) {
141
  if ( !empty($g_blocks[$blocks_to_register]) ) {
assets/css/embedpress.css CHANGED
@@ -133,6 +133,20 @@
133
  .elementor-widget-container iframe {
134
  max-height: 100% !important;
135
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
136
  }
137
 
138
  /*Meetup Event styling starts */
133
  .elementor-widget-container iframe {
134
  max-height: 100% !important;
135
  }
136
+ .elementor-widget-container .embedpress-facebook-vid-iframe,
137
+ .embedpress-gutenberg-wrapper .embedpress-facebook-vid-iframe,
138
+ .embedpress-facebook-vid-iframe{
139
+ max-height: inherit !important;
140
+ }
141
+
142
+ }
143
+
144
+ @media only screen and (max-width: 500px) {
145
+ .elementor-widget-container .embedpress-facebook-vid-iframe,
146
+ .embedpress-gutenberg-wrapper .embedpress-facebook-vid-iframe,
147
+ .embedpress-facebook-vid-iframe{
148
+ max-height: 390px !important;
149
+ }
150
  }
151
 
152
  /*Meetup Event styling starts */
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.com
8
- * Version: 3.3.2
9
  * Text Domain: embedpress
10
  * Domain Path: /languages
11
  *
@@ -92,4 +92,3 @@ Shortcode::register();
92
  if ( !class_exists( '\simple_html_dom') ) {
93
  include_once EMBEDPRESS_PATH_CORE . 'simple_html_dom.php';
94
  }
95
- //error_log( print_r( get_option('epgc_calendarlist'), 1));
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.com
8
+ * Version: 3.3.3
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.3.2");
26
  /**
27
  * @deprecated 2.2.0
28
  */
22
  }
23
 
24
  if ( ! defined('EMBEDPRESS_VERSION')) {
25
+ define('EMBEDPRESS_VERSION', "3.3.3");
26
  /**
27
  * @deprecated 2.2.0
28
  */
readme.txt CHANGED
@@ -4,9 +4,9 @@ Author: WPDeveloper
4
  Author URI: https://wpdeveloper.com
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.3.2
10
  License: GPLv3 or later
11
  License URI: https://opensource.org/licenses/GPL-3.0
12
 
@@ -382,6 +382,11 @@ Not at all. You can set up everything your team needs without any coding knowled
382
  The format is based on [Keep a Changelog](http://keepachangelog.com/)
383
  and this project adheres to [Semantic Versioning](http://semver.org/).
384
 
 
 
 
 
 
385
  = [3.3.2] - 2021-12-29 =
386
  * Fixed: PDF embed issues.
387
  * Few minor bug fix and improvements.
4
  Author URI: https://wpdeveloper.com
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.9
8
  Requires PHP: 5.6
9
+ Stable tag: 3.3.3
10
  License: GPLv3 or later
11
  License URI: https://opensource.org/licenses/GPL-3.0
12
 
382
  The format is based on [Keep a Changelog](http://keepachangelog.com/)
383
  and this project adheres to [Semantic Versioning](http://semver.org/).
384
 
385
+ = [3.3.3] - 2022-01-20 =
386
+ * Fixed: Facebook video content not showing issue.
387
+ * Improvement: Google Calendar notices.
388
+ * Few minor bug fix and improvements.
389
+
390
  = [3.3.2] - 2021-12-29 =
391
  * Fixed: PDF embed issues.
392
  * Few minor bug fix and improvements.