Spice Box - Version 0.3.6

Version Description

  1. Remove HTML markup from translate string in default data.
Download this release

Release Info

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

Code changes from version 0.3.5 to 0.3.6

inc/innofit/customizer/about-section.php CHANGED
@@ -22,24 +22,24 @@
22
  //About section content
23
  if ( class_exists( 'Innofit_Page_Editor' ) ) {
24
  $about_image = SPICEB_PLUGIN_URL.'inc/innofit/images/about/about.jpg';
25
- $default = __(' <div class="row v-center">
26
  <div class="col-md-5 col-sm-5 col-xs-12">
27
  <figure class="about-thumbnail mbottom-50">
28
- <img src="'.$about_image.'" alt="About">
29
  </figure>
30
  </div>
31
 
32
  <div class="col-md-7 col-sm-7 col-xs-12">
33
  <div class="about-content mbottom-50">
34
- <h6 class="entry-subtitle">Welcome to <span class="text-default">Innofit</span></h6>
35
- <h1 class="entry-title">We have the right solutions</h1>
36
- <p>Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totame rems aperiam, eaque ipsa quae ab illo inventore veritatis quasi architecto beatae vitaes dicta sunt explicabo. Nemo enim ipsam voluptatem.</p>
37
- <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore.</p>
38
- <div class="ptop-15"><a href="#" class="btn-ex-small btn-border">Our Story</a></div>
39
  </div>
40
  </div>
41
  </div>
42
- ','spicebox');
43
  $wp_customize->add_setting(
44
  'about_section_content', array(
45
  'default' => $default,
22
  //About section content
23
  if ( class_exists( 'Innofit_Page_Editor' ) ) {
24
  $about_image = SPICEB_PLUGIN_URL.'inc/innofit/images/about/about.jpg';
25
+ $default = '<div class="row v-center">
26
  <div class="col-md-5 col-sm-5 col-xs-12">
27
  <figure class="about-thumbnail mbottom-50">
28
+ <img src="'.esc_url($about_image).'" alt="About">
29
  </figure>
30
  </div>
31
 
32
  <div class="col-md-7 col-sm-7 col-xs-12">
33
  <div class="about-content mbottom-50">
34
+ <h6 class="entry-subtitle"> ' . esc_html__( 'Welcome to','spicebox') .' <span class="text-default">' .esc_html__( 'Innofit','spicebox').'</span></h6>
35
+ <h1 class="entry-title">' . esc_html__( 'We have the right solutions','spicebox').'</h1>
36
+ <p>' . esc_html__( 'Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totame rems aperiam, eaque ipsa quae ab illo inventore veritatis quasi architecto beatae vitaes dicta sunt explicabo. Nemo enim ipsam voluptatem.','spicebox').'</p>
37
+ <p>' . esc_html__( 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore.','spicebox').'</p>
38
+ <div class="ptop-15"><a href="#" class="btn-ex-small btn-border">'. esc_html__( 'Our Story','spicebox').'</a></div>
39
  </div>
40
  </div>
41
  </div>
42
+ ';
43
  $wp_customize->add_setting(
44
  'about_section_content', array(
45
  'default' => $default,
inc/innofit/customizer/contact-section.php CHANGED
@@ -109,7 +109,7 @@
109
 
110
  //Contact section content
111
  if ( class_exists( 'Innofit_Page_Editor' ) ) {
112
- $default = __('<h2 class="title">Get in touch</h2><aside class="contact-widget"><div class="media"><div class="contact-icon"><i class="fa fa-map-marker"></i></div><div class="media-body"><h3 class="title">Find Us</h3><address>Porterfield 508 Virginia Street Chicago,<br> IL 60653 (USA)</address></div></div></aside><aside class="contact-widget"><div class="media"><div class="contact-icon"><i class="fa fa-mobile"></i></div><div class="media-body"><h3 class="title">Phone</h3><address>Mobile: (+91) 90 1900 - 6886 <br>Hotline: 1800 6886)</address></div></div></aside><aside class="contact-widget"><div class="media"><div class="contact-icon"><i class="fa fa-envelope-o"></i></div><div class="media-body"><h3 class="title">Email</h3><address><a href="mailto:suppor@tinnofit.com">support@innofit.com</a><a href="mailto:contact@innofit.com">contact@innofit.com</a></address></div></div></aside>','spicebox');
113
  $wp_customize->add_setting(
114
  'contact_info_content', array(
115
  'default' => $default,
109
 
110
  //Contact section content
111
  if ( class_exists( 'Innofit_Page_Editor' ) ) {
112
+ $default = '<h2 class="title">'. esc_html__( 'Get in touch','spicebox').'</h2><aside class="contact-widget"><div class="media"><div class="contact-icon"><i class="fa fa-map-marker"></i></div><div class="media-body"><h3 class="title"> ' . esc_html__( 'Find Us','spicebox').' </h3><address> ' . esc_html__( 'Porterfield 508 Virginia Street Chicago,<br> IL 60653 (USA)','spicebox').'</address></div></div></aside><aside class="contact-widget"><div class="media"><div class="contact-icon"><i class="fa fa-mobile"></i></div><div class="media-body"><h3 class="title">' . esc_html__( 'Phone','spicebox').'</h3><address>' . esc_html__( 'Mobile: (+91) 90 1900 - 6886 <br>Hotline: 1800 6886)','spicebox').'</address></div></div></aside><aside class="contact-widget"><div class="media"><div class="contact-icon"><i class="fa fa-envelope-o"></i></div><div class="media-body"><h3 class="title">'.esc_html__( 'Email','spicebox').'</h3><address><a href="mailto:suppor@tinnofit.com">' .esc_html__( 'support@innofit.com','spicebox').'</a><a href="mailto:contact@innofit.com"> '. esc_html__( 'contact@innofit.com','spicebox').'</a></address></div></div></aside>';
113
  $wp_customize->add_setting(
114
  'contact_info_content', array(
115
  'default' => $default,
inc/innofit/sections/innofit-about-section.php CHANGED
@@ -8,25 +8,23 @@ function innofit_about_section()
8
  if($about_section_enabled !='off')
9
  {
10
  $about_image = SPICEB_PLUGIN_URL .'inc/innofit/images/about/about.jpg';
11
- $default = __('<div class="row v-center">
12
  <div class="col-md-5 col-sm-5 col-xs-12">
13
  <figure class="about-thumbnail mbottom-50">
14
- <img src="'.$about_image.'" alt="About">
15
  </figure>
16
  </div>
17
 
18
  <div class="col-md-7 col-sm-7 col-xs-12">
19
  <div class="about-content mbottom-50">
20
- <h6 class="entry-subtitle">Welcome to <span class="text-default">Innofit</span></h6>
21
- <h1 class="entry-title">We have the right solutions</h1>
22
- <p>Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totame rems aperiam, eaque ipsa quae ab illo inventore veritatis quasi architecto beatae vitaes dicta sunt explicabo. Nemo enim ipsam voluptatem.</p>
23
- <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore.</p>
24
- <div class="ptop-15"><a href="#" class="btn-ex-small btn-border">Our Story</a></div>
25
  </div>
26
  </div>
27
- </div>
28
-
29
- ','spicebox');
30
  $about_section_content = get_theme_mod('about_section_content',$default);
31
  ?>
32
  <section class="section-module about bg-grey <?php if($about_section_background=='') {?> left-right-half<?php }?>" <?php if($about_section_background!='') {?> style="background-image: url(<?php echo $about_section_background; ?>);"<?php } ?> id="about">
8
  if($about_section_enabled !='off')
9
  {
10
  $about_image = SPICEB_PLUGIN_URL .'inc/innofit/images/about/about.jpg';
11
+ $default = '<div class="row v-center">
12
  <div class="col-md-5 col-sm-5 col-xs-12">
13
  <figure class="about-thumbnail mbottom-50">
14
+ <img src="'.esc_url($about_image).'" alt="About">
15
  </figure>
16
  </div>
17
 
18
  <div class="col-md-7 col-sm-7 col-xs-12">
19
  <div class="about-content mbottom-50">
20
+ <h6 class="entry-subtitle">' . esc_html__('Welcome to','spicebox').' <span class="text-default">' . esc_html__('Innofit','spicebox').'</span></h6>
21
+ <h1 class="entry-title">' . esc_html__('We have the right solutions','spicebox').'</h1>
22
+ <p>' . esc_html__('Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totame rems aperiam, eaque ipsa quae ab illo inventore veritatis quasi architecto beatae vitaes dicta sunt explicabo. Nemo enim ipsam voluptatem.','spicebox').'</p>
23
+ <p> ' . esc_html__('Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore.','spicebox').'</p>
24
+ <div class="ptop-15"><a href="#" class="btn-ex-small btn-border">' . esc_html__('Our Story','spicebox').'</a></div>
25
  </div>
26
  </div>
27
+ </div>';
 
 
28
  $about_section_content = get_theme_mod('about_section_content',$default);
29
  ?>
30
  <section class="section-module about bg-grey <?php if($about_section_background=='') {?> left-right-half<?php }?>" <?php if($about_section_background!='') {?> style="background-image: url(<?php echo $about_section_background; ?>);"<?php } ?> id="about">
inc/innofit/sections/innofit-contact-section.php CHANGED
@@ -44,7 +44,7 @@ $contact_form_image_overlay = get_theme_mod('contact_form_image_overlay',true);
44
 
45
  <?php if( get_theme_mod('contact_info_enable',true) == true ):
46
 
47
- $default = __('<h2 class="title">Get in touch</h2><aside class="contact-widget"><div class="media"><div class="contact-icon"><i class="fa fa-map-marker"></i></div><div class="media-body"><h3 class="title">Find Us</h3><address>Porterfield 508 Virginia Street Chicago,<br> IL 60653 (USA)</address></div></div></aside><aside class="contact-widget"><div class="media"><div class="contact-icon"><i class="fa fa-mobile"></i></div><div class="media-body"><h3 class="title">Phone</h3><address>Mobile: (+91) 90 1900 - 6886 <br>Hotline: 1800 6886)</address></div></div></aside><aside class="contact-widget"><div class="media"><div class="contact-icon"><i class="fa fa-envelope-o"></i></div><div class="media-body"><h3 class="title">Email</h3><address><a href="mailto:suppor@tinnofit.com">support@innofit.com</a><a href="mailto:contact@innofit.com">contact@innofit.com</a></address></div></div></aside>','spicebox');
48
 
49
  $contact_info_content = get_theme_mod('contact_info_content',$default);
50
  ?>
44
 
45
  <?php if( get_theme_mod('contact_info_enable',true) == true ):
46
 
47
+ $default = '<h2 class="title">' . esc_html__('Get in touch','spicebox').'</h2><aside class="contact-widget"><div class="media"><div class="contact-icon"><i class="fa fa-map-marker"></i></div><div class="media-body"><h3 class="title">' . esc_html__('Find Us','spicebox').'</h3><address>' . esc_html__('Porterfield 508 Virginia Street Chicago,<br> IL 60653 (USA)','spicebox').'</address></div></div></aside><aside class="contact-widget"><div class="media"><div class="contact-icon"><i class="fa fa-mobile"></i></div><div class="media-body"><h3 class="title">' . esc_html__('Phone','spicebox').'</h3><address>' . esc_html__('Mobile: (+91) 90 1900 - 6886 <br>Hotline: 1800 6886)','spicebox').'</address></div></div></aside><aside class="contact-widget"><div class="media"><div class="contact-icon"><i class="fa fa-envelope-o"></i></div><div class="media-body"><h3 class="title">' . esc_html__('Email','spicebox').'</h3><address><a href="mailto:suppor@tinnofit.com">' . esc_html__('support@innofit.com','spicebox').'</a><a href="mailto:contact@innofit.com">' . esc_html__('contact@innofit.com','spicebox').'</a></address></div></div></aside>';
48
 
49
  $contact_info_content = get_theme_mod('contact_info_content',$default);
50
  ?>
readme.txt CHANGED
@@ -87,4 +87,8 @@ This plugin create repeater controls in the customizer settings allowing you to
87
 
88
  = 0.3.5 =
89
 
90
- 1. Added Innofit Plus functionality.
 
 
 
 
87
 
88
  = 0.3.5 =
89
 
90
+ 1. Added Innofit Plus functionality.
91
+
92
+ = 0.3.6 =
93
+
94
+ 1. Remove HTML markup from translate string in default data.
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.5
7
  Author: Spicethemes
8
  Author URI: https://github.com
9
  Text Domain: spicebox
3
  Plugin Name: SpiceBox
4
  Plugin URI:
5
  Description: Enhances SpiceThemes with extra functionality.
6
+ Version: 0.3.6
7
  Author: Spicethemes
8
  Author URI: https://github.com
9
  Text Domain: spicebox