Spice Box - Version 1.1.2

Version Description

  1. Added SpicePress child theme name.
Download this release

Release Info

Developer spicethemes
Plugin Icon wp plugin Spice Box
Version 1.1.2
Comparing to
See all releases

Code changes from version 1.1 to 1.1.2

Files changed (2) hide show
  1. readme.txt +8 -2
  2. spicebox.php +6 -6
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: spicethemes
3
  Tags: widget, admin, widgets
4
  Requires at least: 3.3+
5
  Tested up to: 5.2.3
6
- Stable tag: 1.1
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -147,4 +147,10 @@ This plugin create repeater controls in the customizer settings allowing you to
147
  1. Fix Page Editor unexpeccted error due to Jotform Js Confliction
148
 
149
  = 1.1 =
150
- 1. Added Honeypress theme functionality.
 
 
 
 
 
 
3
  Tags: widget, admin, widgets
4
  Requires at least: 3.3+
5
  Tested up to: 5.2.3
6
+ Stable tag: 1.1.2
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
147
  1. Fix Page Editor unexpeccted error due to Jotform Js Confliction
148
 
149
  = 1.1 =
150
+ 1. Added Honeypress theme functionality.
151
+
152
+ = 1.1.1 =
153
+ 1. Minor Update.
154
+
155
+ = 1.1.2 =
156
+ 1. Added SpicePress child theme name.
spicebox.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: SpiceBox
4
  Plugin URI:
5
  Description: Enhances SpiceThemes with extra functionality.
6
- Version: 1.1
7
  Author: Spicethemes
8
  Author URI: https://github.com
9
  Text Domain: spicebox
@@ -13,7 +13,7 @@ define( 'SPICEB_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
13
  error_reporting(0);
14
  function spiceb_activate() {
15
  $theme = wp_get_theme(); // gets the current theme
16
- if ( 'SpicePress' == $theme->name || 'Rockers' == $theme->name || 'Content' == $theme->name || 'Certify' == $theme->name || 'Stacy' == $theme->name || 'SpicePress Child Theme' == $theme->name){
17
  require_once('inc/spicepress/features/feature-slider-section.php');
18
  require_once('inc/spicepress/features/feature-service-section.php');
19
  require_once('inc/spicepress/features/feature-portfolio-section.php');
@@ -26,7 +26,7 @@ function spiceb_activate() {
26
 
27
  }
28
 
29
- if ( 'Honeypress' == $theme->name ){
30
  require_once('inc/honeypress/features/feature-slider-section.php');
31
  require_once('inc/honeypress/features/feature-service-section.php');
32
  require_once('inc/honeypress/features/feature-testimonial-section.php');
@@ -134,7 +134,7 @@ add_action( 'init', 'spiceb_activate' );
134
 
135
 
136
  $theme = wp_get_theme();
137
- if ( 'SpicePress' == $theme->name || 'Rockers' == $theme->name || 'Content' == $theme->name || 'Certify' == $theme->name || 'Stacy' == $theme->name || 'SpicePress Child Theme' == $theme->name || 'Chilly' == $theme->name || 'SpiceBlue' == $theme->name){
138
 
139
 
140
  register_activation_hook( __FILE__, 'spiceb_install_function');
@@ -157,7 +157,7 @@ $item_details_page = get_option('item_details_page');
157
 
158
 
159
  //Honeypress
160
- if ( 'Honeypress' == $theme->name ){
161
  register_activation_hook( __FILE__, 'spiceb_install_function');
162
  function spiceb_install_function()
163
  {
@@ -227,7 +227,7 @@ endif;
227
 
228
 
229
 
230
- if ('SpicePress' == $theme->name || 'Rockers' == $theme->name || 'Content' == $theme->name || 'Certify' == $theme->name || 'Stacy' == $theme->name || 'SpicePress Child Theme' == $theme->name)
231
  {
232
  add_action( 'switch_theme', 'spicepresstheme_deactivate_message' );
233
  function spicepresstheme_deactivate_message()
3
  Plugin Name: SpiceBox
4
  Plugin URI:
5
  Description: Enhances SpiceThemes with extra functionality.
6
+ Version: 1.1.2
7
  Author: Spicethemes
8
  Author URI: https://github.com
9
  Text Domain: spicebox
13
  error_reporting(0);
14
  function spiceb_activate() {
15
  $theme = wp_get_theme(); // gets the current theme
16
+ if ( 'SpicePress' == $theme->name || 'Rockers' == $theme->name || 'Content' == $theme->name || 'Certify' == $theme->name || 'Stacy' == $theme->name || 'SpicePress Child Theme' == $theme->name || 'SpicePress Child' == $theme->name){
17
  require_once('inc/spicepress/features/feature-slider-section.php');
18
  require_once('inc/spicepress/features/feature-service-section.php');
19
  require_once('inc/spicepress/features/feature-portfolio-section.php');
26
 
27
  }
28
 
29
+ if ( 'HoneyPress' == $theme->name ){
30
  require_once('inc/honeypress/features/feature-slider-section.php');
31
  require_once('inc/honeypress/features/feature-service-section.php');
32
  require_once('inc/honeypress/features/feature-testimonial-section.php');
134
 
135
 
136
  $theme = wp_get_theme();
137
+ if ( 'SpicePress' == $theme->name || 'Rockers' == $theme->name || 'Content' == $theme->name || 'Certify' == $theme->name || 'Stacy' == $theme->name || 'SpicePress Child Theme' == $theme->name || 'Chilly' == $theme->name || 'SpiceBlue' == $theme->name || 'SpicePress Child' == $theme->name){
138
 
139
 
140
  register_activation_hook( __FILE__, 'spiceb_install_function');
157
 
158
 
159
  //Honeypress
160
+ if ( 'HoneyPress' == $theme->name ){
161
  register_activation_hook( __FILE__, 'spiceb_install_function');
162
  function spiceb_install_function()
163
  {
227
 
228
 
229
 
230
+ if ('SpicePress' == $theme->name || 'Rockers' == $theme->name || 'Content' == $theme->name || 'Certify' == $theme->name || 'Stacy' == $theme->name || 'SpicePress Child Theme' == $theme->name || 'SpicePress Child' == $theme->name)
231
  {
232
  add_action( 'switch_theme', 'spicepresstheme_deactivate_message' );
233
  function spicepresstheme_deactivate_message()