Version Description
- 2020-11-11 =
- Fixed: EasyWp images
- Fixed: Error in abstract shortcode
Download this release
Release Info
Developer | themefusecom |
Plugin | Brizy – Page Builder |
Version | 2.1.3 |
Comparing to | |
See all releases |
Code changes from version 2.1.2 to 2.1.3
- README.md +5 -1
- brizy.php +2 -2
- compatibilities/init.php +4 -0
- compatibilities/nc-easywp.php +14 -0
- editor/editor/editor.php +3 -0
- public/crop-proxy.php +3 -0
- readme.txt +5 -1
- shortcode/abstract-shortcode.php +77 -0
- vendor/autoload.php +1 -1
- vendor/composer/autoload_real.php +7 -7
- vendor/composer/autoload_static.php +4 -4
README.md
CHANGED
@@ -3,7 +3,7 @@ Contributors: themefuse<br>
|
|
3 |
Requires at least: 4.5<br>
|
4 |
Tested up to: 5.5<br>
|
5 |
Requires PHP: 5.6<br>
|
6 |
-
Stable tag: 2.1.
|
7 |
License: GPLv3<br>
|
8 |
License URI: https://www.gnu.org/licenses/gpl-3.0.html
|
9 |
|
@@ -118,6 +118,10 @@ $bodyHtml = apply_filters( 'brizy_content', $html->get_body(), Brizy_Editor_Proj
|
|
118 |
|
119 |
## Changelog
|
120 |
|
|
|
|
|
|
|
|
|
121 |
### 2.1.2 - 2020-11-10
|
122 |
* Fixed: Form failing to submit when having multiple Text field
|
123 |
|
3 |
Requires at least: 4.5<br>
|
4 |
Tested up to: 5.5<br>
|
5 |
Requires PHP: 5.6<br>
|
6 |
+
Stable tag: 2.1.3<br>
|
7 |
License: GPLv3<br>
|
8 |
License URI: https://www.gnu.org/licenses/gpl-3.0.html
|
9 |
|
118 |
|
119 |
## Changelog
|
120 |
|
121 |
+
### 2.1.3 - 2020-11-11
|
122 |
+
* Fixed: EasyWp images
|
123 |
+
* Fixed: Error in abstract shortcode
|
124 |
+
|
125 |
### 2.1.2 - 2020-11-10
|
126 |
* Fixed: Form failing to submit when having multiple Text field
|
127 |
|
brizy.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* Plugin URI: https://brizy.io/
|
6 |
* Author: Brizy.io
|
7 |
* Author URI: https://brizy.io/
|
8 |
-
* Version: 2.1.
|
9 |
* Text Domain: brizy
|
10 |
* License: GPLv3
|
11 |
* Domain Path: /languages
|
@@ -19,7 +19,7 @@ if ( isset( $_SERVER['HTTP_X_FORWARDED_PROTO'] ) && stripos( $_SERVER['HTTP_X_FO
|
|
19 |
|
20 |
define( 'BRIZY_DEVELOPMENT', false );
|
21 |
define( 'BRIZY_LOG', false );
|
22 |
-
define( 'BRIZY_VERSION', '2.1.
|
23 |
define( 'BRIZY_EDITOR_VERSION', BRIZY_DEVELOPMENT ? 'dev' : '159-wp' );
|
24 |
define( 'BRIZY_SYNC_VERSION', '159' );
|
25 |
define( 'BRIZY_FILE', __FILE__ );
|
5 |
* Plugin URI: https://brizy.io/
|
6 |
* Author: Brizy.io
|
7 |
* Author URI: https://brizy.io/
|
8 |
+
* Version: 2.1.3
|
9 |
* Text Domain: brizy
|
10 |
* License: GPLv3
|
11 |
* Domain Path: /languages
|
19 |
|
20 |
define( 'BRIZY_DEVELOPMENT', false );
|
21 |
define( 'BRIZY_LOG', false );
|
22 |
+
define( 'BRIZY_VERSION', '2.1.3' );
|
23 |
define( 'BRIZY_EDITOR_VERSION', BRIZY_DEVELOPMENT ? 'dev' : '159-wp' );
|
24 |
define( 'BRIZY_SYNC_VERSION', '159' );
|
25 |
define( 'BRIZY_FILE', __FILE__ );
|
compatibilities/init.php
CHANGED
@@ -49,6 +49,10 @@ class Brizy_Compatibilities_Init {
|
|
49 |
if ( function_exists( 'rank_math' ) ) {
|
50 |
new Brizy_Compatibilities_RankMathSEO();
|
51 |
}
|
|
|
|
|
|
|
|
|
52 |
}
|
53 |
|
54 |
public function action_plugins_loaded() {
|
49 |
if ( function_exists( 'rank_math' ) ) {
|
50 |
new Brizy_Compatibilities_RankMathSEO();
|
51 |
}
|
52 |
+
|
53 |
+
if ( function_exists( 'WPNCEasyWP' ) ) {
|
54 |
+
new Brizy_Compatibilities_NcEasywp();
|
55 |
+
}
|
56 |
}
|
57 |
|
58 |
public function action_plugins_loaded() {
|
compatibilities/nc-easywp.php
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class Brizy_Compatibilities_NcEasywp {
|
4 |
+
|
5 |
+
public function __construct() {
|
6 |
+
if ( class_exists( '\WPNCEasyWP\Http\Varnish\VarnishCache' ) ) {
|
7 |
+
add_action( 'brizy_before_send_asset', [ $this, 'before_send_asset' ] );
|
8 |
+
}
|
9 |
+
}
|
10 |
+
|
11 |
+
public function before_send_asset( $post_id ) {
|
12 |
+
do_action( 'edit_post', $post_id, get_post( $post_id ) );
|
13 |
+
}
|
14 |
+
}
|
editor/editor/editor.php
CHANGED
@@ -63,6 +63,9 @@ class Brizy_Editor_Editor_Editor {
|
|
63 |
return 'template';
|
64 |
case Brizy_Admin_Popups_Main::CP_POPUP:
|
65 |
return 'internal_popup';
|
|
|
|
|
|
|
66 |
default:
|
67 |
return 'page';
|
68 |
}
|
63 |
return 'template';
|
64 |
case Brizy_Admin_Popups_Main::CP_POPUP:
|
65 |
return 'internal_popup';
|
66 |
+
case 'product':
|
67 |
+
case 'product_variation':
|
68 |
+
return 'product';
|
69 |
default:
|
70 |
return 'page';
|
71 |
}
|
public/crop-proxy.php
CHANGED
@@ -88,6 +88,9 @@ class Brizy_Public_CropProxy extends Brizy_Public_AbstractProxy {
|
|
88 |
|
89 |
$media_cache = new Brizy_Editor_CropCacheMedia( $project, $post_id );
|
90 |
$crop_media_path = $media_cache->crop_media( $media_url, $filter, true, $optimize );
|
|
|
|
|
|
|
91 |
$this->send_file( $crop_media_path );
|
92 |
|
93 |
} catch ( Exception $e ) {
|
88 |
|
89 |
$media_cache = new Brizy_Editor_CropCacheMedia( $project, $post_id );
|
90 |
$crop_media_path = $media_cache->crop_media( $media_url, $filter, true, $optimize );
|
91 |
+
|
92 |
+
do_action( 'brizy_before_send_asset', $post_id );
|
93 |
+
|
94 |
$this->send_file( $crop_media_path );
|
95 |
|
96 |
} catch ( Exception $e ) {
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Tags: brizy, page builder, editor, visual editor, unyson, wysiwyg, landing page,
|
|
4 |
Requires at least: 4.5
|
5 |
Tested up to: 5.5
|
6 |
Requires PHP: 5.6
|
7 |
-
Stable tag: 2.1.
|
8 |
License: GPLv3
|
9 |
License URI: https://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
@@ -139,6 +139,10 @@ The progress you're making while building your page is always backed up in the c
|
|
139 |
|
140 |
== Changelog ==
|
141 |
|
|
|
|
|
|
|
|
|
142 |
= 2.1.2 - 2020-11-10 =
|
143 |
* Fixed: Form failing to submit when having multiple Text field
|
144 |
|
4 |
Requires at least: 4.5
|
5 |
Tested up to: 5.5
|
6 |
Requires PHP: 5.6
|
7 |
+
Stable tag: 2.1.3
|
8 |
License: GPLv3
|
9 |
License URI: https://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
139 |
|
140 |
== Changelog ==
|
141 |
|
142 |
+
= 2.1.3 - 2020-11-11 =
|
143 |
+
* Fixed: EasyWp images
|
144 |
+
* Fixed: Error in abstract shortcode
|
145 |
+
|
146 |
= 2.1.2 - 2020-11-10 =
|
147 |
* Fixed: Form failing to submit when having multiple Text field
|
148 |
|
shortcode/abstract-shortcode.php
ADDED
@@ -0,0 +1,77 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
|
4 |
+
abstract class Brizy_Shortcode_AbstractShortcode {
|
5 |
+
|
6 |
+
const BRIZY_SHORTCODES_PREFIX = 'brizy_';
|
7 |
+
const BRIZY_SHORTCODES_ACTION_PREFIX = 'brizy_shortcode_';
|
8 |
+
const BRIZY_SHORTCODES_FILTER_PREFIX = 'brizy_shortcode_filter_';
|
9 |
+
|
10 |
+
/**
|
11 |
+
* Get shortcode name
|
12 |
+
*
|
13 |
+
* @return string
|
14 |
+
*/
|
15 |
+
abstract public function getName();
|
16 |
+
|
17 |
+
/**
|
18 |
+
* @param $atts
|
19 |
+
* @param null $content
|
20 |
+
*
|
21 |
+
* @return mixed
|
22 |
+
*/
|
23 |
+
abstract public function render( $atts, $content = null );
|
24 |
+
|
25 |
+
/**
|
26 |
+
* @param $atts
|
27 |
+
* @param null $content
|
28 |
+
*
|
29 |
+
* @return string
|
30 |
+
*/
|
31 |
+
final public function masterRender( $atts, $content = null ) {
|
32 |
+
ob_start();
|
33 |
+
|
34 |
+
do_action( $this->getBeforeActionName() );
|
35 |
+
|
36 |
+
echo apply_filters( $this->getFilterName(), $this->render( $atts, $content ) );
|
37 |
+
|
38 |
+
do_action( $this->getAfterActionName() );
|
39 |
+
|
40 |
+
return ob_get_clean();
|
41 |
+
}
|
42 |
+
|
43 |
+
/**
|
44 |
+
* Brizy_Shortcode_AbstractShortcode constructor.
|
45 |
+
*/
|
46 |
+
public function __construct() {
|
47 |
+
add_shortcode( $this->getShortCodeId(), array( $this, 'masterRender' ) );
|
48 |
+
}
|
49 |
+
|
50 |
+
/**
|
51 |
+
* @return string
|
52 |
+
*/
|
53 |
+
private function getShortCodeId() {
|
54 |
+
return self::BRIZY_SHORTCODES_PREFIX . $this->getName();
|
55 |
+
}
|
56 |
+
|
57 |
+
/**
|
58 |
+
* @return string
|
59 |
+
*/
|
60 |
+
private function getBeforeActionName() {
|
61 |
+
return self::BRIZY_SHORTCODES_ACTION_PREFIX . 'before_' . $this->getName();
|
62 |
+
}
|
63 |
+
|
64 |
+
/**
|
65 |
+
* @return string
|
66 |
+
*/
|
67 |
+
private function getAfterActionName() {
|
68 |
+
return self::BRIZY_SHORTCODES_ACTION_PREFIX . 'after_' . $this->getName();
|
69 |
+
}
|
70 |
+
|
71 |
+
/**
|
72 |
+
* @return string
|
73 |
+
*/
|
74 |
+
private function getFilterName() {
|
75 |
+
return self::BRIZY_SHORTCODES_FILTER_PREFIX . $this->getName();
|
76 |
+
}
|
77 |
+
}
|
vendor/autoload.php
CHANGED
@@ -4,4 +4,4 @@
|
|
4 |
|
5 |
require_once __DIR__ . '/composer/autoload_real.php';
|
6 |
|
7 |
-
return
|
4 |
|
5 |
require_once __DIR__ . '/composer/autoload_real.php';
|
6 |
|
7 |
+
return ComposerAutoloaderInite6622ad42df6156b845a15a68205cddd::getLoader();
|
vendor/composer/autoload_real.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
|
3 |
// autoload_real.php @generated by Composer
|
4 |
|
5 |
-
class
|
6 |
{
|
7 |
private static $loader;
|
8 |
|
@@ -22,15 +22,15 @@ class ComposerAutoloaderInitfa25700e157b847f98f8e22f3b818409
|
|
22 |
return self::$loader;
|
23 |
}
|
24 |
|
25 |
-
spl_autoload_register(array('
|
26 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
27 |
-
spl_autoload_unregister(array('
|
28 |
|
29 |
$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
|
30 |
if ($useStaticLoader) {
|
31 |
require_once __DIR__ . '/autoload_static.php';
|
32 |
|
33 |
-
call_user_func(\Composer\Autoload\
|
34 |
} else {
|
35 |
$map = require __DIR__ . '/autoload_namespaces.php';
|
36 |
foreach ($map as $namespace => $path) {
|
@@ -51,19 +51,19 @@ class ComposerAutoloaderInitfa25700e157b847f98f8e22f3b818409
|
|
51 |
$loader->register(true);
|
52 |
|
53 |
if ($useStaticLoader) {
|
54 |
-
$includeFiles = Composer\Autoload\
|
55 |
} else {
|
56 |
$includeFiles = require __DIR__ . '/autoload_files.php';
|
57 |
}
|
58 |
foreach ($includeFiles as $fileIdentifier => $file) {
|
59 |
-
|
60 |
}
|
61 |
|
62 |
return $loader;
|
63 |
}
|
64 |
}
|
65 |
|
66 |
-
function
|
67 |
{
|
68 |
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
|
69 |
require $file;
|
2 |
|
3 |
// autoload_real.php @generated by Composer
|
4 |
|
5 |
+
class ComposerAutoloaderInite6622ad42df6156b845a15a68205cddd
|
6 |
{
|
7 |
private static $loader;
|
8 |
|
22 |
return self::$loader;
|
23 |
}
|
24 |
|
25 |
+
spl_autoload_register(array('ComposerAutoloaderInite6622ad42df6156b845a15a68205cddd', 'loadClassLoader'), true, true);
|
26 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
27 |
+
spl_autoload_unregister(array('ComposerAutoloaderInite6622ad42df6156b845a15a68205cddd', 'loadClassLoader'));
|
28 |
|
29 |
$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
|
30 |
if ($useStaticLoader) {
|
31 |
require_once __DIR__ . '/autoload_static.php';
|
32 |
|
33 |
+
call_user_func(\Composer\Autoload\ComposerStaticInite6622ad42df6156b845a15a68205cddd::getInitializer($loader));
|
34 |
} else {
|
35 |
$map = require __DIR__ . '/autoload_namespaces.php';
|
36 |
foreach ($map as $namespace => $path) {
|
51 |
$loader->register(true);
|
52 |
|
53 |
if ($useStaticLoader) {
|
54 |
+
$includeFiles = Composer\Autoload\ComposerStaticInite6622ad42df6156b845a15a68205cddd::$files;
|
55 |
} else {
|
56 |
$includeFiles = require __DIR__ . '/autoload_files.php';
|
57 |
}
|
58 |
foreach ($includeFiles as $fileIdentifier => $file) {
|
59 |
+
composerRequiree6622ad42df6156b845a15a68205cddd($fileIdentifier, $file);
|
60 |
}
|
61 |
|
62 |
return $loader;
|
63 |
}
|
64 |
}
|
65 |
|
66 |
+
function composerRequiree6622ad42df6156b845a15a68205cddd($fileIdentifier, $file)
|
67 |
{
|
68 |
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
|
69 |
require $file;
|
vendor/composer/autoload_static.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
|
5 |
namespace Composer\Autoload;
|
6 |
|
7 |
-
class
|
8 |
{
|
9 |
public static $files = array (
|
10 |
'320cde22f66dd4f5d3fd621d3e88b98f' => __DIR__ . '/..' . '/symfony/polyfill-ctype/bootstrap.php',
|
@@ -74,9 +74,9 @@ class ComposerStaticInitfa25700e157b847f98f8e22f3b818409
|
|
74 |
public static function getInitializer(ClassLoader $loader)
|
75 |
{
|
76 |
return \Closure::bind(function () use ($loader) {
|
77 |
-
$loader->prefixLengthsPsr4 =
|
78 |
-
$loader->prefixDirsPsr4 =
|
79 |
-
$loader->prefixesPsr0 =
|
80 |
|
81 |
}, null, ClassLoader::class);
|
82 |
}
|
4 |
|
5 |
namespace Composer\Autoload;
|
6 |
|
7 |
+
class ComposerStaticInite6622ad42df6156b845a15a68205cddd
|
8 |
{
|
9 |
public static $files = array (
|
10 |
'320cde22f66dd4f5d3fd621d3e88b98f' => __DIR__ . '/..' . '/symfony/polyfill-ctype/bootstrap.php',
|
74 |
public static function getInitializer(ClassLoader $loader)
|
75 |
{
|
76 |
return \Closure::bind(function () use ($loader) {
|
77 |
+
$loader->prefixLengthsPsr4 = ComposerStaticInite6622ad42df6156b845a15a68205cddd::$prefixLengthsPsr4;
|
78 |
+
$loader->prefixDirsPsr4 = ComposerStaticInite6622ad42df6156b845a15a68205cddd::$prefixDirsPsr4;
|
79 |
+
$loader->prefixesPsr0 = ComposerStaticInite6622ad42df6156b845a15a68205cddd::$prefixesPsr0;
|
80 |
|
81 |
}, null, ClassLoader::class);
|
82 |
}
|