PluginProbe
Tabs Responsive – With WooCommerce Product Tabs Extension / 1.6.3
Tabs Responsive – With WooCommerce Product Tabs Extension v1.6.3
trunk 1.0 1.1 1.2 1.3 1.4 1.5 1.5.1 1.5.2 1.5.3 1.5.4 1.5.5 1.5.6 1.5.7 1.5.8 1.5.9 1.6.0 1.6.1 1.6.2 1.6.3 1.6.4 1.6.5 1.6.6 1.6.7 1.6.8 All 97 releases
tabs-responsive / tabs-responsive.php

tabs-responsive.php in Tabs Responsive – With WooCommerce Product Tabs Extension 1.6.3, at tabs-responsive.php

97 lines 2.4 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Plugin Name: Tabs Responsive
4 * Version: 1.6.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
8 * Plugin URI: http://www.wpshopmart.com
9 */
10
11 /**
12 * DEFINE PATHS
13 */
14 define("wpshopmart_tabs_r_directory_url", plugin_dir_url(__FILE__));
15 define("wpshopmart_tabs_r_text_domain", "wpsm_tabs_r");
16
17 /**
18 * PLUGIN Install
19 */
20 require_once("ink/install/installation.php");
21
22
23 function wpsm_tabs_r_default_data() {
24
25
26 $Settings_Array = serialize( array(
27 "tabs_sec_title" => "yes",
28 "show_tabs_title_icon" => "1",
29 "show_tabs_icon_align" => "left",
30 "enable_tabs_border" => "yes",
31 "tabs_title_bg_clr" => "#e8e8e8",
32 "tabs_title_icon_clr" => "#000000",
33 "select_tabs_title_bg_clr" => "#ffffff",
34 "select_tabs_title_icon_clr" => "#000000",
35 "tabs_desc_bg_clr" => "#ffffff",
36 "tabs_desc_font_clr" => "#000000",
37 "title_size" => "14",
38 "des_size" => "16",
39 "font_family" => "Open Sans",
40 "tabs_styles" =>1,
41 "custom_css" =>"",
42 "tabs_animation" =>"fadeIn",
43 "tabs_alignment" =>"horizontal",
44 "tabs_position" =>"left",
45 "tabs_margin" =>"no",
46 "tabs_content_margin" =>"no",
47 ) );
48
49 add_option('Tabs_R_default_Settings', $Settings_Array);
50 }
51 register_activation_hook( __FILE__, 'wpsm_tabs_r_default_data' );
52
53 /**
54 * CPT CLASS
55 */
56
57 require_once("ink/admin/menu.php");
58
59 /**
60 * SHORTCODE
61 */
62
63 require_once("template/shortcode.php");
64
65 /**
66 WIDGET
67 */
68 require_once("ink/widget/widget.php");
69
70 // darken color code
71 function ColorDarken($color, $dif=50){
72
73 $color = str_replace('#', '', $color);
74 if (strlen($color) != 6){ return '000000'; }
75 $rgb = '';
76
77 for ($x=0;$x<3;$x++){
78 $c = hexdec(substr($color,(2*$x),2)) - $dif;
79 $c = ($c < 0) ? 0 : dechex($c);
80 $rgb .= (strlen($c) < 2) ? '0'.$c : $c;
81 }
82
83 return '#'.$rgb;
84 }
85
86 // Add settings link on plugin page
87 function wpsm_tabs_r_settings_link($links) {
88 $settings_link = '<a href="edit.php?post_type=tabs_responsive">Settings</a>';
89 array_unshift($links, $settings_link);
90 return $links;
91 }
92
93 $plugin = plugin_basename(__FILE__);
94 add_filter("plugin_action_links_$plugin", 'wpsm_tabs_r_settings_link' );
95
96
97 ?>