Version Description
Release Date: 05.06.2014
-
New features
- Shortcode Description: New attribute shadowtype.
- Shortcode Vertical tabs: New attribute for changing left tab width.
-
Bugfixes
- Last column.
Download this release
Release Info
Developer | fruitfulcode |
Plugin | Fruitful Shortcodes |
Version | 1.1 |
Comparing to | |
See all releases |
Code changes from version 1.0 to 1.1
- ff-shortcodes.php +1 -1
- includes/admin/admin-options.php +1 -1
- includes/shortcodes/css/fruitful_shortcode_style.css +219 -11
- includes/shortcodes/shortcodes.php +25 -12
- readme.txt +32 -12
- screenshot-10.png +0 -0
- screenshot-11.png +0 -0
- screenshot-4.png +0 -0
- screenshot-5.png +0 -0
- screenshot-6.png +0 -0
- screenshot-7.png +0 -0
- screenshot-8.png +0 -0
- screenshot-9.png +0 -0
ff-shortcodes.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Fruitful Shortcodes
|
4 |
Plugin URI: http://plugins.fruitfulcode.com/shortcodes/
|
5 |
Description: Add additional content shortcodes: horizontal tabs, vertical tabs, accordion, promo text, columns, infobox, separator, alert, progress bar, button,
|
6 |
-
Version: 1.
|
7 |
Author: fruitfulcode
|
8 |
Author URI: http://fruitfulcode.com
|
9 |
License: GPL2
|
3 |
Plugin Name: Fruitful Shortcodes
|
4 |
Plugin URI: http://plugins.fruitfulcode.com/shortcodes/
|
5 |
Description: Add additional content shortcodes: horizontal tabs, vertical tabs, accordion, promo text, columns, infobox, separator, alert, progress bar, button,
|
6 |
+
Version: 1.1
|
7 |
Author: fruitfulcode
|
8 |
Author URI: http://fruitfulcode.com
|
9 |
License: GPL2
|
includes/admin/admin-options.php
CHANGED
@@ -44,7 +44,7 @@ class ffsSettingsPage {
|
|
44 |
|
45 |
add_settings_section(
|
46 |
'ffsSettingSection', // ID
|
47 |
-
'
|
48 |
null, // Callback
|
49 |
'ffsAdminSettings' // Page
|
50 |
);
|
44 |
|
45 |
add_settings_section(
|
46 |
'ffsSettingSection', // ID
|
47 |
+
'', // Title
|
48 |
null, // Callback
|
49 |
'ffsAdminSettings' // Page
|
50 |
);
|
includes/shortcodes/css/fruitful_shortcode_style.css
CHANGED
@@ -178,7 +178,8 @@
|
|
178 |
}
|
179 |
|
180 |
|
181 |
-
.fruitful_description:before
|
|
|
182 |
position: absolute;
|
183 |
width: 80%;
|
184 |
height: 45%;
|
@@ -187,13 +188,13 @@
|
|
187 |
z-index: -1;
|
188 |
top: 0%;
|
189 |
content: "";
|
190 |
-
-moz-box-shadow: 0 -
|
191 |
-
-webkit-box-shadow: 0 -
|
192 |
-
box-shadow: 0 -
|
193 |
-
|
194 |
}
|
195 |
|
196 |
-
.fruitful_description:after
|
|
|
197 |
position: absolute;
|
198 |
width: 80%;
|
199 |
height: 45%;
|
@@ -202,12 +203,219 @@
|
|
202 |
z-index: -1;
|
203 |
bottom: 0%;
|
204 |
content: "";
|
205 |
-
-moz-box-shadow: 0
|
206 |
-
-webkit-box-shadow: 0
|
207 |
-
box-shadow: 0
|
208 |
}
|
209 |
-
|
210 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
211 |
.fruitful_description .text {
|
212 |
margin:0 auto;
|
213 |
width: 90%;
|
178 |
}
|
179 |
|
180 |
|
181 |
+
.fruitful_description.shadow-type-4:before ,
|
182 |
+
.fruitful_description.shadow-type-5:before {
|
183 |
position: absolute;
|
184 |
width: 80%;
|
185 |
height: 45%;
|
188 |
z-index: -1;
|
189 |
top: 0%;
|
190 |
content: "";
|
191 |
+
-moz-box-shadow: 0 -2px 16px rgba(0,0,0,0.4);
|
192 |
+
-webkit-box-shadow: 0 -2px 16px rgba(0,0,0,0.4);
|
193 |
+
box-shadow: 0 -2px 16px rgba(0,0,0,0.4);
|
|
|
194 |
}
|
195 |
|
196 |
+
.fruitful_description.shadow-type-4:after,
|
197 |
+
.fruitful_description.shadow-type-5:after {
|
198 |
position: absolute;
|
199 |
width: 80%;
|
200 |
height: 45%;
|
203 |
z-index: -1;
|
204 |
bottom: 0%;
|
205 |
content: "";
|
206 |
+
-moz-box-shadow: 0 2px 16px rgba(0,0,0,0.4);
|
207 |
+
-webkit-box-shadow: 0 2px 16px rgba(0,0,0,0.4);
|
208 |
+
box-shadow: 0 2px 16px rgba(0,0,0,0.4);
|
209 |
}
|
210 |
+
|
211 |
+
|
212 |
+
.fruitful_description.shadow-type-1:before,
|
213 |
+
.fruitful_description.shadow-type-1:after {
|
214 |
+
display:none;
|
215 |
+
}
|
216 |
+
|
217 |
+
.fruitful_description.shadow-type-1 .top_line{
|
218 |
+
z-index: 2;
|
219 |
+
display: block;
|
220 |
+
width: 100%;
|
221 |
+
height: 15px;
|
222 |
+
overflow: hidden;
|
223 |
+
position: absolute;
|
224 |
+
top: 0;
|
225 |
+
left: 0;
|
226 |
+
}
|
227 |
+
.fruitful_description.shadow-type-1 .top_line:before,
|
228 |
+
.fruitful_description.shadow-type-1 .top_line:after{
|
229 |
+
z-index: 1;
|
230 |
+
position: absolute;
|
231 |
+
content: "";
|
232 |
+
top: -20px;
|
233 |
+
left: 10px;
|
234 |
+
width: 50%;
|
235 |
+
bottom: 31px;
|
236 |
+
max-width: 300px;
|
237 |
+
background: #777;
|
238 |
+
-webkit-box-shadow: 0 13px 16px #777;
|
239 |
+
-moz-box-shadow: 0 13px 16px #777;
|
240 |
+
box-shadow: 0 13px 16px #777;
|
241 |
+
-webkit-transform: rotate(-1.5deg);
|
242 |
+
-moz-transform: rotate(-1.5deg);
|
243 |
+
-o-transform: rotate(-1.5deg);
|
244 |
+
-ms-transform: rotate(-1.5deg);
|
245 |
+
transform: rotate(-1.5deg);
|
246 |
+
}
|
247 |
+
|
248 |
+
.fruitful_description.shadow-type-1 .top_line:after{
|
249 |
+
-webkit-transform: rotate(1.5deg);
|
250 |
+
-moz-transform: rotate(1.5deg);
|
251 |
+
-o-transform: rotate(1.5deg);
|
252 |
+
-ms-transform: rotate(1.5deg);
|
253 |
+
transform: rotate(1.5deg);
|
254 |
+
right: 10px;
|
255 |
+
left: auto;
|
256 |
+
}
|
257 |
+
|
258 |
+
.fruitful_description.shadow-type-1 .bottom_line{
|
259 |
+
z-index: 2;
|
260 |
+
display: block;
|
261 |
+
width: 100%;
|
262 |
+
height: 15px;
|
263 |
+
overflow: hidden;
|
264 |
+
position: absolute;
|
265 |
+
bottom: 0;
|
266 |
+
left: 0;
|
267 |
+
}
|
268 |
+
|
269 |
+
.fruitful_description.shadow-type-1 .bottom_line:before,
|
270 |
+
.fruitful_description.shadow-type-1 .bottom_line:after{
|
271 |
+
z-index: 1;
|
272 |
+
position: absolute;
|
273 |
+
content: "";
|
274 |
+
top: 31px;
|
275 |
+
left: 10px;
|
276 |
+
width: 50%;
|
277 |
+
bottom: -20px;
|
278 |
+
max-width: 300px;
|
279 |
+
background: #777;
|
280 |
+
-webkit-box-shadow: 0 -13px 16px #777;
|
281 |
+
box-shadow: 0 -13px 16px #777;
|
282 |
+
-webkit-transform: rotate(1.5deg);
|
283 |
+
-moz-transform: rotate(1.5deg);
|
284 |
+
-o-transform: rotate(1.5deg);
|
285 |
+
-ms-transform: rotate(1.5deg);
|
286 |
+
transform: rotate(1.5deg);
|
287 |
+
}
|
288 |
+
|
289 |
+
.fruitful_description.shadow-type-1 .bottom_line:after{
|
290 |
+
-webkit-transform: rotate(-1.5deg);
|
291 |
+
-moz-transform: rotate(-1.5deg);
|
292 |
+
-o-transform: rotate(-1.5deg);
|
293 |
+
-ms-transform: rotate(-1.5deg);
|
294 |
+
transform: rotate(-1.5deg);
|
295 |
+
right: 10px;
|
296 |
+
left: auto;
|
297 |
+
}
|
298 |
+
|
299 |
+
.fruitful_description.shadow-type-2:before,
|
300 |
+
.fruitful_description.shadow-type-2:after {
|
301 |
+
display:none;
|
302 |
+
}
|
303 |
+
|
304 |
+
.fruitful_description.shadow-type-2 .top_line{
|
305 |
+
position: absolute;
|
306 |
+
width: 100%;
|
307 |
+
height: 10px;
|
308 |
+
overflow: hidden;
|
309 |
+
}
|
310 |
+
.fruitful_description.shadow-type-2 .top_line:before{
|
311 |
+
position: absolute;
|
312 |
+
width: 50%;
|
313 |
+
height: 45%;
|
314 |
+
overflow: hidden;
|
315 |
+
left: 25%;
|
316 |
+
border-radius: 50%;
|
317 |
+
z-index: 1;
|
318 |
+
top: -38%;
|
319 |
+
content: "";
|
320 |
+
-moz-box-shadow: 0 -2px 16px rgba(0,0,0,0.4);
|
321 |
+
-webkit-box-shadow: 0 -2px 16px rgba(0,0,0,0.4);
|
322 |
+
box-shadow: 0 0px 16px rgba(0,0,0,0.4);
|
323 |
+
}
|
324 |
+
|
325 |
+
.fruitful_description.shadow-type-2 .bottom_line{
|
326 |
+
position: absolute;
|
327 |
+
width: 100%;
|
328 |
+
height: 10px;
|
329 |
+
overflow: hidden;
|
330 |
+
bottom: 0px;
|
331 |
+
}
|
332 |
+
.fruitful_description.shadow-type-2 .bottom_line:before{
|
333 |
+
position: absolute;
|
334 |
+
width: 50%;
|
335 |
+
height: 45%;
|
336 |
+
overflow: hidden;
|
337 |
+
left: 25%;
|
338 |
+
border-radius: 50%;
|
339 |
+
z-index: 1;
|
340 |
+
top: 100%;
|
341 |
+
content: "";
|
342 |
+
-moz-box-shadow: 0 -2px 16px rgba(0,0,0,0.4);
|
343 |
+
-webkit-box-shadow: 0 -2px 16px rgba(0,0,0,0.4);
|
344 |
+
box-shadow: 0 0 16px rgba(0,0,0,0.4);
|
345 |
+
}
|
346 |
+
|
347 |
+
.fruitful_description.shadow-type-3:before,
|
348 |
+
.fruitful_description.shadow-type-3:after {
|
349 |
+
display:none;
|
350 |
+
}
|
351 |
+
|
352 |
+
.fruitful_description.shadow-type-3 .top_line:before,
|
353 |
+
.fruitful_description.shadow-type-3 .top_line:after,
|
354 |
+
.fruitful_description.shadow-type-5 .top_line:before,
|
355 |
+
.fruitful_description.shadow-type-5 .top_line:after{
|
356 |
+
z-index: -1;
|
357 |
+
position: absolute;
|
358 |
+
content: "";
|
359 |
+
top: 15px;
|
360 |
+
left: 10px;
|
361 |
+
width: 50%;
|
362 |
+
bottom: 80%;
|
363 |
+
max-width: 300px;
|
364 |
+
background: #777;
|
365 |
+
-webkit-box-shadow: 0 -13px 16px #777;
|
366 |
+
box-shadow: 0 -13px 16px #777;
|
367 |
+
-webkit-transform: rotate(3deg);
|
368 |
+
-moz-transform: rotate(-3deg);
|
369 |
+
-o-transform: rotate(-3deg);
|
370 |
+
-ms-transform: rotate(-3deg);
|
371 |
+
transform: rotate(-3deg);
|
372 |
+
}
|
373 |
+
|
374 |
+
.fruitful_description.shadow-type-3 .top_line:after,
|
375 |
+
.fruitful_description.shadow-type-5 .top_line:after{
|
376 |
+
-webkit-transform: rotate(-3deg);
|
377 |
+
-moz-transform: rotate(-3deg);
|
378 |
+
-o-transform: rotate(-3deg);
|
379 |
+
-ms-transform: rotate(-3deg);
|
380 |
+
transform: rotate(-3deg);
|
381 |
+
right: 10px;
|
382 |
+
left: auto;
|
383 |
+
}
|
384 |
+
|
385 |
+
.fruitful_description.shadow-type-3 .bottom_line:before,
|
386 |
+
.fruitful_description.shadow-type-3 .bottom_line:after,
|
387 |
+
.fruitful_description.shadow-type-5 .bottom_line:before,
|
388 |
+
.fruitful_description.shadow-type-5 .bottom_line:after{
|
389 |
+
z-index: -1;
|
390 |
+
position: absolute;
|
391 |
+
content: "";
|
392 |
+
bottom: 15px;
|
393 |
+
left: 10px;
|
394 |
+
width: 50%;
|
395 |
+
top: 80%;
|
396 |
+
max-width:300px;
|
397 |
+
background: #777;
|
398 |
+
-webkit-box-shadow: 0 13px 16px #777;
|
399 |
+
-moz-box-shadow: 0 13px 16px #777;
|
400 |
+
box-shadow: 0 13px 16px #777;
|
401 |
+
-webkit-transform: rotate(-3deg);
|
402 |
+
-moz-transform: rotate(-3deg);
|
403 |
+
-o-transform: rotate(-3deg);
|
404 |
+
-ms-transform: rotate(-3deg);
|
405 |
+
transform: rotate(-3deg);
|
406 |
+
}
|
407 |
+
|
408 |
+
.fruitful_description.shadow-type-3 .bottom_line:after,
|
409 |
+
.fruitful_description.shadow-type-5 .bottom_line:after{
|
410 |
+
-webkit-transform: rotate(3deg);
|
411 |
+
-moz-transform: rotate(3deg);
|
412 |
+
-o-transform: rotate(3deg);
|
413 |
+
-ms-transform: rotate(3deg);
|
414 |
+
transform: rotate(3deg);
|
415 |
+
right: 10px;
|
416 |
+
left: auto;
|
417 |
+
}
|
418 |
+
|
419 |
.fruitful_description .text {
|
420 |
margin:0 auto;
|
421 |
width: 90%;
|
includes/shortcodes/shortcodes.php
CHANGED
@@ -22,7 +22,8 @@ function fruitful_description_box ($atts, $content = null) {
|
|
22 |
$out = '';
|
23 |
shortcode_atts(array(
|
24 |
'id' => '',
|
25 |
-
'style' => ''
|
|
|
26 |
), $atts, 'fruitful_dbox');
|
27 |
|
28 |
$id = 'desc-box-' . rand( 1, 100 );
|
@@ -33,13 +34,18 @@ function fruitful_description_box ($atts, $content = null) {
|
|
33 |
$style = ' font-size: 40px; text-transform : uppercase; text-align: center; font-weight: 300; line-height: 1.2;';
|
34 |
}
|
35 |
|
36 |
-
if (!empty($atts['id']))
|
37 |
-
if (!empty($atts['style']))
|
38 |
-
|
|
|
39 |
$out .= '<div class="fruitful_description_box">';
|
40 |
-
$out .= '<div class="fruitful_description
|
41 |
-
if (!empty($
|
42 |
-
|
|
|
|
|
|
|
|
|
43 |
$out .= '</div>';
|
44 |
$out .= '</div>';
|
45 |
$out .= '<div class="clearfix"></div>';
|
@@ -93,7 +99,7 @@ function fruitful_info_box ($atts, $content = null) {
|
|
93 |
if (isset($image)) { $image = esc_url ($image); }
|
94 |
if (isset($styletext)) { $styletext = esc_html($styletext); }
|
95 |
if (isset($styletitle)) { $styletitle = esc_html($styletitle); }
|
96 |
-
if (isset($last)) { $last = 'last'; } else { $last = ''; }
|
97 |
if (isset($icon_position)) { $icon_position = sanitize_html_class($icon_position);}
|
98 |
if (isset($icon)) { $icon = sanitize_html_class($icon);}
|
99 |
|
@@ -141,18 +147,20 @@ function fruitful_tabs_shortcode($atts, $content = null) {
|
|
141 |
$output = '';
|
142 |
$tab_titles = array();
|
143 |
$tabs_class = 'tab_titles';
|
144 |
-
shortcode_atts(array('id' => '', 'type' => '', 'width' => '', 'fit' => ''), $atts, 'fruitful_tabs');
|
145 |
|
146 |
$id = 'ffs-tabbed-' . rand( 1, 100 );
|
147 |
$type = 'default';
|
148 |
$width = 'auto';
|
149 |
$fit = 'false';
|
150 |
$link = '#';
|
|
|
151 |
|
152 |
if (isset($atts['id'])) { $id = sanitize_html_class($atts['id']); }
|
153 |
if (isset($atts['type'])) { $type = esc_js($atts['type']); }
|
154 |
if (isset($atts['width'])) { $width = esc_js($atts['width']); }
|
155 |
if (isset($atts['fit'])) { $fit = esc_js($atts['fit']); }
|
|
|
156 |
|
157 |
$output .= '<script type="text/javascript"> ';
|
158 |
$output .= 'jQuery(document).ready(function() { ';
|
@@ -160,15 +168,20 @@ function fruitful_tabs_shortcode($atts, $content = null) {
|
|
160 |
$output .= ' type: "'.$type.'", ';
|
161 |
$output .= ' width: "'.$width.'", ';
|
162 |
$output .= ' fit: '.$fit;
|
163 |
-
$output .= '
|
164 |
-
|
|
|
|
|
165 |
$output .= '</script>';
|
166 |
|
167 |
preg_match_all( '/tab title="([^\"]+)"/i', $content, $matches, PREG_OFFSET_CAPTURE );
|
168 |
if ( isset( $matches[1] ) ) { $tabs = $matches[1]; }
|
169 |
|
170 |
$output .= '<div id="'.$id.'" class="ffs-tabbed-nav">';
|
171 |
-
$output .= '<ul class="resp-tabs-list"
|
|
|
|
|
|
|
172 |
if (count($tabs)) {
|
173 |
foreach ($tabs as $tab) {
|
174 |
$output .= '<li>' . esc_html($tab[0]) . '</li>';
|
22 |
$out = '';
|
23 |
shortcode_atts(array(
|
24 |
'id' => '',
|
25 |
+
'style' => '',
|
26 |
+
'shadowtype' => ''
|
27 |
), $atts, 'fruitful_dbox');
|
28 |
|
29 |
$id = 'desc-box-' . rand( 1, 100 );
|
34 |
$style = ' font-size: 40px; text-transform : uppercase; text-align: center; font-weight: 300; line-height: 1.2;';
|
35 |
}
|
36 |
|
37 |
+
if (!empty($atts['id'])) { $id = sanitize_html_class($atts['id']); }
|
38 |
+
if (!empty($atts['style'])) { $style = esc_html($atts['style']); }
|
39 |
+
if (!empty($atts['shadowtype'])){ $type = esc_html($atts['shadowtype']); }
|
40 |
+
|
41 |
$out .= '<div class="fruitful_description_box">';
|
42 |
+
$out .= '<div class="fruitful_description ';
|
43 |
+
if (!empty($atts['shadowtype'])){ $out .= 'shadow-'.$type; } else { $out .= 'shadow-type-1';}
|
44 |
+
$out .= ' " id="'. $id .'">';
|
45 |
+
$out .= '<span class="top_line"></span>';
|
46 |
+
if (!empty($content)) { $out .= '<div class="text" style="'. $style .'">' . $content . '</div>'; } else
|
47 |
+
{ $out .= '<div class="text" style="'. $style .'">No text Description</div>'; }
|
48 |
+
$out .= '<span class="bottom_line"></span>';
|
49 |
$out .= '</div>';
|
50 |
$out .= '</div>';
|
51 |
$out .= '<div class="clearfix"></div>';
|
99 |
if (isset($image)) { $image = esc_url ($image); }
|
100 |
if (isset($styletext)) { $styletext = esc_html($styletext); }
|
101 |
if (isset($styletitle)) { $styletitle = esc_html($styletitle); }
|
102 |
+
if (isset($last)) { if ($last) $last = 'last'; } else { $last = ''; }
|
103 |
if (isset($icon_position)) { $icon_position = sanitize_html_class($icon_position);}
|
104 |
if (isset($icon)) { $icon = sanitize_html_class($icon);}
|
105 |
|
147 |
$output = '';
|
148 |
$tab_titles = array();
|
149 |
$tabs_class = 'tab_titles';
|
150 |
+
shortcode_atts(array('id' => '', 'type' => '', 'width' => '', 'fit' => '', 'widthtab' => ''), $atts, 'fruitful_tabs');
|
151 |
|
152 |
$id = 'ffs-tabbed-' . rand( 1, 100 );
|
153 |
$type = 'default';
|
154 |
$width = 'auto';
|
155 |
$fit = 'false';
|
156 |
$link = '#';
|
157 |
+
$widthtab = '30%';
|
158 |
|
159 |
if (isset($atts['id'])) { $id = sanitize_html_class($atts['id']); }
|
160 |
if (isset($atts['type'])) { $type = esc_js($atts['type']); }
|
161 |
if (isset($atts['width'])) { $width = esc_js($atts['width']); }
|
162 |
if (isset($atts['fit'])) { $fit = esc_js($atts['fit']); }
|
163 |
+
if (isset($atts['widthtab'])) { $widthtab = esc_js($atts['widthtab']); }
|
164 |
|
165 |
$output .= '<script type="text/javascript"> ';
|
166 |
$output .= 'jQuery(document).ready(function() { ';
|
168 |
$output .= ' type: "'.$type.'", ';
|
169 |
$output .= ' width: "'.$width.'", ';
|
170 |
$output .= ' fit: '.$fit;
|
171 |
+
$output .= '}); ';
|
172 |
+
$output .= 'var cont_width = jQuery("#'.$id.'.resp-vtabs").outerWidth() - jQuery("#'.$id.'.resp-vtabs .resp-tabs-list").outerWidth() - 3;';
|
173 |
+
$output .= 'jQuery("#'.$id.'.resp-vtabs .resp-tabs-container").css({"width":cont_width});';
|
174 |
+
$output .= '}); ';
|
175 |
$output .= '</script>';
|
176 |
|
177 |
preg_match_all( '/tab title="([^\"]+)"/i', $content, $matches, PREG_OFFSET_CAPTURE );
|
178 |
if ( isset( $matches[1] ) ) { $tabs = $matches[1]; }
|
179 |
|
180 |
$output .= '<div id="'.$id.'" class="ffs-tabbed-nav">';
|
181 |
+
$output .= '<ul class="resp-tabs-list" ';
|
182 |
+
if ($type == 'vertical') { $output .= 'style="width:'.$widthtab.'"'; }
|
183 |
+
$output .= '>';
|
184 |
+
|
185 |
if (count($tabs)) {
|
186 |
foreach ($tabs as $tab) {
|
187 |
$output .= '<li>' . esc_html($tab[0]) . '</li>';
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: http://fruitfulcode.com
|
|
4 |
Tags: admin, fruitful, shortcode, shortcodes, short code, editor, content, bootstrap, post, page, tab, tabs, horizontal tabs, vertical tabs, accordion, promo text, columns, infobox, separator, alert, progress bar, button
|
5 |
Requires at least: 3.4.1
|
6 |
Tested up to: 3.9.1
|
7 |
-
Stable tag: 1.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -43,13 +43,13 @@ If you have any questions or recommendations regarding the functionality of our
|
|
43 |
|
44 |
== Installation ==
|
45 |
|
46 |
-
1. Upload `fruitful-shortcodes` to the `/wp-content/plugins/` directory
|
47 |
-
2. Activate the plugin through the 'Plugins' menu in WordPress
|
48 |
-
3. Settings > Fruitful Shortcodes
|
49 |
-
4. Choose display settins
|
50 |
-
5. Edit post, page or other content type
|
51 |
-
6. Switch from text to visual edit your content via wysiwyg editor
|
52 |
-
7. Add shortcodes from additional bar
|
53 |
http://plugins.fruitfulcode.com/shortcodes/
|
54 |
|
55 |
== Frequently Asked Questions ==
|
@@ -64,13 +64,33 @@ You can check <a href="http://support.fruitfulcode.com/hc/en-us/sections/2004063
|
|
64 |
|
65 |
== Screenshots ==
|
66 |
|
67 |
-
1. General > Fruitful Shortcodes
|
68 |
-
2. Visual editor additional shortcodes
|
69 |
-
3. Add horizontal tabs
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
70 |
|
71 |
== Changelog ==
|
72 |
|
73 |
-
= 1.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
74 |
* Initial release
|
75 |
|
76 |
|
4 |
Tags: admin, fruitful, shortcode, shortcodes, short code, editor, content, bootstrap, post, page, tab, tabs, horizontal tabs, vertical tabs, accordion, promo text, columns, infobox, separator, alert, progress bar, button
|
5 |
Requires at least: 3.4.1
|
6 |
Tested up to: 3.9.1
|
7 |
+
Stable tag: 1.1
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
43 |
|
44 |
== Installation ==
|
45 |
|
46 |
+
1. Upload `fruitful-shortcodes` to the `/wp-content/plugins/` directory.
|
47 |
+
2. Activate the plugin through the 'Plugins' menu in WordPress.
|
48 |
+
3. Settings > Fruitful Shortcodes.
|
49 |
+
4. Choose display settins.
|
50 |
+
5. Edit post, page or other content type.
|
51 |
+
6. Switch from text to visual edit your content via wysiwyg editor.
|
52 |
+
7. Add shortcodes from additional bar.
|
53 |
http://plugins.fruitfulcode.com/shortcodes/
|
54 |
|
55 |
== Frequently Asked Questions ==
|
64 |
|
65 |
== Screenshots ==
|
66 |
|
67 |
+
1. General > Fruitful Shortcodes.
|
68 |
+
2. Visual editor additional shortcodes.
|
69 |
+
3. Add horizontal tabs.
|
70 |
+
4. Add vertical tab.
|
71 |
+
5. Add accordion
|
72 |
+
6. Add promo text with shadow.
|
73 |
+
7. Add column info boxes.
|
74 |
+
8. Add separator.
|
75 |
+
9. Add Alert box.
|
76 |
+
10. Add progress bar.
|
77 |
+
11. Add button.
|
78 |
|
79 |
== Changelog ==
|
80 |
|
81 |
+
= 1.1 =
|
82 |
+
Release Date: 05.06.2014
|
83 |
+
|
84 |
+
* New features
|
85 |
+
* Shortcode Description: New attribute shadowtype.
|
86 |
+
* Shortcode Vertical tabs: New attribute for changing left tab width.
|
87 |
+
|
88 |
+
* Bugfixes
|
89 |
+
* Last column.
|
90 |
+
|
91 |
+
= 1.0 =
|
92 |
+
Release Date: 29.05.2014
|
93 |
+
|
94 |
* Initial release
|
95 |
|
96 |
|
screenshot-10.png
ADDED
Binary file
|
screenshot-11.png
ADDED
Binary file
|
screenshot-4.png
ADDED
Binary file
|
screenshot-5.png
ADDED
Binary file
|
screenshot-6.png
ADDED
Binary file
|
screenshot-7.png
ADDED
Binary file
|
screenshot-8.png
ADDED
Binary file
|
screenshot-9.png
ADDED
Binary file
|