Version Description
Download this release
Release Info
Developer | pressshack |
Plugin | EmbedPress – Embed Google Docs, YouTube, Maps, Vimeo, Wistia Videos & Upload PDF, PPT in Gutenberg & Elementor |
Version | 1.7.5 |
Comparing to | |
See all releases |
Code changes from version 1.7.4 to 1.7.5
- EmbedPress/AutoLoader.php +1 -1
- EmbedPress/Core.php +3 -3
- EmbedPress/Disabler.php +1 -1
- EmbedPress/Ends/Back/Handler.php +2 -1
- EmbedPress/Ends/Back/Settings.php +2 -2
- EmbedPress/Ends/Front/Handler.php +1 -1
- EmbedPress/Ends/Handler.php +1 -1
- EmbedPress/Loader.php +1 -1
- EmbedPress/Plugins/Html/Field.php +1 -1
- EmbedPress/Plugins/Plugin.php +1 -1
- EmbedPress/Providers/Giphy.php +1 -1
- EmbedPress/Providers/GoogleDocs.php +1 -1
- EmbedPress/Providers/GoogleMaps.php +2 -2
- EmbedPress/Providers/Twitch.php +1 -1
- EmbedPress/Shortcode.php +17 -8
- assets/css/admin.css +2 -2
- assets/css/embedpress.css +2 -2
- assets/css/font.css +2 -2
- assets/css/preview.css +2 -2
- assets/js/preview.js +2 -2
- assets/js/settings.js +1 -1
- autoloader.php +1 -1
- embedpress.php +2 -2
- freemius.php +2 -2
- freemius/assets/img/plugin-icon.png +0 -0
- includes.php +6 -2
- providers.php +2 -2
- readme.txt +11 -2
EmbedPress/AutoLoader.php
CHANGED
@@ -8,7 +8,7 @@ namespace EmbedPress;
|
|
8 |
*
|
9 |
* @package EmbedPress
|
10 |
* @author PressShack <help@pressshack.com>
|
11 |
-
* @copyright Copyright (C) 2017
|
12 |
* @license GPLv2 or later
|
13 |
* @since 1.0.0
|
14 |
*/
|
8 |
*
|
9 |
* @package EmbedPress
|
10 |
* @author PressShack <help@pressshack.com>
|
11 |
+
* @copyright Copyright (C) 2017 PressShack. All rights reserved.
|
12 |
* @license GPLv2 or later
|
13 |
* @since 1.0.0
|
14 |
*/
|
EmbedPress/Core.php
CHANGED
@@ -13,7 +13,7 @@ use \EmbedPress\Ends\Front\Handler as EndHandlerPublic;
|
|
13 |
*
|
14 |
* @package EmbedPress
|
15 |
* @author PressShack <help@pressshack.com>
|
16 |
-
* @copyright Copyright (C) 2017
|
17 |
* @license GPLv2 or later
|
18 |
* @since 1.0.0
|
19 |
*/
|
@@ -359,9 +359,9 @@ class Core
|
|
359 |
* Hook the onPaste methof to the paste_preprocess config in the editor.
|
360 |
*
|
361 |
* @since 1.6.2
|
362 |
-
*
|
363 |
* @param array $mceInit
|
364 |
-
*
|
365 |
* @return array
|
366 |
*/
|
367 |
public function hookOnPaste($mceInit)
|
13 |
*
|
14 |
* @package EmbedPress
|
15 |
* @author PressShack <help@pressshack.com>
|
16 |
+
* @copyright Copyright (C) 2017 PressShack. All rights reserved.
|
17 |
* @license GPLv2 or later
|
18 |
* @since 1.0.0
|
19 |
*/
|
359 |
* Hook the onPaste methof to the paste_preprocess config in the editor.
|
360 |
*
|
361 |
* @since 1.6.2
|
362 |
+
*
|
363 |
* @param array $mceInit
|
364 |
+
*
|
365 |
* @return array
|
366 |
*/
|
367 |
public function hookOnPaste($mceInit)
|
EmbedPress/Disabler.php
CHANGED
@@ -10,7 +10,7 @@ use \EmbedPress\Shortcode;
|
|
10 |
*
|
11 |
* @package EmbedPress
|
12 |
* @author PressShack <help@pressshack.com>
|
13 |
-
* @copyright Copyright (C) 2017
|
14 |
* @license GPLv2 or later
|
15 |
* @since 1.0.0
|
16 |
*/
|
10 |
*
|
11 |
* @package EmbedPress
|
12 |
* @author PressShack <help@pressshack.com>
|
13 |
+
* @copyright Copyright (C) 2017 PressShack. All rights reserved.
|
14 |
* @license GPLv2 or later
|
15 |
* @since 1.0.0
|
16 |
*/
|
EmbedPress/Ends/Back/Handler.php
CHANGED
@@ -15,7 +15,7 @@ use \Embera\Embera;
|
|
15 |
* @package EmbedPress
|
16 |
* @subpackage EmbedPress/Ends/Back
|
17 |
* @author PressShack <help@pressshack.com>
|
18 |
-
* @copyright Copyright (C) 2017
|
19 |
* @license GPLv2 or later
|
20 |
* @since 1.0.0
|
21 |
*/
|
@@ -383,6 +383,7 @@ class Handler extends EndHandlerAbstract
|
|
383 |
// Google Maps
|
384 |
'google.com/*',
|
385 |
'google.com.*/*',
|
|
|
386 |
'maps.google.com/*',
|
387 |
|
388 |
// Google Docs
|
15 |
* @package EmbedPress
|
16 |
* @subpackage EmbedPress/Ends/Back
|
17 |
* @author PressShack <help@pressshack.com>
|
18 |
+
* @copyright Copyright (C) 2017 PressShack. All rights reserved.
|
19 |
* @license GPLv2 or later
|
20 |
* @since 1.0.0
|
21 |
*/
|
383 |
// Google Maps
|
384 |
'google.com/*',
|
385 |
'google.com.*/*',
|
386 |
+
'google.co.*/*',
|
387 |
'maps.google.com/*',
|
388 |
|
389 |
// Google Docs
|
EmbedPress/Ends/Back/Settings.php
CHANGED
@@ -11,7 +11,7 @@ use \EmbedPress\Core;
|
|
11 |
* @package EmbedPress
|
12 |
* @subpackage EmbedPress/Ends/Back
|
13 |
* @author PressShack <help@pressshack.com>
|
14 |
-
* @copyright Copyright (C) 2017
|
15 |
* @license GPLv2 or later
|
16 |
* @since 1.0.0
|
17 |
*/
|
@@ -162,7 +162,7 @@ class Settings
|
|
162 |
* @return boolean
|
163 |
*/
|
164 |
protected static function is_plugin_installed( $plugin ) {
|
165 |
-
return file_exists( plugin_dir_path(
|
166 |
}
|
167 |
|
168 |
/**
|
11 |
* @package EmbedPress
|
12 |
* @subpackage EmbedPress/Ends/Back
|
13 |
* @author PressShack <help@pressshack.com>
|
14 |
+
* @copyright Copyright (C) 2017 PressShack. All rights reserved.
|
15 |
* @license GPLv2 or later
|
16 |
* @since 1.0.0
|
17 |
*/
|
162 |
* @return boolean
|
163 |
*/
|
164 |
protected static function is_plugin_installed( $plugin ) {
|
165 |
+
return file_exists( plugin_dir_path( EMBEDPRESS_ROOT ) . "{$plugin}/{$plugin}.php" );
|
166 |
}
|
167 |
|
168 |
/**
|
EmbedPress/Ends/Front/Handler.php
CHANGED
@@ -15,7 +15,7 @@ use \EmbedPress\Core;
|
|
15 |
* @package EmbedPress
|
16 |
* @subpackage EmbedPress/Ends/Front
|
17 |
* @author PressShack <help@pressshack.com>
|
18 |
-
* @copyright Copyright (C) 2017
|
19 |
* @license GPLv2 or later
|
20 |
* @since 1.0.0
|
21 |
*/
|
15 |
* @package EmbedPress
|
16 |
* @subpackage EmbedPress/Ends/Front
|
17 |
* @author PressShack <help@pressshack.com>
|
18 |
+
* @copyright Copyright (C) 2017 PressShack. All rights reserved.
|
19 |
* @license GPLv2 or later
|
20 |
* @since 1.0.0
|
21 |
*/
|
EmbedPress/Ends/Handler.php
CHANGED
@@ -9,7 +9,7 @@ namespace EmbedPress\Ends;
|
|
9 |
* @package EmbedPress
|
10 |
* @subpackage EmbedPress/Ends
|
11 |
* @author PressShack <help@pressshack.com>
|
12 |
-
* @copyright Copyright (C) 2017
|
13 |
* @license GPLv2 or later
|
14 |
* @since 1.0.0
|
15 |
*/
|
9 |
* @package EmbedPress
|
10 |
* @subpackage EmbedPress/Ends
|
11 |
* @author PressShack <help@pressshack.com>
|
12 |
+
* @copyright Copyright (C) 2017 PressShack. All rights reserved.
|
13 |
* @license GPLv2 or later
|
14 |
* @since 1.0.0
|
15 |
*/
|
EmbedPress/Loader.php
CHANGED
@@ -8,7 +8,7 @@ namespace EmbedPress;
|
|
8 |
*
|
9 |
* @package EmbedPress
|
10 |
* @author PressShack <help@pressshack.com>
|
11 |
-
* @copyright Copyright (C) 2017
|
12 |
* @license GPLv2 or later
|
13 |
* @since 1.0.0
|
14 |
*/
|
8 |
*
|
9 |
* @package EmbedPress
|
10 |
* @author PressShack <help@pressshack.com>
|
11 |
+
* @copyright Copyright (C) 2017 PressShack. All rights reserved.
|
12 |
* @license GPLv2 or later
|
13 |
* @since 1.0.0
|
14 |
*/
|
EmbedPress/Plugins/Html/Field.php
CHANGED
@@ -8,7 +8,7 @@ namespace EmbedPress\Plugins\Html;
|
|
8 |
*
|
9 |
* @package EmbedPress
|
10 |
* @author PressShack <help@pressshack.com>
|
11 |
-
* @copyright Copyright (C) 2017
|
12 |
* @license GPLv2 or later
|
13 |
* @since 1.4.0
|
14 |
*/
|
8 |
*
|
9 |
* @package EmbedPress
|
10 |
* @author PressShack <help@pressshack.com>
|
11 |
+
* @copyright Copyright (C) 2017 PressShack. All rights reserved.
|
12 |
* @license GPLv2 or later
|
13 |
* @since 1.4.0
|
14 |
*/
|
EmbedPress/Plugins/Plugin.php
CHANGED
@@ -10,7 +10,7 @@ use \EmbedPress\Updater;
|
|
10 |
*
|
11 |
* @package EmbedPress
|
12 |
* @author PressShack <help@pressshack.com>
|
13 |
-
* @copyright Copyright (C) 2017
|
14 |
* @license GPLv2 or later
|
15 |
* @since 1.4.0
|
16 |
* @abstract
|
10 |
*
|
11 |
* @package EmbedPress
|
12 |
* @author PressShack <help@pressshack.com>
|
13 |
+
* @copyright Copyright (C) 2017 PressShack. All rights reserved.
|
14 |
* @license GPLv2 or later
|
15 |
* @since 1.4.0
|
16 |
* @abstract
|
EmbedPress/Providers/Giphy.php
CHANGED
@@ -11,7 +11,7 @@ use \Embera\Adapters\Service as EmberaService;
|
|
11 |
* @package EmbedPress
|
12 |
* @subpackage EmbedPress/Providers
|
13 |
* @author PressShack <help@pressshack.com>
|
14 |
-
* @copyright Copyright (C) 2017
|
15 |
* @license GPLv2 or later
|
16 |
* @since 1.5.0
|
17 |
*/
|
11 |
* @package EmbedPress
|
12 |
* @subpackage EmbedPress/Providers
|
13 |
* @author PressShack <help@pressshack.com>
|
14 |
+
* @copyright Copyright (C) 2017 PressShack. All rights reserved.
|
15 |
* @license GPLv2 or later
|
16 |
* @since 1.5.0
|
17 |
*/
|
EmbedPress/Providers/GoogleDocs.php
CHANGED
@@ -11,7 +11,7 @@ use \Embera\Adapters\Service as EmberaService;
|
|
11 |
* @package EmbedPress
|
12 |
* @subpackage EmbedPress/Providers
|
13 |
* @author PressShack <help@pressshack.com>
|
14 |
-
* @copyright Copyright (C) 2017
|
15 |
* @license GPLv2 or later
|
16 |
* @since 1.0.0
|
17 |
*/
|
11 |
* @package EmbedPress
|
12 |
* @subpackage EmbedPress/Providers
|
13 |
* @author PressShack <help@pressshack.com>
|
14 |
+
* @copyright Copyright (C) 2017 PressShack. All rights reserved.
|
15 |
* @license GPLv2 or later
|
16 |
* @since 1.0.0
|
17 |
*/
|
EmbedPress/Providers/GoogleMaps.php
CHANGED
@@ -11,7 +11,7 @@ use \Embera\Adapters\Service as EmberaService;
|
|
11 |
* @package EmbedPress
|
12 |
* @subpackage EmbedPress/Providers
|
13 |
* @author PressShack <help@pressshack.com>
|
14 |
-
* @copyright Copyright (C) 2017
|
15 |
* @license GPLv2 or later
|
16 |
* @since 1.0.0
|
17 |
*/
|
@@ -26,7 +26,7 @@ class GoogleMaps extends EmberaService
|
|
26 |
*/
|
27 |
public function validateUrl()
|
28 |
{
|
29 |
-
return preg_match('~http[s]?:\/\/(?:(?:(?:www\.|maps\.)?(?:google\.com))|(?:goo\.gl))(?:\.[a-z]{2})?\/(?:maps\/)?([a-z0-9\/%,+\-_=!:@\.&*\$#?\']*)~i', $this->url);
|
30 |
}
|
31 |
|
32 |
/**
|
11 |
* @package EmbedPress
|
12 |
* @subpackage EmbedPress/Providers
|
13 |
* @author PressShack <help@pressshack.com>
|
14 |
+
* @copyright Copyright (C) 2017 PressShack. All rights reserved.
|
15 |
* @license GPLv2 or later
|
16 |
* @since 1.0.0
|
17 |
*/
|
26 |
*/
|
27 |
public function validateUrl()
|
28 |
{
|
29 |
+
return preg_match('~http[s]?:\/\/(?:(?:(?:www\.|maps\.)?(?:google\.com?))|(?:goo\.gl))(?:\.[a-z]{2})?\/(?:maps\/)?([a-z0-9\/%,+\-_=!:@\.&*\$#?\']*)~i', $this->url);
|
30 |
}
|
31 |
|
32 |
/**
|
EmbedPress/Providers/Twitch.php
CHANGED
@@ -11,7 +11,7 @@ use \Embera\Adapters\Service as EmberaService;
|
|
11 |
* @package EmbedPress
|
12 |
* @subpackage EmbedPress/Providers
|
13 |
* @author PressShack <help@pressshack.com>
|
14 |
-
* @copyright Copyright (C) 2017
|
15 |
* @license GPLv2 or later
|
16 |
* @since 1.5.0
|
17 |
*/
|
11 |
* @package EmbedPress
|
12 |
* @subpackage EmbedPress/Providers
|
13 |
* @author PressShack <help@pressshack.com>
|
14 |
+
* @copyright Copyright (C) 2017 PressShack. All rights reserved.
|
15 |
* @license GPLv2 or later
|
16 |
* @since 1.5.0
|
17 |
*/
|
EmbedPress/Shortcode.php
CHANGED
@@ -12,7 +12,7 @@ use \Embera\Formatter;
|
|
12 |
*
|
13 |
* @package EmbedPress
|
14 |
* @author PressShack <help@pressshack.com>
|
15 |
-
* @copyright Copyright (C) 2017
|
16 |
* @license GPLv2 or later
|
17 |
* @since 1.0.0
|
18 |
*/
|
@@ -93,7 +93,9 @@ class Shortcode
|
|
93 |
'params' => array()
|
94 |
);
|
95 |
|
96 |
-
$
|
|
|
|
|
97 |
if (isset($attributes['width']) || isset($attributes['height'])) {
|
98 |
if (isset($attributes['width'])) {
|
99 |
$emberaInstanceSettings['params']['width'] = $attributes['width'];
|
@@ -234,7 +236,7 @@ class Shortcode
|
|
234 |
$parsedContent = preg_replace('/((?:ose-)?\{provider_alias\})/i', "ose-". strtolower($urlData->provider_name), $parsedContent);
|
235 |
}
|
236 |
|
237 |
-
if (isset($urlData->provider_name) || isset($urlData[$content]['provider_name'])) {
|
238 |
// NFB seems to always return their embed code with all HTML entities into their applicable characters string.
|
239 |
if ((isset($urlData->provider_name) && strtoupper($urlData->provider_name) === "NATIONAL FILM BOARD OF CANADA") || (is_array($urlData) && isset($urlData[$content]['provider_name']) && strtoupper($urlData[$content]['provider_name']) === "NATIONAL FILM BOARD OF CANADA")) {
|
240 |
$parsedContent = html_entity_decode($parsedContent);
|
@@ -386,10 +388,11 @@ class Shortcode
|
|
386 |
* @access private
|
387 |
* @static
|
388 |
*
|
389 |
-
* @param array $
|
|
|
390 |
* @return array
|
391 |
*/
|
392 |
-
private static function parseContentAttributes(array $customAttributes)
|
393 |
{
|
394 |
$attributes = array(
|
395 |
'class' => array("embedpress-wrapper")
|
@@ -461,8 +464,14 @@ class Shortcode
|
|
461 |
unset($responsiveAttr, $responsiveAttributes);
|
462 |
}
|
463 |
|
|
|
|
|
|
|
|
|
|
|
|
|
464 |
if ($embedShouldBeResponsive && !$embedShouldHaveCustomDimensions) {
|
465 |
-
$attributes['class'][] = '
|
466 |
} else {
|
467 |
$attributes['data-responsive'] = "false";
|
468 |
}
|
@@ -546,7 +555,7 @@ class Shortcode
|
|
546 |
foreach ($attributes as $key => $value) {
|
547 |
if (substr_count($key, '-')) {
|
548 |
unset($data->$key);
|
549 |
-
|
550 |
$key = str_replace('-', '_', $key);
|
551 |
$data->$key = $value;
|
552 |
}
|
@@ -555,7 +564,7 @@ class Shortcode
|
|
555 |
foreach ($data as $key => $value) {
|
556 |
if (substr_count($key, '-')) {
|
557 |
unset($data[$key]);
|
558 |
-
|
559 |
$key = str_replace('-', '_', $key);
|
560 |
$data[$key] = $value;
|
561 |
}
|
12 |
*
|
13 |
* @package EmbedPress
|
14 |
* @author PressShack <help@pressshack.com>
|
15 |
+
* @copyright Copyright (C) 2017 PressShack. All rights reserved.
|
16 |
* @license GPLv2 or later
|
17 |
* @since 1.0.0
|
18 |
*/
|
93 |
'params' => array()
|
94 |
);
|
95 |
|
96 |
+
$content_uid = md5( $content );
|
97 |
+
|
98 |
+
$attributes = self::parseContentAttributes($customAttributes, $content_uid);
|
99 |
if (isset($attributes['width']) || isset($attributes['height'])) {
|
100 |
if (isset($attributes['width'])) {
|
101 |
$emberaInstanceSettings['params']['width'] = $attributes['width'];
|
236 |
$parsedContent = preg_replace('/((?:ose-)?\{provider_alias\})/i', "ose-". strtolower($urlData->provider_name), $parsedContent);
|
237 |
}
|
238 |
|
239 |
+
if (isset($urlData->provider_name) || (is_array($urlData) && isset($urlData[$content]['provider_name']))) {
|
240 |
// NFB seems to always return their embed code with all HTML entities into their applicable characters string.
|
241 |
if ((isset($urlData->provider_name) && strtoupper($urlData->provider_name) === "NATIONAL FILM BOARD OF CANADA") || (is_array($urlData) && isset($urlData[$content]['provider_name']) && strtoupper($urlData[$content]['provider_name']) === "NATIONAL FILM BOARD OF CANADA")) {
|
242 |
$parsedContent = html_entity_decode($parsedContent);
|
388 |
* @access private
|
389 |
* @static
|
390 |
*
|
391 |
+
* @param array $customAttributes The array containing the embed attributes.
|
392 |
+
* @param string $content_uid An optional string specifying a unique ID for the embed
|
393 |
* @return array
|
394 |
*/
|
395 |
+
private static function parseContentAttributes(array $customAttributes, $content_uid = null)
|
396 |
{
|
397 |
$attributes = array(
|
398 |
'class' => array("embedpress-wrapper")
|
464 |
unset($responsiveAttr, $responsiveAttributes);
|
465 |
}
|
466 |
|
467 |
+
$attributes['class'][] = 'ose-{provider_alias}';
|
468 |
+
|
469 |
+
if (! empty($content_uid)) {
|
470 |
+
$attributes['class'][] = 'ose-uid-' . $content_uid;
|
471 |
+
}
|
472 |
+
|
473 |
if ($embedShouldBeResponsive && !$embedShouldHaveCustomDimensions) {
|
474 |
+
$attributes['class'][] = 'responsive';
|
475 |
} else {
|
476 |
$attributes['data-responsive'] = "false";
|
477 |
}
|
555 |
foreach ($attributes as $key => $value) {
|
556 |
if (substr_count($key, '-')) {
|
557 |
unset($data->$key);
|
558 |
+
|
559 |
$key = str_replace('-', '_', $key);
|
560 |
$data->$key = $value;
|
561 |
}
|
564 |
foreach ($data as $key => $value) {
|
565 |
if (substr_count($key, '-')) {
|
566 |
unset($data[$key]);
|
567 |
+
|
568 |
$key = str_replace('-', '_', $key);
|
569 |
$data[$key] = $value;
|
570 |
}
|
assets/css/admin.css
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
/**
|
2 |
* @package EmbedPress
|
3 |
* @author PressShack <help@pressshack.com>
|
4 |
-
* @copyright Copyright (C) 2017
|
5 |
* @license GPLv2 or later
|
6 |
* @since 1.3.1
|
7 |
*/
|
@@ -273,4 +273,4 @@
|
|
273 |
#piframe,
|
274 |
.fs-secure-notice {
|
275 |
display: none;
|
276 |
-
}
|
1 |
/**
|
2 |
* @package EmbedPress
|
3 |
* @author PressShack <help@pressshack.com>
|
4 |
+
* @copyright Copyright (C) 2017 PressShack. All rights reserved.
|
5 |
* @license GPLv2 or later
|
6 |
* @since 1.3.1
|
7 |
*/
|
273 |
#piframe,
|
274 |
.fs-secure-notice {
|
275 |
display: none;
|
276 |
+
}
|
assets/css/embedpress.css
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
/**
|
2 |
* @package EmbedPress
|
3 |
* @author PressShack <help@pressshack.com>
|
4 |
-
* @copyright Copyright (C) 2017
|
5 |
* @license GPLv2 or later
|
6 |
* @since 1.0
|
7 |
*/
|
@@ -105,4 +105,4 @@
|
|
105 |
z-index: 0;
|
106 |
position: absolute;
|
107 |
bottom: 0;
|
108 |
-
}
|
1 |
/**
|
2 |
* @package EmbedPress
|
3 |
* @author PressShack <help@pressshack.com>
|
4 |
+
* @copyright Copyright (C) 2017 PressShack. All rights reserved.
|
5 |
* @license GPLv2 or later
|
6 |
* @since 1.0
|
7 |
*/
|
105 |
z-index: 0;
|
106 |
position: absolute;
|
107 |
bottom: 0;
|
108 |
+
}
|
assets/css/font.css
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
/**
|
2 |
* @package EmbedPress
|
3 |
* @author PressShack <help@pressshack.com>
|
4 |
-
* @copyright Copyright (C) 2017
|
5 |
* @license GPLv2 or later
|
6 |
* @since 1.0
|
7 |
*/
|
@@ -91,4 +91,4 @@
|
|
91 |
-webkit-transform: rotate(359deg);
|
92 |
transform: rotate(359deg);
|
93 |
}
|
94 |
-
}
|
1 |
/**
|
2 |
* @package EmbedPress
|
3 |
* @author PressShack <help@pressshack.com>
|
4 |
+
* @copyright Copyright (C) 2017 PressShack. All rights reserved.
|
5 |
* @license GPLv2 or later
|
6 |
* @since 1.0
|
7 |
*/
|
91 |
-webkit-transform: rotate(359deg);
|
92 |
transform: rotate(359deg);
|
93 |
}
|
94 |
+
}
|
assets/css/preview.css
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
/**
|
2 |
* @package EmbedPress
|
3 |
* @author PressShack <help@pressshack.com>
|
4 |
-
* @copyright Copyright (C) 2017
|
5 |
* @license GPLv2 or later
|
6 |
* @since 1.0
|
7 |
*/
|
@@ -157,4 +157,4 @@ span.hidden {
|
|
157 |
/* Fix issuu preview */
|
158 |
.ose-issuu.responsive {
|
159 |
padding-bottom: 71.25% !important;
|
160 |
-
}
|
1 |
/**
|
2 |
* @package EmbedPress
|
3 |
* @author PressShack <help@pressshack.com>
|
4 |
+
* @copyright Copyright (C) 2017 PressShack. All rights reserved.
|
5 |
* @license GPLv2 or later
|
6 |
* @since 1.0
|
7 |
*/
|
157 |
/* Fix issuu preview */
|
158 |
.ose-issuu.responsive {
|
159 |
padding-bottom: 71.25% !important;
|
160 |
+
}
|
assets/js/preview.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
/**
|
2 |
* @package EmbedPress
|
3 |
* @author PressShack <help@pressshack.com>
|
4 |
-
* @copyright Copyright (C) 2017
|
5 |
* @license GPLv2 or later
|
6 |
* @since 1.0
|
7 |
*/
|
@@ -1086,7 +1086,7 @@
|
|
1086 |
self.onPaste = function(plugin, args) {
|
1087 |
var urlPatternRegex = new RegExp(/(https?):\/\/([w]{3}\.)?.+?(?:\s|$)/i);
|
1088 |
var urlPatternsList = self.getProvidersURLPatterns();
|
1089 |
-
|
1090 |
// Split the pasted content into separated lines.
|
1091 |
var contentLines = args.content.split(/\n/g) || [];
|
1092 |
contentLines = contentLines.map(function(line, itemIndex) {
|
1 |
/**
|
2 |
* @package EmbedPress
|
3 |
* @author PressShack <help@pressshack.com>
|
4 |
+
* @copyright Copyright (C) 2017 PressShack. All rights reserved.
|
5 |
* @license GPLv2 or later
|
6 |
* @since 1.0
|
7 |
*/
|
1086 |
self.onPaste = function(plugin, args) {
|
1087 |
var urlPatternRegex = new RegExp(/(https?):\/\/([w]{3}\.)?.+?(?:\s|$)/i);
|
1088 |
var urlPatternsList = self.getProvidersURLPatterns();
|
1089 |
+
|
1090 |
// Split the pasted content into separated lines.
|
1091 |
var contentLines = args.content.split(/\n/g) || [];
|
1092 |
contentLines = contentLines.map(function(line, itemIndex) {
|
assets/js/settings.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
/**
|
2 |
* @package EmbedPress
|
3 |
* @author PressShack <help@pressshack.com>
|
4 |
-
* @copyright Copyright (C) 2017
|
5 |
* @license GPLv2 or later
|
6 |
* @since 1.7.0
|
7 |
*/
|
1 |
/**
|
2 |
* @package EmbedPress
|
3 |
* @author PressShack <help@pressshack.com>
|
4 |
+
* @copyright Copyright (C) 2017 PressShack. All rights reserved.
|
5 |
* @license GPLv2 or later
|
6 |
* @since 1.7.0
|
7 |
*/
|
autoloader.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/**
|
3 |
* @package EmbedPress
|
4 |
* @author PressShack <help@pressshack.com>
|
5 |
-
* @copyright Copyright (C) 2017
|
6 |
* @license GPLv2 or later
|
7 |
* @since 1.0.0
|
8 |
*/
|
2 |
/**
|
3 |
* @package EmbedPress
|
4 |
* @author PressShack <help@pressshack.com>
|
5 |
+
* @copyright Copyright (C) 2017 PressShack. All rights reserved.
|
6 |
* @license GPLv2 or later
|
7 |
* @since 1.0.0
|
8 |
*/
|
embedpress.php
CHANGED
@@ -5,14 +5,14 @@
|
|
5 |
* @link https://pressshack.com/embedpress/
|
6 |
* @package EmbedPress
|
7 |
* @author PressShack <help@pressshack.com>
|
8 |
-
* @copyright Copyright (C) 2017
|
9 |
* @license GPLv2 or later
|
10 |
* @since 1.0.0
|
11 |
*
|
12 |
* @embedpress
|
13 |
* Plugin Name: EmbedPress
|
14 |
* Plugin URI: https://pressshack.com/embedpress/
|
15 |
-
* Version: 1.7.
|
16 |
* Description: WordPress supports around 35 embed sources, but EmbedPress adds over 40 more, including Facebook, Google Maps, Google Docs, UStream! Just use the URL!
|
17 |
* Author: PressShack
|
18 |
* Author URI: http://pressshack.com
|
5 |
* @link https://pressshack.com/embedpress/
|
6 |
* @package EmbedPress
|
7 |
* @author PressShack <help@pressshack.com>
|
8 |
+
* @copyright Copyright (C) 2017 PressShack. All rights reserved.
|
9 |
* @license GPLv2 or later
|
10 |
* @since 1.0.0
|
11 |
*
|
12 |
* @embedpress
|
13 |
* Plugin Name: EmbedPress
|
14 |
* Plugin URI: https://pressshack.com/embedpress/
|
15 |
+
* Version: 1.7.5
|
16 |
* Description: WordPress supports around 35 embed sources, but EmbedPress adds over 40 more, including Facebook, Google Maps, Google Docs, UStream! Just use the URL!
|
17 |
* Author: PressShack
|
18 |
* Author URI: http://pressshack.com
|
freemius.php
CHANGED
@@ -4,7 +4,7 @@ defined('ABSPATH') or die("No direct script access allowed.");
|
|
4 |
/**
|
5 |
* @package EmbedPress
|
6 |
* @author PressShack <help@pressshack.com>
|
7 |
-
* @copyright Copyright (C) 2017
|
8 |
* @license GPLv2 or later
|
9 |
* @since 1.7.1
|
10 |
*/
|
@@ -39,4 +39,4 @@ function ep_fs() {
|
|
39 |
// Init Freemius.
|
40 |
ep_fs();
|
41 |
// Signal that SDK was initiated.
|
42 |
-
do_action( 'ep_fs_loaded' );
|
4 |
/**
|
5 |
* @package EmbedPress
|
6 |
* @author PressShack <help@pressshack.com>
|
7 |
+
* @copyright Copyright (C) 2017 PressShack. All rights reserved.
|
8 |
* @license GPLv2 or later
|
9 |
* @since 1.7.1
|
10 |
*/
|
39 |
// Init Freemius.
|
40 |
ep_fs();
|
41 |
// Signal that SDK was initiated.
|
42 |
+
do_action( 'ep_fs_loaded' );
|
freemius/assets/img/plugin-icon.png
ADDED
Binary file
|
includes.php
CHANGED
@@ -6,7 +6,7 @@ defined('ABSPATH') or die("No direct script access allowed.");
|
|
6 |
*
|
7 |
* @package EmbedPress
|
8 |
* @author PressShack <help@pressshack.com>
|
9 |
-
* @copyright Copyright (C) 2017
|
10 |
* @license GPLv2 or later
|
11 |
* @since 1.0.0
|
12 |
*/
|
@@ -22,7 +22,11 @@ if (!defined('EMBEDPRESS_PLG_NAME')) {
|
|
22 |
}
|
23 |
|
24 |
if (!defined('EMBEDPRESS_PLG_VERSION')) {
|
25 |
-
define('EMBEDPRESS_PLG_VERSION', "1.7.
|
|
|
|
|
|
|
|
|
26 |
}
|
27 |
|
28 |
if (!defined('EMBEDPRESS_PATH_BASE')) {
|
6 |
*
|
7 |
* @package EmbedPress
|
8 |
* @author PressShack <help@pressshack.com>
|
9 |
+
* @copyright Copyright (C) 2017 PressShack. All rights reserved.
|
10 |
* @license GPLv2 or later
|
11 |
* @since 1.0.0
|
12 |
*/
|
22 |
}
|
23 |
|
24 |
if (!defined('EMBEDPRESS_PLG_VERSION')) {
|
25 |
+
define('EMBEDPRESS_PLG_VERSION', "1.7.5");
|
26 |
+
}
|
27 |
+
|
28 |
+
if (!defined('EMBEDPRESS_ROOT')) {
|
29 |
+
define('EMBEDPRESS_ROOT', dirname(__FILE__));
|
30 |
}
|
31 |
|
32 |
if (!defined('EMBEDPRESS_PATH_BASE')) {
|
providers.php
CHANGED
@@ -9,13 +9,13 @@
|
|
9 |
*
|
10 |
* @package EmbedPress
|
11 |
* @author PressShack <help@pressshack.com>
|
12 |
-
* @copyright Copyright (C) 2017
|
13 |
* @license GPLv2 or later
|
14 |
* @since 1.0.0
|
15 |
*/
|
16 |
|
17 |
$additionalServiceProviders = array(
|
18 |
-
'GoogleMaps' => array("google.com", "google.com.*", "maps.google.com", "goo.gl"),
|
19 |
'GoogleDocs' => array("docs.google.com"),
|
20 |
'Twitch' => array("twitch.tv"),
|
21 |
'Giphy' => array("giphy.com", "i.giphy.com")
|
9 |
*
|
10 |
* @package EmbedPress
|
11 |
* @author PressShack <help@pressshack.com>
|
12 |
+
* @copyright Copyright (C) 2017 PressShack. All rights reserved.
|
13 |
* @license GPLv2 or later
|
14 |
* @since 1.0.0
|
15 |
*/
|
16 |
|
17 |
$additionalServiceProviders = array(
|
18 |
+
'GoogleMaps' => array("google.com", "google.com.*", "maps.google.com", "goo.gl", "google.co.*"),
|
19 |
'GoogleDocs' => array("docs.google.com"),
|
20 |
'Twitch' => array("twitch.tv"),
|
21 |
'Giphy' => array("giphy.com", "i.giphy.com")
|
readme.txt
CHANGED
@@ -2,8 +2,8 @@
|
|
2 |
Contributors: PressShack
|
3 |
Tags: YouTube, Google, Facebook, Wistia, Vimeo
|
4 |
Requires at least: 4.0
|
5 |
-
Tested up to: 4.
|
6 |
-
Stable tag: 1.7.
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
@@ -182,6 +182,15 @@ Not at all. You can set up everything your team needs without any coding knowled
|
|
182 |
The format is based on [Keep a Changelog](http://keepachangelog.com/)
|
183 |
and this project adheres to [Semantic Versioning](http://semver.org/).
|
184 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
185 |
= [1.7.4] - 2017-05-18 =
|
186 |
|
187 |
* Fixed:
|
2 |
Contributors: PressShack
|
3 |
Tags: YouTube, Google, Facebook, Wistia, Vimeo
|
4 |
Requires at least: 4.0
|
5 |
+
Tested up to: 4.8
|
6 |
+
Stable tag: 1.7.5
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
182 |
The format is based on [Keep a Changelog](http://keepachangelog.com/)
|
183 |
and this project adheres to [Semantic Versioning](http://semver.org/).
|
184 |
|
185 |
+
= [1.7.5] - 2017-06-21 =
|
186 |
+
|
187 |
+
* Fixed:
|
188 |
+
* Fixes PHP warning: Cannot use object of type stdClass as array, for imgur
|
189 |
+
* Fixes PHP warning in the add-ons tab
|
190 |
+
* Fixes embed for urls matching google.co.*
|
191 |
+
* Fixes PHP Warning on the add-ons tab
|
192 |
+
* Fixes CSS class for non-responsive embeds
|
193 |
+
|
194 |
= [1.7.4] - 2017-05-18 =
|
195 |
|
196 |
* Fixed:
|