Version Description
- Added Theme Name
- Added Overlay setting for slider and testimonial.
Download this release
Release Info
Developer | spicethemes |
Plugin | Spice Box |
Version | 0.2.5 |
Comparing to | |
See all releases |
Code changes from version 0.2.4 to 0.2.5
- inc/spicepress/features/feature-slider-section.php +25 -0
- inc/spicepress/features/feature-testimonial-section.php +26 -0
- inc/spicepress/sections/spicepress-features-section.php +2 -1
- inc/spicepress/sections/spicepress-portfolio-section.php +3 -1
- inc/spicepress/sections/spicepress-slider-section.php +8 -2
- inc/spicepress/sections/spicepress-testimonail-section.php +6 -4
- readme.txt +7 -2
- spicebox.php +3 -3
inc/spicepress/features/feature-slider-section.php
CHANGED
@@ -40,6 +40,31 @@ $selective_refresh = isset( $wp_customize->selective_refresh ) ? 'postMessage' :
|
|
40 |
)
|
41 |
);
|
42 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
43 |
|
44 |
// Slider title
|
45 |
$wp_customize->add_setting( 'home_slider_title',array(
|
40 |
)
|
41 |
);
|
42 |
|
43 |
+
// Image overlay
|
44 |
+
$wp_customize->add_setting( 'slider_image_overlay', array(
|
45 |
+
'default' => true,
|
46 |
+
'sanitize_callback' => 'sanitize_text_field',
|
47 |
+
) );
|
48 |
+
|
49 |
+
$wp_customize->add_control('slider_image_overlay', array(
|
50 |
+
'label' => __('Enable slider image overlay', 'spicepress' ),
|
51 |
+
'section' => 'slider_section',
|
52 |
+
'type' => 'checkbox',
|
53 |
+
) );
|
54 |
+
|
55 |
+
|
56 |
+
//Slider Background Overlay Color
|
57 |
+
$wp_customize->add_setting( 'slider_overlay_section_color', array(
|
58 |
+
'sanitize_callback' => 'sanitize_text_field',
|
59 |
+
'default' => 'rgba(0,0,0,0.30)',
|
60 |
+
) );
|
61 |
+
|
62 |
+
$wp_customize->add_control(new SpicePress_Customize_Alpha_Color_Control( $wp_customize,'slider_overlay_section_color', array(
|
63 |
+
'label' => __('Slider image overlay color','spicepress' ),
|
64 |
+
'palette' => true,
|
65 |
+
'section' => 'slider_section')
|
66 |
+
) );
|
67 |
+
|
68 |
|
69 |
// Slider title
|
70 |
$wp_customize->add_setting( 'home_slider_title',array(
|
inc/spicepress/features/feature-testimonial-section.php
CHANGED
@@ -32,6 +32,32 @@ $selective_refresh = isset( $wp_customize->selective_refresh ) ? 'postMessage' :
|
|
32 |
'section' => 'testimonial_section',
|
33 |
'settings' => 'testimonial_callout_background',
|
34 |
) ) );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
35 |
|
36 |
// testimonial section title
|
37 |
$wp_customize->add_setting( 'home_testimonial_section_title',array(
|
32 |
'section' => 'testimonial_section',
|
33 |
'settings' => 'testimonial_callout_background',
|
34 |
) ) );
|
35 |
+
|
36 |
+
// Image overlay
|
37 |
+
$wp_customize->add_setting( 'testimonial_image_overlay', array(
|
38 |
+
'default' => true,
|
39 |
+
'sanitize_callback' => 'sanitize_text_field',
|
40 |
+
) );
|
41 |
+
|
42 |
+
$wp_customize->add_control('testimonial_image_overlay', array(
|
43 |
+
'label' => __('Enable testimonial image overlay', 'spicepress' ),
|
44 |
+
'section' => 'testimonial_section',
|
45 |
+
'type' => 'checkbox',
|
46 |
+
) );
|
47 |
+
|
48 |
+
|
49 |
+
//Testimonial Background Overlay Color
|
50 |
+
$wp_customize->add_setting( 'testimonial_overlay_section_color', array(
|
51 |
+
'sanitize_callback' => 'sanitize_text_field',
|
52 |
+
'default' => 'rgba(0,0,0,0.85)',
|
53 |
+
) );
|
54 |
+
|
55 |
+
$wp_customize->add_control(new SpicePress_Customize_Alpha_Color_Control( $wp_customize,'testimonial_overlay_section_color', array(
|
56 |
+
'label' => __('Testimonial image overlay color','spicepress' ),
|
57 |
+
'palette' => true,
|
58 |
+
'section' => 'testimonial_section')
|
59 |
+
) );
|
60 |
+
|
61 |
|
62 |
// testimonial section title
|
63 |
$wp_customize->add_setting( 'home_testimonial_section_title',array(
|
inc/spicepress/sections/spicepress-features-section.php
CHANGED
@@ -13,10 +13,11 @@ if ( ! function_exists( 'spiceb_spicepress_service' ) ) :
|
|
13 |
$section_is_empty = empty( $spicepress_service_content ) && empty( $home_service_section_discription ) && empty( $home_service_section_title );
|
14 |
if($home_service_section_enabled !='off')
|
15 |
{
|
16 |
-
|
17 |
<!-- Section Title -->
|
18 |
<section class="service-section">
|
19 |
<div class="container">
|
|
|
20 |
<div class="row">
|
21 |
<div class="col-md-12">
|
22 |
<div class="section-header">
|
13 |
$section_is_empty = empty( $spicepress_service_content ) && empty( $home_service_section_discription ) && empty( $home_service_section_title );
|
14 |
if($home_service_section_enabled !='off')
|
15 |
{
|
16 |
+
?>
|
17 |
<!-- Section Title -->
|
18 |
<section class="service-section">
|
19 |
<div class="container">
|
20 |
+
<?php if( ($home_service_section_title) || ($home_service_section_discription)!='' ) { ?>
|
21 |
<div class="row">
|
22 |
<div class="col-md-12">
|
23 |
<div class="section-header">
|
inc/spicepress/sections/spicepress-portfolio-section.php
CHANGED
@@ -26,6 +26,7 @@ if ( ! function_exists( 'spiceb_spicepress_portfolio' ) ) :
|
|
26 |
<section class="portfolio-section">
|
27 |
<div class="container">
|
28 |
|
|
|
29 |
<!-- Section Title -->
|
30 |
<div class="row">
|
31 |
<div class="col-md-12">
|
@@ -36,7 +37,8 @@ if ( ! function_exists( 'spiceb_spicepress_portfolio' ) ) :
|
|
36 |
</div>
|
37 |
</div>
|
38 |
</div>
|
39 |
-
<!-- /Section Title -->
|
|
|
40 |
|
41 |
<!-- Item Scroll -->
|
42 |
<div class="row">
|
26 |
<section class="portfolio-section">
|
27 |
<div class="container">
|
28 |
|
29 |
+
<?php if( ($home_portfolio_section_title) || ($home_portfolio_section_discription)!='' ) { ?>
|
30 |
<!-- Section Title -->
|
31 |
<div class="row">
|
32 |
<div class="col-md-12">
|
37 |
</div>
|
38 |
</div>
|
39 |
</div>
|
40 |
+
<!-- /Section Title -->
|
41 |
+
<?php } ?>
|
42 |
|
43 |
<!-- Item Scroll -->
|
44 |
<div class="row">
|
inc/spicepress/sections/spicepress-slider-section.php
CHANGED
@@ -19,10 +19,16 @@ if ( ! function_exists( 'spiceb_spicepress_slider' ) ) :
|
|
19 |
?>
|
20 |
<section class="slider" style="position:relative;">
|
21 |
<div class="item" style="background-image:url(<?php echo $home_slider_image; ?>); width: 100%; height: 90vh; background-position: center center; background-size: cover; z-index: 0;" >
|
|
|
|
|
|
|
|
|
|
|
22 |
<div class="container">
|
23 |
<div class="format-standard">
|
24 |
-
<?php if
|
25 |
<div class="slide-text-bg1">
|
|
|
26 |
<h1><?php echo $home_slider_title; ?></h1>
|
27 |
<?php }
|
28 |
if ( ! empty( $home_slider_discription ) || is_customize_preview() ) {
|
@@ -30,7 +36,7 @@ if ( ! function_exists( 'spiceb_spicepress_slider' ) ) :
|
|
30 |
<p><?php echo $home_slider_discription; ?></p>
|
31 |
<?php } ?>
|
32 |
</div>
|
33 |
-
<?php if($home_slider_btn_txt) { ?>
|
34 |
<div class="slide-btn-area-sm">
|
35 |
<a <?php if($home_slider_btn_link) { ?> href="<?php echo $home_slider_btn_link; } ?>"
|
36 |
<?php if($home_slider_btn_target) { ?> target="_blank" <?php } ?> class="slide-btn-sm">
|
19 |
?>
|
20 |
<section class="slider" style="position:relative;">
|
21 |
<div class="item" style="background-image:url(<?php echo $home_slider_image; ?>); width: 100%; height: 90vh; background-position: center center; background-size: cover; z-index: 0;" >
|
22 |
+
<?php $slider_image_overlay = get_theme_mod('slider_image_overlay',true);
|
23 |
+
$slider_overlay_section_color = get_theme_mod('slider_overlay_section_color','rgba(0,0,0,0.30)');
|
24 |
+
if($slider_image_overlay != false) { ?>
|
25 |
+
<div class="overlay" style="background-color:<?php echo $slider_overlay_section_color;?>"></div>
|
26 |
+
<?php } ?>
|
27 |
<div class="container">
|
28 |
<div class="format-standard">
|
29 |
+
<?php if( ($home_slider_title) || ($home_slider_discription)!='' ) { ?>
|
30 |
<div class="slide-text-bg1">
|
31 |
+
<?php if ( ! empty( $home_slider_title ) || is_customize_preview() ) { ?>
|
32 |
<h1><?php echo $home_slider_title; ?></h1>
|
33 |
<?php }
|
34 |
if ( ! empty( $home_slider_discription ) || is_customize_preview() ) {
|
36 |
<p><?php echo $home_slider_discription; ?></p>
|
37 |
<?php } ?>
|
38 |
</div>
|
39 |
+
<?php } if($home_slider_btn_txt) { ?>
|
40 |
<div class="slide-btn-area-sm">
|
41 |
<a <?php if($home_slider_btn_link) { ?> href="<?php echo $home_slider_btn_link; } ?>"
|
42 |
<?php if($home_slider_btn_target) { ?> target="_blank" <?php } ?> class="slide-btn-sm">
|
inc/spicepress/sections/spicepress-testimonail-section.php
CHANGED
@@ -14,10 +14,12 @@ if($testimonial_callout_background != '') { ?>
|
|
14 |
<section class="testimonial-section" style="background-image:url('<?php echo esc_url($testimonial_callout_background);?>'); background-repeat: no-repeat; background-position: top left;">
|
15 |
<?php } else { ?>
|
16 |
<section class="testimonial-section">
|
17 |
-
<?php }
|
18 |
-
|
19 |
-
|
20 |
-
|
|
|
|
|
21 |
<?php
|
22 |
$home_testimonial_section_title = get_theme_mod('home_testimonial_section_title',__('What People Say','spicepress'));
|
23 |
$home_testimonial_section_discription = get_theme_mod('home_testimonial_section_discription','Sea summo mazim ex, ea errem eleifend definitionem vim. Ut nec hinc dolor possim mei ludus efficiendi ei sea summo mazim ex.');
|
14 |
<section class="testimonial-section" style="background-image:url('<?php echo esc_url($testimonial_callout_background);?>'); background-repeat: no-repeat; background-position: top left;">
|
15 |
<?php } else { ?>
|
16 |
<section class="testimonial-section">
|
17 |
+
<?php }
|
18 |
+
$testimonial_overlay_section_color = get_theme_mod('testimonial_overlay_section_color','rgba(0,0,0,0.85)');
|
19 |
+
$testimonial_image_overlay = get_theme_mod('testimonial_image_overlay',true);
|
20 |
+
?>
|
21 |
+
<div class="overlay"<?php if($testimonial_image_overlay != false) { ?>style="background-color:<?php echo $testimonial_overlay_section_color; } ?>">
|
22 |
+
<div class="container">
|
23 |
<?php
|
24 |
$home_testimonial_section_title = get_theme_mod('home_testimonial_section_title',__('What People Say','spicepress'));
|
25 |
$home_testimonial_section_discription = get_theme_mod('home_testimonial_section_discription','Sea summo mazim ex, ea errem eleifend definitionem vim. Ut nec hinc dolor possim mei ludus efficiendi ei sea summo mazim ex.');
|
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.1
|
6 |
-
Stable tag: 0.2.
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
@@ -40,4 +40,9 @@ This plugin create repeater controls in the customizer settings allowing you to
|
|
40 |
|
41 |
= 0.2.4 =
|
42 |
|
43 |
-
* Added Theme Name
|
|
|
|
|
|
|
|
|
|
3 |
Tags: widget, admin, widgets
|
4 |
Requires at least: 3.3+
|
5 |
Tested up to: 4.9.1
|
6 |
+
Stable tag: 0.2.5
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
40 |
|
41 |
= 0.2.4 =
|
42 |
|
43 |
+
* Added Theme Name
|
44 |
+
|
45 |
+
= 0.2.5 =
|
46 |
+
|
47 |
+
* Added Theme Name
|
48 |
+
* Added Overlay setting for slider and testimonial.
|
spicebox.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: SpiceBox
|
4 |
Plugin URI:
|
5 |
Description: Enhances SpiceThemes with extra functionality.
|
6 |
-
Version: 0.2.
|
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 |
|
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){
|
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');
|
@@ -31,7 +31,7 @@ add_action( 'init', 'spiceb_activate' );
|
|
31 |
|
32 |
|
33 |
$theme = wp_get_theme();
|
34 |
-
if ( 'SpicePress' == $theme->name || 'Rockers' == $theme->name || 'Content' == $theme->name || 'Certify' == $theme->name){
|
35 |
|
36 |
|
37 |
register_activation_hook( __FILE__, 'spiceb_install_function');
|
3 |
Plugin Name: SpiceBox
|
4 |
Plugin URI:
|
5 |
Description: Enhances SpiceThemes with extra functionality.
|
6 |
+
Version: 0.2.5
|
7 |
Author: Spicethemes
|
8 |
Author URI: https://github.com
|
9 |
Text Domain: spicebox
|
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){
|
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');
|
31 |
|
32 |
|
33 |
$theme = wp_get_theme();
|
34 |
+
if ( 'SpicePress' == $theme->name || 'Rockers' == $theme->name || 'Content' == $theme->name || 'Certify' == $theme->name || 'Stacy' == $theme->name){
|
35 |
|
36 |
|
37 |
register_activation_hook( __FILE__, 'spiceb_install_function');
|