Unyson - Version 2.1.25

Version Description

  • Fixed qTranslate function name
  • Improved default flash messages display position in frontend
  • Option-type icon: Minor css changes
  • Minor fix on extensions install: The success state was set too early
Download this release

Release Info

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

Code changes from version 2.1.24 to 2.1.25

framework/core/components/extensions/manager/class--fw-extensions-manager.php CHANGED
@@ -914,8 +914,6 @@ final class _FW_Extensions_Manager
914
  }
915
  }
916
 
917
- $skin->set_result(true);
918
-
919
  $install_data = false;
920
 
921
  /**
@@ -1000,6 +998,14 @@ final class _FW_Extensions_Manager
1000
  );
1001
  }
1002
  } while(false);
 
 
 
 
 
 
 
 
1003
  } while(!empty($install_data));
1004
 
1005
  /** @var WP_Filesystem_Base $wp_filesystem */
@@ -1034,7 +1040,7 @@ final class _FW_Extensions_Manager
1034
  }
1035
  } while(false);
1036
 
1037
- if (!empty($activate_extensions)) {
1038
  $db_active_extensions = fw()->extensions->_get_db_active_extensions();
1039
  $db_active_extensions += $activate_extensions;
1040
 
914
  }
915
  }
916
 
 
 
917
  $install_data = false;
918
 
919
  /**
998
  );
999
  }
1000
  } while(false);
1001
+
1002
+ if (empty($install_data)) {
1003
+ /**
1004
+ * All extensions were installed successfully and there is nothing else to install
1005
+ * (the "while" will exit below)
1006
+ */
1007
+ $skin->set_result(true);
1008
+ }
1009
  } while(!empty($install_data));
1010
 
1011
  /** @var WP_Filesystem_Base $wp_filesystem */
1040
  }
1041
  } while(false);
1042
 
1043
+ if ($skin->result && !empty($activate_extensions)) {
1044
  $db_active_extensions = fw()->extensions->_get_db_active_extensions();
1045
  $db_active_extensions += $activate_extensions;
1046
 
framework/helpers/class-fw-flash-messages.php CHANGED
@@ -241,23 +241,58 @@ if (is_admin()) {
241
  return;
242
  }
243
 
244
- echo
245
- '<script type="text/javascript">'.
246
- ' (function(){'.
247
- ' if (typeof jQuery === "undefined") return;'.
248
- ' jQuery(function($){'.
249
- ' var $container = $("#content .entry-content:first");'.
250
- ' if (!$container.length) $container = $(document.body);'.
251
- ' $(".fw-flash-messages").prependTo($container);'.
252
- ' });'.
253
- ' })();'.
254
- '</script>'.
255
- '<style type="text/css">'.
256
- ' .fw-flash-messages .fw-flash-type-error { color: #f00; }'.
257
- ' .fw-flash-messages .fw-flash-type-warning { color: #f70; }'.
258
- ' .fw-flash-messages .fw-flash-type-success { color: #070; }'.
259
- ' .fw-flash-messages .fw-flash-type-info { color: #07f; }'.
260
- '</style>';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
261
  }
262
  add_action('wp_footer', '_action_fw_flash_message_frontend_print', 9999);
263
  }
241
  return;
242
  }
243
 
244
+ ?>
245
+ <script type="text/javascript">
246
+ (function(){
247
+ if (typeof jQuery === "undefined") {
248
+ return;
249
+ }
250
+
251
+ jQuery(function($){
252
+ var $container;
253
+
254
+ // Try to find the content element
255
+ {
256
+ var selector, selectors = [
257
+ '#main #content',
258
+ '#content #main',
259
+ '#main',
260
+ '#content',
261
+ '#content-container',
262
+ '#container',
263
+ '.container:first'
264
+ ];
265
+
266
+ while (selector = selectors.shift()) {
267
+ $container = $(selector);
268
+
269
+ if ($container.length) {
270
+ break;
271
+ }
272
+ }
273
+ }
274
+
275
+ if (!$container.length) {
276
+ // Try to find main page H1 container
277
+ $container = $('h1:first').parent();
278
+ }
279
+
280
+ if (!$container.length) {
281
+ // If nothing found, just add to body
282
+ $container = $(document.body);
283
+ }
284
+
285
+ $(".fw-flash-messages").prependTo($container);
286
+ });
287
+ })();
288
+ </script>
289
+ <style type="text/css">
290
+ .fw-flash-messages .fw-flash-type-error { color: #f00; }
291
+ .fw-flash-messages .fw-flash-type-warning { color: #f70; }
292
+ .fw-flash-messages .fw-flash-type-success { color: #070; }
293
+ .fw-flash-messages .fw-flash-type-info { color: #07f; }
294
+ </style>
295
+ <?php
296
  }
297
  add_action('wp_footer', '_action_fw_flash_message_frontend_print', 9999);
298
  }
framework/helpers/general.php CHANGED
@@ -755,12 +755,8 @@ function fw_prepare_option_value($value) {
755
  return $value;
756
  }
757
 
758
- if (function_exists('qtrans_use_current_language_if_not_found_use_default_language')) {
759
- if (is_array($value)) {
760
- array_walk_recursive($value, 'qtrans_use_current_language_if_not_found_use_default_language');
761
- } else {
762
- $value = qtrans_use_current_language_if_not_found_use_default_language($value);
763
- }
764
  }
765
 
766
  return $value;
755
  return $value;
756
  }
757
 
758
+ if (function_exists('qtrans_useCurrentLanguageIfNotFoundUseDefaultLanguage')) {
759
+ $value = qtrans_useCurrentLanguageIfNotFoundUseDefaultLanguage($value);
 
 
 
 
760
  }
761
 
762
  return $value;
framework/includes/option-types/icon/static/css/backend.css CHANGED
@@ -18,12 +18,12 @@
18
 
19
  .fw-option-type-icon .option-type-icon-list i {
20
  float: left;
21
- width: 1em;
22
  border: 1px solid #e1e1e1;
23
  margin: 0 0 -1px -1px;
24
- padding: 0.5em;
25
  background-color: #ffffff;
26
- overflow: hidden;
 
27
  }
28
 
29
  body.rtl .fw-option-type-icon .option-type-icon-list i {
@@ -32,8 +32,6 @@ body.rtl .fw-option-type-icon .option-type-icon-list i {
32
 
33
  .fw-option-type-icon .option-type-icon-list i:before {
34
  display: inline-block;
35
- width: 1em;
36
- text-align: center;
37
  }
38
 
39
  .fw-option-type-icon .option-type-icon-list i.active,
18
 
19
  .fw-option-type-icon .option-type-icon-list i {
20
  float: left;
 
21
  border: 1px solid #e1e1e1;
22
  margin: 0 0 -1px -1px;
23
+ padding: 0.5em 0;
24
  background-color: #ffffff;
25
+ text-align: center;
26
+ min-width: 2em;
27
  }
28
 
29
  body.rtl .fw-option-type-icon .option-type-icon-list i {
32
 
33
  .fw-option-type-icon .option-type-icon-list i:before {
34
  display: inline-block;
 
 
35
  }
36
 
37
  .fw-option-type-icon .option-type-icon-list i.active,
framework/manifest.php CHANGED
@@ -4,4 +4,4 @@ $manifest = array();
4
 
5
  $manifest['name'] = __('Unyson', 'fw');
6
 
7
- $manifest['version'] = '2.1.24';
4
 
5
  $manifest['name'] = __('Unyson', 'fw');
6
 
7
+ $manifest['version'] = '2.1.25';
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: unyson, themefusecom
3
  Tags: page builder, cms, grid, layout, responsive, back up, backup, db backup, dump, migrate, schedule, search engine optimization, seo, media, slideshow, shortcode, slide, slideshare, slideshow, google sitemaps, sitemaps, analytics, google analytics, calendar, event, events, google maps, learning, lessons, sidebars, breadcrumbs, review, portfolio, framework
4
  Requires at least: 4.0.0
5
  Tested up to: 4.1
6
- Stable tag: 2.1.24
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -86,6 +86,12 @@ Yes; Unyson will work with any theme.
86
 
87
  == Changelog ==
88
 
 
 
 
 
 
 
89
  = 2.1.24 =
90
  * Fixed access denied on Theme Settings and Unyson pages when qTranslate is active
91
  * Made all boxes open when Theme Settings Side Tabs is active (with default tabs only first box is open)
3
  Tags: page builder, cms, grid, layout, responsive, back up, backup, db backup, dump, migrate, schedule, search engine optimization, seo, media, slideshow, shortcode, slide, slideshare, slideshow, google sitemaps, sitemaps, analytics, google analytics, calendar, event, events, google maps, learning, lessons, sidebars, breadcrumbs, review, portfolio, framework
4
  Requires at least: 4.0.0
5
  Tested up to: 4.1
6
+ Stable tag: 2.1.25
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
86
 
87
  == Changelog ==
88
 
89
+ = 2.1.25 =
90
+ * Fixed qTranslate function name
91
+ * Improved default flash messages display position in frontend
92
+ * Option-type icon: Minor css changes
93
+ * Minor fix on extensions install: The success state was set too early
94
+
95
  = 2.1.24 =
96
  * Fixed access denied on Theme Settings and Unyson pages when qTranslate is active
97
  * Made all boxes open when Theme Settings Side Tabs is active (with default tabs only first box is open)
unyson.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Unyson
4
  * Plugin URI: http://unyson.themefuse.com/
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.1.24
7
  * Author: ThemeFuse
8
  * Author URI: http://themefuse.com
9
  * License: GPL2+
3
  * Plugin Name: Unyson
4
  * Plugin URI: http://unyson.themefuse.com/
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.1.25
7
  * Author: ThemeFuse
8
  * Author URI: http://themefuse.com
9
  * License: GPL2+