PluginProbe
Tabs Responsive – With WooCommerce Product Tabs Extension / 1.5.1
Tabs Responsive – With WooCommerce Product Tabs Extension v1.5.1
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.5.1, at tabs-responsive.php

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