Version Description
- Added variations for the CloudPress Business theme.
=====External resources=====
Alpha color picker Control: Copyright: (c) 2016 Codeinwp cristian-ungureanu License: MIT License Source: https://github.com/Codeinwp/customizer-controls/tree/master/customizer-alpha-color-picker
Repeater Control: Copyright: (c) 2016 Codeinwp cristian-ungureanu License: MIT license Source: https://github.com/Codeinwp/customizer-controls/tree/master/customizer-repeater
==========
Download this release
Release Info
Developer | spicethemes |
Plugin | Spice Box |
Version | 1.3.4 |
Comparing to | |
See all releases |
Code changes from version 1.3.3 to 1.3.4
- inc/cloudpress/default-pages/upload-media.php +23 -4
- inc/cloudpress/images/cloudpress-business.png +0 -0
- inc/cloudpress/sections/cloudpress-service-section.php +26 -23
- inc/cloudpress/sections/cloudpress-testimonail-section.php +48 -34
- languages/spicebox.pot +6 -6
- readme.txt +13 -10
- spicebox.php +60 -60
inc/cloudpress/default-pages/upload-media.php
CHANGED
@@ -1,12 +1,17 @@
|
|
1 |
<?php
|
2 |
|
3 |
$ImagePath = SPICEB_PLUGIN_URL .'inc/cloudpress/images';
|
4 |
-
$theme = wp_get_theme();
|
5 |
if ('CloudPress Agency' == $theme->name){
|
6 |
$images = array(
|
7 |
$ImagePath. '/cloudpress-agency.png',
|
8 |
);
|
9 |
}
|
|
|
|
|
|
|
|
|
|
|
10 |
else{
|
11 |
$images = array(
|
12 |
$ImagePath. '/logo.png',
|
@@ -25,7 +30,7 @@ foreach($images as $name) {
|
|
25 |
'post_status' => 'inherit'
|
26 |
);
|
27 |
$ImageId[] = $attachment_id = wp_insert_attachment( $attachment, $upload_file['file'], $parent_post_id );
|
28 |
-
|
29 |
if (!is_wp_error($attachment_id)) {
|
30 |
require_once(ABSPATH . "wp-admin" . '/includes/image.php');
|
31 |
$attachment_data = wp_generate_attachment_metadata( $attachment_id, $upload_file['file'] );
|
@@ -35,6 +40,20 @@ foreach($images as $name) {
|
|
35 |
}
|
36 |
update_option( 'innofit_media_id', $ImageId );
|
37 |
$MediaId = get_option('innofit_media_id');
|
38 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
39 |
set_theme_mod( 'header_textcolor', "blank" );
|
40 |
-
?>
|
1 |
<?php
|
2 |
|
3 |
$ImagePath = SPICEB_PLUGIN_URL .'inc/cloudpress/images';
|
4 |
+
$theme = wp_get_theme();
|
5 |
if ('CloudPress Agency' == $theme->name){
|
6 |
$images = array(
|
7 |
$ImagePath. '/cloudpress-agency.png',
|
8 |
);
|
9 |
}
|
10 |
+
else if ('CloudPress Business' == $theme->name){
|
11 |
+
$images = array(
|
12 |
+
$ImagePath. '/cloudpress-business.png',
|
13 |
+
);
|
14 |
+
}
|
15 |
else{
|
16 |
$images = array(
|
17 |
$ImagePath. '/logo.png',
|
30 |
'post_status' => 'inherit'
|
31 |
);
|
32 |
$ImageId[] = $attachment_id = wp_insert_attachment( $attachment, $upload_file['file'], $parent_post_id );
|
33 |
+
|
34 |
if (!is_wp_error($attachment_id)) {
|
35 |
require_once(ABSPATH . "wp-admin" . '/includes/image.php');
|
36 |
$attachment_data = wp_generate_attachment_metadata( $attachment_id, $upload_file['file'] );
|
40 |
}
|
41 |
update_option( 'innofit_media_id', $ImageId );
|
42 |
$MediaId = get_option('innofit_media_id');
|
43 |
+
if ('CloudPress Business' == $theme->name)
|
44 |
+
{
|
45 |
+
if( function_exists( 'the_custom_logo' ) ) {
|
46 |
+
if(has_custom_logo()) {
|
47 |
+
the_custom_logo();
|
48 |
+
}
|
49 |
+
else {
|
50 |
+
set_theme_mod( 'custom_logo', $MediaId[0] );
|
51 |
+
}
|
52 |
+
}
|
53 |
+
}
|
54 |
+
else
|
55 |
+
{
|
56 |
+
set_theme_mod( 'custom_logo', $MediaId[0] );
|
57 |
+
}
|
58 |
set_theme_mod( 'header_textcolor', "blank" );
|
59 |
+
?>
|
inc/cloudpress/images/cloudpress-business.png
ADDED
Binary file
|
inc/cloudpress/sections/cloudpress-service-section.php
CHANGED
@@ -7,10 +7,13 @@ if ( ! function_exists( 'spiceb_cloudpress_service' ) ) :
|
|
7 |
function spiceb_cloudpress_service() {
|
8 |
$theme = wp_get_theme();
|
9 |
if ('CloudPress Agency' == $theme->name){
|
10 |
-
$service_section_class='services2';
|
11 |
}
|
12 |
-
|
13 |
-
$service_section_class='
|
|
|
|
|
|
|
14 |
}
|
15 |
$home_service_section_enabled = get_theme_mod('home_service_section_enabled','on');
|
16 |
$home_service_section_title = get_theme_mod('home_service_section_title',__('Etiam et Urna?','spicebox'));
|
@@ -18,28 +21,28 @@ if ( ! function_exists( 'spiceb_cloudpress_service' ) ) :
|
|
18 |
$cloudpress_service_content = get_theme_mod( 'cloudpress_service_content', spiceb_cloudpress_get_service_default() );
|
19 |
$section_is_empty = empty( $cloudpress_service_content ) && empty( $home_service_section_discription ) && empty( $home_service_section_title );
|
20 |
if($home_service_section_enabled !='off')
|
21 |
-
{
|
22 |
?>
|
23 |
-
<section class="section-module <?php echo $service_section_class;?>" id="services">
|
24 |
-
<div class="container">
|
25 |
<?php if( ($home_service_section_title) || ($home_service_section_discription)!='' ) { ?>
|
26 |
<div class="row">
|
27 |
<div class="col-lg-12 col-md-12 col-xs-12">
|
28 |
<div class="section-header text-center">
|
29 |
<?php if ( ! empty( $home_service_section_title ) || is_customize_preview() ) : ?>
|
30 |
<h5 class="section-subtitle">
|
31 |
-
<?php echo $home_service_section_title; ?>
|
32 |
</h5>
|
33 |
<?php endif; ?>
|
34 |
<?php if($home_service_section_discription) {?>
|
35 |
<h2 class="section-title">
|
36 |
-
<?php echo $home_service_section_discription; ?>
|
37 |
</h2>
|
38 |
<?php } ?>
|
39 |
</div>
|
40 |
</div>
|
41 |
</div>
|
42 |
-
<?php }
|
43 |
spiceb_cloudpress_service_content( $cloudpress_service_content );
|
44 |
?>
|
45 |
</div>
|
@@ -68,7 +71,7 @@ function spiceb_cloudpress_service_content( $cloudpress_service_content, $is_cal
|
|
68 |
'b' => array(),
|
69 |
'i' => array(),
|
70 |
);
|
71 |
-
|
72 |
$cloudpress_service_content = json_decode( $cloudpress_service_content );
|
73 |
if ( ! empty( $cloudpress_service_content ) ) {
|
74 |
$i = 1;
|
@@ -82,14 +85,14 @@ function spiceb_cloudpress_service_content( $cloudpress_service_content, $is_cal
|
|
82 |
$color = ! empty( $service_item->color ) ? $service_item->color : '';
|
83 |
$choice = ! empty( $service_item->choice ) ? $service_item->choice : 'customizer_repeater_icon';
|
84 |
$open_new_tab = ! empty( $service_item->open_new_tab ) ? $service_item->open_new_tab : 'no';
|
85 |
-
|
86 |
?>
|
87 |
<div class="col-md-4 col-sm-6 col-xs-12">
|
88 |
<article class="post <?php echo $service_article_class;?>">
|
89 |
-
<?php if($choice == 'customizer_repeater_image'){ ?>
|
90 |
<?php if ( ! empty( $image ) ) : ?>
|
91 |
-
<figure class="post-thumbnail">
|
92 |
-
|
93 |
<?php if ( ! empty( $link ) ) : ?>
|
94 |
<a href="<?php echo esc_url( $link ); ?>" <?php if($open_new_tab == 'yes'){ echo 'target="_blank"';}?>>
|
95 |
<?php endif; ?>
|
@@ -101,22 +104,22 @@ function spiceb_cloudpress_service_content( $cloudpress_service_content, $is_cal
|
|
101 |
<?php endif; ?>
|
102 |
</figure>
|
103 |
<?php } ?>
|
104 |
-
|
105 |
<?php if($choice == 'customizer_repeater_icon'){ ?>
|
106 |
<?php if ( ! empty( $icon ) ) :?>
|
107 |
-
<figure class="post-thumbnail">
|
108 |
<?php if ( ! empty( $link ) ) : ?>
|
109 |
<a href="<?php echo esc_url( $link ); ?>" <?php if($open_new_tab == 'yes'){ echo 'target="_blank"';}?> >
|
110 |
<?php endif; ?>
|
111 |
-
|
112 |
-
<i class="fa <?php echo esc_html( $icon ); ?> txt-pink"></i>
|
113 |
<?php if ( ! empty( $link ) ) : ?>
|
114 |
</a>
|
115 |
<?php endif; ?>
|
116 |
-
</figure>
|
117 |
<?php endif; ?>
|
118 |
<?php } ?>
|
119 |
-
|
120 |
<?php if ( ! empty( $title ) ) : ?>
|
121 |
<div class="entry-header">
|
122 |
<h5 class="entry-title"><?php if ( ! empty( $link ) ) : ?>
|
@@ -124,13 +127,13 @@ function spiceb_cloudpress_service_content( $cloudpress_service_content, $is_cal
|
|
124 |
<?php endif; ?>
|
125 |
</h5>
|
126 |
</div>
|
127 |
-
|
128 |
<?php endif; ?>
|
129 |
<?php if ( ! empty( $link ) ) : ?>
|
130 |
</a>
|
131 |
<?php endif; ?>
|
132 |
<?php if ( ! empty( $text ) ) : ?>
|
133 |
-
|
134 |
<div class="entry-content">
|
135 |
<p><?php echo wp_kses( html_entity_decode( $text ), $allowed_html ); ?></p>
|
136 |
</div>
|
@@ -201,4 +204,4 @@ function spiceb_cloudpress_get_service_default() {
|
|
201 |
if ( function_exists( 'spiceb_cloudpress_service' ) ) {
|
202 |
$section_priority = apply_filters( 'cloudpress_section_priority', 3, 'spiceb_cloudpress_service' );
|
203 |
add_action( 'spiceb_cloudpress_sections', 'spiceb_cloudpress_service', absint( $section_priority ) );
|
204 |
-
}
|
7 |
function spiceb_cloudpress_service() {
|
8 |
$theme = wp_get_theme();
|
9 |
if ('CloudPress Agency' == $theme->name){
|
10 |
+
$service_section_class = 'services2';
|
11 |
}
|
12 |
+
elseif ('CloudPress Business' == $theme->name){
|
13 |
+
$service_section_class = 'services3';
|
14 |
+
}
|
15 |
+
else {
|
16 |
+
$service_section_class = 'services';
|
17 |
}
|
18 |
$home_service_section_enabled = get_theme_mod('home_service_section_enabled','on');
|
19 |
$home_service_section_title = get_theme_mod('home_service_section_title',__('Etiam et Urna?','spicebox'));
|
21 |
$cloudpress_service_content = get_theme_mod( 'cloudpress_service_content', spiceb_cloudpress_get_service_default() );
|
22 |
$section_is_empty = empty( $cloudpress_service_content ) && empty( $home_service_section_discription ) && empty( $home_service_section_title );
|
23 |
if($home_service_section_enabled !='off')
|
24 |
+
{
|
25 |
?>
|
26 |
+
<section class="section-module <?php echo esc_attr($service_section_class);?>" id="services">
|
27 |
+
<div class="container">
|
28 |
<?php if( ($home_service_section_title) || ($home_service_section_discription)!='' ) { ?>
|
29 |
<div class="row">
|
30 |
<div class="col-lg-12 col-md-12 col-xs-12">
|
31 |
<div class="section-header text-center">
|
32 |
<?php if ( ! empty( $home_service_section_title ) || is_customize_preview() ) : ?>
|
33 |
<h5 class="section-subtitle">
|
34 |
+
<?php echo esc_html($home_service_section_title); ?>
|
35 |
</h5>
|
36 |
<?php endif; ?>
|
37 |
<?php if($home_service_section_discription) {?>
|
38 |
<h2 class="section-title">
|
39 |
+
<?php echo esc_html($home_service_section_discription); ?>
|
40 |
</h2>
|
41 |
<?php } ?>
|
42 |
</div>
|
43 |
</div>
|
44 |
</div>
|
45 |
+
<?php }
|
46 |
spiceb_cloudpress_service_content( $cloudpress_service_content );
|
47 |
?>
|
48 |
</div>
|
71 |
'b' => array(),
|
72 |
'i' => array(),
|
73 |
);
|
74 |
+
|
75 |
$cloudpress_service_content = json_decode( $cloudpress_service_content );
|
76 |
if ( ! empty( $cloudpress_service_content ) ) {
|
77 |
$i = 1;
|
85 |
$color = ! empty( $service_item->color ) ? $service_item->color : '';
|
86 |
$choice = ! empty( $service_item->choice ) ? $service_item->choice : 'customizer_repeater_icon';
|
87 |
$open_new_tab = ! empty( $service_item->open_new_tab ) ? $service_item->open_new_tab : 'no';
|
88 |
+
|
89 |
?>
|
90 |
<div class="col-md-4 col-sm-6 col-xs-12">
|
91 |
<article class="post <?php echo $service_article_class;?>">
|
92 |
+
<?php if($choice == 'customizer_repeater_image'){ ?>
|
93 |
<?php if ( ! empty( $image ) ) : ?>
|
94 |
+
<figure class="post-thumbnail">
|
95 |
+
|
96 |
<?php if ( ! empty( $link ) ) : ?>
|
97 |
<a href="<?php echo esc_url( $link ); ?>" <?php if($open_new_tab == 'yes'){ echo 'target="_blank"';}?>>
|
98 |
<?php endif; ?>
|
104 |
<?php endif; ?>
|
105 |
</figure>
|
106 |
<?php } ?>
|
107 |
+
|
108 |
<?php if($choice == 'customizer_repeater_icon'){ ?>
|
109 |
<?php if ( ! empty( $icon ) ) :?>
|
110 |
+
<figure class="post-thumbnail">
|
111 |
<?php if ( ! empty( $link ) ) : ?>
|
112 |
<a href="<?php echo esc_url( $link ); ?>" <?php if($open_new_tab == 'yes'){ echo 'target="_blank"';}?> >
|
113 |
<?php endif; ?>
|
114 |
+
|
115 |
+
<i class="fa <?php echo esc_html( $icon ); ?> txt-pink"></i>
|
116 |
<?php if ( ! empty( $link ) ) : ?>
|
117 |
</a>
|
118 |
<?php endif; ?>
|
119 |
+
</figure>
|
120 |
<?php endif; ?>
|
121 |
<?php } ?>
|
122 |
+
|
123 |
<?php if ( ! empty( $title ) ) : ?>
|
124 |
<div class="entry-header">
|
125 |
<h5 class="entry-title"><?php if ( ! empty( $link ) ) : ?>
|
127 |
<?php endif; ?>
|
128 |
</h5>
|
129 |
</div>
|
130 |
+
|
131 |
<?php endif; ?>
|
132 |
<?php if ( ! empty( $link ) ) : ?>
|
133 |
</a>
|
134 |
<?php endif; ?>
|
135 |
<?php if ( ! empty( $text ) ) : ?>
|
136 |
+
|
137 |
<div class="entry-content">
|
138 |
<p><?php echo wp_kses( html_entity_decode( $text ), $allowed_html ); ?></p>
|
139 |
</div>
|
204 |
if ( function_exists( 'spiceb_cloudpress_service' ) ) {
|
205 |
$section_priority = apply_filters( 'cloudpress_section_priority', 3, 'spiceb_cloudpress_service' );
|
206 |
add_action( 'spiceb_cloudpress_sections', 'spiceb_cloudpress_service', absint( $section_priority ) );
|
207 |
+
}
|
inc/cloudpress/sections/cloudpress-testimonail-section.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
*/
|
5 |
if (!function_exists('spiceb_cloudpress_testimonial')) :
|
6 |
|
7 |
-
function spiceb_cloudpress_testimonial() {
|
8 |
$home_testimonial_title = get_theme_mod('home_testimonial_title',__('Cras Vitae','spicebox'));
|
9 |
$home_testimonial_desc = get_theme_mod('home_testimonial_desc',__('Sed ut Perspiciatis Unde Omnis Iste Sed ut perspiciatis unde omnis iste natu error sit voluptatem accu tium neque fermentum veposu miten a tempor nise. Duis autem vel eum iriure dolor in hendrerit in vulputate velit consequat reprehender in voluptate velit esse cillum duis dolor fugiat nulla pariatur.','spicebox'));
|
10 |
$test_link = get_theme_mod('home_testimonial_link',__('#','spicebox'));
|
@@ -16,64 +16,78 @@ if (!function_exists('spiceb_cloudpress_testimonial')) :
|
|
16 |
$home_testimonial_section_discription = get_theme_mod('home_testimonial_section_discription',__('Nam Viverra Iaculis Finibus','spicebox'));
|
17 |
$testimonial_callout_background = get_theme_mod('testimonial_callout_background', SPICEB_PLUGIN_URL .'inc/cloudpress/images/testimonial/bg03.jpg');
|
18 |
if(get_theme_mod('testimonial_section_enable','on')=='on'):
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
19 |
?>
|
20 |
-
<section class="testimonial-wrapper" id="testimonial" style="background:url('<?php echo esc_url($testimonial_callout_background);?>')center center no-repeat;">
|
21 |
-
<div class="container">
|
22 |
<div class="row">
|
23 |
<div class="col-md-12">
|
24 |
<div class="section-header text-left cloudpress-testimonial">
|
25 |
<?php if(!empty($home_testimonial_section_title)):?>
|
26 |
-
<h2 class="section-title text-white"><?php echo $home_testimonial_section_title; ?></h2>
|
27 |
<?php endif; if(!empty($home_testimonial_section_discription)):?>
|
28 |
-
<h5 class="section-subtitle text-white"><?php echo $home_testimonial_section_discription; ?></h5><?php endif;?>
|
29 |
</div>
|
30 |
-
</div>
|
31 |
</div>
|
32 |
</div>
|
33 |
</section>
|
34 |
-
<section class="
|
35 |
<div class="container">
|
36 |
<div class="row">
|
37 |
<div class="col-md-12">
|
38 |
-
<blockquote class="
|
39 |
<?php $default_arg =array('class' => "img-circle"); ?>
|
40 |
<?php if($home_testimonial_thumb != ''): ?>
|
41 |
<figure class="avatar">
|
42 |
<img class="img-circle" src="<?php echo esc_url($home_testimonial_thumb); ?>">
|
43 |
</figure>
|
44 |
-
<?php endif; ?>
|
45 |
-
|
46 |
-
<?php if(!empty($home_testimonial_desc)):?>
|
47 |
-
<div class="description">
|
48 |
-
<p><?php echo wp_kses_post( $home_testimonial_desc ); ?></p>
|
49 |
-
</div>
|
50 |
<?php endif;
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
58 |
</blockquote>
|
59 |
-
</div>
|
60 |
</div>
|
61 |
</div>
|
62 |
</section>
|
63 |
<?php endif;?>
|
64 |
-
<style type="text/css">
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
</style>
|
73 |
-
<?php }
|
74 |
-
endif;
|
75 |
if (function_exists('spiceb_cloudpress_testimonial')) {
|
76 |
$section_priority = apply_filters('cloudpress_section_priority', 4, 'spiceb_cloudpress_testimonial');
|
77 |
add_action('spiceb_cloudpress_sections', 'spiceb_cloudpress_testimonial', absint($section_priority));
|
78 |
}
|
79 |
-
?>
|
4 |
*/
|
5 |
if (!function_exists('spiceb_cloudpress_testimonial')) :
|
6 |
|
7 |
+
function spiceb_cloudpress_testimonial() {
|
8 |
$home_testimonial_title = get_theme_mod('home_testimonial_title',__('Cras Vitae','spicebox'));
|
9 |
$home_testimonial_desc = get_theme_mod('home_testimonial_desc',__('Sed ut Perspiciatis Unde Omnis Iste Sed ut perspiciatis unde omnis iste natu error sit voluptatem accu tium neque fermentum veposu miten a tempor nise. Duis autem vel eum iriure dolor in hendrerit in vulputate velit consequat reprehender in voluptate velit esse cillum duis dolor fugiat nulla pariatur.','spicebox'));
|
10 |
$test_link = get_theme_mod('home_testimonial_link',__('#','spicebox'));
|
16 |
$home_testimonial_section_discription = get_theme_mod('home_testimonial_section_discription',__('Nam Viverra Iaculis Finibus','spicebox'));
|
17 |
$testimonial_callout_background = get_theme_mod('testimonial_callout_background', SPICEB_PLUGIN_URL .'inc/cloudpress/images/testimonial/bg03.jpg');
|
18 |
if(get_theme_mod('testimonial_section_enable','on')=='on'):
|
19 |
+
if (get_theme_mod('testimonial_section_enable') != 'off') {
|
20 |
+
$theme = wp_get_theme();
|
21 |
+
if ($theme->name == 'CloudPress Business') {
|
22 |
+
$testimonial_section_class = "testimonial testimonial3";
|
23 |
+
$testimonial_blockquote_class = "testmonial-block";
|
24 |
+
$testimonial_blockquote_media_class = "media";
|
25 |
+
}
|
26 |
+
if ($theme->name == 'CloudPress Agency') {
|
27 |
+
$testimonial_section_class = "testimonial";
|
28 |
+
$testimonial_blockquote_class = "testmonial-block text-center";
|
29 |
+
}
|
30 |
+
}
|
31 |
?>
|
32 |
+
<section class="testimonial-wrapper" id="testimonial" style="background:url('<?php echo esc_url($testimonial_callout_background);?>') center center no-repeat;">
|
33 |
+
<div class="container">
|
34 |
<div class="row">
|
35 |
<div class="col-md-12">
|
36 |
<div class="section-header text-left cloudpress-testimonial">
|
37 |
<?php if(!empty($home_testimonial_section_title)):?>
|
38 |
+
<h2 class="section-title text-white"><?php echo esc_html($home_testimonial_section_title); ?></h2>
|
39 |
<?php endif; if(!empty($home_testimonial_section_discription)):?>
|
40 |
+
<h5 class="section-subtitle text-white"><?php echo esc_html($home_testimonial_section_discription); ?></h5><?php endif;?>
|
41 |
</div>
|
42 |
+
</div>
|
43 |
</div>
|
44 |
</div>
|
45 |
</section>
|
46 |
+
<section class="<?php echo esc_attr($testimonial_section_class); ?>">
|
47 |
<div class="container">
|
48 |
<div class="row">
|
49 |
<div class="col-md-12">
|
50 |
+
<blockquote class="<?php echo esc_attr($testimonial_blockquote_class);?> <?php echo esc_attr($testimonial_blockquote_media_class); ?>">
|
51 |
<?php $default_arg =array('class' => "img-circle"); ?>
|
52 |
<?php if($home_testimonial_thumb != ''): ?>
|
53 |
<figure class="avatar">
|
54 |
<img class="img-circle" src="<?php echo esc_url($home_testimonial_thumb); ?>">
|
55 |
</figure>
|
|
|
|
|
|
|
|
|
|
|
|
|
56 |
<?php endif;
|
57 |
+
|
58 |
+
if ($theme->name == 'CloudPress Business') { echo '<div class="media-body">'; }
|
59 |
+
if(!empty($home_testimonial_desc)):?>
|
60 |
+
<div class="description">
|
61 |
+
<p><?php echo wp_kses_post( $home_testimonial_desc ); ?></p>
|
62 |
+
</div>
|
63 |
+
<?php endif;
|
64 |
+
if( $home_testimonial_title != '' || $designation != ''): ?>
|
65 |
+
<figcaption>
|
66 |
+
<?php if(!empty($home_testimonial_title)):?>
|
67 |
+
<cite class="name"><a href="<?php if(empty($test_link)) { echo '#';} else { echo $test_link;} ?>" <?php if($open_new_tab==true) { ?> target="_blank"<?php } ?>><?php echo $home_testimonial_title; ?></a><?php if(!empty($designation)):?><span class="designation"><?php echo $designation; ?></span><?php endif;?></cite>
|
68 |
+
<?php endif;?>
|
69 |
+
</figcaption>
|
70 |
+
<?php endif;
|
71 |
+
if ($theme->name == 'CloudPress Business') { echo '</div>'; } ?>
|
72 |
</blockquote>
|
73 |
+
</div>
|
74 |
</div>
|
75 |
</div>
|
76 |
</section>
|
77 |
<?php endif;?>
|
78 |
+
<style type="text/css">
|
79 |
+
<?php
|
80 |
+
if(get_theme_mod('testimonial_image_overlay',true)==true):?>
|
81 |
+
.testimonial-wrapper:before
|
82 |
+
{
|
83 |
+
background-color: <?php echo get_theme_mod('testimonial_overlay_section_color','rgba(1, 7, 12, 0.65)');?>
|
84 |
+
}
|
85 |
+
<?php endif;?>
|
86 |
+
</style>
|
87 |
+
<?php }
|
88 |
+
endif;
|
89 |
if (function_exists('spiceb_cloudpress_testimonial')) {
|
90 |
$section_priority = apply_filters('cloudpress_section_priority', 4, 'spiceb_cloudpress_testimonial');
|
91 |
add_action('spiceb_cloudpress_sections', 'spiceb_cloudpress_testimonial', absint($section_priority));
|
92 |
}
|
93 |
+
?>
|
languages/spicebox.pot
CHANGED
@@ -4,7 +4,7 @@ msgstr ""
|
|
4 |
"Project-Id-Version: "
|
5 |
"Spiceboxv1.0.0\n"
|
6 |
"POT-Creation-Date: "
|
7 |
-
"2021-01
|
8 |
"PO-Revision-Date: \n"
|
9 |
"Last-Translator: Your "
|
10 |
"Name <you@example.com>\n"
|
@@ -275,14 +275,14 @@ msgid ""
|
|
275 |
msgstr ""
|
276 |
|
277 |
#: inc/cloudpress/features/feature-service-section.php:28
|
278 |
-
#: inc/cloudpress/sections/cloudpress-service-section.php:
|
279 |
#: inc/honeypress/features/feature-service-section.php:28
|
280 |
#: inc/honeypress/sections/honeypress-service-section.php:23
|
281 |
msgid "Etiam et Urna?"
|
282 |
msgstr ""
|
283 |
|
284 |
#: inc/cloudpress/features/feature-service-section.php:41
|
285 |
-
#: inc/cloudpress/sections/cloudpress-service-section.php:
|
286 |
#: inc/honeypress/features/feature-service-section.php:41
|
287 |
#: inc/honeypress/sections/honeypress-service-section.php:24
|
288 |
msgid "Fusce Sed Massa"
|
@@ -577,18 +577,18 @@ msgstr ""
|
|
577 |
msgid "Voluptate Velit"
|
578 |
msgstr ""
|
579 |
|
580 |
-
#: inc/cloudpress/sections/cloudpress-service-section.php:
|
581 |
#: inc/honeypress/sections/honeypress-service-section.php:195
|
582 |
msgid ""
|
583 |
"Suspendisse Tristique"
|
584 |
msgstr ""
|
585 |
|
586 |
-
#: inc/cloudpress/sections/cloudpress-service-section.php:
|
587 |
#: inc/honeypress/sections/honeypress-service-section.php:203
|
588 |
msgid "Blandit-Gravida"
|
589 |
msgstr ""
|
590 |
|
591 |
-
#: inc/cloudpress/sections/cloudpress-service-section.php:
|
592 |
#: inc/honeypress/sections/honeypress-service-section.php:211
|
593 |
msgid "Justo Bibendum"
|
594 |
msgstr ""
|
4 |
"Project-Id-Version: "
|
5 |
"Spiceboxv1.0.0\n"
|
6 |
"POT-Creation-Date: "
|
7 |
+
"2021-03-01 16:49+0530\n"
|
8 |
"PO-Revision-Date: \n"
|
9 |
"Last-Translator: Your "
|
10 |
"Name <you@example.com>\n"
|
275 |
msgstr ""
|
276 |
|
277 |
#: inc/cloudpress/features/feature-service-section.php:28
|
278 |
+
#: inc/cloudpress/sections/cloudpress-service-section.php:19
|
279 |
#: inc/honeypress/features/feature-service-section.php:28
|
280 |
#: inc/honeypress/sections/honeypress-service-section.php:23
|
281 |
msgid "Etiam et Urna?"
|
282 |
msgstr ""
|
283 |
|
284 |
#: inc/cloudpress/features/feature-service-section.php:41
|
285 |
+
#: inc/cloudpress/sections/cloudpress-service-section.php:20
|
286 |
#: inc/honeypress/features/feature-service-section.php:41
|
287 |
#: inc/honeypress/sections/honeypress-service-section.php:24
|
288 |
msgid "Fusce Sed Massa"
|
577 |
msgid "Voluptate Velit"
|
578 |
msgstr ""
|
579 |
|
580 |
+
#: inc/cloudpress/sections/cloudpress-service-section.php:177
|
581 |
#: inc/honeypress/sections/honeypress-service-section.php:195
|
582 |
msgid ""
|
583 |
"Suspendisse Tristique"
|
584 |
msgstr ""
|
585 |
|
586 |
+
#: inc/cloudpress/sections/cloudpress-service-section.php:185
|
587 |
#: inc/honeypress/sections/honeypress-service-section.php:203
|
588 |
msgid "Blandit-Gravida"
|
589 |
msgstr ""
|
590 |
|
591 |
+
#: inc/cloudpress/sections/cloudpress-service-section.php:193
|
592 |
#: inc/honeypress/sections/honeypress-service-section.php:211
|
593 |
msgid "Justo Bibendum"
|
594 |
msgstr ""
|
readme.txt
CHANGED
@@ -2,8 +2,8 @@
|
|
2 |
Contributors: spicethemes
|
3 |
Tags: widget, admin, widgets
|
4 |
Requires at least: 3.3+
|
5 |
-
Tested up to: 5.
|
6 |
-
Stable tag: 1.3.
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
@@ -201,21 +201,24 @@ Fixed jQuery compatibiltiy issue coming with latest release on WP 5.5
|
|
201 |
= 1.2.9 =
|
202 |
Added variations for HoneyPress child themes.
|
203 |
|
204 |
-
=1.3.0=
|
205 |
Fixed minor issues of HoneyPress child themes.
|
206 |
|
207 |
-
=1.3.1=
|
208 |
1. Added variations ( testimonial & service ) for Stacy Child theme.
|
209 |
2. Dummy content updated for spicepress theme.
|
210 |
|
211 |
-
=1.3.2=
|
212 |
1. Added variations for HoneyBee child theme.
|
213 |
2. Fixed repeater checkbox issue.
|
214 |
|
215 |
-
=1.3.3=
|
216 |
1. Added variations for CloudPress Agency theme.
|
217 |
2. Dummy content updated for cloudpres theme.
|
218 |
|
|
|
|
|
|
|
219 |
=======External resources=======
|
220 |
|
221 |
Alpha color picker Control:
|
@@ -235,17 +238,17 @@ Source: https://github.com/Codeinwp/customizer-controls/tree/master/customizer-r
|
|
235 |
License CC0 Public Domain
|
236 |
https://pxhere.com/en/photo/871986
|
237 |
|
238 |
-
==Radix Multipurpose Images==
|
239 |
* Image used in Slider
|
240 |
License CC0 Public Domain
|
241 |
https://pxhere.com/en/photo/1622682
|
242 |
|
243 |
-
==Bizhunt Images==
|
244 |
* Image used in Slider
|
245 |
License CC0 Public Domain
|
246 |
https://pxhere.com/en/photo/759001
|
247 |
|
248 |
-
==Tromas Images==
|
249 |
* Image used in Slider
|
250 |
License CC0 Public Domain
|
251 |
https://pxhere.com/en/photo/1434201
|
@@ -263,4 +266,4 @@ https://pxhere.com/en/photo/1633156
|
|
263 |
|
264 |
* Image used in Testimonial User
|
265 |
License CC0 Public Domain
|
266 |
-
https://pxhere.com/en/photo/1235380
|
2 |
Contributors: spicethemes
|
3 |
Tags: widget, admin, widgets
|
4 |
Requires at least: 3.3+
|
5 |
+
Tested up to: 5.6
|
6 |
+
Stable tag: 1.3.4
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
201 |
= 1.2.9 =
|
202 |
Added variations for HoneyPress child themes.
|
203 |
|
204 |
+
= 1.3.0 =
|
205 |
Fixed minor issues of HoneyPress child themes.
|
206 |
|
207 |
+
= 1.3.1 =
|
208 |
1. Added variations ( testimonial & service ) for Stacy Child theme.
|
209 |
2. Dummy content updated for spicepress theme.
|
210 |
|
211 |
+
= 1.3.2 =
|
212 |
1. Added variations for HoneyBee child theme.
|
213 |
2. Fixed repeater checkbox issue.
|
214 |
|
215 |
+
= 1.3.3 =
|
216 |
1. Added variations for CloudPress Agency theme.
|
217 |
2. Dummy content updated for cloudpres theme.
|
218 |
|
219 |
+
= 1.3.4 =
|
220 |
+
1. Added variations for the CloudPress Business theme.
|
221 |
+
|
222 |
=======External resources=======
|
223 |
|
224 |
Alpha color picker Control:
|
238 |
License CC0 Public Domain
|
239 |
https://pxhere.com/en/photo/871986
|
240 |
|
241 |
+
== Radix Multipurpose Images ==
|
242 |
* Image used in Slider
|
243 |
License CC0 Public Domain
|
244 |
https://pxhere.com/en/photo/1622682
|
245 |
|
246 |
+
== Bizhunt Images ==
|
247 |
* Image used in Slider
|
248 |
License CC0 Public Domain
|
249 |
https://pxhere.com/en/photo/759001
|
250 |
|
251 |
+
== Tromas Images ==
|
252 |
* Image used in Slider
|
253 |
License CC0 Public Domain
|
254 |
https://pxhere.com/en/photo/1434201
|
266 |
|
267 |
* Image used in Testimonial User
|
268 |
License CC0 Public Domain
|
269 |
+
https://pxhere.com/en/photo/1235380
|
spicebox.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: SpiceBox
|
4 |
Plugin URI:
|
5 |
Description: Enhances SpiceThemes with extra functionality.
|
6 |
-
Version: 1.3.
|
7 |
Author: Spicethemes
|
8 |
Author URI: https://spicethemes.com
|
9 |
Text Domain: spicebox
|
@@ -27,7 +27,7 @@ function spiceb_activate() {
|
|
27 |
require_once('inc/spicepress/sections/spicepress-portfolio-section.php');
|
28 |
require_once('inc/spicepress/sections/spicepress-testimonail-section.php');
|
29 |
require_once('inc/spicepress/customizer.php');
|
30 |
-
|
31 |
}
|
32 |
|
33 |
if ( 'HoneyPress' == $theme->name || 'HoneyPress Child' == $theme->name || 'Radix Multipurpose' == $theme->name || 'HoneyWaves' == $theme->name || 'Bizhunt' == $theme->name || 'Tromas' == $theme->name || 'HoneyBee' == $theme->name ){
|
@@ -39,7 +39,7 @@ function spiceb_activate() {
|
|
39 |
require_once('inc/honeypress/sections/honeypress-testimonail-section.php');
|
40 |
require_once('inc/honeypress/customizer.php');
|
41 |
}
|
42 |
-
if ( 'CloudPress' == $theme->name || 'CloudPress Child' == $theme->name || 'CloudPress Agency' == $theme->name){
|
43 |
require_once('inc/cloudpress/features/feature-slider-section.php');
|
44 |
require_once('inc/cloudpress/features/feature-cta-section.php');
|
45 |
require_once('inc/cloudpress/features/feature-service-section.php');
|
@@ -51,9 +51,9 @@ function spiceb_activate() {
|
|
51 |
require_once('inc/cloudpress/customizer.php');
|
52 |
}
|
53 |
|
54 |
-
if ( 'CloudPress Agency' == $theme->name){
|
55 |
require_once('inc/controls/customizer-alpha-color-picker/class-spicepress-customize-alpha-color-control.php');
|
56 |
-
require_once('inc/cloudpress/features/feature-testimonial-section.php');
|
57 |
require_once('inc/cloudpress/sections/cloudpress-testimonail-section.php');
|
58 |
}
|
59 |
|
@@ -67,86 +67,86 @@ function spiceb_activate() {
|
|
67 |
require_once('inc/spicepress/sections/spicepress-testimonail-section.php');
|
68 |
require_once('inc/spicepress/customizer.php');
|
69 |
}
|
70 |
-
|
71 |
if ( 'Innofit' == $theme->name || 'Innofit Child' == $theme->name){
|
72 |
-
|
73 |
-
|
74 |
include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
|
75 |
-
|
76 |
-
|
77 |
if ( ! is_plugin_active( 'innofit-plus/innofit-plus.php' ) ):
|
78 |
|
79 |
-
|
80 |
if ( ! function_exists( 'spiceb_innofit_customize_register' ) ) :
|
81 |
function spiceb_innofit_customize_register($wp_customize){
|
82 |
|
83 |
|
84 |
if(!empty(get_theme_mod('innofit_testimonial_content')))
|
85 |
{
|
86 |
-
$sections_customizer_data = array('slider','services','about','testimonial','team','news','callout','contact','subscriber','wooproduct');
|
87 |
}
|
88 |
else
|
89 |
{
|
90 |
-
$sections_customizer_data = array('slider','services','about','team','news','callout','contact','subscriber','wooproduct');
|
91 |
}
|
92 |
|
93 |
if(!empty(get_theme_mod('home_call_out_title')))
|
94 |
{
|
95 |
-
$sections_customizer_data = array('slider','services','about','testimonial','team','news','callout','contact','subscriber','wooproduct');
|
96 |
}
|
97 |
else
|
98 |
{
|
99 |
-
$sections_customizer_data = array('slider','services','about','team','news','contact','subscriber','wooproduct');
|
100 |
}
|
101 |
|
102 |
-
|
103 |
if(!empty(get_theme_mod('innofit_subscribe_title')))
|
104 |
{
|
105 |
-
$sections_customizer_data = array('slider','services','about','testimonial','team','news','callout','contact','subscriber','wooproduct');
|
106 |
}
|
107 |
else
|
108 |
{
|
109 |
-
$sections_customizer_data = array('slider','services','about','team','news','contact','wooproduct');
|
110 |
}
|
111 |
|
112 |
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
$selective_refresh = isset( $wp_customize->selective_refresh ) ? 'postMessage' : 'refresh';
|
117 |
-
|
118 |
if (!empty($sections_customizer_data))
|
119 |
-
{
|
120 |
foreach($sections_customizer_data as $section_customizer_data)
|
121 |
-
{
|
122 |
require_once('inc/innofit/customizer/'.$section_customizer_data.'-section.php');
|
123 |
-
}
|
124 |
}
|
125 |
$wp_customize->remove_control('header_textcolor');
|
126 |
-
|
127 |
}
|
128 |
add_action( 'customize_register', 'spiceb_innofit_customize_register' );
|
129 |
endif;
|
130 |
|
131 |
-
|
132 |
$sections_data = array('slider','services','about','testimonial','team','news','callout','contact','subscriber','wooproduct');
|
133 |
-
|
134 |
if (!empty($sections_data))
|
135 |
-
{
|
136 |
foreach($sections_data as $section_data)
|
137 |
-
{
|
138 |
require_once('inc/innofit/sections/innofit-'.$section_data.'-section.php');
|
139 |
-
}
|
140 |
}
|
141 |
-
|
142 |
require_once('inc/innofit/customizer/customizer-render-callbacks.php');
|
143 |
require_once('inc/innofit/customizer.php');
|
144 |
-
|
145 |
-
|
146 |
endif;
|
147 |
-
|
148 |
}
|
149 |
-
|
150 |
|
151 |
}
|
152 |
add_action( 'init', 'spiceb_activate' );
|
@@ -154,12 +154,12 @@ add_action( 'init', 'spiceb_activate' );
|
|
154 |
|
155 |
$theme = wp_get_theme();
|
156 |
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){
|
157 |
-
|
158 |
-
|
159 |
register_activation_hook( __FILE__, 'spiceb_install_function');
|
160 |
function spiceb_install_function()
|
161 |
-
{
|
162 |
-
$item_details_page = get_option('item_details_page');
|
163 |
if(!$item_details_page){
|
164 |
require_once('inc/spicepress/default-pages/upload-media.php');
|
165 |
require_once('inc/spicepress/default-pages/about-page.php');
|
@@ -176,11 +176,11 @@ $item_details_page = get_option('item_details_page');
|
|
176 |
|
177 |
|
178 |
//Honeypress
|
179 |
-
if ( 'HoneyPress' == $theme->name || 'HoneyPress Child' == $theme->name || 'Radix Multipurpose' == $theme->name || 'HoneyWaves' == $theme->name || 'Bizhunt' == $theme->name || 'Tromas' == $theme->name || 'HoneyBee' == $theme->name ){
|
180 |
register_activation_hook( __FILE__, 'spiceb_install_function');
|
181 |
function spiceb_install_function()
|
182 |
-
{
|
183 |
-
$item_details_page = get_option('item_details_page');
|
184 |
if(!$item_details_page){
|
185 |
require_once('inc/honeypress/default-pages/upload-media.php');
|
186 |
require_once('inc/honeypress/default-pages/home-page.php');
|
@@ -192,11 +192,11 @@ $item_details_page = get_option('item_details_page');
|
|
192 |
}
|
193 |
|
194 |
//CloudPress
|
195 |
-
if ( 'CloudPress' == $theme->name || 'CloudPress Child' == $theme->name || 'CloudPress Agency' == $theme->name){
|
196 |
register_activation_hook( __FILE__, 'spiceb_cloudpress_install_function');
|
197 |
function spiceb_cloudpress_install_function()
|
198 |
-
{
|
199 |
-
$item_details_page = get_option('item_details_page');
|
200 |
if(!$item_details_page){
|
201 |
require_once('inc/cloudpress/default-pages/upload-media.php');
|
202 |
require_once('inc/cloudpress/default-pages/home-page.php');
|
@@ -209,11 +209,11 @@ $item_details_page = get_option('item_details_page');
|
|
209 |
|
210 |
//Innofit
|
211 |
if ( 'Innofit' == $theme->name || 'Innofit Child' == $theme->name){
|
212 |
-
|
213 |
register_activation_hook( __FILE__, 'spiceb_install_function');
|
214 |
function spiceb_install_function()
|
215 |
-
{
|
216 |
-
$item_details_page = get_option('item_details_page');
|
217 |
if(!$item_details_page){
|
218 |
require_once('inc/innofit/default-pages/upload-media.php');
|
219 |
require_once('inc/innofit/default-pages/home-page.php');
|
@@ -228,7 +228,7 @@ $item_details_page = get_option('item_details_page');
|
|
228 |
//Metabox Seeting For Chilly Theme
|
229 |
if ( 'Chilly' == $theme->name )
|
230 |
{
|
231 |
-
require_once('inc/chilly/post-meta.php');
|
232 |
}
|
233 |
|
234 |
//Sanatize text
|
@@ -253,8 +253,8 @@ function spiceb_cloudpress_home_page_sanitize_text( $input ) {
|
|
253 |
}
|
254 |
|
255 |
include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
|
256 |
-
|
257 |
-
|
258 |
if ( ! is_plugin_active( 'innofit-plus/innofit-plus.php' ) ):
|
259 |
|
260 |
function spiceb_innofit_home_page_sanitize_text( $input ) {
|
@@ -262,7 +262,7 @@ if ( ! is_plugin_active( 'innofit-plus/innofit-plus.php' ) ):
|
|
262 |
return wp_kses_post( force_balance_tags( $input ) );
|
263 |
|
264 |
}
|
265 |
-
|
266 |
endif;
|
267 |
|
268 |
|
@@ -276,7 +276,7 @@ add_action( 'switch_theme', 'spicepresstheme_deactivate_message' );
|
|
276 |
if($theme->template!='spicepress'){
|
277 |
require_once('inc/feedback-pop-up-form.php');
|
278 |
}
|
279 |
-
|
280 |
}
|
281 |
}
|
282 |
if ( 'Innofit' == $theme->name || 'Innofit Child' == $theme->name)
|
@@ -288,16 +288,16 @@ add_action( 'switch_theme', 'innofittheme_deactivate_message' );
|
|
288 |
if($theme->template!='innofit'){
|
289 |
require_once('inc/innofit-feedback-pop-up-form.php');
|
290 |
}
|
291 |
-
|
292 |
}
|
293 |
}
|
294 |
|
295 |
|
296 |
-
add_action( 'init', '
|
297 |
/**
|
298 |
* Load plugin textdomain.
|
299 |
*/
|
300 |
-
function
|
301 |
-
load_plugin_textdomain( 'spicebox', false, plugin_dir_url(__FILE__). 'languages' );
|
302 |
|
303 |
-
}
|
3 |
Plugin Name: SpiceBox
|
4 |
Plugin URI:
|
5 |
Description: Enhances SpiceThemes with extra functionality.
|
6 |
+
Version: 1.3.4
|
7 |
Author: Spicethemes
|
8 |
Author URI: https://spicethemes.com
|
9 |
Text Domain: spicebox
|
27 |
require_once('inc/spicepress/sections/spicepress-portfolio-section.php');
|
28 |
require_once('inc/spicepress/sections/spicepress-testimonail-section.php');
|
29 |
require_once('inc/spicepress/customizer.php');
|
30 |
+
|
31 |
}
|
32 |
|
33 |
if ( 'HoneyPress' == $theme->name || 'HoneyPress Child' == $theme->name || 'Radix Multipurpose' == $theme->name || 'HoneyWaves' == $theme->name || 'Bizhunt' == $theme->name || 'Tromas' == $theme->name || 'HoneyBee' == $theme->name ){
|
39 |
require_once('inc/honeypress/sections/honeypress-testimonail-section.php');
|
40 |
require_once('inc/honeypress/customizer.php');
|
41 |
}
|
42 |
+
if ( 'CloudPress' == $theme->name || 'CloudPress Child' == $theme->name || 'CloudPress Agency' == $theme->name || 'CloudPress Business' == $theme->name){
|
43 |
require_once('inc/cloudpress/features/feature-slider-section.php');
|
44 |
require_once('inc/cloudpress/features/feature-cta-section.php');
|
45 |
require_once('inc/cloudpress/features/feature-service-section.php');
|
51 |
require_once('inc/cloudpress/customizer.php');
|
52 |
}
|
53 |
|
54 |
+
if ( 'CloudPress Agency' == $theme->name || 'CloudPress Business' == $theme->name){
|
55 |
require_once('inc/controls/customizer-alpha-color-picker/class-spicepress-customize-alpha-color-control.php');
|
56 |
+
require_once('inc/cloudpress/features/feature-testimonial-section.php');
|
57 |
require_once('inc/cloudpress/sections/cloudpress-testimonail-section.php');
|
58 |
}
|
59 |
|
67 |
require_once('inc/spicepress/sections/spicepress-testimonail-section.php');
|
68 |
require_once('inc/spicepress/customizer.php');
|
69 |
}
|
70 |
+
|
71 |
if ( 'Innofit' == $theme->name || 'Innofit Child' == $theme->name){
|
72 |
+
|
73 |
+
|
74 |
include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
|
75 |
+
|
76 |
+
|
77 |
if ( ! is_plugin_active( 'innofit-plus/innofit-plus.php' ) ):
|
78 |
|
79 |
+
|
80 |
if ( ! function_exists( 'spiceb_innofit_customize_register' ) ) :
|
81 |
function spiceb_innofit_customize_register($wp_customize){
|
82 |
|
83 |
|
84 |
if(!empty(get_theme_mod('innofit_testimonial_content')))
|
85 |
{
|
86 |
+
$sections_customizer_data = array('slider','services','about','testimonial','team','news','callout','contact','subscriber','wooproduct');
|
87 |
}
|
88 |
else
|
89 |
{
|
90 |
+
$sections_customizer_data = array('slider','services','about','team','news','callout','contact','subscriber','wooproduct');
|
91 |
}
|
92 |
|
93 |
if(!empty(get_theme_mod('home_call_out_title')))
|
94 |
{
|
95 |
+
$sections_customizer_data = array('slider','services','about','testimonial','team','news','callout','contact','subscriber','wooproduct');
|
96 |
}
|
97 |
else
|
98 |
{
|
99 |
+
$sections_customizer_data = array('slider','services','about','team','news','contact','subscriber','wooproduct');
|
100 |
}
|
101 |
|
102 |
+
|
103 |
if(!empty(get_theme_mod('innofit_subscribe_title')))
|
104 |
{
|
105 |
+
$sections_customizer_data = array('slider','services','about','testimonial','team','news','callout','contact','subscriber','wooproduct');
|
106 |
}
|
107 |
else
|
108 |
{
|
109 |
+
$sections_customizer_data = array('slider','services','about','team','news','contact','wooproduct');
|
110 |
}
|
111 |
|
112 |
|
113 |
+
|
114 |
+
|
115 |
+
|
116 |
+
$selective_refresh = isset( $wp_customize->selective_refresh ) ? 'postMessage' : 'refresh';
|
117 |
+
|
118 |
if (!empty($sections_customizer_data))
|
119 |
+
{
|
120 |
foreach($sections_customizer_data as $section_customizer_data)
|
121 |
+
{
|
122 |
require_once('inc/innofit/customizer/'.$section_customizer_data.'-section.php');
|
123 |
+
}
|
124 |
}
|
125 |
$wp_customize->remove_control('header_textcolor');
|
126 |
+
|
127 |
}
|
128 |
add_action( 'customize_register', 'spiceb_innofit_customize_register' );
|
129 |
endif;
|
130 |
|
131 |
+
|
132 |
$sections_data = array('slider','services','about','testimonial','team','news','callout','contact','subscriber','wooproduct');
|
133 |
+
|
134 |
if (!empty($sections_data))
|
135 |
+
{
|
136 |
foreach($sections_data as $section_data)
|
137 |
+
{
|
138 |
require_once('inc/innofit/sections/innofit-'.$section_data.'-section.php');
|
139 |
+
}
|
140 |
}
|
141 |
+
|
142 |
require_once('inc/innofit/customizer/customizer-render-callbacks.php');
|
143 |
require_once('inc/innofit/customizer.php');
|
144 |
+
|
145 |
+
|
146 |
endif;
|
147 |
+
|
148 |
}
|
149 |
+
|
150 |
|
151 |
}
|
152 |
add_action( 'init', 'spiceb_activate' );
|
154 |
|
155 |
$theme = wp_get_theme();
|
156 |
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){
|
157 |
+
|
158 |
+
|
159 |
register_activation_hook( __FILE__, 'spiceb_install_function');
|
160 |
function spiceb_install_function()
|
161 |
+
{
|
162 |
+
$item_details_page = get_option('item_details_page');
|
163 |
if(!$item_details_page){
|
164 |
require_once('inc/spicepress/default-pages/upload-media.php');
|
165 |
require_once('inc/spicepress/default-pages/about-page.php');
|
176 |
|
177 |
|
178 |
//Honeypress
|
179 |
+
if ( 'HoneyPress' == $theme->name || 'HoneyPress Child' == $theme->name || 'Radix Multipurpose' == $theme->name || 'HoneyWaves' == $theme->name || 'Bizhunt' == $theme->name || 'Tromas' == $theme->name || 'HoneyBee' == $theme->name ){
|
180 |
register_activation_hook( __FILE__, 'spiceb_install_function');
|
181 |
function spiceb_install_function()
|
182 |
+
{
|
183 |
+
$item_details_page = get_option('item_details_page');
|
184 |
if(!$item_details_page){
|
185 |
require_once('inc/honeypress/default-pages/upload-media.php');
|
186 |
require_once('inc/honeypress/default-pages/home-page.php');
|
192 |
}
|
193 |
|
194 |
//CloudPress
|
195 |
+
if ( 'CloudPress' == $theme->name || 'CloudPress Child' == $theme->name || 'CloudPress Agency' == $theme->name || 'CloudPress Business' == $theme->name){
|
196 |
register_activation_hook( __FILE__, 'spiceb_cloudpress_install_function');
|
197 |
function spiceb_cloudpress_install_function()
|
198 |
+
{
|
199 |
+
$item_details_page = get_option('item_details_page');
|
200 |
if(!$item_details_page){
|
201 |
require_once('inc/cloudpress/default-pages/upload-media.php');
|
202 |
require_once('inc/cloudpress/default-pages/home-page.php');
|
209 |
|
210 |
//Innofit
|
211 |
if ( 'Innofit' == $theme->name || 'Innofit Child' == $theme->name){
|
212 |
+
|
213 |
register_activation_hook( __FILE__, 'spiceb_install_function');
|
214 |
function spiceb_install_function()
|
215 |
+
{
|
216 |
+
$item_details_page = get_option('item_details_page');
|
217 |
if(!$item_details_page){
|
218 |
require_once('inc/innofit/default-pages/upload-media.php');
|
219 |
require_once('inc/innofit/default-pages/home-page.php');
|
228 |
//Metabox Seeting For Chilly Theme
|
229 |
if ( 'Chilly' == $theme->name )
|
230 |
{
|
231 |
+
require_once('inc/chilly/post-meta.php');
|
232 |
}
|
233 |
|
234 |
//Sanatize text
|
253 |
}
|
254 |
|
255 |
include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
|
256 |
+
|
257 |
+
|
258 |
if ( ! is_plugin_active( 'innofit-plus/innofit-plus.php' ) ):
|
259 |
|
260 |
function spiceb_innofit_home_page_sanitize_text( $input ) {
|
262 |
return wp_kses_post( force_balance_tags( $input ) );
|
263 |
|
264 |
}
|
265 |
+
|
266 |
endif;
|
267 |
|
268 |
|
276 |
if($theme->template!='spicepress'){
|
277 |
require_once('inc/feedback-pop-up-form.php');
|
278 |
}
|
279 |
+
|
280 |
}
|
281 |
}
|
282 |
if ( 'Innofit' == $theme->name || 'Innofit Child' == $theme->name)
|
288 |
if($theme->template!='innofit'){
|
289 |
require_once('inc/innofit-feedback-pop-up-form.php');
|
290 |
}
|
291 |
+
|
292 |
}
|
293 |
}
|
294 |
|
295 |
|
296 |
+
add_action( 'init', 'spiceb_load_textdomain' );
|
297 |
/**
|
298 |
* Load plugin textdomain.
|
299 |
*/
|
300 |
+
function spiceb_load_textdomain() {
|
301 |
+
load_plugin_textdomain( 'spicebox', false, plugin_dir_url(__FILE__). 'languages' );
|
302 |
|
303 |
+
}
|