Tabs - Version 1.3

Version Description

09-Mar-16 = * New: Hide/Show icon and tabs title on mobile.

Download this release

Release Info

Developer wpshopmart
Plugin Icon 128x128 Tabs
Version 1.3
Comparing to
See all releases

Code changes from version 1.2 to 1.3

ink/admin/data-post/tabs-settings-save-data.php CHANGED
@@ -20,6 +20,8 @@ if(isset($PostID) && isset($_POST['tabs_setting_save_action'])) {
20
  $font_family = sanitize_text_field($_POST['font_family']);
21
  $tabs_animation = sanitize_text_field($_POST['tabs_animation']);
22
  $custom_css = stripslashes(sanitize_text_field($_POST['custom_css']));
 
 
23
 
24
  $Settings_Array = serialize( array(
25
  'tabs_sec_title' => $tabs_sec_title,
@@ -42,6 +44,7 @@ if(isset($PostID) && isset($_POST['tabs_setting_save_action'])) {
42
  'font_family' => $font_family,
43
  'tabs_animation' => $tabs_animation,
44
  'custom_css' => $custom_css,
 
45
  ) );
46
 
47
  update_post_meta($PostID, 'Tabs_R_Settings', $Settings_Array);
20
  $font_family = sanitize_text_field($_POST['font_family']);
21
  $tabs_animation = sanitize_text_field($_POST['tabs_animation']);
22
  $custom_css = stripslashes(sanitize_text_field($_POST['custom_css']));
23
+ $tabs_display_on_mob = sanitize_option('tabs_display_on_mob', $_POST['tabs_display_on_mob']);
24
+
25
 
26
  $Settings_Array = serialize( array(
27
  'tabs_sec_title' => $tabs_sec_title,
44
  'font_family' => $font_family,
45
  'tabs_animation' => $tabs_animation,
46
  'custom_css' => $custom_css,
47
+ 'tabs_display_on_mob' => $tabs_display_on_mob,
48
  ) );
49
 
50
  update_post_meta($PostID, 'Tabs_R_Settings', $Settings_Array);
ink/admin/settings.php CHANGED
@@ -24,6 +24,7 @@
24
  "tabs_position" =>$De_Settings['tabs_position'],
25
  "tabs_margin" =>$De_Settings['tabs_margin'],
26
  "tabs_content_margin" =>$De_Settings['tabs_content_margin'],
 
27
  );
28
 
29
  foreach($option_names as $option_name => $default_value) {
@@ -493,7 +494,22 @@ if(isset($_POST['action123']) == "default_settins_action")
493
  </div>
494
  </td>
495
  </tr>
496
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
497
  <script>
498
 
499
  jQuery('.ac_tooltip').darkTooltip({
24
  "tabs_position" =>$De_Settings['tabs_position'],
25
  "tabs_margin" =>$De_Settings['tabs_margin'],
26
  "tabs_content_margin" =>$De_Settings['tabs_content_margin'],
27
+ "tabs_display_on_mob" =>"1",
28
  );
29
 
30
  foreach($option_names as $option_name => $default_value) {
494
  </div>
495
  </td>
496
  </tr>
497
+ <tr>
498
+ <th scope="row"><label><?php _e('Tabs Mobile display Settings',wpshopmart_tabs_r_text_domain); ?></label></th>
499
+ <td>
500
+ <span style="display:block;margin-bottom:10px"><input type="radio" name="tabs_display_on_mob" id="tabs_display_on_mob" value="1" <?php if($tabs_display_on_mob == '1' ) { echo "checked"; } ?> /> Display Both Title + Icon </span>
501
+ <span style="display:block;margin-bottom:10px"><input type="radio" name="tabs_display_on_mob" id="tabs_display_on_mob" value="2" <?php if($tabs_display_on_mob == '2' ) { echo "checked"; } ?> /> Display only Icon </span>
502
+ <span style="display:block"><input type="radio" name="tabs_display_on_mob" id="tabs_display_on_mob" value="3" <?php if($tabs_display_on_mob == '3' ) { echo "checked"; } ?> /> Display Only Title </span>
503
+ <!-- Tooltip -->
504
+ <a class="ac_tooltip" href="#help" data-tooltip="#tabs_display_on_mob_tp">help</a>
505
+ <div id="tabs_display_on_mob_tp" style="display:none;">
506
+ <div style="color:#fff !important;padding:10px;">
507
+ <h2 style="color:#fff !important;"><?php _e('Hide/display your icon and title on mobile and tablets',wpshopmart_tabs_r_text_domain); ?></h2>
508
+
509
+ </div>
510
+ </div>
511
+ </td>
512
+ </tr>
513
  <script>
514
 
515
  jQuery('.ac_tooltip').darkTooltip({
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://www.wpshopmart.com
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: 3.3
6
  Tested up to: 4.4.2
7
- Stable tag: 1.2
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -106,6 +106,9 @@ Please use WordPress support forum to ask any query regarding any issue.
106
 
107
  == Changelog ==
108
 
 
 
 
109
  = 1.2 =
110
  * Resolve css issue.
111
 
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: 3.3
6
  Tested up to: 4.4.2
7
+ Stable tag: 1.3
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
106
 
107
  == Changelog ==
108
 
109
+ = 1.3 09-Mar-16 =
110
+ * New: Hide/Show icon and tabs title on mobile.
111
+
112
  = 1.2 =
113
  * Resolve css issue.
114
 
tabs-responsive.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  /**
3
  * Plugin Name: Tabs Responsive
4
- * Version: 1.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: http://www.wpshopmart.com
1
  <?php
2
  /**
3
  * Plugin Name: Tabs Responsive
4
+ * Version: 1.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: http://www.wpshopmart.com
template/content.php CHANGED
@@ -34,6 +34,7 @@
34
  "tabs_position" =>"left",
35
  "tabs_margin" =>"no",
36
  "tabs_content_margin" =>"no",
 
37
  );
38
 
39
  foreach($option_names as $option_name => $default_value) {
34
  "tabs_position" =>"left",
35
  "tabs_margin" =>"no",
36
  "tabs_content_margin" =>"no",
37
+ "tabs_display_on_mob" =>"1",
38
  );
39
 
40
  foreach($option_names as $option_name => $default_value) {
template/style.php CHANGED
@@ -220,4 +220,27 @@ overflow:hidden !important;
220
 
221
  .wpsm_nav-tabs li:before{
222
  display:none !important;
223
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
220
 
221
  .wpsm_nav-tabs li:before{
222
  display:none !important;
223
+ }
224
+
225
+ @media (max-width: 768px) {
226
+ <?php if($tabs_display_on_mob=="2"){ ?>
227
+
228
+ #tab_container_<?php echo $post_id; ?> .wpsm_nav-tabs li a span{
229
+ display: none !important;
230
+ }
231
+
232
+ <?php } ?>
233
+
234
+ <?php if($tabs_display_on_mob=="3"){ ?>
235
+
236
+ #tab_container_<?php echo $post_id; ?> .wpsm_nav-tabs li a i{
237
+ display: none !important;
238
+ }
239
+
240
+ <?php } ?>
241
+ .wpsm_nav-tabs{
242
+ margin-left:0px !important;
243
+ margin-right:0px !important;
244
+
245
+ }
246
+ }