| 1 |
<?php if ( ! defined( 'ABSPATH' ) ) exit; ?> |
| 2 |
|
| 3 |
<section class="psfw-settings advnaced" id="psfw-advanced-section"> |
| 4 |
|
| 5 |
<h3><?php esc_attr_e('Icon Title Style Settings', 'product-share'); ?></h3> |
| 6 |
|
| 7 |
<table class="widefat wpx-table"> |
| 8 |
<?php |
| 9 |
|
| 10 |
// Icon Title Color |
| 11 |
WPXtension_Setting_Fields::text( |
| 12 |
$psfw_options = array( |
| 13 |
'tr_class' => 'alternate', |
| 14 |
'label' => esc_attr__('Title Text', 'product-share'), |
| 15 |
'value' => Product_Share::get_options()->title_text, |
| 16 |
'name' => 'product_share_option_advanced[title_text]', |
| 17 |
'default_value' => Product_Share::get_options()->title_text, |
| 18 |
'note' => '', |
| 19 |
'note_info' => esc_attr__('Note: Set your own title here. Default is "Share On:"', 'product-share'), |
| 20 |
'need_pro' => true, |
| 21 |
'tag' => esc_attr__('New', 'product-share'), |
| 22 |
'placeholder' => __('Share On:', 'product-share'), |
| 23 |
'pro_exists' => Product_Share::check_plugin_state('product-share-pro'), |
| 24 |
) |
| 25 |
); |
| 26 |
|
| 27 |
// Icon Title Font Weight |
| 28 |
WPXtension_Setting_Fields::select( |
| 29 |
$psfw_options = array( |
| 30 |
'tr_class' => '', |
| 31 |
'label' => esc_attr__('Text Weight', 'product-share'), |
| 32 |
'value' => Product_Share::get_options()->title_weight, |
| 33 |
'name' => 'product_share_option_advanced[title_weight]', |
| 34 |
'option' => apply_filters('psfw_title_weight', array( |
| 35 |
'option_1' => array( |
| 36 |
'name' => 'Normal', |
| 37 |
'value' => 'normal', |
| 38 |
'need_pro' => true, |
| 39 |
), |
| 40 |
'option_2' => array( |
| 41 |
'name' => 'Lighter', |
| 42 |
'value' => 'lighter', |
| 43 |
'need_pro' => true, |
| 44 |
), |
| 45 |
'option_3' => array( |
| 46 |
'name' => 'Bold', |
| 47 |
'value' => 'bold', |
| 48 |
'need_pro' => true, |
| 49 |
), |
| 50 |
)), |
| 51 |
'note' => '', |
| 52 |
'need_pro' => true, |
| 53 |
'tag' => esc_attr__('New', 'product-share'), |
| 54 |
'pro_exists' => Product_Share::check_plugin_state('product-share-pro'), |
| 55 |
) |
| 56 |
); |
| 57 |
|
| 58 |
// Button Text Size |
| 59 |
WPXtension_Setting_Fields::number( |
| 60 |
$psfw_options = array( |
| 61 |
'tr_class' => 'alternate', |
| 62 |
'label' => esc_attr__('Font Size', 'product-share'), |
| 63 |
'value' => Product_Share::get_options()->title_font_size, |
| 64 |
'name' => 'product_share_option_advanced[title_font_size]', |
| 65 |
'default_value' => Product_Share::get_options()->title_font_size, |
| 66 |
'min' => '1', |
| 67 |
'step' => '1', |
| 68 |
'note' => '', |
| 69 |
'need_pro' => true, |
| 70 |
'tag' => esc_attr__('New', 'product-share'), |
| 71 |
'pro_exists' => Product_Share::check_plugin_state('product-share-pro'), |
| 72 |
) |
| 73 |
); |
| 74 |
|
| 75 |
// Icon Title Color |
| 76 |
WPXtension_Setting_Fields::color( |
| 77 |
$psfw_options = array( |
| 78 |
'tr_class' => '', |
| 79 |
'label' => esc_attr__('Title Color', 'product-share'), |
| 80 |
'value' => Product_Share::get_options()->title_color, |
| 81 |
'name' => 'product_share_option_advanced[title_color]', |
| 82 |
'default_value' => Product_Share::get_options()->title_color, |
| 83 |
'note' => '', |
| 84 |
'need_pro' => true, |
| 85 |
'tag' => esc_attr__('New', 'product-share'), |
| 86 |
'pro_exists' => Product_Share::check_plugin_state('product-share-pro'), |
| 87 |
) |
| 88 |
); |
| 89 |
?> |
| 90 |
</table> |
| 91 |
|
| 92 |
<h3><?php esc_attr_e('Tooltip Style Settings', 'product-share'); ?></h3> |
| 93 |
|
| 94 |
<table class="widefat wpx-table"> |
| 95 |
|
| 96 |
<?php |
| 97 |
|
| 98 |
// Tooltip Text Color |
| 99 |
WPXtension_Setting_Fields::color( |
| 100 |
$psfw_options = array( |
| 101 |
'tr_class' => 'alternate', |
| 102 |
'label' => esc_attr__('Tooltip Text Color', 'product-share'), |
| 103 |
'value' => Product_Share::get_options()->tooltip_color, |
| 104 |
'name' => 'product_share_option_advanced[tooltip_color]', |
| 105 |
'default_value' => Product_Share::get_options()->tooltip_color, |
| 106 |
'note' => '', |
| 107 |
'need_pro' => true, |
| 108 |
'pro_exists' => Product_Share::check_plugin_state('product-share-pro'), |
| 109 |
), |
| 110 |
); |
| 111 |
|
| 112 |
// Tooltip Background Color |
| 113 |
WPXtension_Setting_Fields::color( |
| 114 |
$psfw_options = array( |
| 115 |
'tr_class' => '', |
| 116 |
'label' => esc_attr__('Tooltip Background Color', 'product-share'), |
| 117 |
'value' => Product_Share::get_options()->tooltip_bg_color, |
| 118 |
'name' => 'product_share_option_advanced[tooltip_bg_color]', |
| 119 |
'default_value' => Product_Share::get_options()->tooltip_bg_color, |
| 120 |
'note' => '', |
| 121 |
'need_pro' => true, |
| 122 |
'pro_exists' => Product_Share::check_plugin_state('product-share-pro'), |
| 123 |
), |
| 124 |
); |
| 125 |
?> |
| 126 |
|
| 127 |
</table> |
| 128 |
|
| 129 |
<h3><?php esc_attr_e('Basic Style Settings', 'product-share'); ?></h3> |
| 130 |
|
| 131 |
<table class="widefat wpx-table"> |
| 132 |
|
| 133 |
<?php |
| 134 |
|
| 135 |
// Button Background Color |
| 136 |
WPXtension_Setting_Fields::color( |
| 137 |
$psfw_options = array( |
| 138 |
'tr_class' => 'alternate', |
| 139 |
'label' => esc_attr__('Background Color', 'product-share'), |
| 140 |
'value' => Product_Share::get_options()->btn_background_color, |
| 141 |
'name' => 'product_share_option_advanced[btn_background_color]', |
| 142 |
'default_value' => Product_Share::get_options()->btn_background_color, |
| 143 |
'note' => '', |
| 144 |
'need_pro' => true, |
| 145 |
'pro_exists' => Product_Share::check_plugin_state('product-share-pro'), |
| 146 |
) |
| 147 |
); |
| 148 |
|
| 149 |
// Button Border color |
| 150 |
WPXtension_Setting_Fields::color( |
| 151 |
$psfw_options = array( |
| 152 |
'tr_class' => '', |
| 153 |
'label' => esc_attr__('Border Color', 'product-share'), |
| 154 |
'value' => Product_Share::get_options()->btn_border_color, |
| 155 |
'name' => 'product_share_option_advanced[btn_border_color]', |
| 156 |
'default_value' => Product_Share::get_options()->btn_border_color, |
| 157 |
'note' => '', |
| 158 |
'need_pro' => true, |
| 159 |
'pro_exists' => Product_Share::check_plugin_state('product-share-pro'), |
| 160 |
) |
| 161 |
); |
| 162 |
|
| 163 |
// Button Text color |
| 164 |
WPXtension_Setting_Fields::color( |
| 165 |
$psfw_options = array( |
| 166 |
'tr_class' => 'alternate', |
| 167 |
'label' => esc_attr__('Text Color', 'product-share'), |
| 168 |
'value' => Product_Share::get_options()->btn_text_color, |
| 169 |
'name' => 'product_share_option_advanced[btn_text_color]', |
| 170 |
'default_value' => Product_Share::get_options()->btn_text_color, |
| 171 |
'note' => '', |
| 172 |
'need_pro' => true, |
| 173 |
'pro_exists' => Product_Share::check_plugin_state('product-share-pro'), |
| 174 |
) |
| 175 |
); |
| 176 |
|
| 177 |
// Button Text Size |
| 178 |
WPXtension_Setting_Fields::number( |
| 179 |
$psfw_options = array( |
| 180 |
'tr_class' => '', |
| 181 |
'label' => esc_attr__('Font Size', 'product-share'), |
| 182 |
'value' => Product_Share::get_options()->btn_font_size, |
| 183 |
'name' => 'product_share_option_advanced[btn_font_size]', |
| 184 |
'default_value' => Product_Share::get_options()->btn_font_size, |
| 185 |
'min' => '1', |
| 186 |
'step' => '1', |
| 187 |
'note' => '', |
| 188 |
'need_pro' => true, |
| 189 |
'pro_exists' => Product_Share::check_plugin_state('product-share-pro'), |
| 190 |
) |
| 191 |
); |
| 192 |
|
| 193 |
// Button Width |
| 194 |
WPXtension_Setting_Fields::number( |
| 195 |
$psfw_options = array( |
| 196 |
'tr_class' => 'alternate', |
| 197 |
'label' => esc_attr__('Width', 'product-share'), |
| 198 |
'value' => Product_Share::get_options()->btn_width, |
| 199 |
'name' => 'product_share_option_advanced[btn_width]', |
| 200 |
'default_value' => Product_Share::get_options()->btn_width, |
| 201 |
'min' => '1', |
| 202 |
'step' => '1', |
| 203 |
'note' => '', |
| 204 |
'need_pro' => true, |
| 205 |
'pro_exists' => Product_Share::check_plugin_state('product-share-pro'), |
| 206 |
), |
| 207 |
); |
| 208 |
|
| 209 |
// Button Height |
| 210 |
WPXtension_Setting_Fields::number( |
| 211 |
$psfw_options = array( |
| 212 |
'tr_class' => '', |
| 213 |
'label' => esc_attr__('Height', 'product-share'), |
| 214 |
'value' => Product_Share::get_options()->btn_height, |
| 215 |
'name' => 'product_share_option_advanced[btn_height]', |
| 216 |
'default_value' => Product_Share::get_options()->btn_height, |
| 217 |
'min' => '1', |
| 218 |
'step' => '1', |
| 219 |
'note' => '', |
| 220 |
'need_pro' => true, |
| 221 |
'pro_exists' => Product_Share::check_plugin_state('product-share-pro'), |
| 222 |
) |
| 223 |
); |
| 224 |
|
| 225 |
?> |
| 226 |
|
| 227 |
</table> |
| 228 |
|
| 229 |
<h3><?php esc_attr_e('Hover Style Settings', 'product-share'); ?></h3> |
| 230 |
|
| 231 |
<table class="widefat wpx-table"> |
| 232 |
|
| 233 |
<?php |
| 234 |
|
| 235 |
// Button Background Color |
| 236 |
WPXtension_Setting_Fields::color( |
| 237 |
$psfw_options = array( |
| 238 |
'tr_class' => 'alternate', |
| 239 |
'label' => esc_attr__('Background Color', 'product-share'), |
| 240 |
'value' => Product_Share::get_options()->btn_hover_background_color, |
| 241 |
'name' => 'product_share_option_advanced[btn_hover_background_color]', |
| 242 |
'default_value' => Product_Share::get_options()->btn_hover_background_color, |
| 243 |
'note' => '', |
| 244 |
'need_pro' => true, |
| 245 |
'pro_exists' => Product_Share::check_plugin_state('product-share-pro'), |
| 246 |
) |
| 247 |
); |
| 248 |
|
| 249 |
// Button Border color |
| 250 |
WPXtension_Setting_Fields::color( |
| 251 |
$psfw_options = array( |
| 252 |
'tr_class' => '', |
| 253 |
'label' => esc_attr__('Border Color', 'product-share'), |
| 254 |
'value' => Product_Share::get_options()->btn_hover_border_color, |
| 255 |
'name' => 'product_share_option_advanced[btn_hover_border_color]', |
| 256 |
'default_value' => Product_Share::get_options()->btn_hover_border_color, |
| 257 |
'note' => '', |
| 258 |
'need_pro' => true, |
| 259 |
'pro_exists' => Product_Share::check_plugin_state('product-share-pro'), |
| 260 |
), |
| 261 |
); |
| 262 |
|
| 263 |
// Button Text color |
| 264 |
WPXtension_Setting_Fields::color( |
| 265 |
$psfw_options = array( |
| 266 |
'tr_class' => 'alternate', |
| 267 |
'label' => esc_attr__('Text Color', 'product-share'), |
| 268 |
'value' => Product_Share::get_options()->btn_hover_text_color, |
| 269 |
'name' => 'product_share_option_advanced[btn_hover_text_color]', |
| 270 |
'default_value' => Product_Share::get_options()->btn_hover_text_color, |
| 271 |
'note' => '', |
| 272 |
'need_pro' => true, |
| 273 |
'pro_exists' => Product_Share::check_plugin_state('product-share-pro'), |
| 274 |
) |
| 275 |
); |
| 276 |
|
| 277 |
?> |
| 278 |
|
| 279 |
</table> |
| 280 |
|
| 281 |
</section> |