Unyson - Version 2.1.1

Version Description

  • Added the FW_Extension::(get|set)_db_(settings_option|data)() methods
  • Added README.md for Github
Download this release

Release Info

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

Code changes from version 2.1.0 to 2.1.1

README.md ADDED
@@ -0,0 +1,58 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Unyson Framework
2
+
3
+ [Unyson](http://unyson.themefuse.com/) is a framework for [WordPress](http://wordpress.org/) that facilitates development of a theme.
4
+
5
+ This framework was created from the ground up by the team behind [ThemeFuse](http://themefuse.com/) from the desire to empower developers to build outstanding WordPress themes fast and easy.
6
+
7
+ To get started, check out http://unyson.themefuse.com/!
8
+
9
+ If you are not a developer, please use the [Unyson plugin page](https://wordpress.org/plugins/unyson/) on WordPress.org.
10
+
11
+ ## Table of contents
12
+
13
+ * [Installation](#installation)
14
+ * [Bug reports](#bug-reports)
15
+ * [Documentation](#documentation)
16
+ * [Copyright and license](#copyright-and-license)
17
+ * [Contributing to Unyson](#contributing)
18
+
19
+ ## Installation
20
+
21
+ 1. [Download the latest release](https://github.com/ThemeFuse/Unyson/releases/latest)
22
+ 2. Extract the archive to the `/wp-content/plugins/unyson/` directory
23
+ 3. Activate the Unyson plugin through the 'Plugins' menu in WordPress
24
+ 4. Configure the plugin by going to the Unyson menu that appears in your admin menu
25
+
26
+ ## Bug reports
27
+
28
+ We strive to make Unyson Development to be awesome and user friendly, though sometimes it's impossible to avoid bugs.
29
+ A bug means "something is broken" or is not working as it should.
30
+
31
+ In order to offer you an effective support and fix for an issue, please follow the below guidelines before submitting a bug report:
32
+
33
+ #### Explore Known Issues
34
+
35
+ Has your issue already been reported? Check the [Issues page](https://github.com/ThemeFuse/Unyson/issues).
36
+
37
+ If your issue has already been reported, great! It will be reviewed in an upcoming release.
38
+
39
+ #### Submitting a Bug Report
40
+
41
+ You can report the issue via [Issues page](https://github.com/ThemeFuse/Unyson/issues).
42
+ A good bug report includes full details to easily understand the issue you are having.
43
+
44
+ ## Documentation
45
+
46
+ Unyson's documentation is available on http://unyson-docs.themefuse.com/.
47
+
48
+ ## Copyright and license
49
+
50
+ Code and documentation copyright 2014 ThemeFuse LTD. Code released under [the GPL license](https://github.com/ThemeFuse/Unyson/blob/master/LICENSE). Docs released under [Creative Commons](https://github.com/ThemeFuse/Unyson-Documentation/blob/master/LICENSE).
51
+
52
+ ## Contributing
53
+
54
+ Developers can contribute to the source code. Please read our [contributor guidelines](https://github.com/ThemeFuse/Unyson/blob/master/CONTRIBUTING.md) for more information how you can do this.
55
+
56
+ Translators can contribute new languages to Unyson through [Transifex](https://www.transifex.com/projects/p/unyson/).
57
+
58
+ If you have an idea for Unyson, see the [Trello board](https://trello.com/b/Xm9TxasH/unyson-development).
framework/core/extends/class-fw-extension.php CHANGED
@@ -432,6 +432,52 @@ abstract class FW_Extension
432
  }
433
  }
434
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
435
  final public function get_post_options($post_type)
436
  {
437
  return $this->get_options('posts/'. $post_type);
432
  }
433
  }
434
 
435
+ /**
436
+ * Get extension's settings option value from the database
437
+ *
438
+ * @param string|null $option_id
439
+ * @param null|mixed $default_value If no option found in the database, this value will be returned
440
+ * @param null|bool $get_original_value Original value is that with no translations and other changes
441
+ *
442
+ * @return mixed|null
443
+ */
444
+ final public function get_db_settings_option( $option_id = null, $default_value = null, $get_original_value = null ) {
445
+ return fw_get_db_ext_settings_option( $this->get_name(), $option_id, $default_value, $get_original_value );
446
+ }
447
+
448
+ /**
449
+ * Set extension's setting option value in database
450
+ *
451
+ * @param string|null $option_id
452
+ * @param mixed $value
453
+ */
454
+ final public function set_db_settings_option( $option_id = null, $value ) {
455
+ fw_set_db_ext_settings_option( $this->get_name(), $option_id, $value );
456
+ }
457
+
458
+ /**
459
+ * Get extension's data from the database
460
+ *
461
+ * @param string|null $multi_key The key of the data you want to get. null - all data
462
+ * @param null|mixed $default_value If no option found in the database, this value will be returned
463
+ * @param null|bool $get_original_value Original value is that with no translations and other changes
464
+ *
465
+ * @return mixed|null
466
+ */
467
+ final public function get_db_data( $multi_key = null, $default_value = null, $get_original_value = null ) {
468
+ return fw_get_db_extension_data( $this->get_name(), $multi_key, $default_value, $get_original_value );
469
+ }
470
+
471
+ /**
472
+ * Set some extension's data in database
473
+ *
474
+ * @param string|null $multi_key The key of the data you want to set. null - all data
475
+ * @param mixed $value
476
+ */
477
+ final public function set_db_data( $multi_key = null, $value ) {
478
+ fw_set_db_extension_data( $this->get_name(), $multi_key, $value );
479
+ }
480
+
481
  final public function get_post_options($post_type)
482
  {
483
  return $this->get_options('posts/'. $post_type);
framework/manifest.php CHANGED
@@ -4,4 +4,4 @@ $manifest = array();
4
 
5
  $manifest['name'] = __('Unyson', 'fw');
6
 
7
- $manifest['version'] = '2.1.0';
4
 
5
  $manifest['name'] = __('Unyson', 'fw');
6
 
7
+ $manifest['version'] = '2.1.1';
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
4
  Requires at least: 4.0.0
5
  Tested up to: 4.0.1
6
- Stable tag: 2.1.0
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -82,6 +82,10 @@ Yes; Unyson will work with any theme.
82
 
83
  == Changelog ==
84
 
 
 
 
 
85
  = 2.1.0 =
86
  * Moved major theme functionality from `framework-customizations/theme/` to https://github.com/ThemeFuse/Theme-Includes , because the theme must work when the plugin is not installed.
87
  * Removed deprecated usage of the `FW_Option_Type::_render()` for enqueue scripts and style, use `FW_Option_Type::_enqueue_static()` for that
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
4
  Requires at least: 4.0.0
5
  Tested up to: 4.0.1
6
+ Stable tag: 2.1.1
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
82
 
83
  == Changelog ==
84
 
85
+ = 2.1.1 =
86
+ * Added the `FW_Extension::(get|set)_db_(settings_option|data)()` methods
87
+ * Added README.md for Github
88
+
89
  = 2.1.0 =
90
  * Moved major theme functionality from `framework-customizations/theme/` to https://github.com/ThemeFuse/Theme-Includes , because the theme must work when the plugin is not installed.
91
  * Removed deprecated usage of the `FW_Option_Type::_render()` for enqueue scripts and style, use `FW_Option_Type::_enqueue_static()` for that
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.0
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.1
7
  * Author: ThemeFuse
8
  * Author URI: http://themefuse.com
9
  * License: GPL2+