PluginProbe
Phone Button / trunk
Phone Button vtrunk
trunk 1.0.0 1.0.1 1.0.3 1.1.0 1.1.1 2.0.0 2.1.0 2.1.1 2.1.2
← All changes | include/install.php +17 -4 1.0.3trunk View file →
@@ -23,10 +23,13 @@
23 23 $horizontal_spacing = '30px';
24 24 $vertical_position = 'bottom';
25 25 $vertical_spacing = '30px';
26 26 $background_color = 'linear-gradient(180deg, #00bc3c, #008d32)';
27 + $background_position = '50% 50%';
28 + $button_z_index = '9999';
27 29 $button_border = '4px solid #fff';
28 - $mobile_display_checkbox = 0;
30 + $hide_button_on_desktop = 0;
31 + $hide_button_on_mobile = 0;
29 32 $mobile_width = 960;
30 33 $mobile_button_position_checkbox = 0;
31 34 $mobile_horizontal_position = 'right';
32 35 $mobile_horizontal_spacing = '30px';
@@ -35,8 +38,11 @@
35 38
36 39 // getting the image arrow icon
37 40 $icon_image_url = plugin_dir_url(dirname(__FILE__)) . 'images/phone.png';
38 41
42 + $exclude_option = '';
43 + $exclude_ids = '';
44 +
39 45 // ----------------------------------------------
40 46 // insert the data into an array
41 47 // ----------------------------------------------
42 48
@@ -50,10 +56,13 @@
50 56 'horizontal_spacing' => $horizontal_spacing,
51 57 'vertical_position' => $vertical_position,
52 58 'vertical_spacing' => $vertical_spacing,
53 59 'background_color' => $background_color,
60 + 'background_position' => $background_position,
61 + 'button_z_index' => $button_z_index,
54 62 'button_border' => $button_border,
55 - 'mobile_display_checkbox' => $mobile_display_checkbox,
63 + 'hide_button_on_desktop' => $hide_button_on_desktop,
64 + 'hide_button_on_mobile' => $hide_button_on_mobile,
56 65 'mobile_width' => $mobile_width,
57 66 'mobile_button_position_checkbox' => $mobile_button_position_checkbox,
58 67 'mobile_horizontal_position' => $mobile_horizontal_position,
59 68 'mobile_horizontal_spacing' => $mobile_horizontal_spacing,
@@ -58,9 +67,13 @@
58 67 'mobile_horizontal_position' => $mobile_horizontal_position,
59 68 'mobile_horizontal_spacing' => $mobile_horizontal_spacing,
60 69 'mobile_vertical_position' => $mobile_vertical_position,
61 70 'mobile_vertical_spacing' => $mobile_vertical_spacing,
62 - 'icon_image_url' => $icon_image_url
71 +
72 + 'icon_image_url' => $icon_image_url,
73 +
74 + 'exclude_option' => $exclude_option,
75 + 'exclude_ids' => $exclude_ids,
63 76 ); // $creating_data_array = array(
64 77
65 78 // ----------------------------------------------
66 79 // creating a value with all the array data
@@ -78,10 +91,10 @@
78 91 // inserting all the data to datbase
79 92 // ----------------------------------------------
80 93
81 94 $plugin_data = $array_key_name . "***" . $array_item_value;
82 - $plugin_data = yydev_phone_btn_mysql_prep($plugin_data);
95 + $plugin_data = sanitize_text_field($plugin_data);
83 96
84 97 // update optuon on the database into wp_options
85 98 update_option($wp_options_name, $plugin_data);
86 99
87 100 } // if( !get_option($wp_options_name) ) {