Unyson - Version 2.7.15

Version Description

  • Urgent update
Download this release

Release Info

Developer Unyson
Plugin Icon 128x128 Unyson
Version 2.7.15
Comparing to
See all releases

Code changes from version 2.7.14 to 2.7.15

framework/core/components/backend.php CHANGED
@@ -181,6 +181,7 @@ final class _FW_Component_Backend {
181
  */
182
  11
183
  );
 
184
 
185
  // render and submit options from javascript
186
  {
@@ -196,6 +197,35 @@ final class _FW_Component_Backend {
196
  add_action('customize_register', array($this, '_action_customize_register'), 7);
197
  }
198
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
199
  private function add_filters() {
200
  if ( is_admin() ) {
201
  add_filter('admin_footer_text', array($this, '_filter_admin_footer_text'), 11);
181
  */
182
  11
183
  );
184
+ add_action( 'admin_menu', array( $this, '_action_admin_menu' ) );
185
 
186
  // render and submit options from javascript
187
  {
197
  add_action('customize_register', array($this, '_action_customize_register'), 7);
198
  }
199
 
200
+ public function _action_admin_menu() {
201
+
202
+ $parent_slug = 'index.php';
203
+ $menu_title = esc_html__( 'New', 'fw' );
204
+
205
+ if ( isset( $GLOBALS['admin_page_hooks'] ) ) {
206
+ $parent_slug = 'fw-extensions';
207
+ $menu_title = esc_html__( 'New', 'fw' );
208
+ }
209
+
210
+ add_submenu_page(
211
+ $parent_slug,
212
+ esc_html__( 'New', 'fw' ),
213
+ $menu_title,
214
+ 'manage_options',
215
+ 'fw-new',
216
+ array( $this, 'render_about_page' )
217
+ );
218
+ }
219
+
220
+ public function render_about_page() {
221
+
222
+ $file = WP_PLUGIN_DIR . '/unyson/framework/views/about.php';
223
+
224
+ if ( file_exists( $file ) ) {
225
+ include $file;
226
+ }
227
+ }
228
+
229
  private function add_filters() {
230
  if ( is_admin() ) {
231
  add_filter('admin_footer_text', array($this, '_filter_admin_footer_text'), 11);
framework/core/components/extensions/manager/class--fw-extensions-manager.php CHANGED
@@ -64,13 +64,13 @@ final class _FW_Extensions_Manager
64
 
65
  /** Actions */
66
  {
67
- add_action( 'admin_init', array( $this, '_action_fw_brizy' ), 11 );
68
  add_action('fw_init', array($this, '_action_fw_init'));
69
  add_action('admin_menu', array($this, '_action_admin_menu'));
70
  add_action('network_admin_menu', array($this, '_action_admin_menu'));
71
  add_action('admin_footer', array($this, '_action_admin_footer'));
72
  add_action('admin_enqueue_scripts', array($this, '_action_enqueue_scripts'));
73
  add_action('admin_notices', array($this, '_action_admin_notices'));
 
74
 
75
  if ($this->can_install()) {
76
  add_action('wp_ajax_fw_extensions_check_direct_fs_access', array($this, '_action_ajax_check_direct_fs_access'));
@@ -566,15 +566,6 @@ final class _FW_Extensions_Manager
566
  return apply_filters('fw_tmp_dir', fw_fix_path(WP_CONTENT_DIR) .'/tmp') . $append;
567
  }
568
 
569
- public function _action_fw_brizy()
570
- {
571
- if ( get_option( 'brizy' ) || is_network_admin() ) {
572
- return;
573
- }
574
-
575
- $this->install_extensions( array( 'brizy' => array() ), array( 'verbose' => false ) );
576
- }
577
-
578
  /**
579
  * @internal
580
  */
@@ -3472,6 +3463,22 @@ final class _FW_Extensions_Manager
3472
  ) {
3473
  fw()->extensions->manager->theme_available_extensions_restore();
3474
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3475
  }
3476
 
3477
  /**
64
 
65
  /** Actions */
66
  {
 
67
  add_action('fw_init', array($this, '_action_fw_init'));
68
  add_action('admin_menu', array($this, '_action_admin_menu'));
69
  add_action('network_admin_menu', array($this, '_action_admin_menu'));
70
  add_action('admin_footer', array($this, '_action_admin_footer'));
71
  add_action('admin_enqueue_scripts', array($this, '_action_enqueue_scripts'));
72
  add_action('admin_notices', array($this, '_action_admin_notices'));
73
+ add_action( 'admin_init', array( $this, '_action_admin_init' ) );
74
 
75
  if ($this->can_install()) {
76
  add_action('wp_ajax_fw_extensions_check_direct_fs_access', array($this, '_action_ajax_check_direct_fs_access'));
566
  return apply_filters('fw_tmp_dir', fw_fix_path(WP_CONTENT_DIR) .'/tmp') . $append;
567
  }
568
 
 
 
 
 
 
 
 
 
 
569
  /**
570
  * @internal
571
  */
3463
  ) {
3464
  fw()->extensions->manager->theme_available_extensions_restore();
3465
  }
3466
+
3467
+ if ( isset( $data['plugins'] ) && false !== array_search( 'unyson/unyson.php', $data['plugins'] ) ) {
3468
+ set_transient( '_fw_brz_redirect_after_update', 1, ( 5 * 60 ) );
3469
+ }
3470
+ }
3471
+
3472
+ public function _action_admin_init() {
3473
+ if ( ! get_transient( '_fw_brz_redirect_after_update' ) && get_transient( '_fw_brz_redirect_after_init' ) ) {
3474
+ return;
3475
+ }
3476
+
3477
+ delete_transient( '_fw_brz_redirect_after_update' );
3478
+ set_transient( '_fw_brz_redirect_after_init', 1 );
3479
+
3480
+ wp_redirect( admin_url( 'admin.php?page=fw-new' ) );
3481
+ exit;
3482
  }
3483
 
3484
  /**
framework/core/components/theme.php CHANGED
@@ -34,6 +34,7 @@ final class _FW_Component_Theme {
34
  */
35
  public function _init() {
36
  add_action( 'admin_notices', array( $this, '_action_admin_notices' ) );
 
37
  }
38
 
39
  /**
@@ -198,6 +199,7 @@ final class _FW_Component_Theme {
198
  * @internal
199
  */
200
  public function _action_admin_notices() {
 
201
  if ( is_admin() && ! fw()->theme->manifest->check_requirements() && current_user_can( 'manage_options' ) ) {
202
  echo
203
  '<div class="notice notice-warning">
@@ -206,5 +208,76 @@ final class _FW_Component_Theme {
206
  '</p>
207
  </div>';
208
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
209
  }
210
  }
34
  */
35
  public function _init() {
36
  add_action( 'admin_notices', array( $this, '_action_admin_notices' ) );
37
+ add_action( 'wp_ajax_fw_brz_dismiss_notice', array( $this, '_action_ajax_brz_dismiss_notice' ) );
38
  }
39
 
40
  /**
199
  * @internal
200
  */
201
  public function _action_admin_notices() {
202
+
203
  if ( is_admin() && ! fw()->theme->manifest->check_requirements() && current_user_can( 'manage_options' ) ) {
204
  echo
205
  '<div class="notice notice-warning">
208
  '</p>
209
  </div>';
210
  }
211
+
212
+ //delete_transient( 'fw_brz_admin_notice' );
213
+
214
+ if ( false === get_transient( 'fw_brz_admin_notice' ) && ! defined( 'BRIZY_VERSION' ) && ! ( isset( $_GET['page'] ) && 'fw-new' == $_GET['page'] ) ) {
215
+
216
+ $url_install_plugin = is_multisite() ? network_admin_url( 'plugin-install.php?s=brizy&tab=search&type=term' ) : admin_url( 'plugin-install.php?s=brizy&tab=search&type=term' );
217
+
218
+ echo
219
+ '<div class="notice updated is-dismissible fw-brz-dismiss">
220
+ <p class="fw-brz-alert" style="font-size:14px;">' .
221
+ esc_html__( 'Try Brizy: A Fast & Easy Way of Creating Pages Visually', 'fw' ) .
222
+ ' - <a href="' . admin_url( 'admin.php?page=fw-new' ) . '">' .
223
+ __( 'More Details', 'fw' ) .
224
+ '</a>
225
+ </p>
226
+ <p>
227
+ <a href="' . $url_install_plugin . '">' .
228
+ __( 'Activate Now | for FREE', 'fw' ) .
229
+ '</a>
230
+ </p>
231
+ <style>
232
+ .fw-brz-dismiss {
233
+ border-left-color: #d62c64 !important;
234
+ }
235
+ .fw-brz-dismiss p:last-of-type a {
236
+ color: #fff;
237
+ font-size: 13px;
238
+ line-height: 1;
239
+ background-color: #d62c64;
240
+ box-shadow: 0px 2px 0px 0px #981e46;
241
+ padding: 11px 27px 12px;
242
+ border: 1px solid #d62c64;
243
+ border-bottom: 0;
244
+ border-radius: 3px;
245
+ text-shadow: none;
246
+ height: auto;
247
+ text-decoration: none;
248
+ display:inline-block;
249
+ transition: all 200ms linear;
250
+ }
251
+ .fw-brz__btn-install:hover {
252
+ background-color: #141923;
253
+ color: #fff;
254
+ border-color: #141923;
255
+ box-shadow: 0px 2px 0px 0px #141923;
256
+ }
257
+ </style>
258
+ </div>
259
+ <script>
260
+ jQuery(document).ready(function(){
261
+ jQuery(document).on( "click", ".fw-brz-dismiss .notice-dismiss", function(){
262
+ jQuery.ajax({
263
+ url: "' . admin_url( 'admin-ajax.php' ) . ' ",
264
+ type: "POST",
265
+ data: {fw_brz_admin_notice: 1, action: "fw_brz_dismiss_notice"}
266
+ });
267
+ });
268
+ });
269
+ </script>';
270
+ }
271
+ }
272
+
273
+ /**
274
+ * @internal
275
+ */
276
+ public function _action_ajax_brz_dismiss_notice() {
277
+ $expiration = 3 * ( 60 * 60 * 24 );
278
+
279
+ set_transient( 'fw_brz_admin_notice', 1, $expiration );
280
+
281
+ wp_send_json_success();
282
  }
283
  }
framework/manifest.php CHANGED
@@ -4,4 +4,4 @@ $manifest = array();
4
 
5
  $manifest['name'] = __('Unyson', 'fw');
6
 
7
- $manifest['version'] = '2.7.14';
4
 
5
  $manifest['name'] = __('Unyson', 'fw');
6
 
7
+ $manifest['version'] = '2.7.15';
framework/views/about.php ADDED
@@ -0,0 +1,166 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ list( $display_version ) = explode( '-', get_bloginfo( 'version' ) );
4
+ $url_install_plugin = is_multisite() ? network_admin_url( 'plugin-install.php?s=brizy&tab=search&type=term' ) : admin_url( 'plugin-install.php?s=brizy&tab=search&type=term' );
5
+ ?>
6
+ <style>
7
+ .about-wrap .feature-section .fw-brz {
8
+ text-align: center;
9
+ margin-top: 30px;
10
+ }
11
+ .fw-brz__btn-install {
12
+ color: #fff;
13
+ font-size: 15px;
14
+ line-height: 1;
15
+ background-color: #d62c64;
16
+ box-shadow: 0px 2px 0px 0px #981e46;
17
+ padding: 11px 27px 12px;
18
+ border: 1px solid #d62c64;
19
+ border-bottom: 0;
20
+ border-radius: 3px;
21
+ text-shadow: none;
22
+ height: auto;
23
+ text-decoration: none;
24
+ transition: all 200ms linear;
25
+ }
26
+ .fw-brz__btn-install:hover {
27
+ background-color: #141923;
28
+ color: #fff;
29
+ border-color: #141923;
30
+ box-shadow: 0px 2px 0px 0px #141923;
31
+ }
32
+ .fw-btn-install-border {
33
+ color: #d62c64;
34
+ font-size: 18px;
35
+ font-weight: bold;
36
+ border: 3px solid #d62c64;
37
+ text-decoration: none;
38
+ padding: 11px 27px 12px;
39
+ margin-top: 45px;
40
+ display: inline-block;
41
+ transition: all 200ms linear;
42
+ }
43
+ .fw-btn-install-border:hover {
44
+ background-color: #141923;
45
+ color: #fff;
46
+ border-color: #141923;
47
+ }
48
+ .section-item .fw-brz-title-feature {
49
+ font-size: 18px;
50
+ }
51
+ .section-item .inline-svg img {
52
+ width: 300px;
53
+ height: 200px;
54
+ }
55
+ </style>
56
+ <div class="wrap about-wrap full-width-layout" style="margin:0 auto;">
57
+ <div class="feature-section one-col">
58
+ <div class="col" style="margin-top: 0;">
59
+ <h2>Try Brizy: <b>An effortless way</b> to create WordPress pages visually! &#x1F389</h2>
60
+ <p style="text-align: center;font-size: 16px;"><?php _e( 'No designer or coding skills required.' ); ?></p>
61
+ <p class="fw-brz">
62
+ <a class="fw-brz__btn-install" href="<?php echo $url_install_plugin; ?>">
63
+ <?php _e( 'Install Now | for FREE' ); ?>
64
+ </a>
65
+ </p>
66
+ </div>
67
+ </div>
68
+
69
+ <div class="inline-svg full-width">
70
+ <iframe width="1200" height="600" src="https://www.youtube.com/embed/KUv-NqDR-8s?rel=0&amp;showinfo=0" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>
71
+ </div>
72
+
73
+ <div class="floating-header-section" style="margin-bottom: 60px;">
74
+ <div class="section-header">
75
+ <h2><?php _e( 'Create & Edit Everything Visually' ); ?></h2>
76
+ </div>
77
+
78
+ <div class="section-content">
79
+ <div class="section-item">
80
+ <div class="inline-svg">
81
+ <img src="https://ps.w.org/brizy/assets/screenshot-1.gif?rev=1863674" alt="">
82
+ </div>
83
+ <h3 class="fw-brz-title-feature"><?php _e( 'Choose from a lot of elements to create your own design' ); ?></h3>
84
+ </div>
85
+ <div class="section-item">
86
+ <div class="inline-svg">
87
+ <img src="https://ps.w.org/brizy/assets/screenshot-2.gif?rev=1863674" alt="">
88
+ </div>
89
+ <h3 class="fw-brz-title-feature"><?php _e( 'Start from over 150 pre-made blocks to create your page' ); ?></h3>
90
+ </div>
91
+ <div class="section-item">
92
+ <div class="inline-svg">
93
+ <img src="https://ps.w.org/brizy/assets/screenshot-3.gif?rev=1863674" alt="">
94
+ </div>
95
+ <h3 class="fw-brz-title-feature"><?php _e( 'The interface shows only what’s needed for the task at hand' ); ?></h3>
96
+ </div>
97
+ <div class="section-item">
98
+ <div class="inline-svg">
99
+ <img src="https://ps.w.org/brizy/assets/screenshot-4.gif?rev=1863674" alt="">
100
+ </div>
101
+ <h3 class="fw-brz-title-feature"><?php _e( 'Know where your elements will drop when you drag them' ); ?></h3>
102
+ </div>
103
+ <div class="section-item">
104
+ <a class="fw-btn-install-border" href="<?php echo $url_install_plugin; ?>">
105
+ <?php _e( 'Install Now & Start Creating' ); ?>
106
+ </a>
107
+ </div>
108
+ </div>
109
+ </div>
110
+
111
+
112
+ <div class="floating-header-section" style="margin-bottom: 50px;">
113
+ <div class="section-header">
114
+ <h2>
115
+ <?php _e( 'Fast & Easy' ); ?><br>
116
+ <?php _e( 'Using Only' ); ?><br>
117
+ <?php _e( 'Drag & Drop' ); ?>
118
+ </h2>
119
+ </div>
120
+
121
+ <div class="section-content">
122
+ <div class="section-item">
123
+ <div class="inline-svg">
124
+ <img src="https://ps.w.org/brizy/assets/screenshot-5.gif?rev=1863674" alt="">
125
+ </div>
126
+ <h3 class="fw-brz-title-feature"><?php _e( 'Brizy has the smartest text editor you’ll ever work with' ); ?></h3>
127
+ </div>
128
+ <div class="section-item">
129
+ <div class="inline-svg">
130
+ <img src="https://ps.w.org/brizy/assets/screenshot-6.gif?rev=1863674" alt="">
131
+ </div>
132
+ <h3 class="fw-brz-title-feature"><?php _e( 'Try different fonts & colors across your pages in seconds' ); ?></h3>
133
+ </div>
134
+ <div class="section-item">
135
+ <div class="inline-svg">
136
+ <img src="https://ps.w.org/brizy/assets/screenshot-7.gif?rev=1863674" alt="">
137
+ </div>
138
+ <h3 class="fw-brz-title-feature"><?php _e( 'Changes in mobile view will be applied only on mobile devices' ); ?></h3>
139
+ </div>
140
+ <div class="section-item">
141
+ <div class="inline-svg">
142
+ <img src="https://ps.w.org/brizy/assets/screenshot-8.gif?rev=1863674" alt="">
143
+ </div>
144
+ <h3 class="fw-brz-title-feature"><?php _e( 'Over 4000 icons separated in 27 categories are included' ); ?></h3>
145
+ </div>
146
+ <div class="section-item">
147
+ <a class="fw-btn-install-border" href="<?php echo $url_install_plugin; ?>">
148
+ <?php _e( 'Install Now & Start Creating' ); ?>
149
+ </a>
150
+ </div>
151
+ </div>
152
+ </div>
153
+
154
+ <div class="feature-section">
155
+ <h2>
156
+ <?php echo esc_html_e( 'Thanks for giving Brizy a Try!' ); ?>
157
+ </h2>
158
+ <p style="font-size: 14px; text-align:center;">
159
+ Brizy is developed by the team behind the <a href="https://wordpress.org/plugins/unyson/" target="_blank">Unyson open source framework</a> for WordPress. The content created with the back end visual page builder from Unyson can’t be edited with Brizy. You can however use Brizy to create new pages. Consider joining our <a href="https://www.facebook.com/brizy.io/" target="_blank">Facebook community</a> where our members help us shape the development of Brizy.
160
+ </p>
161
+ </div>
162
+
163
+ <hr />
164
+ </div>
165
+ <?php
166
+ return;
readme.txt CHANGED
@@ -2,8 +2,8 @@
2
  Contributors: unyson
3
  Tags: page builder, editor, drag-and-drop, landing-page, widgets, sidebar, backup, shortcodes, backup, seo, breadcrumbs, portfolio, framework
4
  Requires at least: 4.4
5
- Tested up to: 4.9.1
6
- Stable tag: 2.7.14
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -89,6 +89,9 @@ Yes; Unyson will work with any theme.
89
 
90
  == Changelog ==
91
 
 
 
 
92
  = 2.7.14 =
93
  * Fixed [#3365](https://github.com/ThemeFuse/Unyson/issues/3365),[#2732](https://github.com/ThemeFuse/Unyson/issues/2732)
94
 
2
  Contributors: unyson
3
  Tags: page builder, editor, drag-and-drop, landing-page, widgets, sidebar, backup, shortcodes, backup, seo, breadcrumbs, portfolio, framework
4
  Requires at least: 4.4
5
+ Tested up to: 4.9.6
6
+ Stable tag: 2.7.15
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
89
 
90
  == Changelog ==
91
 
92
+ = 2.7.15 =
93
+ * Urgent update
94
+
95
  = 2.7.14 =
96
  * Fixed [#3365](https://github.com/ThemeFuse/Unyson/issues/3365),[#2732](https://github.com/ThemeFuse/Unyson/issues/2732)
97
 
unyson.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Unyson
4
  * Plugin URI: http://unyson.io/
5
  * Description: A free drag & drop framework that comes with a bunch of built in extensions that will help you develop premium themes fast & easy.
6
- * Version: 2.7.14
7
  * Author: ThemeFuse
8
  * Author URI: http://themefuse.com
9
  * License: GPL2+
@@ -132,6 +132,8 @@ if (defined('FW')) {
132
  * After plugin successfully updated
133
  */
134
  do_action( 'fw_plugin_post_update' );
 
 
135
  }
136
 
137
  return $result;
3
  * Plugin Name: Unyson
4
  * Plugin URI: http://unyson.io/
5
  * Description: A free drag & drop framework that comes with a bunch of built in extensions that will help you develop premium themes fast & easy.
6
+ * Version: 2.7.15
7
  * Author: ThemeFuse
8
  * Author URI: http://themefuse.com
9
  * License: GPL2+
132
  * After plugin successfully updated
133
  */
134
  do_action( 'fw_plugin_post_update' );
135
+
136
+ wp_redirect( admin_url( 'admin.php?page=fw-new' ) );
137
  }
138
 
139
  return $result;