Version Description
- Fixed #404
- Added the Translation extension in Available Extensions list
Download this release
Release Info
Developer | Unyson |
Plugin | Unyson |
Version | 2.2.6 |
Comparing to | |
See all releases |
Code changes from version 2.2.5 to 2.2.6
- framework/bootstrap.php +1 -1
- framework/core/components/backend.php +14 -8
- framework/core/components/extensions/manager/available-extensions.php +2 -2
- framework/includes/hooks.php +16 -0
- framework/includes/option-types/init.php +31 -0
- framework/includes/option-types/multi-select/class-fw-option-type-multi-select.php +4 -0
- framework/includes/{option-types.php → option-types/simple.php} +2 -30
- framework/manifest.php +1 -1
- readme.txt +5 -1
- unyson.php +1 -1
framework/bootstrap.php
CHANGED
@@ -58,7 +58,7 @@ if (defined('FW')) {
|
|
58 |
/**
|
59 |
* Load includes
|
60 |
*/
|
61 |
-
foreach (array('hooks'
|
62 |
require $fw_dir .'/includes/'. $file .'.php';
|
63 |
}
|
64 |
|
58 |
/**
|
59 |
* Load includes
|
60 |
*/
|
61 |
+
foreach (array('hooks') as $file) {
|
62 |
require $fw_dir .'/includes/'. $file .'.php';
|
63 |
}
|
64 |
|
framework/core/components/backend.php
CHANGED
@@ -1401,17 +1401,23 @@ final class _FW_Component_Backend {
|
|
1401 |
*/
|
1402 |
public function option_type( $option_type ) {
|
1403 |
if ( is_array( $this->option_types_pending_registration ) ) {
|
1404 |
-
// This method is called first time
|
1405 |
-
$pending_option_types = $this->option_types_pending_registration;
|
1406 |
|
1407 |
-
|
1408 |
-
$this->option_types_pending_registration = false;
|
1409 |
|
1410 |
-
|
1411 |
-
|
1412 |
-
|
|
|
|
|
|
|
1413 |
|
1414 |
-
|
|
|
|
|
|
|
|
|
|
|
1415 |
}
|
1416 |
|
1417 |
if ( isset( $this->option_types[ $option_type ] ) ) {
|
1401 |
*/
|
1402 |
public function option_type( $option_type ) {
|
1403 |
if ( is_array( $this->option_types_pending_registration ) ) {
|
1404 |
+
// This method is called first time
|
|
|
1405 |
|
1406 |
+
do_action('fw_option_types_init');
|
|
|
1407 |
|
1408 |
+
// Register pending option types
|
1409 |
+
{
|
1410 |
+
$pending_option_types = $this->option_types_pending_registration;
|
1411 |
+
|
1412 |
+
// clear this property, so register_option_type() will not add option types to pending anymore
|
1413 |
+
$this->option_types_pending_registration = false;
|
1414 |
|
1415 |
+
foreach ( $pending_option_types as $option_type_class ) {
|
1416 |
+
$this->register_option_type( $option_type_class );
|
1417 |
+
}
|
1418 |
+
|
1419 |
+
unset( $pending_option_types );
|
1420 |
+
}
|
1421 |
}
|
1422 |
|
1423 |
if ( isset( $this->option_types[ $option_type ] ) ) {
|
framework/core/components/extensions/manager/available-extensions.php
CHANGED
@@ -246,7 +246,7 @@ $extensions = array(
|
|
246 |
),
|
247 |
),
|
248 |
),
|
249 |
-
|
250 |
'display' => true,
|
251 |
'parent' => null,
|
252 |
'name' => __( 'Translations', 'fw' ),
|
@@ -257,5 +257,5 @@ $extensions = array(
|
|
257 |
'user_repo' => $github_account . '/Unyson-Translation-Extension',
|
258 |
),
|
259 |
),
|
260 |
-
)
|
261 |
);
|
246 |
),
|
247 |
),
|
248 |
),
|
249 |
+
'translation' => array(
|
250 |
'display' => true,
|
251 |
'parent' => null,
|
252 |
'name' => __( 'Translations', 'fw' ),
|
257 |
'user_repo' => $github_account . '/Unyson-Translation-Extension',
|
258 |
),
|
259 |
),
|
260 |
+
),
|
261 |
);
|
framework/includes/hooks.php
CHANGED
@@ -3,6 +3,22 @@
|
|
3 |
* Filters and Actions
|
4 |
*/
|
5 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6 |
/**
|
7 |
* Term Meta
|
8 |
*/
|
3 |
* Filters and Actions
|
4 |
*/
|
5 |
|
6 |
+
/**
|
7 |
+
* Load option types
|
8 |
+
* @internal
|
9 |
+
*/
|
10 |
+
function _action_fw_init_option_types() {
|
11 |
+
require_once dirname(__FILE__) .'/option-types/init.php';
|
12 |
+
}
|
13 |
+
add_action('fw_option_types_init', '_action_fw_init_option_types');
|
14 |
+
|
15 |
+
/**
|
16 |
+
* This option type has `add_action('wp_ajax_...`
|
17 |
+
*/
|
18 |
+
if (is_admin()) {
|
19 |
+
require_once dirname(__FILE__) . '/option-types/multi-select/class-fw-option-type-multi-select.php';
|
20 |
+
}
|
21 |
+
|
22 |
/**
|
23 |
* Term Meta
|
24 |
*/
|
framework/includes/option-types/init.php
ADDED
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php if (!defined('FW')) die('Forbidden');
|
2 |
+
|
3 |
+
$dir = dirname(__FILE__);
|
4 |
+
|
5 |
+
require $dir . '/simple.php';
|
6 |
+
|
7 |
+
require $dir . '/icon/class-fw-option-type-icon.php';
|
8 |
+
require $dir . '/image-picker/class-fw-option-type-image-picker.php';
|
9 |
+
require $dir . '/upload/class-fw-option-type-upload.php';
|
10 |
+
require $dir . '/color-picker/class-fw-option-type-color-picker.php';
|
11 |
+
require $dir . '/gradient/class-fw-option-type-gradient.php';
|
12 |
+
require $dir . '/background-image/class-fw-option-type-background-image.php';
|
13 |
+
require $dir . '/multi/class-fw-option-type-multi.php';
|
14 |
+
require $dir . '/switch/class-fw-option-type-switch.php';
|
15 |
+
require $dir . '/typography/class-fw-option-type-typography.php';
|
16 |
+
require $dir . '/multi-upload/class-fw-option-type-multi-upload.php';
|
17 |
+
require $dir . '/multi-picker/class-fw-option-type-multi-picker.php';
|
18 |
+
require $dir . '/wp-editor/class-fw-option-type-wp-editor.php';
|
19 |
+
require $dir . '/date-picker/class-fw-option-type-wp-date-picker.php';
|
20 |
+
require $dir . '/addable-option/class-fw-option-type-addable-option.php';
|
21 |
+
require $dir . '/addable-box/class-fw-option-type-addable-box.php';
|
22 |
+
require $dir . '/addable-popup/class-fw-option-type-addable-popup.php';
|
23 |
+
require $dir . '/multi-select/class-fw-option-type-multi-select.php';
|
24 |
+
require $dir . '/map/class-fw-option-type-map.php';
|
25 |
+
require $dir . '/datetime-range/class-fw-option-type-datetime-range.php';
|
26 |
+
require $dir . '/datetime-picker/class-fw-option-type-datetime-picker.php';
|
27 |
+
require $dir . '/radio-text/class-fw-option-type-radio-text.php';
|
28 |
+
require $dir . '/popup/class-fw-option-type-popup.php';
|
29 |
+
require $dir . '/slider/class-fw-option-type-slider.php';
|
30 |
+
require $dir . '/range-slider/class-fw-option-type-range-slider.php';
|
31 |
+
require $dir . '/rgba-color-picker/class-fw-option-type-rgba-color-picker.php';
|
framework/includes/option-types/multi-select/class-fw-option-type-multi-select.php
CHANGED
@@ -2,6 +2,8 @@
|
|
2 |
die( 'Forbidden' );
|
3 |
}
|
4 |
|
|
|
|
|
5 |
/**
|
6 |
* Select multiple choices from different sources: posts, taxonomies, users or custom array
|
7 |
*/
|
@@ -425,3 +427,5 @@ class FW_Option_Type_Multi_Select extends FW_Option_Type
|
|
425 |
FW_Option_Type::register( 'FW_Option_Type_Multi_Select' );
|
426 |
|
427 |
add_action( 'wp_ajax_admin_action_get_ajax_response', array( "FW_Option_Type_Multi_Select", '_admin_action_get_ajax_response' ) );
|
|
|
|
2 |
die( 'Forbidden' );
|
3 |
}
|
4 |
|
5 |
+
if (!class_exists('FW_Option_Type_Multi_Select')):
|
6 |
+
|
7 |
/**
|
8 |
* Select multiple choices from different sources: posts, taxonomies, users or custom array
|
9 |
*/
|
427 |
FW_Option_Type::register( 'FW_Option_Type_Multi_Select' );
|
428 |
|
429 |
add_action( 'wp_ajax_admin_action_get_ajax_response', array( "FW_Option_Type_Multi_Select", '_admin_action_get_ajax_response' ) );
|
430 |
+
|
431 |
+
endif;
|
framework/includes/{option-types.php → option-types/simple.php}
RENAMED
@@ -1,6 +1,7 @@
|
|
1 |
<?php if (!defined('FW')) die('Forbidden');
|
|
|
2 |
/**
|
3 |
-
*
|
4 |
*
|
5 |
* Convention: Simple options like text|select|input|textarea, should always generate only input, without div wrappers
|
6 |
*/
|
@@ -864,32 +865,3 @@ class FW_Option_Type_Select_Multiple extends FW_Option_Type_Select
|
|
864 |
}
|
865 |
}
|
866 |
FW_Option_Type::register('FW_Option_Type_Select_Multiple');
|
867 |
-
|
868 |
-
|
869 |
-
$dir = dirname(__FILE__);
|
870 |
-
|
871 |
-
require $dir .'/option-types/icon/class-fw-option-type-icon.php';
|
872 |
-
require $dir .'/option-types/image-picker/class-fw-option-type-image-picker.php';
|
873 |
-
require $dir .'/option-types/upload/class-fw-option-type-upload.php';
|
874 |
-
require $dir .'/option-types/color-picker/class-fw-option-type-color-picker.php';
|
875 |
-
require $dir .'/option-types/gradient/class-fw-option-type-gradient.php';
|
876 |
-
require $dir .'/option-types/background-image/class-fw-option-type-background-image.php';
|
877 |
-
require $dir .'/option-types/multi/class-fw-option-type-multi.php';
|
878 |
-
require $dir .'/option-types/switch/class-fw-option-type-switch.php';
|
879 |
-
require $dir .'/option-types/typography/class-fw-option-type-typography.php';
|
880 |
-
require $dir .'/option-types/multi-upload/class-fw-option-type-multi-upload.php';
|
881 |
-
require $dir .'/option-types/multi-picker/class-fw-option-type-multi-picker.php';
|
882 |
-
require $dir .'/option-types/wp-editor/class-fw-option-type-wp-editor.php';
|
883 |
-
require $dir .'/option-types/date-picker/class-fw-option-type-wp-date-picker.php';
|
884 |
-
require $dir .'/option-types/addable-option/class-fw-option-type-addable-option.php';
|
885 |
-
require $dir .'/option-types/addable-box/class-fw-option-type-addable-box.php';
|
886 |
-
require $dir .'/option-types/addable-popup/class-fw-option-type-addable-popup.php';
|
887 |
-
require $dir .'/option-types/multi-select/class-fw-option-type-multi-select.php';
|
888 |
-
require $dir .'/option-types/map/class-fw-option-type-map.php';
|
889 |
-
require $dir .'/option-types/datetime-range/class-fw-option-type-datetime-range.php';
|
890 |
-
require $dir .'/option-types/datetime-picker/class-fw-option-type-datetime-picker.php';
|
891 |
-
require $dir .'/option-types/radio-text/class-fw-option-type-radio-text.php';
|
892 |
-
require $dir .'/option-types/popup/class-fw-option-type-popup.php';
|
893 |
-
require $dir .'/option-types/slider/class-fw-option-type-slider.php';
|
894 |
-
require $dir .'/option-types/range-slider/class-fw-option-type-range-slider.php';
|
895 |
-
require $dir .'/option-types/rgba-color-picker/class-fw-option-type-rgba-color-picker.php';
|
1 |
<?php if (!defined('FW')) die('Forbidden');
|
2 |
+
|
3 |
/**
|
4 |
+
* Simple option types (without scripts, styles or views)
|
5 |
*
|
6 |
* Convention: Simple options like text|select|input|textarea, should always generate only input, without div wrappers
|
7 |
*/
|
865 |
}
|
866 |
}
|
867 |
FW_Option_Type::register('FW_Option_Type_Select_Multiple');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
framework/manifest.php
CHANGED
@@ -4,4 +4,4 @@ $manifest = array();
|
|
4 |
|
5 |
$manifest['name'] = __('Unyson', 'fw');
|
6 |
|
7 |
-
$manifest['version'] = '2.2.
|
4 |
|
5 |
$manifest['name'] = __('Unyson', 'fw');
|
6 |
|
7 |
+
$manifest['version'] = '2.2.6';
|
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.2.
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
@@ -86,6 +86,10 @@ Yes; Unyson will work with any theme.
|
|
86 |
|
87 |
== Changelog ==
|
88 |
|
|
|
|
|
|
|
|
|
89 |
= 2.2.5 =
|
90 |
* Fixed [PageBuilder#26](https://github.com/ThemeFuse/Unyson-PageBuilder-Extension/issues/26)
|
91 |
|
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.2.6
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
86 |
|
87 |
== Changelog ==
|
88 |
|
89 |
+
= 2.2.6 =
|
90 |
+
* Fixed [#404](https://github.com/ThemeFuse/Unyson/issues/404)
|
91 |
+
* Added the Translation extension in Available Extensions list
|
92 |
+
|
93 |
= 2.2.5 =
|
94 |
* Fixed [PageBuilder#26](https://github.com/ThemeFuse/Unyson-PageBuilder-Extension/issues/26)
|
95 |
|
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.2.
|
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.2.6
|
7 |
* Author: ThemeFuse
|
8 |
* Author URI: http://themefuse.com
|
9 |
* License: GPL2+
|