Spice Box - Version 0.3.1

Version Description

  1. Added Child theme functionality.
Download this release

Release Info

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

Code changes from version 0.3 to 0.3.1

Files changed (2) hide show
  1. readme.txt +5 -1
  2. spicebox.php +12 -23
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: spicethemes
3
  Tags: widget, admin, widgets
4
  Requires at least: 3.3+
5
  Tested up to: 4.9.5
6
- Stable tag: 0.3
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -67,3 +67,7 @@ This plugin create repeater controls in the customizer settings allowing you to
67
  = 0.3 =
68
 
69
  * Disable spicepress theme feedback popup form for security reasons.
 
 
 
 
3
  Tags: widget, admin, widgets
4
  Requires at least: 3.3+
5
  Tested up to: 4.9.5
6
+ Stable tag: 0.3.1
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
67
  = 0.3 =
68
 
69
  * Disable spicepress theme feedback popup form for security reasons.
70
+
71
+ = 0.3.1 =
72
+
73
+ 1. Added Child theme functionality.
spicebox.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: SpiceBox
4
  Plugin URI:
5
  Description: Enhances SpiceThemes with extra functionality.
6
- Version: 0.3
7
  Author: Spicethemes
8
  Author URI: https://github.com
9
  Text Domain: spicebox
@@ -11,13 +11,6 @@ Text Domain: spicebox
11
  define( 'SPICEB_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
12
  define( 'SPICEB_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
13
 
14
- /*function spiceb_spicepress_feedback_scripts() {
15
- wp_register_script('spiceb-custom-script', SPICEB_PLUGIN_URL. '/inc/js/custom-js.js',array('jquery','wp-color-picker'),'1.1', true);
16
- wp_enqueue_script('spiceb-custom-script');
17
- wp_enqueue_style('spiceb_style',SPICEB_PLUGIN_URL.'inc/css/feedback-popup.css');
18
- }
19
- add_action( 'admin_enqueue_scripts', 'spiceb_spicepress_feedback_scripts' );
20
- */
21
  function spiceb_activate() {
22
  $theme = wp_get_theme(); // gets the current theme
23
  if ( 'SpicePress' == $theme->name || 'Rockers' == $theme->name || 'Content' == $theme->name || 'Certify' == $theme->name || 'Stacy' == $theme->name || 'SpicePress Child Theme' == $theme->name){
@@ -32,13 +25,23 @@ function spiceb_activate() {
32
  require_once('inc/spicepress/customizer.php');
33
 
34
  }
 
 
 
 
 
 
 
 
 
 
35
 
36
  }
37
  add_action( 'init', 'spiceb_activate' );
38
 
39
 
40
  $theme = wp_get_theme();
41
- if ( 'SpicePress' == $theme->name || 'Rockers' == $theme->name || 'Content' == $theme->name || 'Certify' == $theme->name || 'Stacy' == $theme->name || 'SpicePress Child Theme' == $theme->name){
42
 
43
 
44
  register_activation_hook( __FILE__, 'spiceb_install_function');
@@ -58,18 +61,4 @@ $item_details_page = get_option('item_details_page');
58
  }
59
 
60
  }
61
-
62
- // User Feedback popup code
63
- /*if ('SpicePress' == $theme->name || 'Rockers' == $theme->name || 'Content' == $theme->name || 'Certify' == $theme->name || 'Stacy' == $theme->name || 'SpicePress Child Theme' == $theme->name)
64
- {
65
- add_action( 'switch_theme', 'spicepresstheme_deactivate_message' );
66
- function spicepresstheme_deactivate_message()
67
- {
68
- $theme = wp_get_theme();
69
- if($theme->template!='spicepress'){
70
- require_once('inc/feedback-pop-up-form.php');
71
- }
72
-
73
- }
74
- }*/
75
  ?>
3
  Plugin Name: SpiceBox
4
  Plugin URI:
5
  Description: Enhances SpiceThemes with extra functionality.
6
+ Version: 0.3.1
7
  Author: Spicethemes
8
  Author URI: https://github.com
9
  Text Domain: spicebox
11
  define( 'SPICEB_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
12
  define( 'SPICEB_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
13
 
 
 
 
 
 
 
 
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){
25
  require_once('inc/spicepress/customizer.php');
26
 
27
  }
28
+
29
+ if ( 'Chilly' == $theme->name){
30
+ require_once('inc/spicepress/features/feature-service-section.php');
31
+ require_once('inc/spicepress/features/feature-portfolio-section.php');
32
+ require_once('inc/spicepress/features/feature-testimonial-section.php');
33
+ require_once('inc/spicepress/sections/spicepress-features-section.php');
34
+ require_once('inc/spicepress/sections/spicepress-portfolio-section.php');
35
+ require_once('inc/spicepress/sections/spicepress-testimonail-section.php');
36
+ require_once('inc/spicepress/customizer.php');
37
+ }
38
 
39
  }
40
  add_action( 'init', 'spiceb_activate' );
41
 
42
 
43
  $theme = wp_get_theme();
44
+ if ( 'SpicePress' == $theme->name || 'Rockers' == $theme->name || 'Content' == $theme->name || 'Certify' == $theme->name || 'Stacy' == $theme->name || 'SpicePress Child Theme' == $theme->name || 'Chilly' == $theme->name){
45
 
46
 
47
  register_activation_hook( __FILE__, 'spiceb_install_function');
61
  }
62
 
63
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
64
  ?>