Version Description
- description field tag issue resolved
Download this release
Release Info
Developer | wpshopmart |
Plugin | Tabs |
Version | 2.2.3 |
Comparing to | |
See all releases |
Code changes from version 2.2.2 to 2.2.3
- assets/css/bootstrap-front.css +1 -11
- ink/admin/data-post/tabs-save-data.php +1 -1
- readme.txt +4 -1
- tabs-responsive.php +6 -1
- template/allowed-tags.php +329 -0
- template/content.php +22 -4
- template/shortcode.php +2 -0
assets/css/bootstrap-front.css
CHANGED
@@ -1,13 +1,3 @@
|
|
1 |
-
/*!
|
2 |
-
* Bootstrap v3.3.6 (http://getbootstrap.com)
|
3 |
-
* Copyright 2011-2015 Twitter, Inc.
|
4 |
-
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
5 |
-
*/
|
6 |
-
/*! normalize.css v3.0.3 | MIT License | github.com/necolas/normalize.css */
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
.wpsm_nav {
|
12 |
padding-left: 0;
|
13 |
margin-bottom: 0;
|
@@ -193,7 +183,7 @@
|
|
193 |
display: none;
|
194 |
}
|
195 |
.tab-content > .active {
|
196 |
-
display: block;
|
197 |
}
|
198 |
.wpsm_nav-tabs .dropdown-menu {
|
199 |
margin-top: -1px;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
.wpsm_nav {
|
2 |
padding-left: 0;
|
3 |
margin-bottom: 0;
|
183 |
display: none;
|
184 |
}
|
185 |
.tab-content > .active {
|
186 |
+
display: block !important;
|
187 |
}
|
188 |
.wpsm_nav-tabs .dropdown-menu {
|
189 |
margin-top: -1px;
|
ink/admin/data-post/tabs-save-data.php
CHANGED
@@ -10,7 +10,7 @@ if(isset($PostID) && isset($_POST['tabs_r_save_data_action']) ) {
|
|
10 |
$tabs_title = stripslashes(sanitize_text_field($_POST['tabs_title'][$i]));
|
11 |
$tabs_title_icon = sanitize_text_field($_POST['tabs_title_icon'][$i]);
|
12 |
$enable_single_icon = sanitize_text_field($_POST['enable_single_icon'][$i]);
|
13 |
-
$tabs_desc = stripslashes(
|
14 |
$tabs_desc = str_replace('\\', '\', $tabs_desc);
|
15 |
$All_data[] = array(
|
16 |
'tabs_title' => $tabs_title,
|
10 |
$tabs_title = stripslashes(sanitize_text_field($_POST['tabs_title'][$i]));
|
11 |
$tabs_title_icon = sanitize_text_field($_POST['tabs_title_icon'][$i]);
|
12 |
$enable_single_icon = sanitize_text_field($_POST['enable_single_icon'][$i]);
|
13 |
+
$tabs_desc = stripslashes(wp_kses($_POST['tabs_desc'][$i],$allowedtags));
|
14 |
$tabs_desc = str_replace('\\', '\', $tabs_desc);
|
15 |
$All_data[] = array(
|
16 |
'tabs_title' => $tabs_title,
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://wpshopmart.com/plugins/tabs-pro-plugin/
|
|
4 |
Tags: tab, tabs, responsive tabs, animation, animated tab, css3 tabs, bootstrap tabs, tabs content, responsive, shortcode, widget, wordpress tabs, wp tabs, accordion, collapse, toggle, bootstrap tab, jquery, tab widget, tab shortcode, jquery tabs, sidebar, plugin, html, html5, html5 tabs
|
5 |
Requires at least: 5.0
|
6 |
Tested up to: 5.8.1
|
7 |
-
Stable tag: 2.2.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -160,6 +160,9 @@ Please use WordPress support forum to ask any query regarding any issue.
|
|
160 |
|
161 |
== Changelog ==
|
162 |
|
|
|
|
|
|
|
163 |
= 2.2.2 =
|
164 |
* Sanitization, Escaping and Nonce issue resolved
|
165 |
|
4 |
Tags: tab, tabs, responsive tabs, animation, animated tab, css3 tabs, bootstrap tabs, tabs content, responsive, shortcode, widget, wordpress tabs, wp tabs, accordion, collapse, toggle, bootstrap tab, jquery, tab widget, tab shortcode, jquery tabs, sidebar, plugin, html, html5, html5 tabs
|
5 |
Requires at least: 5.0
|
6 |
Tested up to: 5.8.1
|
7 |
+
Stable tag: 2.2.3
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
160 |
|
161 |
== Changelog ==
|
162 |
|
163 |
+
= 2.2.3 =
|
164 |
+
* description field tag issue resolved
|
165 |
+
|
166 |
= 2.2.2 =
|
167 |
* Sanitization, Escaping and Nonce issue resolved
|
168 |
|
tabs-responsive.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
* Plugin Name: Tabs Responsive
|
4 |
-
* Version: 2.2.
|
5 |
* Description: Tabs Responsive is the most easiest drag & drop Tabs builder for WordPress. You can add unlimited Tabs with unlimited color Scheme.
|
6 |
* Author: wpshopmart
|
7 |
* Author URI: https://www.wpshopmart.com
|
@@ -55,6 +55,11 @@ register_activation_hook( __FILE__, 'wpsm_tabs_r_default_data' );
|
|
55 |
*/
|
56 |
require_once("ink/admin/menu.php");
|
57 |
|
|
|
|
|
|
|
|
|
|
|
58 |
/**
|
59 |
* SHORTCODE
|
60 |
*/
|
1 |
<?php
|
2 |
/**
|
3 |
* Plugin Name: Tabs Responsive
|
4 |
+
* Version: 2.2.3
|
5 |
* Description: Tabs Responsive is the most easiest drag & drop Tabs builder for WordPress. You can add unlimited Tabs with unlimited color Scheme.
|
6 |
* Author: wpshopmart
|
7 |
* Author URI: https://www.wpshopmart.com
|
55 |
*/
|
56 |
require_once("ink/admin/menu.php");
|
57 |
|
58 |
+
/**
|
59 |
+
* allowed tags
|
60 |
+
*/
|
61 |
+
require_once("template/allowed-tags.php");
|
62 |
+
|
63 |
/**
|
64 |
* SHORTCODE
|
65 |
*/
|
template/allowed-tags.php
ADDED
@@ -0,0 +1,329 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
$allowedtags = array(
|
3 |
+
'address' => array(),
|
4 |
+
'a' => array(
|
5 |
+
'href' => true,
|
6 |
+
'rel' => true,
|
7 |
+
'rev' => true,
|
8 |
+
'name' => true,
|
9 |
+
'target' => true,
|
10 |
+
),
|
11 |
+
'abbr' => array(),
|
12 |
+
'acronym' => array(),
|
13 |
+
'area' => array(
|
14 |
+
'alt' => true,
|
15 |
+
'coords' => true,
|
16 |
+
'href' => true,
|
17 |
+
'nohref' => true,
|
18 |
+
'shape' => true,
|
19 |
+
'target' => true,
|
20 |
+
),
|
21 |
+
'article' => array(
|
22 |
+
'align' => true,
|
23 |
+
'dir' => true,
|
24 |
+
'lang' => true,
|
25 |
+
'xml:lang' => true,
|
26 |
+
),
|
27 |
+
'aside' => array(
|
28 |
+
'align' => true,
|
29 |
+
'dir' => true,
|
30 |
+
'lang' => true,
|
31 |
+
'xml:lang' => true,
|
32 |
+
),
|
33 |
+
'b' => array(),
|
34 |
+
'big' => array(),
|
35 |
+
'blockquote' => array(
|
36 |
+
'cite' => true,
|
37 |
+
'lang' => true,
|
38 |
+
'xml:lang' => true,
|
39 |
+
),
|
40 |
+
'br' => array(),
|
41 |
+
'button' => array(
|
42 |
+
'disabled' => true,
|
43 |
+
'name' => true,
|
44 |
+
'type' => true,
|
45 |
+
'value' => true,
|
46 |
+
),
|
47 |
+
'caption' => array(
|
48 |
+
'align' => true,
|
49 |
+
),
|
50 |
+
'cite' => array(
|
51 |
+
'dir' => true,
|
52 |
+
'lang' => true,
|
53 |
+
),
|
54 |
+
'code' => array(),
|
55 |
+
'col' => array(
|
56 |
+
'align' => true,
|
57 |
+
'char' => true,
|
58 |
+
'charoff' => true,
|
59 |
+
'span' => true,
|
60 |
+
'dir' => true,
|
61 |
+
'valign' => true,
|
62 |
+
'width' => true,
|
63 |
+
),
|
64 |
+
'del' => array(
|
65 |
+
'datetime' => true,
|
66 |
+
),
|
67 |
+
'dd' => array(),
|
68 |
+
'details' => array(
|
69 |
+
'align' => true,
|
70 |
+
'dir' => true,
|
71 |
+
'lang' => true,
|
72 |
+
'open' => true,
|
73 |
+
'xml:lang' => true,
|
74 |
+
),
|
75 |
+
'div' => array(
|
76 |
+
'align' => true,
|
77 |
+
'dir' => true,
|
78 |
+
'lang' => true,
|
79 |
+
'xml:lang' => true,
|
80 |
+
),
|
81 |
+
'dl' => array(),
|
82 |
+
'dt' => array(),
|
83 |
+
'em' => array(),
|
84 |
+
'fieldset' => array(),
|
85 |
+
'figure' => array(
|
86 |
+
'align' => true,
|
87 |
+
'dir' => true,
|
88 |
+
'lang' => true,
|
89 |
+
'xml:lang' => true,
|
90 |
+
),
|
91 |
+
'figcaption' => array(
|
92 |
+
'align' => true,
|
93 |
+
'dir' => true,
|
94 |
+
'lang' => true,
|
95 |
+
'xml:lang' => true,
|
96 |
+
),
|
97 |
+
'font' => array(
|
98 |
+
'color' => true,
|
99 |
+
'face' => true,
|
100 |
+
'size' => true,
|
101 |
+
),
|
102 |
+
'footer' => array(
|
103 |
+
'align' => true,
|
104 |
+
'dir' => true,
|
105 |
+
'lang' => true,
|
106 |
+
'xml:lang' => true,
|
107 |
+
),
|
108 |
+
'form' => array(
|
109 |
+
'action' => true,
|
110 |
+
'accept' => true,
|
111 |
+
'accept-charset' => true,
|
112 |
+
'enctype' => true,
|
113 |
+
'method' => true,
|
114 |
+
'name' => true,
|
115 |
+
'target' => true,
|
116 |
+
),
|
117 |
+
'h1' => array(
|
118 |
+
'align' => true,
|
119 |
+
),
|
120 |
+
'h2' => array(
|
121 |
+
'align' => true,
|
122 |
+
),
|
123 |
+
'h3' => array(
|
124 |
+
'align' => true,
|
125 |
+
),
|
126 |
+
'h4' => array(
|
127 |
+
'align' => true,
|
128 |
+
),
|
129 |
+
'h5' => array(
|
130 |
+
'align' => true,
|
131 |
+
),
|
132 |
+
'h6' => array(
|
133 |
+
'align' => true,
|
134 |
+
),
|
135 |
+
'header' => array(
|
136 |
+
'align' => true,
|
137 |
+
'dir' => true,
|
138 |
+
'lang' => true,
|
139 |
+
'xml:lang' => true,
|
140 |
+
),
|
141 |
+
'hgroup' => array(
|
142 |
+
'align' => true,
|
143 |
+
'dir' => true,
|
144 |
+
'lang' => true,
|
145 |
+
'xml:lang' => true,
|
146 |
+
),
|
147 |
+
'hr' => array(
|
148 |
+
'align' => true,
|
149 |
+
'noshade' => true,
|
150 |
+
'size' => true,
|
151 |
+
'width' => true,
|
152 |
+
),
|
153 |
+
'i' => array(),
|
154 |
+
'iframe' => array(
|
155 |
+
'width' => true,
|
156 |
+
'height' => true,
|
157 |
+
'src' => true,
|
158 |
+
'title' => true,
|
159 |
+
'frameborder' => true,
|
160 |
+
'allow' => true,
|
161 |
+
'allowfullscreen' => true,
|
162 |
+
),
|
163 |
+
'img' => array(
|
164 |
+
'alt' => true,
|
165 |
+
'align' => true,
|
166 |
+
'border' => true,
|
167 |
+
'height' => true,
|
168 |
+
'hspace' => true,
|
169 |
+
'longdesc' => true,
|
170 |
+
'vspace' => true,
|
171 |
+
'src' => true,
|
172 |
+
'usemap' => true,
|
173 |
+
'width' => true,
|
174 |
+
),
|
175 |
+
'ins' => array(
|
176 |
+
'datetime' => true,
|
177 |
+
'cite' => true,
|
178 |
+
),
|
179 |
+
'kbd' => array(),
|
180 |
+
'label' => array(
|
181 |
+
'for' => true,
|
182 |
+
),
|
183 |
+
'legend' => array(
|
184 |
+
'align' => true,
|
185 |
+
),
|
186 |
+
'li' => array(
|
187 |
+
'align' => true,
|
188 |
+
'value' => true,
|
189 |
+
),
|
190 |
+
'map' => array(
|
191 |
+
'name' => true,
|
192 |
+
),
|
193 |
+
'menu' => array(
|
194 |
+
'type' => true,
|
195 |
+
),
|
196 |
+
'nav' => array(
|
197 |
+
'align' => true,
|
198 |
+
'dir' => true,
|
199 |
+
'lang' => true,
|
200 |
+
'xml:lang' => true,
|
201 |
+
),
|
202 |
+
'p' => array(
|
203 |
+
'align' => true,
|
204 |
+
'dir' => true,
|
205 |
+
'lang' => true,
|
206 |
+
'xml:lang' => true,
|
207 |
+
),
|
208 |
+
'pre' => array(
|
209 |
+
'width' => true,
|
210 |
+
),
|
211 |
+
'q' => array(
|
212 |
+
'cite' => true,
|
213 |
+
),
|
214 |
+
's' => array(),
|
215 |
+
'script' => array(
|
216 |
+
'type' => true,
|
217 |
+
'src' => true,
|
218 |
+
),
|
219 |
+
'span' => array(
|
220 |
+
'dir' => true,
|
221 |
+
'align' => true,
|
222 |
+
'lang' => true,
|
223 |
+
'xml:lang' => true,
|
224 |
+
),
|
225 |
+
'section' => array(
|
226 |
+
'align' => true,
|
227 |
+
'dir' => true,
|
228 |
+
'lang' => true,
|
229 |
+
'xml:lang' => true,
|
230 |
+
),
|
231 |
+
'small' => array(),
|
232 |
+
'strike' => array(),
|
233 |
+
'strong' => array(),
|
234 |
+
'sub' => array(),
|
235 |
+
'summary' => array(
|
236 |
+
'align' => true,
|
237 |
+
'dir' => true,
|
238 |
+
'lang' => true,
|
239 |
+
'xml:lang' => true,
|
240 |
+
),
|
241 |
+
'sup' => array(),
|
242 |
+
'table' => array(
|
243 |
+
'align' => true,
|
244 |
+
'bgcolor' => true,
|
245 |
+
'border' => true,
|
246 |
+
'cellpadding' => true,
|
247 |
+
'cellspacing' => true,
|
248 |
+
'dir' => true,
|
249 |
+
'rules' => true,
|
250 |
+
'summary' => true,
|
251 |
+
'width' => true,
|
252 |
+
),
|
253 |
+
'tbody' => array(
|
254 |
+
'align' => true,
|
255 |
+
'char' => true,
|
256 |
+
'charoff' => true,
|
257 |
+
'valign' => true,
|
258 |
+
),
|
259 |
+
'td' => array(
|
260 |
+
'abbr' => true,
|
261 |
+
'align' => true,
|
262 |
+
'axis' => true,
|
263 |
+
'bgcolor' => true,
|
264 |
+
'char' => true,
|
265 |
+
'charoff' => true,
|
266 |
+
'colspan' => true,
|
267 |
+
'dir' => true,
|
268 |
+
'headers' => true,
|
269 |
+
'height' => true,
|
270 |
+
'nowrap' => true,
|
271 |
+
'rowspan' => true,
|
272 |
+
'scope' => true,
|
273 |
+
'valign' => true,
|
274 |
+
'width' => true,
|
275 |
+
),
|
276 |
+
'textarea' => array(
|
277 |
+
'cols' => true,
|
278 |
+
'rows' => true,
|
279 |
+
'disabled' => true,
|
280 |
+
'name' => true,
|
281 |
+
'readonly' => true,
|
282 |
+
),
|
283 |
+
'tfoot' => array(
|
284 |
+
'align' => true,
|
285 |
+
'char' => true,
|
286 |
+
'charoff' => true,
|
287 |
+
'valign' => true,
|
288 |
+
),
|
289 |
+
'th' => array(
|
290 |
+
'abbr' => true,
|
291 |
+
'align' => true,
|
292 |
+
'axis' => true,
|
293 |
+
'bgcolor' => true,
|
294 |
+
'char' => true,
|
295 |
+
'charoff' => true,
|
296 |
+
'colspan' => true,
|
297 |
+
'headers' => true,
|
298 |
+
'height' => true,
|
299 |
+
'nowrap' => true,
|
300 |
+
'rowspan' => true,
|
301 |
+
'scope' => true,
|
302 |
+
'valign' => true,
|
303 |
+
'width' => true,
|
304 |
+
),
|
305 |
+
'thead' => array(
|
306 |
+
'align' => true,
|
307 |
+
'char' => true,
|
308 |
+
'charoff' => true,
|
309 |
+
'valign' => true,
|
310 |
+
),
|
311 |
+
'title' => array(),
|
312 |
+
'tr' => array(
|
313 |
+
'align' => true,
|
314 |
+
'bgcolor' => true,
|
315 |
+
'char' => true,
|
316 |
+
'charoff' => true,
|
317 |
+
'valign' => true,
|
318 |
+
),
|
319 |
+
'tt' => array(),
|
320 |
+
'u' => array(),
|
321 |
+
'ul' => array(
|
322 |
+
'type' => true,
|
323 |
+
),
|
324 |
+
'ol' => array(
|
325 |
+
'start' => true,
|
326 |
+
'type' => true,
|
327 |
+
),
|
328 |
+
'var' => array(),
|
329 |
+
);
|
template/content.php
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
|
4 |
$AllTabs = array( 'p' => $WPSM_Tabs_ID, 'post_type' => $post_type, 'orderby' => 'ASC');
|
5 |
$loop = new WP_Query( $AllTabs );
|
@@ -78,7 +78,7 @@
|
|
78 |
$tabs_title_icon = $tabs_single_data['tabs_title_icon'];
|
79 |
$enable_single_icon = $tabs_single_data['enable_single_icon'];
|
80 |
?>
|
81 |
-
<li role="presentation" <?php if($i==1){ ?> class="active" <?php } ?> >
|
82 |
<a href="#tabs_desc_<?php echo esc_attr($post_id); ?>_<?php echo esc_attr($i); ?>" aria-controls="tabs_desc_<?php echo esc_attr($post_id); ?>_<?php echo esc_attr($i); ?>" role="tab" data-toggle="tab">
|
83 |
|
84 |
<?php if($show_tabs_icon_align=="left"){ ?>
|
@@ -116,7 +116,8 @@
|
|
116 |
$enable_single_icon = $tabs_single_data['enable_single_icon'];
|
117 |
?>
|
118 |
<div role="tabpanel" class="tab-pane <?php if($j==1){ ?> in active <?php } ?>" id="tabs_desc_<?php echo esc_attr($post_id); ?>_<?php echo esc_attr($j); ?>">
|
119 |
-
<?php echo do_shortcode(
|
|
|
120 |
</div>
|
121 |
<?php $j++; } ?>
|
122 |
</div>
|
@@ -144,6 +145,23 @@
|
|
144 |
}
|
145 |
});
|
146 |
<?php } ?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
147 |
</script>
|
148 |
|
149 |
<?php
|
1 |
+
<?php
|
2 |
+
$post_type = "tabs_responsive";
|
3 |
|
4 |
$AllTabs = array( 'p' => $WPSM_Tabs_ID, 'post_type' => $post_type, 'orderby' => 'ASC');
|
5 |
$loop = new WP_Query( $AllTabs );
|
78 |
$tabs_title_icon = $tabs_single_data['tabs_title_icon'];
|
79 |
$enable_single_icon = $tabs_single_data['enable_single_icon'];
|
80 |
?>
|
81 |
+
<li role="presentation" <?php if($i==1){ ?> class="active" <?php } ?> onclick="do_resize()">
|
82 |
<a href="#tabs_desc_<?php echo esc_attr($post_id); ?>_<?php echo esc_attr($i); ?>" aria-controls="tabs_desc_<?php echo esc_attr($post_id); ?>_<?php echo esc_attr($i); ?>" role="tab" data-toggle="tab">
|
83 |
|
84 |
<?php if($show_tabs_icon_align=="left"){ ?>
|
116 |
$enable_single_icon = $tabs_single_data['enable_single_icon'];
|
117 |
?>
|
118 |
<div role="tabpanel" class="tab-pane <?php if($j==1){ ?> in active <?php } ?>" id="tabs_desc_<?php echo esc_attr($post_id); ?>_<?php echo esc_attr($j); ?>">
|
119 |
+
<?php echo do_shortcode(wp_kses($tabs_desc,$allowedtags));
|
120 |
+
?>
|
121 |
</div>
|
122 |
<?php $j++; } ?>
|
123 |
</div>
|
145 |
}
|
146 |
});
|
147 |
<?php } ?>
|
148 |
+
|
149 |
+
|
150 |
+
function do_resize(){
|
151 |
+
|
152 |
+
var width=jQuery( '.tab-content .tab-pane iframe' ).width();
|
153 |
+
var height=jQuery( '.tab-content .tab-pane iframe' ).height();
|
154 |
+
|
155 |
+
var toggleSize = true;
|
156 |
+
jQuery('iframe').animate({
|
157 |
+
width: toggleSize ? width : 640,
|
158 |
+
height: toggleSize ? height : 360
|
159 |
+
}, 250);
|
160 |
+
|
161 |
+
toggleSize = !toggleSize;
|
162 |
+
}
|
163 |
+
|
164 |
+
|
165 |
</script>
|
166 |
|
167 |
<?php
|
template/shortcode.php
CHANGED
@@ -11,8 +11,10 @@ function TABS_R_ShortCode( $Id ) {
|
|
11 |
{
|
12 |
$WPSM_Tabs_ID = $Id['id'];
|
13 |
}
|
|
|
14 |
require("content.php");
|
15 |
|
|
|
16 |
wp_reset_query();
|
17 |
return ob_get_clean();
|
18 |
}
|
11 |
{
|
12 |
$WPSM_Tabs_ID = $Id['id'];
|
13 |
}
|
14 |
+
include("allowed-tags.php");
|
15 |
require("content.php");
|
16 |
|
17 |
+
|
18 |
wp_reset_query();
|
19 |
return ob_get_clean();
|
20 |
}
|