Cherry Services List - Version 1.3.2

Version Description

  • FIX: Minor fixes
Download this release

Release Info

Developer TemplateMonster 2002
Plugin Icon 128x128 Cherry Services List
Version 1.3.2
Comparing to
See all releases

Code changes from version 1.3.1 to 1.3.2

cherry-services-list.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Cherry Services List
4
  * Plugin URI: http://www.cherryframework.com/plugins/
5
  * Description: Cherry Services is a flexible WordPress plugin that lets you display your company’s services in a variety of ways.
6
- * Version: 1.3.1
7
  * Author: TemplateMonster
8
  * Author URI: http://cherryframework.com/
9
  * Text Domain: cherry-services
@@ -92,7 +92,7 @@ if ( ! class_exists( 'Cherry_Services_List' ) ) {
92
  * @access private
93
  * @var string
94
  */
95
- private $version = '1.3.1';
96
 
97
  /**
98
  * Plugin CPT name
3
  * Plugin Name: Cherry Services List
4
  * Plugin URI: http://www.cherryframework.com/plugins/
5
  * Description: Cherry Services is a flexible WordPress plugin that lets you display your company’s services in a variety of ways.
6
+ * Version: 1.3.2
7
  * Author: TemplateMonster
8
  * Author URI: http://cherryframework.com/
9
  * Text Domain: cherry-services
92
  * @access private
93
  * @var string
94
  */
95
+ private $version = '1.3.2';
96
 
97
  /**
98
  * Plugin CPT name
public/includes/class-cherry-services-list-shortcode.php CHANGED
@@ -307,8 +307,15 @@ class Cherry_Services_List_Shortcode {
307
  * @return array
308
  */
309
  public function get_categories() {
310
- $tax = cherry_services_list()->tax( 'category' );
311
- return cherry_services_list()->utilities->utility->satellite->get_terms_array( $tax, 'slug' );
 
 
 
 
 
 
 
312
  }
313
 
314
  /**
307
  * @return array
308
  */
309
  public function get_categories() {
310
+
311
+ $tax = cherry_services_list()->tax( 'category' );
312
+ $categories = cherry_services_list()->utilities->utility->satellite->get_terms_array( $tax, 'slug' );
313
+
314
+ if ( empty( $categories ) ) {
315
+ $categories = array();
316
+ }
317
+
318
+ return $categories;
319
  }
320
 
321
  /**
public/includes/ext/class-cherry-services-list-elementor-module.php CHANGED
@@ -182,6 +182,11 @@ class Cherry_Services_Elementor_Widget extends Elementor\Widget_Base {
182
  foreach ( $args as $name => $arg ) {
183
 
184
  if ( empty( $settings[ $name ] ) ) {
 
 
 
 
 
185
  continue;
186
  }
187
 
182
  foreach ( $args as $name => $arg ) {
183
 
184
  if ( empty( $settings[ $name ] ) ) {
185
+
186
+ if ( 'switcher' === $arg['type'] ) {
187
+ $shortcode_atts .= sprintf( ' %1$s="%2$s"', $name, 'false' );
188
+ }
189
+
190
  continue;
191
  }
192
 
readme.txt CHANGED
@@ -3,8 +3,8 @@
3
  Contributors: TemplateMonster 2002
4
  Tags: custom post type, services, service, cherry-framework, elementor, elementor builder
5
  Requires at least: 4.5
6
- Tested up to: 4.7.4
7
- Stable tag: 1.3.1
8
  License: GPLv3 or later
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
@@ -44,6 +44,10 @@ If you have Cherry Testimonials plugin installed on your website, you can also i
44
 
45
  == Changelog ==
46
 
 
 
 
 
47
  = 1.3.1 =
48
 
49
  * FIX: Prevent PHP notices in Elementor module
3
  Contributors: TemplateMonster 2002
4
  Tags: custom post type, services, service, cherry-framework, elementor, elementor builder
5
  Requires at least: 4.5
6
+ Tested up to: 4.7.5
7
+ Stable tag: 1.3.2
8
  License: GPLv3 or later
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
44
 
45
  == Changelog ==
46
 
47
+ = 1.3.2 =
48
+
49
+ * FIX: Minor fixes
50
+
51
  = 1.3.1 =
52
 
53
  * FIX: Prevent PHP notices in Elementor module