Hueman Addons - Version 2.0.1

Version Description

: December 18th, 2016 = * fixed : php compatibility issue

Download this release

Release Info

Developer nikeo
Plugin Icon 128x128 Hueman Addons
Version 2.0.1
Comparing to
See all releases

Code changes from version 2.0.0 to 2.0.1

Files changed (4) hide show
  1. ha-fire.php +1 -1
  2. inc/skop/czr-skop.php +12 -7
  3. lang/en_US.po +1 -1
  4. readme.txt +4 -1
ha-fire.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Hueman Addons
4
  * Plugin URI: http://presscustomizr.com
5
  * Description: Hueman Theme Addons
6
- * Version: 2.0.0
7
  * Text Domain: hueman-addons
8
  * Author: Press Customizr
9
  * Author URI: http://presscustomizr.com
3
  * Plugin Name: Hueman Addons
4
  * Plugin URI: http://presscustomizr.com
5
  * Description: Hueman Theme Addons
6
+ * Version: 2.0.1
7
  * Text Domain: hueman-addons
8
  * Author: Press Customizr
9
  * Author URI: http://presscustomizr.com
inc/skop/czr-skop.php CHANGED
@@ -1627,6 +1627,8 @@ if ( ! class_exists( 'HA_Skop_Cust_Prev' ) ) :
1627
  $skopes = array();
1628
  $_meta_type = ha_get_skope( 'meta_type', true );
1629
  $defaults = _ha_get_default_scope_model();
 
 
1630
  $skopes[] = wp_parse_args(
1631
  array(
1632
  'title' => ha_get_skope_title( 'global' ),
@@ -1637,14 +1639,15 @@ if ( ! class_exists( 'HA_Skop_Cust_Prev' ) ) :
1637
  'opt_name' => HU_THEME_OPTIONS,
1638
  'is_winner' => false,
1639
  'is_primary' => true,
1640
- 'has_db_val' => ! empty( $this -> _ha_get_sanitized_skoped_saved_global_options() ),
1641
- 'db' => $this -> _ha_get_sanitized_skoped_saved_global_options(),
1642
  'changeset' => $this -> _ha_get_api_ready_skope_changeset( array( 'level' => 'global', 'skope_meta_key' => '' ) )
1643
  ),
1644
  $defaults
1645
  );
1646
  if ( ha_get_skope('meta_type') ) {
1647
  $group_opt_name = HA_SKOP_OPT() -> ha_get_skope_opt_name( 'group' );
 
1648
  $skopes[] = wp_parse_args(
1649
  array(
1650
  'title' => ha_get_skope_title( 'group', $_meta_type ),
@@ -1655,12 +1658,13 @@ if ( ! class_exists( 'HA_Skop_Cust_Prev' ) ) :
1655
  'opt_name' => $group_opt_name,
1656
  'db' => $this -> _ha_get_api_ready_skope_db_option( array( 'level' => 'group', 'skope_meta_key' => $group_opt_name ) ),
1657
  'changeset' => $this -> _ha_get_api_ready_skope_changeset( array( 'level' => 'group', 'skope_meta_key' => $group_opt_name ) ),
1658
- 'has_db_val' => ! empty( HA_SKOP_OPT() -> ha_get_skope_opt( 'group', $group_opt_name ) )
1659
  ),
1660
  $defaults
1661
  );
1662
  }
1663
  $loc_opt_name = HA_SKOP_OPT() -> ha_get_skope_opt_name( 'local');
 
1664
  $skopes[] = wp_parse_args(
1665
  array(
1666
  'title' => ha_get_skope_title( 'local', $_meta_type ),
@@ -1673,7 +1677,7 @@ if ( ! class_exists( 'HA_Skop_Cust_Prev' ) ) :
1673
  'db' => $this -> _ha_get_api_ready_skope_db_option( array( 'level' =>'local', 'skope_meta_key' => $loc_opt_name ) ),
1674
  'changeset' => $this -> _ha_get_api_ready_skope_changeset( array( 'level' => 'local', 'skope_meta_key' => $loc_opt_name ) ),
1675
  'is_winner' => true,
1676
- 'has_db_val' => ! empty( HA_SKOP_OPT() -> ha_get_skope_opt( 'local', $loc_opt_name ) )
1677
  ),
1678
  $defaults
1679
  );
@@ -2563,16 +2567,17 @@ if ( ! class_exists( 'HA_Skop_Option_Preview' ) ) :
2563
  }
2564
  function ha_get_skope_opt_name( $level = 'local', $special = '' ) {
2565
  $name = '__not_available__';
 
2566
  switch ($level) {
2567
  case 'local':
2568
  $name = strtolower( THEMENAME . '_czr_' . ha_get_skope() );
2569
  break;
2570
  case 'group' :
2571
- if ( ! empty( ha_get_skope('type') ) )
2572
- $name = strtolower( THEMENAME . '_czr_all_' . ha_get_skope('type') );
2573
  break;
2574
  case 'special_group' :
2575
- $name = strtolower( THEMENAME . '_czr_all_' . ha_get_skope('type') . $special );
2576
  break;
2577
  case 'global':
2578
  $name = HU_THEME_OPTIONS;
1627
  $skopes = array();
1628
  $_meta_type = ha_get_skope( 'meta_type', true );
1629
  $defaults = _ha_get_default_scope_model();
1630
+
1631
+ $saved_glob_opt = $this -> _ha_get_sanitized_skoped_saved_global_options();
1632
  $skopes[] = wp_parse_args(
1633
  array(
1634
  'title' => ha_get_skope_title( 'global' ),
1639
  'opt_name' => HU_THEME_OPTIONS,
1640
  'is_winner' => false,
1641
  'is_primary' => true,
1642
+ 'has_db_val' => ! empty( $saved_glob_opt ),
1643
+ 'db' => $saved_glob_opt,
1644
  'changeset' => $this -> _ha_get_api_ready_skope_changeset( array( 'level' => 'global', 'skope_meta_key' => '' ) )
1645
  ),
1646
  $defaults
1647
  );
1648
  if ( ha_get_skope('meta_type') ) {
1649
  $group_opt_name = HA_SKOP_OPT() -> ha_get_skope_opt_name( 'group' );
1650
+ $group_opts = HA_SKOP_OPT() -> ha_get_skope_opt( 'group', $group_opt_name );
1651
  $skopes[] = wp_parse_args(
1652
  array(
1653
  'title' => ha_get_skope_title( 'group', $_meta_type ),
1658
  'opt_name' => $group_opt_name,
1659
  'db' => $this -> _ha_get_api_ready_skope_db_option( array( 'level' => 'group', 'skope_meta_key' => $group_opt_name ) ),
1660
  'changeset' => $this -> _ha_get_api_ready_skope_changeset( array( 'level' => 'group', 'skope_meta_key' => $group_opt_name ) ),
1661
+ 'has_db_val' => ! empty( $group_opts )
1662
  ),
1663
  $defaults
1664
  );
1665
  }
1666
  $loc_opt_name = HA_SKOP_OPT() -> ha_get_skope_opt_name( 'local');
1667
+ $local_opts = HA_SKOP_OPT() -> ha_get_skope_opt( 'local', $loc_opt_name );
1668
  $skopes[] = wp_parse_args(
1669
  array(
1670
  'title' => ha_get_skope_title( 'local', $_meta_type ),
1677
  'db' => $this -> _ha_get_api_ready_skope_db_option( array( 'level' =>'local', 'skope_meta_key' => $loc_opt_name ) ),
1678
  'changeset' => $this -> _ha_get_api_ready_skope_changeset( array( 'level' => 'local', 'skope_meta_key' => $loc_opt_name ) ),
1679
  'is_winner' => true,
1680
+ 'has_db_val' => ! empty( $local_opts )
1681
  ),
1682
  $defaults
1683
  );
2567
  }
2568
  function ha_get_skope_opt_name( $level = 'local', $special = '' ) {
2569
  $name = '__not_available__';
2570
+ $skp_type = ha_get_skope('type');
2571
  switch ($level) {
2572
  case 'local':
2573
  $name = strtolower( THEMENAME . '_czr_' . ha_get_skope() );
2574
  break;
2575
  case 'group' :
2576
+ if ( ! empty( $skp_type ) )
2577
+ $name = strtolower( THEMENAME . '_czr_all_' . $skp_type );
2578
  break;
2579
  case 'special_group' :
2580
+ $name = strtolower( THEMENAME . '_czr_all_' . $skp_type . $special );
2581
  break;
2582
  case 'global':
2583
  $name = HU_THEME_OPTIONS;
lang/en_US.po CHANGED
@@ -1,6 +1,6 @@
1
  msgid ""
2
  msgstr ""
3
- "Project-Id-Version: Hueman Addons v2.0.0\n"
4
  "POT-Creation-Date: 2016-05-05 14:53+0200\n"
5
  "PO-Revision-Date: 2016-05-05 14:53+0200\n"
6
  "Last-Translator: \n"
1
  msgid ""
2
  msgstr ""
3
+ "Project-Id-Version: Hueman Addons v2.0.1\n"
4
  "POT-Creation-Date: 2016-05-05 14:53+0200\n"
5
  "PO-Revision-Date: 2016-05-05 14:53+0200\n"
6
  "Last-Translator: \n"
readme.txt CHANGED
@@ -5,7 +5,7 @@ Plugin URI: https://wordpress.org/plugins/hueman-addons/
5
  Tags: hueman theme, hueman
6
  Requires at least: 3.4
7
  Tested up to: 4.7
8
- Stable tag: 2.0.0
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -37,6 +37,9 @@ The plugin has been designed specifically for the Hueman WordPress theme. Lightw
37
 
38
 
39
  == Changelog ==
 
 
 
40
  = 2.0.0 : December 16th, 2016 =
41
  * added : new customizer interface. Requires WP 4.7+ and Hueman v3.3.0
42
 
5
  Tags: hueman theme, hueman
6
  Requires at least: 3.4
7
  Tested up to: 4.7
8
+ Stable tag: 2.0.1
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
37
 
38
 
39
  == Changelog ==
40
+ = 2.0.1 : December 18th, 2016 =
41
+ * fixed : php compatibility issue
42
+
43
  = 2.0.0 : December 16th, 2016 =
44
  * added : new customizer interface. Requires WP 4.7+ and Hueman v3.3.0
45