Addons for WPBakery Page Builder - Version 1.3

Version Description

  • Fixed - Check for page id when displaying posts/pages in a grid to avoid infinite loop
  • Fixed - Tabs not processing shortcode content
  • Fixed - Accordion/Toggle element not processing shortcode content
Download this release

Release Info

Developer livemesh
Plugin Icon 128x128 Addons for WPBakery Page Builder
Version 1.3
Comparing to
See all releases

Code changes from version 1.2 to 1.3

includes/addons/accordion/class-lvca-accordion.php CHANGED
@@ -78,7 +78,7 @@ class LVCA_Accordion {
78
 
79
  <div class="lvca-panel-title"><?php echo esc_html($panel_title); ?></div>
80
 
81
- <div class="lvca-panel-content"><?php echo wp_kses_post($content) ?></div>
82
 
83
  </div>
84
 
78
 
79
  <div class="lvca-panel-title"><?php echo esc_html($panel_title); ?></div>
80
 
81
+ <div class="lvca-panel-content"><?php echo do_shortcode($content) ?></div>
82
 
83
  </div>
84
 
includes/addons/portfolio/class-lvca-portfolio.php CHANGED
@@ -99,6 +99,8 @@ class LVCA_Portfolio {
99
 
100
  $settings = shortcode_atts($defaults, $atts);
101
 
 
 
102
  $posts_query = $settings['posts_query'];
103
 
104
  if (is_array($posts_query)) {
@@ -163,8 +165,8 @@ class LVCA_Portfolio {
163
  <?php while ($loop->have_posts()) : $loop->the_post(); ?>
164
 
165
  <?php
166
- if (get_post_type() === 'page')
167
- continue; // skip pages since they can run into infinite loop when users choose pages option in build query
168
  ?>
169
 
170
  <?php
99
 
100
  $settings = shortcode_atts($defaults, $atts);
101
 
102
+ $current_page = get_queried_object_id();
103
+
104
  $posts_query = $settings['posts_query'];
105
 
106
  if (is_array($posts_query)) {
165
  <?php while ($loop->have_posts()) : $loop->the_post(); ?>
166
 
167
  <?php
168
+ if (get_the_ID() === $current_page)
169
+ continue; // skip the current page since they can run into infinite loop when users choose All option in build query
170
  ?>
171
 
172
  <?php
includes/addons/tabs/class-lvca-tabs.php CHANGED
@@ -213,7 +213,7 @@ class LVCA_Tabs {
213
 
214
  $tab_nav = '<div class="lvca-tab">' . $tab_element . '</div>';
215
 
216
- $tab_content = '<div id="' . $tab_id . '" class="lvca-tab-pane">' . wp_kses_post($content) . '</div>';
217
 
218
  $this->_tab_elements[] = $tab_nav;
219
  $this->_tab_panes[] = $tab_content;
213
 
214
  $tab_nav = '<div class="lvca-tab">' . $tab_element . '</div>';
215
 
216
+ $tab_content = '<div id="' . $tab_id . '" class="lvca-tab-pane">' . do_shortcode($content) . '</div>';
217
 
218
  $this->_tab_elements[] = $tab_nav;
219
  $this->_tab_panes[] = $tab_content;
includes/addons/tabs/css/style.scss CHANGED
@@ -628,7 +628,7 @@ $theme_color: #f94213;
628
  .lvca-tab {
629
  padding: 0 25px 0 0;
630
  a {
631
- max-width: 180px;
632
  margin: 6px 0;
633
  @include respond-to-max(479) {
634
  text-align: center;
628
  .lvca-tab {
629
  padding: 0 25px 0 0;
630
  a {
631
+ max-width: none;
632
  margin: 6px 0;
633
  @include respond-to-max(479) {
634
  text-align: center;
includes/addons/testimonials-slider/css/style.scss CHANGED
@@ -4,6 +4,7 @@
4
  position: relative;
5
  &.lvca-container {
6
  max-width: 900px;
 
7
  }
8
  .lvca-testimonial-text {
9
  text-align: center;
4
  position: relative;
5
  &.lvca-container {
6
  max-width: 900px;
7
+ margin: 0 auto;
8
  }
9
  .lvca-testimonial-text {
10
  text-align: center;
livemesh-vc-addons.php CHANGED
@@ -7,7 +7,7 @@
7
  * Author URI: http://portfoliotheme.org/
8
  * License: GPL3
9
  * License URI: https://www.gnu.org/licenses/gpl-3.0.txt
10
- * Version: 1.2
11
  * Text Domain: livemesh-vc-addons
12
  * Domain Path: languages
13
  *
@@ -97,7 +97,7 @@ if (!class_exists('Livemesh_VC_Addons')) :
97
 
98
  // Plugin version
99
  if (!defined('LVCA_VERSION')) {
100
- define('LVCA_VERSION', '1.0');
101
  }
102
 
103
  // Plugin Folder Path
7
  * Author URI: http://portfoliotheme.org/
8
  * License: GPL3
9
  * License URI: https://www.gnu.org/licenses/gpl-3.0.txt
10
+ * Version: 1.3
11
  * Text Domain: livemesh-vc-addons
12
  * Domain Path: languages
13
  *
97
 
98
  // Plugin version
99
  if (!defined('LVCA_VERSION')) {
100
+ define('LVCA_VERSION', '1.3');
101
  }
102
 
103
  // Plugin Folder Path
readme.txt CHANGED
@@ -4,8 +4,8 @@ Plugin URI: http://portfoliotheme.org/visual-composer-addons
4
  Contributors: livemesh
5
  Tags: visual composer, visual composer addons, vc addons, visual composer extensions, vc extensions, page builder, portfolio, carousel, Post, posts, shortcode, tabs, admin, plugin, page
6
  Requires at least: 4.1
7
- Tested up to: 4.5.2
8
- Stable Tag: 1.2
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html-func
11
 
@@ -82,6 +82,11 @@ Pls install and activate Jetpack plugin, activate the Custom Post Types module a
82
 
83
  == Changelog ==
84
 
 
 
 
 
 
85
  = 1.2 =
86
  * Fixed PHP warnings raised in certain themes that customize VC.
87
  * Performed compatibility checks with a number of premium themes; fixed any issues found.
4
  Contributors: livemesh
5
  Tags: visual composer, visual composer addons, vc addons, visual composer extensions, vc extensions, page builder, portfolio, carousel, Post, posts, shortcode, tabs, admin, plugin, page
6
  Requires at least: 4.1
7
+ Tested up to: 4.6
8
+ Stable Tag: 1.3
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html-func
11
 
82
 
83
  == Changelog ==
84
 
85
+ = 1.3 =
86
+ * Fixed - Check for page id when displaying posts/pages in a grid to avoid infinite loop
87
+ * Fixed - Tabs not processing shortcode content
88
+ * Fixed - Accordion/Toggle element not processing shortcode content
89
+
90
  = 1.2 =
91
  * Fixed PHP warnings raised in certain themes that customize VC.
92
  * Performed compatibility checks with a number of premium themes; fixed any issues found.