Brizy – Page Builder - Version 2.3.8

Version Description

  • 2021-08-05 =
  • Fixed: Composer versions
Download this release

Release Info

Developer themefusecom
Plugin Icon 128x128 Brizy – Page Builder
Version 2.3.8
Comparing to
See all releases

Code changes from version 2.3.7 to 2.3.8

README.md CHANGED
@@ -3,7 +3,7 @@ Contributors: themefuse<br>
3
  Requires at least: 4.5<br>
4
  Tested up to: 5.7<br>
5
  Requires PHP: 5.6<br>
6
- Stable tag: 2.3.7<br>
7
  License: GPLv3<br>
8
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
9
 
@@ -118,6 +118,9 @@ $bodyHtml = apply_filters( 'brizy_content', $html->get_body(), Brizy_Editor_Proj
118
 
119
  ## Changelog
120
 
 
 
 
121
  ### 2.3.7 - 2021-08-05
122
  * Fixed: Story contact form element in preview
123
  * Fixed: Typography changes on mobile for the Text element
3
  Requires at least: 4.5<br>
4
  Tested up to: 5.7<br>
5
  Requires PHP: 5.6<br>
6
+ Stable tag: 2.3.8<br>
7
  License: GPLv3<br>
8
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
9
 
118
 
119
  ## Changelog
120
 
121
+ ### 2.3.8 - 2021-08-05
122
+ * Fixed: Composer versions
123
+
124
  ### 2.3.7 - 2021-08-05
125
  * Fixed: Story contact form element in preview
126
  * Fixed: Typography changes on mobile for the Text element
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.3.7
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.3.7' );
23
  define( 'BRIZY_MINIMUM_PRO_VERSION', '2.3.0' );
24
  define( 'BRIZY_EDITOR_VERSION', BRIZY_DEVELOPMENT ? 'dev' : '198-wp' );
25
  define( 'BRIZY_SYNC_VERSION', '198' );
5
  * Plugin URI: https://brizy.io/
6
  * Author: Brizy.io
7
  * Author URI: https://brizy.io/
8
+ * Version: 2.3.8
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.3.8' );
23
  define( 'BRIZY_MINIMUM_PRO_VERSION', '2.3.0' );
24
  define( 'BRIZY_EDITOR_VERSION', BRIZY_DEVELOPMENT ? 'dev' : '198-wp' );
25
  define( 'BRIZY_SYNC_VERSION', '198' );
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: page builder, website builder, brizy, editor, visual editor, unyson, wysiw
4
  Requires at least: 4.5
5
  Tested up to: 5.7
6
  Requires PHP: 5.6
7
- Stable tag: 2.3.7
8
  License: GPLv3
9
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
10
 
@@ -133,6 +133,9 @@ Don't worry if you make a mistake or delete something that you shouldn't have. W
133
 
134
  == Changelog ==
135
 
 
 
 
136
  = 2.3.7 - 2021-08-05 =
137
  * Fixed: Story contact form element in preview
138
  * Fixed: Typography changes on mobile for the Text element
4
  Requires at least: 4.5
5
  Tested up to: 5.7
6
  Requires PHP: 5.6
7
+ Stable tag: 2.3.8
8
  License: GPLv3
9
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
10
 
133
 
134
  == Changelog ==
135
 
136
+ = 2.3.8 - 2021-08-05 =
137
+ * Fixed: Composer versions
138
+
139
  = 2.3.7 - 2021-08-05 =
140
  * Fixed: Story contact form element in preview
141
  * Fixed: Typography changes on mobile for the Text element
vendor/autoload.php CHANGED
@@ -4,4 +4,4 @@
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
- return ComposerAutoloaderInit2274f1151542a72a208e886c5985ce1a::getLoader();
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
+ return ComposerAutoloaderInitdc488fbf1d858d237c3d6e873d93c902::getLoader();
vendor/bagrinsergiu/content-placeholder/lib/ContentPlaceholder.php CHANGED
@@ -35,26 +35,34 @@ final class ContentPlaceholder
35
  protected $content;
36
 
37
  /**
38
- * BrizyPro_Content_ContentPlaceholder constructor.
39
- *
40
  * @param $name
41
  * @param $placeholder
42
  * @param null $attributes
43
  * @param null $content
44
  */
45
- public function __construct( $name, $placeholder, $attributes = null, $content = null ) {
 
46
 
47
- $this->setUid( md5(microtime().mt_rand( 0, PHP_INT_MAX ).$placeholder ) );
48
- $this->setPlaceholder( $placeholder );
49
- $this->setName( $name );
50
- $this->setAttributes( $attributes );
51
- $this->setContent( $content );
 
 
 
 
 
 
 
 
52
  }
53
 
54
  /**
55
  * @return string
56
  */
57
- public function getUid() {
 
58
  return $this->uid;
59
  }
60
 
@@ -63,7 +71,8 @@ final class ContentPlaceholder
63
  *
64
  * @return $this
65
  */
66
- public function setUid( $uid ) {
 
67
  $this->uid = $uid;
68
 
69
  return $this;
@@ -72,7 +81,8 @@ final class ContentPlaceholder
72
  /**
73
  * @return string
74
  */
75
- public function getPlaceholder() {
 
76
  return $this->placeholder;
77
  }
78
 
@@ -81,7 +91,8 @@ final class ContentPlaceholder
81
  *
82
  * @return $this
83
  */
84
- public function setPlaceholder( $placeholder ) {
 
85
  $this->placeholder = $placeholder;
86
 
87
  return $this;
@@ -90,7 +101,8 @@ final class ContentPlaceholder
90
  /**
91
  * @return string
92
  */
93
- public function getName() {
 
94
  return $this->name;
95
  }
96
 
@@ -99,7 +111,8 @@ final class ContentPlaceholder
99
  *
100
  * @return $this
101
  */
102
- public function setName( $name ) {
 
103
  $this->name = $name;
104
 
105
  return $this;
@@ -108,7 +121,8 @@ final class ContentPlaceholder
108
  /**
109
  * @return mixed
110
  */
111
- public function getAttributes() {
 
112
  return $this->attributes;
113
  }
114
 
@@ -117,16 +131,36 @@ final class ContentPlaceholder
117
  *
118
  * @return $this
119
  */
120
- public function setAttributes( $attributes ) {
 
121
  $this->attributes = $attributes;
122
 
123
  return $this;
124
  }
125
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
126
  /**
127
  * @return string
128
  */
129
- public function getContent() {
 
130
  return $this->content;
131
  }
132
 
@@ -135,7 +169,8 @@ final class ContentPlaceholder
135
  *
136
  * @return $this
137
  */
138
- public function setContent( $content ) {
 
139
  $this->content = $content;
140
 
141
  return $this;
35
  protected $content;
36
 
37
  /**
 
 
38
  * @param $name
39
  * @param $placeholder
40
  * @param null $attributes
41
  * @param null $content
42
  */
43
+ public function __construct($name, $placeholder, $attributes = null, $content = null)
44
+ {
45
 
46
+ $this->setUid(md5(microtime() . mt_rand(0, PHP_INT_MAX) . $placeholder));
47
+ $this->setPlaceholder($placeholder);
48
+ $this->setName($name);
49
+ $this->setAttributes($attributes);
50
+ $this->setContent($content);
51
+ }
52
+
53
+ /**
54
+ * @return null
55
+ * @throws \Exception
56
+ */
57
+ public function getId() {
58
+ return $this->getAttribute( 'id' );
59
  }
60
 
61
  /**
62
  * @return string
63
  */
64
+ public function getUid()
65
+ {
66
  return $this->uid;
67
  }
68
 
71
  *
72
  * @return $this
73
  */
74
+ public function setUid($uid)
75
+ {
76
  $this->uid = $uid;
77
 
78
  return $this;
81
  /**
82
  * @return string
83
  */
84
+ public function getPlaceholder()
85
+ {
86
  return $this->placeholder;
87
  }
88
 
91
  *
92
  * @return $this
93
  */
94
+ public function setPlaceholder($placeholder)
95
+ {
96
  $this->placeholder = $placeholder;
97
 
98
  return $this;
101
  /**
102
  * @return string
103
  */
104
+ public function getName()
105
+ {
106
  return $this->name;
107
  }
108
 
111
  *
112
  * @return $this
113
  */
114
+ public function setName($name)
115
+ {
116
  $this->name = $name;
117
 
118
  return $this;
121
  /**
122
  * @return mixed
123
  */
124
+ public function getAttributes()
125
+ {
126
  return $this->attributes;
127
  }
128
 
131
  *
132
  * @return $this
133
  */
134
+ public function setAttributes($attributes)
135
+ {
136
  $this->attributes = $attributes;
137
 
138
  return $this;
139
  }
140
 
141
+ /**
142
+ * @param $name
143
+ *
144
+ * @return null
145
+ */
146
+ public function getAttribute($name, $thowIfNotFound = false)
147
+ {
148
+ if (isset($this->attributes[$name])) {
149
+ return $this->attributes[$name];
150
+ }
151
+
152
+ if ($thowIfNotFound) {
153
+ throw new \Exception("The is not attribute '{$name}' set.");
154
+ }
155
+
156
+ return null;
157
+ }
158
+
159
  /**
160
  * @return string
161
  */
162
+ public function getContent()
163
+ {
164
  return $this->content;
165
  }
166
 
169
  *
170
  * @return $this
171
  */
172
+ public function setContent($content)
173
+ {
174
  $this->content = $content;
175
 
176
  return $this;
vendor/bagrinsergiu/content-placeholder/lib/Extractor.php CHANGED
@@ -9,9 +9,9 @@ final class Extractor
9
  {
10
 
11
  //const PLACEHOLDER_REQEX = "/(?<placeholder>{{\s*(?<placeholderName>.+?)(?<attributes>(?:\s+)((?:\w+\s*=\s*(?:'|\"|\&quot;|\&apos;)(?:.[^\"']*|)(?:'|\"|\&quot;|\&apos;)\s*)*))?}}(?:(?<content>.*?){{\s*end_(\g{placeholderName})\s*}})?)/ims";
12
- const PLACEHOLDER_REQEX = "/(?<placeholder>{{\s*(?<placeholderName>.+?)\s*(?<attributes>\s+((?:\w+(?:\[(?:\w+)?\])?\s*=\s*(?:'|\"|\&quot;|\&apos;)(?:.[^\"']*?|)(?:'|\"|\&quot;|\&apos;)\s*)*))?}}(?:(?<content>.*?){{\s*end_(\g{placeholderName})\s*}})?)/ims";
13
 
14
- const ATTRIBUTE_REGEX = "/((?<attr_name>\w+)(?<array>\[(?<array_key>\w+)?\])?)\s*=\s*(?<quote>'|\"|\&quot;|\&apos;)(?<attr_value>.*?)(\g{quote})/mi";
15
  //const ATTRIBUTE_REGEX = "/(\w+)\s*=\s*(?<quote>'|\"|\&quot;|\&apos;)(.*?)(\g{quote})/mi";
16
 
17
  /**
9
  {
10
 
11
  //const PLACEHOLDER_REQEX = "/(?<placeholder>{{\s*(?<placeholderName>.+?)(?<attributes>(?:\s+)((?:\w+\s*=\s*(?:'|\"|\&quot;|\&apos;)(?:.[^\"']*|)(?:'|\"|\&quot;|\&apos;)\s*)*))?}}(?:(?<content>.*?){{\s*end_(\g{placeholderName})\s*}})?)/ims";
12
+ const PLACEHOLDER_REQEX = "/(?<placeholder>{{\s*(?<placeholderName>.+?)\s*(?<attributes>\s+((?:\w+(?:\[(?:\w+)?\])?\s*=\s*(?:'|\"|\&quot;|\&apos;|\&#x27;)(?:.[^\"']*?|)(?:'|\"|\&quot;|\&apos;|\&#x27;)\s*)*))?}}(?:(?<content>.*?){{\s*end_(\g{placeholderName})\s*}})?)/ims";
13
 
14
+ const ATTRIBUTE_REGEX = "/((?<attr_name>\w+)(?<array>\[(?<array_key>\w+)?\])?)\s*=\s*(?<quote>'|\"|\&quot;|\&apos;|\&#x27;)(?<attr_value>.*?)(\g{quote})/mi";
15
  //const ATTRIBUTE_REGEX = "/(\w+)\s*=\s*(?<quote>'|\"|\&quot;|\&apos;)(.*?)(\g{quote})/mi";
16
 
17
  /**
vendor/bagrinsergiu/content-placeholder/tests/BrizyPlaceholders/ExtractorTest.php CHANGED
@@ -14,7 +14,7 @@ class ExtractorTest extends TestCase
14
 
15
  public function testExtractWithoutRegisteredPlaceholders()
16
  {
17
- $registry = new Registry();
18
  $extractor = new Extractor($registry);
19
 
20
  $content = "Some content with a {{placeholder}}.";
@@ -28,7 +28,7 @@ class ExtractorTest extends TestCase
28
  public function testExtract()
29
  {
30
  $registry = new Registry();
31
- $registry->registerPlaceholder(new TestPlaceholder(), 'Placeholder', 'placeholder', 'group1');
32
  $extractor = new Extractor($registry);
33
 
34
  $content = "Some content with a {{placeholder}}.";
@@ -48,9 +48,9 @@ class ExtractorTest extends TestCase
48
  {
49
 
50
  $registry = new Registry();
51
- $registry->registerPlaceholder(new TestPlaceholder(), 'Placeholder', 'placeholder', 'group1');
52
  $replacer = new Replacer($registry);
53
- $registry->registerPlaceholder(new LoopPlaceholder($replacer), 'Placeholder', 'placeholder_loop', 'group1');
54
  $extractor = new Extractor($registry);
55
 
56
  $content = "Some content with a {{placeholder_loop}}{{placeholder}}{{end_placeholder_loop}}.";
@@ -66,38 +66,69 @@ class ExtractorTest extends TestCase
66
 
67
  }
68
 
69
- public function placeholdersWithAttributesProvider() {
 
70
  return [
71
- ["Some content with a {{placeholder attr='1'}}.",1],
72
- ["Some content with a {{placeholder attr=\"1\"}}.",1],
73
- ["Some content {{placeholder attr='1'}} with a {{placeholder attr='1'}}.",2],
74
- ["Some content {{placeholder attr=\"1\"}} with a {{placeholder attr=\"1\"}}.",2],
75
- ["<img src=\"{{placeholder attr='1'}} 1x {{placeholder attr='1'}} 2x\"/>",2],
76
- ['<source srcset="{{placeholder cW=&apos;555&apos; cH=&apos;548&apos;}} 1x, {{placeholder cW=&apos;1110&apos; cH=&apos;1096&apos;}} 2x" media="(min-width: 992px)">',2],
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
77
  ];
78
  }
79
 
80
  /**
81
  * @dataProvider placeholdersWithAttributesProvider
82
  */
83
- public function testExtractPlaceholdersWithAttributes($content,$count)
84
  {
85
-
86
  $registry = new Registry();
87
- $registry->registerPlaceholder(new TestPlaceholder(), 'Placeholder', 'placeholder', 'group1');
88
  $extractor = new Extractor($registry);
89
 
90
  list($contentPlaceholders, $instancePlaceholders, $returnedContent) = $extractor->extract($content);
91
 
92
- $this->assertCount($count, $contentPlaceholders, 'It should return 1 placeholders');
93
- $this->assertCount($count, $instancePlaceholders, 'It should return 1 placeholders');
94
 
95
  }
96
 
97
  public function testExtractWithRepeatingPlaceholders()
98
  {
99
  $registry = new Registry();
100
- $registry->registerPlaceholder(new TestPlaceholder(), 'Placeholder', 'placeholder', 'group1');
101
  $extractor = new Extractor($registry);
102
 
103
  $content = "Some content with a {{placeholder}} {{placeholder}} {{placeholder}}.";
@@ -114,15 +145,15 @@ class ExtractorTest extends TestCase
114
 
115
  public function testStripPlaceholders()
116
  {
117
- $registry = new Registry();
118
  $extractor = new Extractor($registry);
119
 
120
- $content = "Some content with a {{placeholder}}.";
121
  $strippedContent = $extractor->stripPlaceholders($content);
122
  $this->assertStringNotContainsString('{{placeholder}}', $strippedContent, 'It should not contain any placeholders');
123
 
124
 
125
- $content = "Some content.";
126
  $strippedContent = $extractor->stripPlaceholders($content);
127
  $this->assertEquals($content, $strippedContent, 'It should not modify the content');
128
  }
14
 
15
  public function testExtractWithoutRegisteredPlaceholders()
16
  {
17
+ $registry = new Registry();
18
  $extractor = new Extractor($registry);
19
 
20
  $content = "Some content with a {{placeholder}}.";
28
  public function testExtract()
29
  {
30
  $registry = new Registry();
31
+ $registry->registerPlaceholder(new TestPlaceholder());
32
  $extractor = new Extractor($registry);
33
 
34
  $content = "Some content with a {{placeholder}}.";
48
  {
49
 
50
  $registry = new Registry();
51
+ $registry->registerPlaceholder(new TestPlaceholder());
52
  $replacer = new Replacer($registry);
53
+ $registry->registerPlaceholder(new LoopPlaceholder($replacer));
54
  $extractor = new Extractor($registry);
55
 
56
  $content = "Some content with a {{placeholder_loop}}{{placeholder}}{{end_placeholder_loop}}.";
66
 
67
  }
68
 
69
+ public function placeholdersWithAttributesProvider()
70
+ {
71
  return [
72
+ ["Some content with a {{placeholder attr='1'}}.", 1],
73
+ ["Some content with a {{placeholder attr=\"1\"}}.", 1],
74
+ ["Some content {{placeholder attr='1'}} with a {{placeholder attr='1'}}.", 2],
75
+ ["Some content {{placeholder attr=\"1\"}} with a {{placeholder attr=\"1\"}}.", 2],
76
+ ["<img src=\"{{placeholder attr='1'}} 1x {{placeholder attr='1'}} 2x\"/>", 2],
77
+ ['<source srcset="{{placeholder cW=&apos;555&apos; cH=&apos;548&apos;}} 1x, {{placeholder cW=&apos;1110&apos; cH=&apos;1096&apos;}} 2x" media="(min-width: 992px)">', 2],
78
+ ['<source srcset="{{placeholder cW=&#x27;555&#x27; cH=&#x27;548&#x27;}} 1x, {{placeholder cW=&#x27;1110&#x27; cH=&#x27;1096&#x27;}} 2x" media="(min-width: 992px)">', 2],
79
+ ['<source srcset="{{placeholder cW="555" cH=&#x27;548&#x27;}} 1x, {{placeholder cW=&#x27;1110&#x27; cH=&#x27;1096&#x27;}} 2x" media="(min-width: 992px)">', 2],
80
+ ['{{placeholder type=&#x27;posts&#x27; collection_type=&#x27;/collection_types/5557&#x27; count=&#x27;3&#x27; order_by=&#x27;id&#x27; order=&#x27;DESC&#x27; offset=&#x27;0&#x27;}}
81
+ <div class="brz-posts__item">
82
+ <source srcset="{{brizy_dc_img_featured_image cW=&#x27;350&#x27; cH=&#x27;263&#x27;}} 1x,
83
+ {{brizy_dc_img_featured_image cW=&#x27;700&#x27; cH=&#x27;526&#x27;}} 2x\
84
+ " media="(min-width: 992px)">
85
+ <source srcset="{{brizy_dc_img_featured_image cW=&#x27;339&#x27; cH=&#x27;254&#x27;}} 1x,
86
+ {{brizy_dc_img_featured_image cW=&#x27;678&#x27; cH=&#x27;508&#x27;}} 2x\
87
+ " media="(min-width: 768px)"><img class="brz-img brz-p-absolute" srcset="{{brizy_dc_img_featured_image cW=&#x27;400&#x27;
88
+ cH=&#x27;300&#x27;}} 1x, {{brizy_dc_img_featured_image cW=&#x27;800&#x27; cH=&#x27;600&#x27;}} 2x"
89
+ src="{{brizy_dc_img_featured_image cW=&#x27;350&#x27; cH=&#x27;263&#x27;}}" alt draggable="false"
90
+ loading="lazy"></picture></div></div>
91
+ <div class="brz-css-ivzoh brz-wrapper">
92
+ <div class="brz-wp-title brz-css-zsobs brz-css-kktiy" data-custom-id="sjemssizalhhfifgnfarkeqzptostlczoitd"><span
93
+ class="brz-wp-title-content" style="min-height:20px">{{brizy_dc_post_title}}</span></div></div>
94
+ <div class="brz-wrapper-clone brz-css-lzbzn">
95
+ <div class="brz-d-xs-flex brz-flex-xs-wrap brz-css-vbdws">
96
+ <div class="brz-wrapper-clone__item brz-css-coens" id="mynbaxearjrovxlzahhuxrszqjfbzqnlsneh"><a class="brz-a
97
+ brz-btn
98
+ brz-css-blxcf" href="{{brizy_dc_url_post}}" data-brz-link-type="external" data-custom-id="mynbaxearjrovxlzahhuxrszqjfbzqnlsneh">
99
+ <svg id="nc_icon" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
100
+ x="0px" y="0px" viewbox="0 0 24
101
+ 24" xml:space="preserve" class="brz-icon-svg brz-css-ajhvz" data-type="glyph" data-name="tail-right">
102
+ <g class="nc-icon-wrapper" fill="currentColor">
103
+ <path fill="currentColor"
104
+ d="M22.707,11.293L15,3.586L13.586,5l6,6H2c-0.553,0-1,0.448-1,1s0.447,1,1,1h17.586l-6,6L15,20.414
105
+ l7.707-7.707C23.098,12.316,23.098,11.684,22.707,11.293z\
106
+ "/>
107
+ </g></svg><span class="brz-span
108
+ brz-text__editor">READ MORE</span></a></div></div></div></div></div></div>{{end_placeholder}}', 1],
109
  ];
110
  }
111
 
112
  /**
113
  * @dataProvider placeholdersWithAttributesProvider
114
  */
115
+ public function testExtractPlaceholdersWithAttributes($content, $count)
116
  {
 
117
  $registry = new Registry();
118
+ $registry->registerPlaceholder(new TestPlaceholder());
119
  $extractor = new Extractor($registry);
120
 
121
  list($contentPlaceholders, $instancePlaceholders, $returnedContent) = $extractor->extract($content);
122
 
123
+ $this->assertCount($count, $contentPlaceholders, 'It should return '.$count.' placeholders');
124
+ $this->assertCount($count, $instancePlaceholders, 'It should return '.$count.' placeholders');
125
 
126
  }
127
 
128
  public function testExtractWithRepeatingPlaceholders()
129
  {
130
  $registry = new Registry();
131
+ $registry->registerPlaceholder(new TestPlaceholder());
132
  $extractor = new Extractor($registry);
133
 
134
  $content = "Some content with a {{placeholder}} {{placeholder}} {{placeholder}}.";
145
 
146
  public function testStripPlaceholders()
147
  {
148
+ $registry = new Registry();
149
  $extractor = new Extractor($registry);
150
 
151
+ $content = "Some content with a {{placeholder}}.";
152
  $strippedContent = $extractor->stripPlaceholders($content);
153
  $this->assertStringNotContainsString('{{placeholder}}', $strippedContent, 'It should not contain any placeholders');
154
 
155
 
156
+ $content = "Some content.";
157
  $strippedContent = $extractor->stripPlaceholders($content);
158
  $this->assertEquals($content, $strippedContent, 'It should not modify the content');
159
  }
vendor/bagrinsergiu/content-placeholder/tests/BrizyPlaceholders/ReplacerTest.php CHANGED
@@ -169,7 +169,6 @@ class ReplacerTest extends TestCase
169
  $contentAfterReplace = $replacer->replaceWithExtractedData($contentPlaceholders, $instancePlaceholders, $content, $context);
170
 
171
  $this->assertEquals("Some content placeholder_value and placeholder_value.", $contentAfterReplace, 'It should replace all placeholders');
172
-
173
  }
174
 
175
  }
169
  $contentAfterReplace = $replacer->replaceWithExtractedData($contentPlaceholders, $instancePlaceholders, $content, $context);
170
 
171
  $this->assertEquals("Some content placeholder_value and placeholder_value.", $contentAfterReplace, 'It should replace all placeholders');
 
172
  }
173
 
174
  }
vendor/composer/InstalledVersions.php CHANGED
@@ -30,7 +30,7 @@ private static $installed = array (
30
  'aliases' =>
31
  array (
32
  ),
33
- 'reference' => '5cf92184e7cfd5d407c2ca32e0401c86a53e6a66',
34
  'name' => 'brizy/brizy',
35
  ),
36
  'versions' =>
@@ -55,12 +55,12 @@ private static $installed = array (
55
  ),
56
  'bagrinsergiu/content-placeholder' =>
57
  array (
58
- 'pretty_version' => '2.0.0',
59
- 'version' => '2.0.0.0',
60
  'aliases' =>
61
  array (
62
  ),
63
- 'reference' => '3c971c18c06f7e7949538f27c2c1e745845b2cc3',
64
  ),
65
  'brizy/brizy' =>
66
  array (
@@ -69,7 +69,7 @@ private static $installed = array (
69
  'aliases' =>
70
  array (
71
  ),
72
- 'reference' => '5cf92184e7cfd5d407c2ca32e0401c86a53e6a66',
73
  ),
74
  'enshrined/svg-sanitize' =>
75
  array (
30
  'aliases' =>
31
  array (
32
  ),
33
+ 'reference' => '5737c466f31910bd1e92ec6a57c5cb1c03ef5b94',
34
  'name' => 'brizy/brizy',
35
  ),
36
  'versions' =>
55
  ),
56
  'bagrinsergiu/content-placeholder' =>
57
  array (
58
+ 'pretty_version' => '2.0.4',
59
+ 'version' => '2.0.4.0',
60
  'aliases' =>
61
  array (
62
  ),
63
+ 'reference' => '27b38354235b30a7682b2b0de374746b5605c250',
64
  ),
65
  'brizy/brizy' =>
66
  array (
69
  'aliases' =>
70
  array (
71
  ),
72
+ 'reference' => '5737c466f31910bd1e92ec6a57c5cb1c03ef5b94',
73
  ),
74
  'enshrined/svg-sanitize' =>
75
  array (
vendor/composer/autoload_real.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
- class ComposerAutoloaderInit2274f1151542a72a208e886c5985ce1a
6
  {
7
  private static $loader;
8
 
@@ -22,15 +22,15 @@ class ComposerAutoloaderInit2274f1151542a72a208e886c5985ce1a
22
  return self::$loader;
23
  }
24
 
25
- spl_autoload_register(array('ComposerAutoloaderInit2274f1151542a72a208e886c5985ce1a', 'loadClassLoader'), true, true);
26
  self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
27
- spl_autoload_unregister(array('ComposerAutoloaderInit2274f1151542a72a208e886c5985ce1a', '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 __DIR__ . '/autoload_static.php';
32
 
33
- call_user_func(\Composer\Autoload\ComposerStaticInit2274f1151542a72a208e886c5985ce1a::getInitializer($loader));
34
  } else {
35
  $map = require __DIR__ . '/autoload_namespaces.php';
36
  foreach ($map as $namespace => $path) {
@@ -51,19 +51,19 @@ class ComposerAutoloaderInit2274f1151542a72a208e886c5985ce1a
51
  $loader->register(true);
52
 
53
  if ($useStaticLoader) {
54
- $includeFiles = Composer\Autoload\ComposerStaticInit2274f1151542a72a208e886c5985ce1a::$files;
55
  } else {
56
  $includeFiles = require __DIR__ . '/autoload_files.php';
57
  }
58
  foreach ($includeFiles as $fileIdentifier => $file) {
59
- composerRequire2274f1151542a72a208e886c5985ce1a($fileIdentifier, $file);
60
  }
61
 
62
  return $loader;
63
  }
64
  }
65
 
66
- function composerRequire2274f1151542a72a208e886c5985ce1a($fileIdentifier, $file)
67
  {
68
  if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
69
  require $file;
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
+ class ComposerAutoloaderInitdc488fbf1d858d237c3d6e873d93c902
6
  {
7
  private static $loader;
8
 
22
  return self::$loader;
23
  }
24
 
25
+ spl_autoload_register(array('ComposerAutoloaderInitdc488fbf1d858d237c3d6e873d93c902', 'loadClassLoader'), true, true);
26
  self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
27
+ spl_autoload_unregister(array('ComposerAutoloaderInitdc488fbf1d858d237c3d6e873d93c902', '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 __DIR__ . '/autoload_static.php';
32
 
33
+ call_user_func(\Composer\Autoload\ComposerStaticInitdc488fbf1d858d237c3d6e873d93c902::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\ComposerStaticInitdc488fbf1d858d237c3d6e873d93c902::$files;
55
  } else {
56
  $includeFiles = require __DIR__ . '/autoload_files.php';
57
  }
58
  foreach ($includeFiles as $fileIdentifier => $file) {
59
+ composerRequiredc488fbf1d858d237c3d6e873d93c902($fileIdentifier, $file);
60
  }
61
 
62
  return $loader;
63
  }
64
  }
65
 
66
+ function composerRequiredc488fbf1d858d237c3d6e873d93c902($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 ComposerStaticInit2274f1151542a72a208e886c5985ce1a
8
  {
9
  public static $files = array (
10
  '6e3fae29631ef280660b3cdad06f25a8' => __DIR__ . '/..' . '/symfony/deprecation-contracts/function.php',
@@ -126,10 +126,10 @@ class ComposerStaticInit2274f1151542a72a208e886c5985ce1a
126
  public static function getInitializer(ClassLoader $loader)
127
  {
128
  return \Closure::bind(function () use ($loader) {
129
- $loader->prefixLengthsPsr4 = ComposerStaticInit2274f1151542a72a208e886c5985ce1a::$prefixLengthsPsr4;
130
- $loader->prefixDirsPsr4 = ComposerStaticInit2274f1151542a72a208e886c5985ce1a::$prefixDirsPsr4;
131
- $loader->prefixesPsr0 = ComposerStaticInit2274f1151542a72a208e886c5985ce1a::$prefixesPsr0;
132
- $loader->classMap = ComposerStaticInit2274f1151542a72a208e886c5985ce1a::$classMap;
133
 
134
  }, null, ClassLoader::class);
135
  }
4
 
5
  namespace Composer\Autoload;
6
 
7
+ class ComposerStaticInitdc488fbf1d858d237c3d6e873d93c902
8
  {
9
  public static $files = array (
10
  '6e3fae29631ef280660b3cdad06f25a8' => __DIR__ . '/..' . '/symfony/deprecation-contracts/function.php',
126
  public static function getInitializer(ClassLoader $loader)
127
  {
128
  return \Closure::bind(function () use ($loader) {
129
+ $loader->prefixLengthsPsr4 = ComposerStaticInitdc488fbf1d858d237c3d6e873d93c902::$prefixLengthsPsr4;
130
+ $loader->prefixDirsPsr4 = ComposerStaticInitdc488fbf1d858d237c3d6e873d93c902::$prefixDirsPsr4;
131
+ $loader->prefixesPsr0 = ComposerStaticInitdc488fbf1d858d237c3d6e873d93c902::$prefixesPsr0;
132
+ $loader->classMap = ComposerStaticInitdc488fbf1d858d237c3d6e873d93c902::$classMap;
133
 
134
  }, null, ClassLoader::class);
135
  }
vendor/composer/installed.json CHANGED
@@ -88,17 +88,17 @@
88
  },
89
  {
90
  "name": "bagrinsergiu/content-placeholder",
91
- "version": "2.0.0",
92
- "version_normalized": "2.0.0.0",
93
  "source": {
94
  "type": "git",
95
  "url": "https://github.com/bagrinsergiu/brizy-content-placeholder.git",
96
- "reference": "3c971c18c06f7e7949538f27c2c1e745845b2cc3"
97
  },
98
  "dist": {
99
  "type": "zip",
100
- "url": "https://api.github.com/repos/bagrinsergiu/brizy-content-placeholder/zipball/3c971c18c06f7e7949538f27c2c1e745845b2cc3",
101
- "reference": "3c971c18c06f7e7949538f27c2c1e745845b2cc3",
102
  "shasum": ""
103
  },
104
  "require": {
@@ -108,7 +108,7 @@
108
  "phpspec/prophecy-phpunit": "^2.0",
109
  "phpunit/phpunit": "^9.4"
110
  },
111
- "time": "2021-04-28T06:42:17+00:00",
112
  "type": "library",
113
  "installation-source": "dist",
114
  "autoload": {
@@ -124,7 +124,7 @@
124
  "placeholders"
125
  ],
126
  "support": {
127
- "source": "https://github.com/bagrinsergiu/brizy-content-placeholder/tree/2.0.0",
128
  "issues": "https://github.com/bagrinsergiu/brizy-content-placeholder/issues"
129
  },
130
  "install-path": "../bagrinsergiu/content-placeholder"
88
  },
89
  {
90
  "name": "bagrinsergiu/content-placeholder",
91
+ "version": "2.0.4",
92
+ "version_normalized": "2.0.4.0",
93
  "source": {
94
  "type": "git",
95
  "url": "https://github.com/bagrinsergiu/brizy-content-placeholder.git",
96
+ "reference": "27b38354235b30a7682b2b0de374746b5605c250"
97
  },
98
  "dist": {
99
  "type": "zip",
100
+ "url": "https://api.github.com/repos/bagrinsergiu/brizy-content-placeholder/zipball/27b38354235b30a7682b2b0de374746b5605c250",
101
+ "reference": "27b38354235b30a7682b2b0de374746b5605c250",
102
  "shasum": ""
103
  },
104
  "require": {
108
  "phpspec/prophecy-phpunit": "^2.0",
109
  "phpunit/phpunit": "^9.4"
110
  },
111
+ "time": "2021-07-28T12:38:26+00:00",
112
  "type": "library",
113
  "installation-source": "dist",
114
  "autoload": {
124
  "placeholders"
125
  ],
126
  "support": {
127
+ "source": "https://github.com/bagrinsergiu/brizy-content-placeholder/tree/2.0.4",
128
  "issues": "https://github.com/bagrinsergiu/brizy-content-placeholder/issues"
129
  },
130
  "install-path": "../bagrinsergiu/content-placeholder"
vendor/composer/installed.php CHANGED
@@ -6,7 +6,7 @@
6
  'aliases' =>
7
  array (
8
  ),
9
- 'reference' => '5cf92184e7cfd5d407c2ca32e0401c86a53e6a66',
10
  'name' => 'brizy/brizy',
11
  ),
12
  'versions' =>
@@ -31,12 +31,12 @@
31
  ),
32
  'bagrinsergiu/content-placeholder' =>
33
  array (
34
- 'pretty_version' => '2.0.0',
35
- 'version' => '2.0.0.0',
36
  'aliases' =>
37
  array (
38
  ),
39
- 'reference' => '3c971c18c06f7e7949538f27c2c1e745845b2cc3',
40
  ),
41
  'brizy/brizy' =>
42
  array (
@@ -45,7 +45,7 @@
45
  'aliases' =>
46
  array (
47
  ),
48
- 'reference' => '5cf92184e7cfd5d407c2ca32e0401c86a53e6a66',
49
  ),
50
  'enshrined/svg-sanitize' =>
51
  array (
6
  'aliases' =>
7
  array (
8
  ),
9
+ 'reference' => '5737c466f31910bd1e92ec6a57c5cb1c03ef5b94',
10
  'name' => 'brizy/brizy',
11
  ),
12
  'versions' =>
31
  ),
32
  'bagrinsergiu/content-placeholder' =>
33
  array (
34
+ 'pretty_version' => '2.0.4',
35
+ 'version' => '2.0.4.0',
36
  'aliases' =>
37
  array (
38
  ),
39
+ 'reference' => '27b38354235b30a7682b2b0de374746b5605c250',
40
  ),
41
  'brizy/brizy' =>
42
  array (
45
  'aliases' =>
46
  array (
47
  ),
48
+ 'reference' => '5737c466f31910bd1e92ec6a57c5cb1c03ef5b94',
49
  ),
50
  'enshrined/svg-sanitize' =>
51
  array (