Version Description
Download this release
Release Info
| Developer | wpdevteam |
| Plugin | |
| Version | 3.3.5 |
| Comparing to | |
| See all releases | |
Code changes from version 3.3.4 to 3.3.5
- EmbedPress/Elementor/Widgets/Embedpress_Elementor.php +18 -7
- EmbedPress/Ends/Front/Handler.php +1 -4
- EmbedPress/Includes/Classes/EmbedPress_Notice.php +127 -22
- EmbedPress/Shortcode.php +6 -6
- Gutenberg/dist/blocks.style.build.css +1 -1
- assets/css/admin.css +2 -132
- assets/js/front.js +20 -13
- embedpress.php +1 -1
- includes.php +1 -1
- readme.txt +7 -1
EmbedPress/Elementor/Widgets/Embedpress_Elementor.php
CHANGED
|
@@ -3,13 +3,12 @@
|
|
| 3 |
namespace EmbedPress\Elementor\Widgets;
|
| 4 |
|
| 5 |
|
| 6 |
-
use
|
| 7 |
-
|
| 8 |
-
use
|
| 9 |
-
use Elementor\
|
| 10 |
-
use \Elementor\Widget_Base as Widget_Base;
|
| 11 |
use EmbedPress\Includes\Traits\Branding;
|
| 12 |
-
use
|
| 13 |
|
| 14 |
(defined( 'ABSPATH' )) or die( "No direct script access allowed." );
|
| 15 |
|
|
@@ -1298,6 +1297,9 @@ class Embedpress_Elementor extends Widget_Base {
|
|
| 1298 |
protected function render() {
|
| 1299 |
add_filter( 'embedpress_should_modify_spotify', '__return_false');
|
| 1300 |
$settings = $this->get_settings_for_display();
|
|
|
|
|
|
|
|
|
|
| 1301 |
$height = (!empty( $settings['height']) && !empty( $settings['height']['size'] ))
|
| 1302 |
? $settings['height']['size'] : null;
|
| 1303 |
$width = (!empty( $settings['width']) && !empty( $settings['width']['size'] ))
|
|
@@ -1310,7 +1312,16 @@ class Embedpress_Elementor extends Widget_Base {
|
|
| 1310 |
|
| 1311 |
?>
|
| 1312 |
<div class="embedpress-elements-wrapper <?php echo !empty( $settings['embedpress_elementor_aspect_ratio']) ? 'embedpress-fit-aspect-ratio': ''; ?>">
|
| 1313 |
-
<?php
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1314 |
</div>
|
| 1315 |
<?php
|
| 1316 |
}
|
| 3 |
namespace EmbedPress\Elementor\Widgets;
|
| 4 |
|
| 5 |
|
| 6 |
+
use Elementor\Controls_Manager as Controls_Manager;
|
| 7 |
+
|
| 8 |
+
use Elementor\Plugin;
|
| 9 |
+
use Elementor\Widget_Base as Widget_Base;
|
|
|
|
| 10 |
use EmbedPress\Includes\Traits\Branding;
|
| 11 |
+
use EmbedPress\Shortcode;
|
| 12 |
|
| 13 |
(defined( 'ABSPATH' )) or die( "No direct script access allowed." );
|
| 14 |
|
| 1297 |
protected function render() {
|
| 1298 |
add_filter( 'embedpress_should_modify_spotify', '__return_false');
|
| 1299 |
$settings = $this->get_settings_for_display();
|
| 1300 |
+
$is_editor_view = Plugin::$instance->editor->is_edit_mode();
|
| 1301 |
+
$link = $settings['embedpress_embeded_link'];
|
| 1302 |
+
$is_apple_podcast = (strpos( $link, 'podcasts.apple.com') !== false);
|
| 1303 |
$height = (!empty( $settings['height']) && !empty( $settings['height']['size'] ))
|
| 1304 |
? $settings['height']['size'] : null;
|
| 1305 |
$width = (!empty( $settings['width']) && !empty( $settings['width']['size'] ))
|
| 1312 |
|
| 1313 |
?>
|
| 1314 |
<div class="embedpress-elements-wrapper <?php echo !empty( $settings['embedpress_elementor_aspect_ratio']) ? 'embedpress-fit-aspect-ratio': ''; ?>">
|
| 1315 |
+
<?php
|
| 1316 |
+
// handle notice display
|
| 1317 |
+
if ( $is_editor_view && $is_apple_podcast && !is_embedpress_pro_active() ) {
|
| 1318 |
+
?>
|
| 1319 |
+
<p><?php esc_html_e( 'You need EmbedPress Pro to Embed Apple Podcast. Note. This message is only visible to you.', 'embedpress'); ?></p>
|
| 1320 |
+
<?php
|
| 1321 |
+
}else {
|
| 1322 |
+
echo $content;
|
| 1323 |
+
}
|
| 1324 |
+
?>
|
| 1325 |
</div>
|
| 1326 |
<?php
|
| 1327 |
}
|
EmbedPress/Ends/Front/Handler.php
CHANGED
|
@@ -40,10 +40,7 @@ class Handler extends EndHandlerAbstract
|
|
| 40 |
|
| 41 |
wp_enqueue_script( 'embedpress-pdfobject', EMBEDPRESS_URL_ASSETS . 'js/pdfobject.min.js', [],
|
| 42 |
$this->pluginVersion, false );
|
| 43 |
-
|
| 44 |
-
//load embedpress admin js
|
| 45 |
-
|
| 46 |
-
wp_enqueue_script( 'embedpress-front', EMBEDPRESS_URL_ASSETS . 'js/front.js', [ 'jquery','embedpress-pdfobject' ],
|
| 47 |
$this->pluginVersion, true );
|
| 48 |
|
| 49 |
}
|
| 40 |
|
| 41 |
wp_enqueue_script( 'embedpress-pdfobject', EMBEDPRESS_URL_ASSETS . 'js/pdfobject.min.js', [],
|
| 42 |
$this->pluginVersion, false );
|
| 43 |
+
wp_enqueue_script( 'embedpress-front', EMBEDPRESS_URL_ASSETS . 'js/front.js', [ 'embedpress-pdfobject' ],
|
|
|
|
|
|
|
|
|
|
| 44 |
$this->pluginVersion, true );
|
| 45 |
|
| 46 |
}
|
EmbedPress/Includes/Classes/EmbedPress_Notice.php
CHANGED
|
@@ -5,8 +5,6 @@ if (!defined('ABSPATH')) {
|
|
| 5 |
exit;
|
| 6 |
} // Exit if accessed directly.
|
| 7 |
|
| 8 |
-
use EmbedPress\Includes\Classes\EmbedPress_Core_Installer;
|
| 9 |
-
|
| 10 |
class EmbedPress_Notice {
|
| 11 |
/**
|
| 12 |
* Admin Notice Key
|
|
@@ -72,16 +70,7 @@ class EmbedPress_Notice {
|
|
| 72 |
*
|
| 73 |
* @var array
|
| 74 |
*/
|
| 75 |
-
public $options_args = array(
|
| 76 |
-
// 'first_install' => true,
|
| 77 |
-
// 'notice_will_show' => [
|
| 78 |
-
// 'opt_in' => true,
|
| 79 |
-
// 'first_install' => false,
|
| 80 |
-
// 'update' => true,
|
| 81 |
-
// 'review' => true,
|
| 82 |
-
// 'upsale' => true,
|
| 83 |
-
// ]
|
| 84 |
-
);
|
| 85 |
/**
|
| 86 |
* Notice ID for users.
|
| 87 |
* @var string
|
|
@@ -100,7 +89,7 @@ class EmbedPress_Notice {
|
|
| 100 |
* @param string $version
|
| 101 |
*/
|
| 102 |
public function __construct( $plugin_file = '', $version = '' ) {
|
| 103 |
-
|
| 104 |
$this->plugin_name = basename( $plugin_file, '.php' );
|
| 105 |
$this->version = $version;
|
| 106 |
$this->timestamp = intval( current_time( 'timestamp' ) );
|
|
@@ -368,6 +357,119 @@ class EmbedPress_Notice {
|
|
| 368 |
public function content(){
|
| 369 |
$options_data = $this->get_options_data();
|
| 370 |
$notice = current( $this->next_notice() );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 371 |
switch( $notice ) {
|
| 372 |
case 'opt_in' :
|
| 373 |
do_action('wpdeveloper_optin_notice_for_' . $this->plugin_name );
|
|
@@ -632,7 +734,7 @@ class EmbedPress_Notice {
|
|
| 632 |
}
|
| 633 |
/**
|
| 634 |
* Get all options from database!
|
| 635 |
-
* @return
|
| 636 |
*/
|
| 637 |
protected function get_options_data( $key = ''){
|
| 638 |
$options_data = get_option( 'wpdeveloper_plugins_data' );
|
|
@@ -645,13 +747,15 @@ class EmbedPress_Notice {
|
|
| 645 |
}
|
| 646 |
return false;
|
| 647 |
}
|
| 648 |
-
|
| 649 |
-
|
| 650 |
-
|
| 651 |
-
|
| 652 |
-
|
| 653 |
-
|
| 654 |
-
|
|
|
|
|
|
|
| 655 |
protected function update_options_data( $args = array(), $update = false ){
|
| 656 |
if( $update ) {
|
| 657 |
$options_data = $args;
|
|
@@ -917,4 +1021,5 @@ class EmbedPress_Notice {
|
|
| 917 |
|
| 918 |
<?php
|
| 919 |
}
|
| 920 |
-
}
|
|
|
| 5 |
exit;
|
| 6 |
} // Exit if accessed directly.
|
| 7 |
|
|
|
|
|
|
|
| 8 |
class EmbedPress_Notice {
|
| 9 |
/**
|
| 10 |
* Admin Notice Key
|
| 70 |
*
|
| 71 |
* @var array
|
| 72 |
*/
|
| 73 |
+
public $options_args = array();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 74 |
/**
|
| 75 |
* Notice ID for users.
|
| 76 |
* @var string
|
| 89 |
* @param string $version
|
| 90 |
*/
|
| 91 |
public function __construct( $plugin_file = '', $version = '' ) {
|
| 92 |
+
$this->plugin_file = $plugin_file;
|
| 93 |
$this->plugin_name = basename( $plugin_file, '.php' );
|
| 94 |
$this->version = $version;
|
| 95 |
$this->timestamp = intval( current_time( 'timestamp' ) );
|
| 357 |
public function content(){
|
| 358 |
$options_data = $this->get_options_data();
|
| 359 |
$notice = current( $this->next_notice() );
|
| 360 |
+
?>
|
| 361 |
+
<style>
|
| 362 |
+
.wpdeveloper-review-notice {
|
| 363 |
+
padding: 10px;
|
| 364 |
+
background-color: #fff;
|
| 365 |
+
border-radius: 3px;
|
| 366 |
+
margin: 15px;
|
| 367 |
+
border-left: 4px solid transparent;
|
| 368 |
+
display: -webkit-box;
|
| 369 |
+
display: -ms-flexbox;
|
| 370 |
+
display: flex;
|
| 371 |
+
-webkit-box-align: center;
|
| 372 |
+
-ms-flex-align: center;
|
| 373 |
+
align-items: center;
|
| 374 |
+
}
|
| 375 |
+
.wpdeveloper-review-notice:after {
|
| 376 |
+
content: "";
|
| 377 |
+
display: table;
|
| 378 |
+
clear: both;
|
| 379 |
+
}
|
| 380 |
+
.wpdeveloper-update-notice{
|
| 381 |
+
margin-top: 20px;
|
| 382 |
+
}
|
| 383 |
+
.wpdeveloper-update-notice .notice-dismiss {
|
| 384 |
+
top: auto;
|
| 385 |
+
}
|
| 386 |
+
.wpdeveloper-notice-thumbnail {
|
| 387 |
+
width: 40px;
|
| 388 |
+
float: left;
|
| 389 |
+
padding: 5px 5px 5px 10px;
|
| 390 |
+
text-align: center;
|
| 391 |
+
border-right: 4px solid transparent;
|
| 392 |
+
}
|
| 393 |
+
.wpdeveloper-notice-thumbnail img {
|
| 394 |
+
width: 100%;
|
| 395 |
+
opacity: 0.85;
|
| 396 |
+
-webkit-transition: all 0.3s;
|
| 397 |
+
-o-transition: all 0.3s;
|
| 398 |
+
transition: all 0.3s;
|
| 399 |
+
}
|
| 400 |
+
.wpdeveloper-notice-thumbnail img:hover {
|
| 401 |
+
opacity: 1;
|
| 402 |
+
}
|
| 403 |
+
|
| 404 |
+
.wpdeveloper-notice-link {
|
| 405 |
+
margin: 8px 0 0 0;
|
| 406 |
+
padding: 0;
|
| 407 |
+
}
|
| 408 |
+
.wpdeveloper-notice-link li {
|
| 409 |
+
display: inline-block;
|
| 410 |
+
margin-right: 15px;
|
| 411 |
+
}
|
| 412 |
+
.wpdeveloper-notice-link li a {
|
| 413 |
+
display: inline-block;
|
| 414 |
+
color: #10738b;
|
| 415 |
+
text-decoration: none;
|
| 416 |
+
padding-left: 26px;
|
| 417 |
+
position: relative;
|
| 418 |
+
}
|
| 419 |
+
.wpdeveloper-notice-link li a span {
|
| 420 |
+
position: absolute;
|
| 421 |
+
left: 0;
|
| 422 |
+
top: -2px;
|
| 423 |
+
}
|
| 424 |
+
.wpdeveloper-notice-message {
|
| 425 |
+
padding: 10px;
|
| 426 |
+
}
|
| 427 |
+
.wpdeveloper-upsale-notice .wpdeveloper-notice-message {
|
| 428 |
+
display: -webkit-box;
|
| 429 |
+
display: -ms-flexbox;
|
| 430 |
+
display: flex;
|
| 431 |
+
-webkit-box-align: center;
|
| 432 |
+
-ms-flex-align: center;
|
| 433 |
+
align-items: center;
|
| 434 |
+
padding: 10px 0;
|
| 435 |
+
}
|
| 436 |
+
.wpdeveloper-upsale-notice .wpdeveloper-notice-message + .notice-dismiss {
|
| 437 |
+
top: 10px;
|
| 438 |
+
}
|
| 439 |
+
.wpdeveloper-upsale-notice #plugin-install-core {
|
| 440 |
+
margin-left: 10px;
|
| 441 |
+
}
|
| 442 |
+
.notice.notice-has-thumbnail {
|
| 443 |
+
padding-left: 0;
|
| 444 |
+
display: flex;
|
| 445 |
+
align-items: center;
|
| 446 |
+
}
|
| 447 |
+
.wpdeveloper-upsale-notice {
|
| 448 |
+
display: -webkit-box;
|
| 449 |
+
display: -ms-flexbox;
|
| 450 |
+
display: flex;
|
| 451 |
+
}
|
| 452 |
+
.wpdeveloper-upsale-notice .wpdeveloper-notice-thumbnail {
|
| 453 |
+
padding: 10px;
|
| 454 |
+
width: 40px;
|
| 455 |
+
}
|
| 456 |
+
.wpdeveloper-upsale-notice .wpdeveloper-notice-thumbnail img {
|
| 457 |
+
width: 32px;
|
| 458 |
+
}
|
| 459 |
+
.toplevel_page_eael-settings .wp-menu-image img {
|
| 460 |
+
max-width: 20px;
|
| 461 |
+
padding-top: 8px !important;
|
| 462 |
+
}
|
| 463 |
+
.wpdeveloper-upsale-notice .wpdeveloper-notice-message .button {
|
| 464 |
+
margin-left: 15px;
|
| 465 |
+
}
|
| 466 |
+
|
| 467 |
+
#embedpress-settings-wrapper a.embedpress-settings-link {
|
| 468 |
+
color: #0073aa;
|
| 469 |
+
}
|
| 470 |
+
|
| 471 |
+
</style>
|
| 472 |
+
<?php
|
| 473 |
switch( $notice ) {
|
| 474 |
case 'opt_in' :
|
| 475 |
do_action('wpdeveloper_optin_notice_for_' . $this->plugin_name );
|
| 734 |
}
|
| 735 |
/**
|
| 736 |
* Get all options from database!
|
| 737 |
+
* @return bool|array
|
| 738 |
*/
|
| 739 |
protected function get_options_data( $key = ''){
|
| 740 |
$options_data = get_option( 'wpdeveloper_plugins_data' );
|
| 747 |
}
|
| 748 |
return false;
|
| 749 |
}
|
| 750 |
+
|
| 751 |
+
/**
|
| 752 |
+
* This will update the options table for plugins.
|
| 753 |
+
*
|
| 754 |
+
* @param array $args
|
| 755 |
+
* @param bool $update
|
| 756 |
+
*
|
| 757 |
+
* @return void
|
| 758 |
+
*/
|
| 759 |
protected function update_options_data( $args = array(), $update = false ){
|
| 760 |
if( $update ) {
|
| 761 |
$options_data = $args;
|
| 1021 |
|
| 1022 |
<?php
|
| 1023 |
}
|
| 1024 |
+
}
|
| 1025 |
+
|
EmbedPress/Shortcode.php
CHANGED
|
@@ -128,7 +128,7 @@ class Shortcode {
|
|
| 128 |
self::set_embera_settings(self::$ombed_attributes);
|
| 129 |
|
| 130 |
// Identify what service provider the shortcode's link belongs to
|
| 131 |
-
if ( strpos( $url, 'meetup.com') !== false ) {
|
| 132 |
$serviceProvider = '';
|
| 133 |
}else{
|
| 134 |
$serviceProvider = self::get_oembed()->get_provider( $url );
|
|
@@ -141,13 +141,15 @@ class Shortcode {
|
|
| 141 |
|
| 142 |
// Sanitize the data
|
| 143 |
$urlData = self::sanitizeUrlData( $urlData );
|
|
|
|
| 144 |
// Stores the original content
|
| 145 |
if ( is_object( $urlData ) ) {
|
| 146 |
$urlData->originalContent = $url;
|
| 147 |
}
|
| 148 |
|
| 149 |
-
$
|
| 150 |
-
|
|
|
|
| 151 |
return $subject;
|
| 152 |
}
|
| 153 |
|
|
@@ -167,7 +169,6 @@ class Shortcode {
|
|
| 167 |
$embedTemplate = '<div ' . implode( ' ', $attributesHtml ) . '>{html}</div>';
|
| 168 |
|
| 169 |
$parsedContent = self::get_content_from_template($url, $embedTemplate);
|
| 170 |
-
|
| 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 );
|
|
@@ -623,11 +624,10 @@ KAMAL;
|
|
| 623 |
}
|
| 624 |
}
|
| 625 |
|
| 626 |
-
if ( strpos( $url, 'meetup.com') !== false ) {
|
| 627 |
$html = '';
|
| 628 |
}else{
|
| 629 |
$html = self::get_oembed()->get_html( $url, self::get_oembed_attributes() );
|
| 630 |
-
|
| 631 |
}
|
| 632 |
|
| 633 |
if ( !$html ) {
|
| 128 |
self::set_embera_settings(self::$ombed_attributes);
|
| 129 |
|
| 130 |
// Identify what service provider the shortcode's link belongs to
|
| 131 |
+
if ( (strpos( $url, 'meetup.com') !== false) || (strpos( $url, 'sway.office.com') !== false) ) {
|
| 132 |
$serviceProvider = '';
|
| 133 |
}else{
|
| 134 |
$serviceProvider = self::get_oembed()->get_provider( $url );
|
| 141 |
|
| 142 |
// Sanitize the data
|
| 143 |
$urlData = self::sanitizeUrlData( $urlData );
|
| 144 |
+
|
| 145 |
// Stores the original content
|
| 146 |
if ( is_object( $urlData ) ) {
|
| 147 |
$urlData->originalContent = $url;
|
| 148 |
}
|
| 149 |
|
| 150 |
+
$embedResults = apply_filters( 'embedpress:onBeforeEmbed', $urlData, $subject );
|
| 151 |
+
|
| 152 |
+
if ( empty( $embedResults ) ) {
|
| 153 |
return $subject;
|
| 154 |
}
|
| 155 |
|
| 169 |
$embedTemplate = '<div ' . implode( ' ', $attributesHtml ) . '>{html}</div>';
|
| 170 |
|
| 171 |
$parsedContent = self::get_content_from_template($url, $embedTemplate);
|
|
|
|
| 172 |
// Replace all single quotes to double quotes. I.e: foo='joe' -> foo="joe"
|
| 173 |
$parsedContent = str_replace( "'", '"', $parsedContent );
|
| 174 |
$parsedContent = str_replace( "{provider_alias}", $provider_name , $parsedContent );
|
| 624 |
}
|
| 625 |
}
|
| 626 |
|
| 627 |
+
if ( (strpos( $url, 'meetup.com') !== false) || (strpos( $url, 'sway.office.com') !== false) ) {
|
| 628 |
$html = '';
|
| 629 |
}else{
|
| 630 |
$html = self::get_oembed()->get_html( $url, self::get_oembed_attributes() );
|
|
|
|
| 631 |
}
|
| 632 |
|
| 633 |
if ( !$html ) {
|
Gutenberg/dist/blocks.style.build.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
.pdfobject-container{height:600px;width:600px;margin:0 auto}.embedpress-el-powered{text-align:center;margin-top:0 !important;font-size:16px !important;font-weight:700}.embedpress-embed-document iframe,[data-type="embedpress/document"] iframe{margin:0 auto;display:block}.embedpress-document-editmode .components-form-file-upload{display:none !important}
|
| 2 |
-
.embedpress-gutenberg-wrapper{margin:30px auto}.embedpress-gutenberg-wrapper iframe{max-width:100%}.embedpress-gutenberg-wrapper.alignright{max-width:100%}.ose-the-new-york-times iframe{min-height:500px;max-height:100%}body.page .flexia-wrapper>.content-area{padding:0 !important}.flexia-wrapper.flexia-container>.content-area{margin:0 !important}.flexia-wrapper.flexia-container>.content-area .embedpress-gutenberg-wrapper{margin:0 auto}@media only screen and (min-width: 482px){.entry-content>.embedpress-gutenberg-wrapper.alignright,.entry-content>.embedpress-gutenberg-wrapper.alignleft,.embedpress-gutenberg-wrapper.alignright,.embedpress-gutenberg-wrapper.alignleft{max-width:100%}}.clear::after{content:'';display:block;clear:both;min-height:1px}.embedpress-gutenberg-wrapper .alignleft,.embedpress-gutenberg-wrapper .alignright,.embedpress-gutenberg-wrapper .aligncenter{float:none;text-align:right}.embedpress-gutenberg-wrapper .alignleft{text-align:left}.embedpress-gutenberg-wrapper .aligncenter{clear:both;display:block;float:none;margin-right:auto;margin-left:auto;text-align:center}.embedpress-gutenberg-wrapper .ose-embedpress-responsive{display:inline-block}
|
| 3 |
.pdfobject-container{height:600px;width:600px;margin:0 auto}.embedpress-el-powered{text-align:center;margin-top:10px !important;font-size:16px !important;font-weight:700}.embedpress-embed-document iframe,[data-type="embedpress/document"] iframe{margin:0 auto;display:block}.embedpress-embed-document{max-width:100%}.embedpress-document-editmode .components-form-file-upload{display:none !important}.wp-block-embedpress-embedpress-pdf+*{clear:both}
|
| 4 |
.embedpress-calendar-gutenberg{margin:30px auto}.embedpress-calendar-gutenberg iframe{max-width:100%}.embedpress-calendar-gutenberg.alignright{max-width:100%}body.page .flexia-wrapper>.content-area{padding:0 !important}.flexia-wrapper.flexia-container>.content-area{margin:0 !important}.flexia-wrapper.flexia-container>.content-area .embedpress-calendar-gutenberg{margin:0 auto}@media only screen and (min-width: 482px){.entry-content>.embedpress-calendar-gutenberg.alignright,.entry-content>.embedpress-calendar-gutenberg.alignleft,.embedpress-calendar-gutenberg.alignright,.embedpress-calendar-gutenberg.alignleft{max-width:100%}}.clear::after{content:'';display:block;clear:both;min-height:1px}
|
| 1 |
.pdfobject-container{height:600px;width:600px;margin:0 auto}.embedpress-el-powered{text-align:center;margin-top:0 !important;font-size:16px !important;font-weight:700}.embedpress-embed-document iframe,[data-type="embedpress/document"] iframe{margin:0 auto;display:block}.embedpress-document-editmode .components-form-file-upload{display:none !important}
|
| 2 |
+
.embedpress-gutenberg-wrapper{margin:30px auto}.embedpress-gutenberg-wrapper iframe{max-width:100%}.embedpress-gutenberg-wrapper.alignright{max-width:100%}.ose-the-new-york-times iframe{min-height:500px;max-height:100%}body.page .flexia-wrapper>.content-area{padding:0 !important}.flexia-wrapper.flexia-container>.content-area{margin:0 !important}.flexia-wrapper.flexia-container>.content-area .embedpress-gutenberg-wrapper{margin:0 auto}@media only screen and (min-width: 482px){.entry-content>.embedpress-gutenberg-wrapper.alignright,.entry-content>.embedpress-gutenberg-wrapper.alignleft,.embedpress-gutenberg-wrapper.alignright,.embedpress-gutenberg-wrapper.alignleft{max-width:100%}}.clear::after{content:'';display:block;clear:both;min-height:1px}.embedpress-gutenberg-wrapper .alignleft,.embedpress-gutenberg-wrapper .alignright,.embedpress-gutenberg-wrapper .aligncenter{float:none;display:block}.embedpress-gutenberg-wrapper .alignright{text-align:right}.embedpress-gutenberg-wrapper .alignleft{text-align:left}.embedpress-gutenberg-wrapper .aligncenter{clear:both;display:block;float:none;margin-right:auto;margin-left:auto;text-align:center}.embedpress-gutenberg-wrapper .ose-embedpress-responsive{display:inline-block}
|
| 3 |
.pdfobject-container{height:600px;width:600px;margin:0 auto}.embedpress-el-powered{text-align:center;margin-top:10px !important;font-size:16px !important;font-weight:700}.embedpress-embed-document iframe,[data-type="embedpress/document"] iframe{margin:0 auto;display:block}.embedpress-embed-document{max-width:100%}.embedpress-document-editmode .components-form-file-upload{display:none !important}.wp-block-embedpress-embedpress-pdf+*{clear:both}
|
| 4 |
.embedpress-calendar-gutenberg{margin:30px auto}.embedpress-calendar-gutenberg iframe{max-width:100%}.embedpress-calendar-gutenberg.alignright{max-width:100%}body.page .flexia-wrapper>.content-area{padding:0 !important}.flexia-wrapper.flexia-container>.content-area{margin:0 !important}.flexia-wrapper.flexia-container>.content-area .embedpress-calendar-gutenberg{margin:0 auto}@media only screen and (min-width: 482px){.entry-content>.embedpress-calendar-gutenberg.alignright,.entry-content>.embedpress-calendar-gutenberg.alignleft,.embedpress-calendar-gutenberg.alignright,.embedpress-calendar-gutenberg.alignleft{max-width:100%}}.clear::after{content:'';display:block;clear:both;min-height:1px}
|
assets/css/admin.css
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
/**
|
| 2 |
* @package EmbedPress
|
| 3 |
* @author EmbedPress <help@embedpress.com>
|
| 4 |
-
* @copyright Copyright (C)
|
| 5 |
* @license GPLv2 or later
|
| 6 |
* @since 1.3.1
|
| 7 |
*/
|
|
@@ -14,19 +14,6 @@
|
|
| 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 {
|
| 32 |
background-position: 0 -26px;
|
|
@@ -211,7 +198,6 @@
|
|
| 211 |
#embedpress-settings-wrapper .button-primary {
|
| 212 |
line-height: 1;
|
| 213 |
border: none;
|
| 214 |
-
border-radius: 0;
|
| 215 |
background-color: #dc4444;
|
| 216 |
color: #ffffff;
|
| 217 |
font-size: 14px;
|
|
@@ -330,11 +316,8 @@
|
|
| 330 |
.embedpress-go-premium .embedpress-admin-block-content {
|
| 331 |
overflow: hidden;
|
| 332 |
position: relative;
|
| 333 |
-
padding: 1em 1.5em 1.5em;
|
| 334 |
background-color: #fff;
|
| 335 |
-
padding
|
| 336 |
-
padding-bottom: 30px;
|
| 337 |
-
padding-top: 0px;
|
| 338 |
}
|
| 339 |
|
| 340 |
.embedpress-admin-block-content p {
|
|
@@ -386,119 +369,6 @@
|
|
| 386 |
display: none;
|
| 387 |
}
|
| 388 |
|
| 389 |
-
/**
|
| 390 |
-
* Notice
|
| 391 |
-
**/
|
| 392 |
-
|
| 393 |
-
.wpdeveloper-review-notice {
|
| 394 |
-
padding: 10px;
|
| 395 |
-
background-color: #fff;
|
| 396 |
-
border-radius: 3px;
|
| 397 |
-
margin: 15px;
|
| 398 |
-
border-left: 4px solid transparent;
|
| 399 |
-
display: -webkit-box;
|
| 400 |
-
display: -ms-flexbox;
|
| 401 |
-
display: flex;
|
| 402 |
-
-webkit-box-align: center;
|
| 403 |
-
-ms-flex-align: center;
|
| 404 |
-
align-items: center;
|
| 405 |
-
}
|
| 406 |
-
.wpdeveloper-review-notice:after {
|
| 407 |
-
content: "";
|
| 408 |
-
display: table;
|
| 409 |
-
clear: both;
|
| 410 |
-
}
|
| 411 |
-
.wpdeveloper-update-notice{
|
| 412 |
-
margin-top: 20px;
|
| 413 |
-
}
|
| 414 |
-
.wpdeveloper-update-notice .notice-dismiss {
|
| 415 |
-
top: auto;
|
| 416 |
-
}
|
| 417 |
-
.wpdeveloper-notice-thumbnail {
|
| 418 |
-
width: 40px;
|
| 419 |
-
float: left;
|
| 420 |
-
padding: 5px;
|
| 421 |
-
text-align: center;
|
| 422 |
-
border-right: 4px solid transparent;
|
| 423 |
-
}
|
| 424 |
-
.wpdeveloper-notice-thumbnail img {
|
| 425 |
-
width: 100%;
|
| 426 |
-
opacity: 0.85;
|
| 427 |
-
-webkit-transition: all 0.3s;
|
| 428 |
-
-o-transition: all 0.3s;
|
| 429 |
-
transition: all 0.3s;
|
| 430 |
-
}
|
| 431 |
-
.wpdeveloper-notice-thumbnail img:hover {
|
| 432 |
-
opacity: 1;
|
| 433 |
-
}
|
| 434 |
-
|
| 435 |
-
.wpdeveloper-notice-link {
|
| 436 |
-
margin: 8px 0 0 0;
|
| 437 |
-
padding: 0;
|
| 438 |
-
}
|
| 439 |
-
.wpdeveloper-notice-link li {
|
| 440 |
-
display: inline-block;
|
| 441 |
-
margin-right: 15px;
|
| 442 |
-
}
|
| 443 |
-
.wpdeveloper-notice-link li a {
|
| 444 |
-
display: inline-block;
|
| 445 |
-
color: #10738b;
|
| 446 |
-
text-decoration: none;
|
| 447 |
-
padding-left: 26px;
|
| 448 |
-
position: relative;
|
| 449 |
-
}
|
| 450 |
-
.wpdeveloper-notice-link li a span {
|
| 451 |
-
position: absolute;
|
| 452 |
-
left: 0;
|
| 453 |
-
top: -2px;
|
| 454 |
-
}
|
| 455 |
-
.wpdeveloper-notice-message {
|
| 456 |
-
padding: 10px 0;
|
| 457 |
-
}
|
| 458 |
-
.wpdeveloper-upsale-notice .wpdeveloper-notice-message {
|
| 459 |
-
display: -webkit-box;
|
| 460 |
-
display: -ms-flexbox;
|
| 461 |
-
display: flex;
|
| 462 |
-
-webkit-box-align: center;
|
| 463 |
-
-ms-flex-align: center;
|
| 464 |
-
align-items: center;
|
| 465 |
-
padding: 10px 0;
|
| 466 |
-
}
|
| 467 |
-
.wpdeveloper-upsale-notice .wpdeveloper-notice-message + .notice-dismiss {
|
| 468 |
-
top: 10px;
|
| 469 |
-
}
|
| 470 |
-
.wpdeveloper-upsale-notice #plugin-install-core {
|
| 471 |
-
margin-left: 10px;
|
| 472 |
-
}
|
| 473 |
-
.notice.notice-has-thumbnail {
|
| 474 |
-
padding-left: 0;
|
| 475 |
-
display: flex;
|
| 476 |
-
align-items: center;
|
| 477 |
-
}
|
| 478 |
-
.wpdeveloper-upsale-notice {
|
| 479 |
-
display: -webkit-box;
|
| 480 |
-
display: -ms-flexbox;
|
| 481 |
-
display: flex;
|
| 482 |
-
}
|
| 483 |
-
.wpdeveloper-upsale-notice .wpdeveloper-notice-thumbnail {
|
| 484 |
-
padding: 10px;
|
| 485 |
-
width: 40px;
|
| 486 |
-
}
|
| 487 |
-
.wpdeveloper-upsale-notice .wpdeveloper-notice-thumbnail img {
|
| 488 |
-
width: 32px;
|
| 489 |
-
}
|
| 490 |
-
.toplevel_page_eael-settings .wp-menu-image img {
|
| 491 |
-
max-width: 20px;
|
| 492 |
-
padding-top: 8px !important;
|
| 493 |
-
}
|
| 494 |
-
.wpdeveloper-upsale-notice .wpdeveloper-notice-message .button {
|
| 495 |
-
margin-left: 15px;
|
| 496 |
-
}
|
| 497 |
-
|
| 498 |
-
#embedpress-settings-wrapper a.embedpress-settings-link {
|
| 499 |
-
color: #0073aa;
|
| 500 |
-
}
|
| 501 |
-
|
| 502 |
.embedpress-go-pro-action {
|
| 503 |
color: #39b54a;
|
| 504 |
text-shadow: 1px 1px 1px #eee;
|
| 1 |
/**
|
| 2 |
* @package EmbedPress
|
| 3 |
* @author EmbedPress <help@embedpress.com>
|
| 4 |
+
* @copyright Copyright (C) 2022 EmbedPress. All rights reserved.
|
| 5 |
* @license GPLv2 or later
|
| 6 |
* @since 1.3.1
|
| 7 |
*/
|
| 14 |
background-color: #655997 !important;
|
| 15 |
}
|
| 16 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 17 |
#toplevel_page_embedpress:active .wp-not-current-submenu .dashicons-admin-generic::before,
|
| 18 |
#toplevel_page_embedpress:hover .wp-not-current-submenu .dashicons-admin-generic::before {
|
| 19 |
background-position: 0 -26px;
|
| 198 |
#embedpress-settings-wrapper .button-primary {
|
| 199 |
line-height: 1;
|
| 200 |
border: none;
|
|
|
|
| 201 |
background-color: #dc4444;
|
| 202 |
color: #ffffff;
|
| 203 |
font-size: 14px;
|
| 316 |
.embedpress-go-premium .embedpress-admin-block-content {
|
| 317 |
overflow: hidden;
|
| 318 |
position: relative;
|
|
|
|
| 319 |
background-color: #fff;
|
| 320 |
+
padding: 0 1.5em 30px 85px;
|
|
|
|
|
|
|
| 321 |
}
|
| 322 |
|
| 323 |
.embedpress-admin-block-content p {
|
| 369 |
display: none;
|
| 370 |
}
|
| 371 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 372 |
.embedpress-go-pro-action {
|
| 373 |
color: #39b54a;
|
| 374 |
text-shadow: 1px 1px 1px #eee;
|
assets/js/front.js
CHANGED
|
@@ -1,24 +1,32 @@
|
|
| 1 |
/**
|
| 2 |
* @package EmbedPress
|
| 3 |
* @author EmbedPress <help@embedpress.com>
|
| 4 |
-
* @copyright Copyright (C)
|
| 5 |
* @license GPLv2 or later
|
| 6 |
* @since 1.7.0
|
| 7 |
*/
|
| 8 |
-
(function (
|
| 9 |
'use strict';
|
| 10 |
-
|
| 11 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 12 |
let option = {
|
| 13 |
forceObject: true,
|
| 14 |
};
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
});
|
| 22 |
}
|
| 23 |
});
|
| 24 |
|
|
@@ -56,5 +64,4 @@
|
|
| 56 |
|
| 57 |
// Run on resize.
|
| 58 |
window.onresize = embedPressResponsiveEmbeds;
|
| 59 |
-
|
| 60 |
-
})(jQuery);
|
| 1 |
/**
|
| 2 |
* @package EmbedPress
|
| 3 |
* @author EmbedPress <help@embedpress.com>
|
| 4 |
+
* @copyright Copyright (C) 2022 EmbedPress. All rights reserved.
|
| 5 |
* @license GPLv2 or later
|
| 6 |
* @since 1.7.0
|
| 7 |
*/
|
| 8 |
+
(function () {
|
| 9 |
'use strict';
|
| 10 |
+
// function equivalent to jquery ready()
|
| 11 |
+
function ready(fn) {
|
| 12 |
+
if (document.readyState !== 'loading'){
|
| 13 |
+
fn();
|
| 14 |
+
} else {
|
| 15 |
+
document.addEventListener('DOMContentLoaded', fn);
|
| 16 |
+
}
|
| 17 |
+
}
|
| 18 |
+
|
| 19 |
+
ready(function() {
|
| 20 |
let option = {
|
| 21 |
forceObject: true,
|
| 22 |
};
|
| 23 |
+
let selector = document.querySelectorAll('.embedpress-embed-document-pdf');
|
| 24 |
+
if (selector.length) {
|
| 25 |
+
selector.forEach((function(value, index, thisArg) {
|
| 26 |
+
let id = value.dataset['emid'];
|
| 27 |
+
let src = value.dataset['emsrc'];
|
| 28 |
+
PDFObject.embed(src, "."+id, option);
|
| 29 |
+
}));
|
| 30 |
}
|
| 31 |
});
|
| 32 |
|
| 64 |
|
| 65 |
// Run on resize.
|
| 66 |
window.onresize = embedPressResponsiveEmbeds;
|
| 67 |
+
})();
|
|
|
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.
|
| 9 |
* Text Domain: embedpress
|
| 10 |
* Domain Path: /languages
|
| 11 |
*
|
| 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.5
|
| 9 |
* Text Domain: embedpress
|
| 10 |
* Domain Path: /languages
|
| 11 |
*
|
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.
|
| 26 |
/**
|
| 27 |
* @deprecated 2.2.0
|
| 28 |
*/
|
| 22 |
}
|
| 23 |
|
| 24 |
if ( ! defined('EMBEDPRESS_VERSION')) {
|
| 25 |
+
define('EMBEDPRESS_VERSION', "3.3.5");
|
| 26 |
/**
|
| 27 |
* @deprecated 2.2.0
|
| 28 |
*/
|
readme.txt
CHANGED
|
@@ -6,7 +6,7 @@ Tags: embed, embed youtube, gutenberg embed, pdf, doc, docs, ppt, elementor embe
|
|
| 6 |
Requires at least: 4.6
|
| 7 |
Tested up to: 5.9
|
| 8 |
Requires PHP: 5.6
|
| 9 |
-
Stable tag: 3.3.
|
| 10 |
License: GPLv3 or later
|
| 11 |
License URI: https://opensource.org/licenses/GPL-3.0
|
| 12 |
|
|
@@ -382,6 +382,12 @@ 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.4] - 2022-02-14 =
|
| 386 |
* Fixed: Alignment issues for Gutenberg.
|
| 387 |
* Few minor bug fix and improvements.
|
| 6 |
Requires at least: 4.6
|
| 7 |
Tested up to: 5.9
|
| 8 |
Requires PHP: 5.6
|
| 9 |
+
Stable tag: 3.3.5
|
| 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.5] - 2022-03-01 =
|
| 386 |
+
* Fixed: Microsoft Sway embedding issues.
|
| 387 |
+
* Fixed: Unnecessary jquery calling issues.
|
| 388 |
+
* Improvement: Added notice for apple podcasts embed.
|
| 389 |
+
* Few minor bug fix and improvements.
|
| 390 |
+
|
| 391 |
= [3.3.4] - 2022-02-14 =
|
| 392 |
* Fixed: Alignment issues for Gutenberg.
|
| 393 |
* Few minor bug fix and improvements.
|
