style_section.php
449 lines
| 1 | <table class="form-table berocket_compare_products_styler"> |
| 2 | <thead> |
| 3 | <tr><th colspan="6" style="text-align: center; font-size: 2em;"><?php _e('Compare Button on Widgets', 'products-compare-for-woocommerce') ?></th></tr> |
| 4 | <tr> |
| 5 | <th><?php _e('Border color', 'products-compare-for-woocommerce') ?></th> |
| 6 | <th><?php _e('Border width', 'products-compare-for-woocommerce') ?></th> |
| 7 | <th><?php _e('Border radius', 'products-compare-for-woocommerce') ?></th> |
| 8 | <th><?php _e('Size', 'products-compare-for-woocommerce') ?></th> |
| 9 | <th><?php _e('Font color', 'products-compare-for-woocommerce') ?></th> |
| 10 | <th><?php _e('Background', 'products-compare-for-woocommerce') ?></th> |
| 11 | </tr> |
| 12 | </thead> |
| 13 | <tbody> |
| 14 | <tr> |
| 15 | <td class="admin-column-color"> |
| 16 | <?php echo br_color_picker( |
| 17 | $settings_name . '[style_settings][button][bcolor]', |
| 18 | br_get_value_from_array($options, array('button', 'bcolor')), |
| 19 | (empty($defaults['button']['bcolor']) ? -1 : $defaults['button']['bcolor']) |
| 20 | ); ?> |
| 21 | </td> |
| 22 | <td> |
| 23 | <input data-default="<?php echo $defaults['button']['bwidth']; ?>" type="text" placeholder="<?php _e('Theme Default', 'products-compare-for-woocommerce') ?>" name="<?php echo $settings_name; ?>[style_settings][button][bwidth]" value="<?php echo @ $options['button']['bwidth'] ?>" /> |
| 24 | </td> |
| 25 | <td> |
| 26 | <input data-default="<?php echo $defaults['button']['bradius']; ?>" type="text" placeholder="<?php _e('Theme Default', 'products-compare-for-woocommerce') ?>" name="<?php echo $settings_name; ?>[style_settings][button][bradius]" value="<?php echo @ $options['button']['bradius'] ?>" /> |
| 27 | </td> |
| 28 | <td> |
| 29 | <input data-default="<?php echo $defaults['button']['fontsize']; ?>" type="text" placeholder="<?php _e('Theme Default', 'products-compare-for-woocommerce') ?>" name="<?php echo $settings_name; ?>[style_settings][button][fontsize]" value="<?php echo @ $options['button']['fontsize'] ?>" /> |
| 30 | </td> |
| 31 | <td class="admin-column-color"> |
| 32 | <?php echo br_color_picker( |
| 33 | $settings_name . '[style_settings][button][fcolor]', |
| 34 | br_get_value_from_array($options, array('button', 'fcolor')), |
| 35 | (empty($defaults['button']['fcolor']) ? -1 : $defaults['button']['fcolor']) |
| 36 | ); ?> |
| 37 | </td> |
| 38 | <td class="admin-column-color"> |
| 39 | <?php echo br_color_picker( |
| 40 | $settings_name . '[style_settings][button][backcolor]', |
| 41 | br_get_value_from_array($options, array('button', 'backcolor')), |
| 42 | (empty($defaults['button']['backcolor']) ? -1 : $defaults['button']['backcolor']) |
| 43 | ); ?> |
| 44 | </td> |
| 45 | </tr> |
| 46 | </tbody> |
| 47 | <tfoot> |
| 48 | <tr> |
| 49 | <th class="manage-column admin-column-theme" colspan="6" scope="col"> |
| 50 | <input class="all_theme_default button" type="button" value="Set all to theme default"> |
| 51 | <div style="clear:both;"></div> |
| 52 | </th> |
| 53 | </tr> |
| 54 | </tfoot> |
| 55 | </table> |
| 56 | <table class="form-table berocket_compare_products_styler"> |
| 57 | <thead> |
| 58 | <tr><th colspan="6" style="text-align: center; font-size: 2em;"><?php _e('Toolbar Button', 'products-compare-for-woocommerce') ?></th></tr> |
| 59 | <tr> |
| 60 | <th><?php _e('Border color', 'products-compare-for-woocommerce') ?></th> |
| 61 | <th><?php _e('Border width', 'products-compare-for-woocommerce') ?></th> |
| 62 | <th><?php _e('Border radius', 'products-compare-for-woocommerce') ?></th> |
| 63 | <th><?php _e('Size', 'products-compare-for-woocommerce') ?></th> |
| 64 | <th><?php _e('Font color', 'products-compare-for-woocommerce') ?></th> |
| 65 | <th><?php _e('Background', 'products-compare-for-woocommerce') ?></th> |
| 66 | </tr> |
| 67 | </thead> |
| 68 | <tbody> |
| 69 | <tr> |
| 70 | <td class="admin-column-color"> |
| 71 | <?php echo br_color_picker( |
| 72 | $settings_name . '[style_settings][toolbutton][bcolor]', |
| 73 | br_get_value_from_array($options, array('toolbutton', 'bcolor')), |
| 74 | (empty($defaults['toolbutton']['bcolor']) ? -1 : $defaults['toolbutton']['bcolor']) |
| 75 | ); ?> |
| 76 | </td> |
| 77 | <td> |
| 78 | <input data-default="<?php echo $defaults['toolbutton']['bwidth']; ?>" type="text" placeholder="<?php _e('Theme Default', 'products-compare-for-woocommerce') ?>" name="<?php echo $settings_name; ?>[style_settings][toolbutton][bwidth]" value="<?php echo @ $options['toolbutton']['bwidth'] ?>" /> |
| 79 | </td> |
| 80 | <td> |
| 81 | <input data-default="<?php echo $defaults['toolbutton']['bradius']; ?>" type="text" placeholder="<?php _e('Theme Default', 'products-compare-for-woocommerce') ?>" name="<?php echo $settings_name; ?>[style_settings][toolbutton][bradius]" value="<?php echo @ $options['toolbutton']['bradius'] ?>" /> |
| 82 | </td> |
| 83 | <td> |
| 84 | <input data-default="<?php echo $defaults['toolbutton']['fontsize']; ?>" type="text" placeholder="<?php _e('Theme Default', 'products-compare-for-woocommerce') ?>" name="<?php echo $settings_name; ?>[style_settings][toolbutton][fontsize]" value="<?php echo @ $options['toolbutton']['fontsize'] ?>" /> |
| 85 | </td> |
| 86 | <td class="admin-column-color"> |
| 87 | <?php echo br_color_picker( |
| 88 | $settings_name . '[style_settings][toolbutton][fcolor]', |
| 89 | br_get_value_from_array($options, array('toolbutton', 'fcolor')), |
| 90 | (empty($defaults['toolbutton']['fcolor']) ? -1 : $defaults['toolbutton']['fcolor']) |
| 91 | ); ?> |
| 92 | </td> |
| 93 | <td class="admin-column-color"> |
| 94 | <?php echo br_color_picker( |
| 95 | $settings_name . '[style_settings][toolbutton][backcolor]', |
| 96 | br_get_value_from_array($options, array('toolbutton', 'backcolor')), |
| 97 | (empty($defaults['toolbutton']['backcolor']) ? -1 : $defaults['toolbutton']['backcolor']) |
| 98 | ); ?> |
| 99 | </td> |
| 100 | </tr> |
| 101 | </tbody> |
| 102 | <tfoot> |
| 103 | <tr> |
| 104 | <th class="manage-column admin-column-theme" colspan="6" scope="col"> |
| 105 | <input class="all_theme_default button" type="button" value="Set all to theme default"> |
| 106 | <div style="clear:both;"></div> |
| 107 | </th> |
| 108 | </tr> |
| 109 | </tfoot> |
| 110 | </table> |
| 111 | <table class="form-table berocket_compare_products_styler"> |
| 112 | <thead> |
| 113 | <tr><th colspan="5" style="text-align: center; font-size: 2em;"><?php _e('Table', 'products-compare-for-woocommerce') ?></th></tr> |
| 114 | <tr> |
| 115 | <th><?php _e('Column minimum width', 'products-compare-for-woocommerce') ?></th> |
| 116 | <th><?php _e('Image width', 'products-compare-for-woocommerce') ?></th> |
| 117 | <th><?php _e('Padding top', 'products-compare-for-woocommerce') ?></th> |
| 118 | <th><?php _e('Background color', 'products-compare-for-woocommerce') ?></th> |
| 119 | <th><?php _e('Background color for attributes with same value', 'products-compare-for-woocommerce') ?></th> |
| 120 | </tr> |
| 121 | </thead> |
| 122 | <tbody> |
| 123 | <tr> |
| 124 | <td> |
| 125 | <input data-default="<?php echo $defaults['table']['colwidth']; ?>" type="text" placeholder="<?php _e('Theme Default', 'products-compare-for-woocommerce') ?>" name="<?php echo $settings_name; ?>[style_settings][table][colwidth]" value="<?php echo @ $options['table']['colwidth'] ?>" /> |
| 126 | </td> |
| 127 | <td> |
| 128 | <input data-default="<?php echo $defaults['table']['imgwidth']; ?>" type="text" placeholder="<?php _e('Theme Default', 'products-compare-for-woocommerce') ?>" name="<?php echo $settings_name; ?>[style_settings][table][imgwidth]" value="<?php echo @ $options['table']['imgwidth'] ?>" /> |
| 129 | </td> |
| 130 | <td> |
| 131 | <input data-default="<?php echo $defaults['table']['toppadding']; ?>" type="text" placeholder="<?php _e('Theme Default', 'products-compare-for-woocommerce') ?>" name="<?php echo $settings_name; ?>[style_settings][table][toppadding]" value="<?php echo @ $options['table']['toppadding'] ?>" /> |
| 132 | </td> |
| 133 | <td class="admin-column-color"> |
| 134 | <?php echo br_color_picker( |
| 135 | $settings_name . '[style_settings][table][backcolor]', |
| 136 | br_get_value_from_array($options, array('table', 'backcolor')), |
| 137 | (empty($defaults['table']['backcolor']) ? -1 : $defaults['table']['backcolor']) |
| 138 | ); ?> |
| 139 | </td> |
| 140 | <td class="admin-column-color"> |
| 141 | <?php echo br_color_picker( |
| 142 | $settings_name . '[style_settings][table][backcolorsame]', |
| 143 | br_get_value_from_array($options, array('table', 'backcolorsame')), |
| 144 | (empty($defaults['table']['backcolorsame']) ? -1 : $defaults['table']['backcolorsame']) |
| 145 | ); ?> |
| 146 | </td> |
| 147 | </tr> |
| 148 | </tbody> |
| 149 | <thead> |
| 150 | <tr> |
| 151 | <th><?php _e('Padding outside', 'products-compare-for-woocommerce') ?></th> |
| 152 | <th><?php _e('Padding outside full size', 'products-compare-for-woocommerce') ?></th> |
| 153 | <th><?php _e('Same value from attributes', 'products-compare-for-woocommerce') ?></th> |
| 154 | <th colspan="2"><?php _e('Same value from attributes on mouse over', 'products-compare-for-woocommerce') ?></th> |
| 155 | </tr> |
| 156 | </thead> |
| 157 | <tbody> |
| 158 | <tr> |
| 159 | <td> |
| 160 | <p><?php _e('Top', 'products-compare-for-woocommerce') ?></p> |
| 161 | <input data-default="<?php echo $defaults['table']['margintop']; ?>" type="text" placeholder="<?php _e('Theme Default', 'products-compare-for-woocommerce') ?>" name="<?php echo $settings_name; ?>[style_settings][table][margintop]" value="<?php echo @ $options['table']['margintop'] ?>" /> |
| 162 | <p><?php _e('Bottom', 'products-compare-for-woocommerce') ?></p> |
| 163 | <input data-default="<?php echo $defaults['table']['marginbottom']; ?>" type="text" placeholder="<?php _e('Theme Default', 'products-compare-for-woocommerce') ?>" name="<?php echo $settings_name; ?>[style_settings][table][marginbottom]" value="<?php echo @ $options['table']['marginbottom'] ?>" /> |
| 164 | <p><?php _e('Left', 'products-compare-for-woocommerce') ?></p> |
| 165 | <input data-default="<?php echo $defaults['table']['marginleft']; ?>" type="text" placeholder="<?php _e('Theme Default', 'products-compare-for-woocommerce') ?>" name="<?php echo $settings_name; ?>[style_settings][table][marginleft]" value="<?php echo @ $options['table']['marginleft'] ?>" /> |
| 166 | <p><?php _e('Right', 'products-compare-for-woocommerce') ?></p> |
| 167 | <input data-default="<?php echo $defaults['table']['marginright']; ?>" type="text" placeholder="<?php _e('Theme Default', 'products-compare-for-woocommerce') ?>" name="<?php echo $settings_name; ?>[style_settings][table][marginright]" value="<?php echo @ $options['table']['marginright'] ?>" /> |
| 168 | </td> |
| 169 | <td> |
| 170 | <p><?php _e('Top', 'products-compare-for-woocommerce') ?></p> |
| 171 | <input data-default="<?php echo $defaults['table']['top']; ?>" type="text" placeholder="<?php _e('Theme Default', 'products-compare-for-woocommerce') ?>" name="<?php echo $settings_name; ?>[style_settings][table][top]" value="<?php echo @ $options['table']['top'] ?>" /> |
| 172 | <p><?php _e('Bottom', 'products-compare-for-woocommerce') ?></p> |
| 173 | <input data-default="<?php echo $defaults['table']['bottom']; ?>" type="text" placeholder="<?php _e('Theme Default', 'products-compare-for-woocommerce') ?>" name="<?php echo $settings_name; ?>[style_settings][table][bottom]" value="<?php echo @ $options['table']['bottom'] ?>" /> |
| 174 | <p><?php _e('Left', 'products-compare-for-woocommerce') ?></p> |
| 175 | <input data-default="<?php echo $defaults['table']['left']; ?>" type="text" placeholder="<?php _e('Theme Default', 'products-compare-for-woocommerce') ?>" name="<?php echo $settings_name; ?>[style_settings][table][left]" value="<?php echo @ $options['table']['left'] ?>" /> |
| 176 | <p><?php _e('Right', 'products-compare-for-woocommerce') ?></p> |
| 177 | <input data-default="<?php echo $defaults['table']['right']; ?>" type="text" placeholder="<?php _e('Theme Default', 'products-compare-for-woocommerce') ?>" name="<?php echo $settings_name; ?>[style_settings][table][right]" value="<?php echo @ $options['table']['right'] ?>" /> |
| 178 | </td> |
| 179 | <td class="admin-column-color"> |
| 180 | <?php echo br_color_picker( |
| 181 | $settings_name . '[style_settings][table][samecolor]', |
| 182 | br_get_value_from_array($options, array('table', 'samecolor')), |
| 183 | (empty($defaults['table']['samecolor']) ? -1 : $defaults['table']['samecolor']) |
| 184 | ); ?> |
| 185 | </td> |
| 186 | <td class="admin-column-color" colspan="2"> |
| 187 | <?php echo br_color_picker( |
| 188 | $settings_name . '[style_settings][table][samecolorhover]', |
| 189 | br_get_value_from_array($options, array('table', 'samecolorhover')), |
| 190 | (empty($defaults['table']['samecolorhover']) ? -1 : $defaults['table']['samecolorhover']) |
| 191 | ); ?> |
| 192 | </td> |
| 193 | </tr> |
| 194 | </tbody> |
| 195 | <tfoot> |
| 196 | <tr> |
| 197 | <th class="manage-column admin-column-theme" colspan="5" scope="col"> |
| 198 | <input class="all_theme_default button" type="button" value="Set all to theme default"> |
| 199 | <div style="clear:both;"></div> |
| 200 | </th> |
| 201 | </tr> |
| 202 | </tfoot> |
| 203 | </table> |
| 204 | |
| 205 | <table class="form-table berocket_compare_products_styler"> |
| 206 | <thead> |
| 207 | <tr><th colspan="6" style="text-align: center; font-size: 2em;"><?php _e('Hide attributes with same value button', 'products-compare-for-woocommerce') ?></th></tr> |
| 208 | <tr> |
| 209 | <th><?php _e('Button type', 'products-compare-for-woocommerce') ?></th> |
| 210 | <th><?php _e('Font size', 'products-compare-for-woocommerce') ?></th> |
| 211 | <th><?php _e('Padding from top', 'products-compare-for-woocommerce') ?></th> |
| 212 | <th><?php _e('Padding from bottom', 'products-compare-for-woocommerce') ?></th> |
| 213 | <th><?php _e('Font color', 'products-compare-for-woocommerce') ?></th> |
| 214 | <th><?php _e('Background color', 'products-compare-for-woocommerce') ?></th> |
| 215 | </tr> |
| 216 | </thead> |
| 217 | <tbody> |
| 218 | <tr> |
| 219 | <td> |
| 220 | <?php _e('Normal', 'products-compare-for-woocommerce') ?> |
| 221 | </td> |
| 222 | <td> |
| 223 | <input data-default="<?php echo $defaults['dif_button']['fontsize']; ?>" type="text" placeholder="<?php _e('Theme Default', 'products-compare-for-woocommerce') ?>" name="<?php echo $settings_name; ?>[style_settings][dif_button][fontsize]" value="<?php echo @ $options['dif_button']['fontsize'] ?>" /> |
| 224 | </td> |
| 225 | <td> |
| 226 | <input data-default="<?php echo $defaults['dif_button']['top']; ?>" type="text" placeholder="<?php _e('Theme Default', 'products-compare-for-woocommerce') ?>" name="<?php echo $settings_name; ?>[style_settings][dif_button][top]" value="<?php echo @ $options['dif_button']['top'] ?>" /> |
| 227 | </td> |
| 228 | <td> |
| 229 | <input data-default="<?php echo $defaults['dif_button']['bottom']; ?>" type="text" placeholder="<?php _e('Theme Default', 'products-compare-for-woocommerce') ?>" name="<?php echo $settings_name; ?>[style_settings][dif_button][bottom]" value="<?php echo @ $options['dif_button']['bottom'] ?>" /> |
| 230 | </td> |
| 231 | <td class="admin-column-color"> |
| 232 | <?php echo br_color_picker( |
| 233 | $settings_name . '[style_settings][dif_button][color]', |
| 234 | br_get_value_from_array($options, array('dif_button', 'color')), |
| 235 | (empty($defaults['dif_button']['color']) ? -1 : $defaults['dif_button']['color']) |
| 236 | ); ?> |
| 237 | </td> |
| 238 | <td class="admin-column-color"> |
| 239 | <?php echo br_color_picker( |
| 240 | $settings_name . '[style_settings][dif_button][backcolor]', |
| 241 | br_get_value_from_array($options, array('dif_button', 'backcolor')), |
| 242 | (empty($defaults['dif_button']['backcolor']) ? -1 : $defaults['dif_button']['backcolor']) |
| 243 | ); ?> |
| 244 | </td> |
| 245 | </tr> |
| 246 | <tr> |
| 247 | <td> |
| 248 | <?php _e('On mouse over', 'products-compare-for-woocommerce') ?> |
| 249 | </td> |
| 250 | <td> |
| 251 | <input data-default="<?php echo $defaults['dif_button_hover']['fontsize']; ?>" type="text" placeholder="<?php _e('Theme Default', 'products-compare-for-woocommerce') ?>" name="<?php echo $settings_name; ?>[style_settings][dif_button_hover][fontsize]" value="<?php echo @ $options['dif_button_hover']['fontsize'] ?>" /> |
| 252 | </td> |
| 253 | <td></td> |
| 254 | <td></td> |
| 255 | <td class="admin-column-color"> |
| 256 | <?php echo br_color_picker( |
| 257 | $settings_name . '[style_settings][dif_button_hover][color]', |
| 258 | br_get_value_from_array($options, array('dif_button_hover', 'color')), |
| 259 | (empty($defaults['dif_button_hover']['color']) ? -1 : $defaults['dif_button_hover']['color']) |
| 260 | ); ?> |
| 261 | </td> |
| 262 | <td class="admin-column-color"> |
| 263 | <?php echo br_color_picker( |
| 264 | $settings_name . '[style_settings][dif_button_hover][backcolor]', |
| 265 | br_get_value_from_array($options, array('dif_button_hover', 'backcolor')), |
| 266 | (empty($defaults['dif_button_hover']['backcolor']) ? -1 : $defaults['dif_button_hover']['backcolor']) |
| 267 | ); ?> |
| 268 | </td> |
| 269 | </tr> |
| 270 | </tbody> |
| 271 | <tfoot> |
| 272 | <tr> |
| 273 | <th class="manage-column admin-column-theme" colspan="6" scope="col"> |
| 274 | <input class="all_theme_default button" type="button" value="Set all to theme default"> |
| 275 | <div style="clear:both;"></div> |
| 276 | </th> |
| 277 | </tr> |
| 278 | </tfoot> |
| 279 | </table> |
| 280 | |
| 281 | <table class="form-table berocket_compare_products_styler"> |
| 282 | <thead> |
| 283 | <tr><th colspan="6" style="text-align: center; font-size: 2em;"><?php _e('Clear compare list button', 'products-compare-for-woocommerce') ?></th></tr> |
| 284 | <tr> |
| 285 | <th><?php _e('Button type', 'products-compare-for-woocommerce') ?></th> |
| 286 | <th><?php _e('Font size', 'products-compare-for-woocommerce') ?></th> |
| 287 | <th><?php _e('Padding from top', 'products-compare-for-woocommerce') ?></th> |
| 288 | <th><?php _e('Padding from bottom', 'products-compare-for-woocommerce') ?></th> |
| 289 | <th><?php _e('Font color', 'products-compare-for-woocommerce') ?></th> |
| 290 | <th><?php _e('Background color', 'products-compare-for-woocommerce') ?></th> |
| 291 | </tr> |
| 292 | </thead> |
| 293 | <tbody> |
| 294 | <tr> |
| 295 | <td> |
| 296 | <?php _e('Normal', 'products-compare-for-woocommerce') ?> |
| 297 | </td> |
| 298 | <td> |
| 299 | <input data-default="<?php echo $defaults['clear_button']['fontsize']; ?>" type="text" placeholder="<?php _e('Theme Default', 'products-compare-for-woocommerce') ?>" name="<?php echo $settings_name; ?>[style_settings][clear_button][fontsize]" value="<?php echo @ $options['clear_button']['fontsize'] ?>" /> |
| 300 | </td> |
| 301 | <td> |
| 302 | <input data-default="<?php echo $defaults['clear_button']['top']; ?>" type="text" placeholder="<?php _e('Theme Default', 'products-compare-for-woocommerce') ?>" name="<?php echo $settings_name; ?>[style_settings][clear_button][top]" value="<?php echo @ $options['clear_button']['top'] ?>" /> |
| 303 | </td> |
| 304 | <td> |
| 305 | <input data-default="<?php echo $defaults['clear_button']['bottom']; ?>" type="text" placeholder="<?php _e('Theme Default', 'products-compare-for-woocommerce') ?>" name="<?php echo $settings_name; ?>[style_settings][clear_button][bottom]" value="<?php echo @ $options['clear_button']['bottom'] ?>" /> |
| 306 | </td> |
| 307 | <td class="admin-column-color"> |
| 308 | <?php echo br_color_picker( |
| 309 | $settings_name . '[style_settings][clear_button][color]', |
| 310 | br_get_value_from_array($options, array('clear_button', 'color')), |
| 311 | (empty($defaults['clear_button']['color']) ? -1 : $defaults['clear_button']['color']) |
| 312 | ); ?> |
| 313 | </td> |
| 314 | <td class="admin-column-color"> |
| 315 | <?php echo br_color_picker( |
| 316 | $settings_name . '[style_settings][clear_button][backcolor]', |
| 317 | br_get_value_from_array($options, array('clear_button', 'backcolor')), |
| 318 | (empty($defaults['clear_button']['backcolor']) ? -1 : $defaults['clear_button']['backcolor']) |
| 319 | ); ?> |
| 320 | </td> |
| 321 | </tr> |
| 322 | <tr> |
| 323 | <td> |
| 324 | <?php _e('On mouse over', 'products-compare-for-woocommerce') ?> |
| 325 | </td> |
| 326 | <td> |
| 327 | <input data-default="<?php echo $defaults['clear_button_hover']['fontsize']; ?>" type="text" placeholder="<?php _e('Theme Default', 'products-compare-for-woocommerce') ?>" name="<?php echo $settings_name; ?>[style_settings][clear_button_hover][fontsize]" value="<?php echo @ $options['clear_button_hover']['fontsize'] ?>" /> |
| 328 | </td> |
| 329 | <td></td> |
| 330 | <td></td> |
| 331 | <td class="admin-column-color"> |
| 332 | <?php echo br_color_picker( |
| 333 | $settings_name . '[style_settings][clear_button_hover][color]', |
| 334 | br_get_value_from_array($options, array('clear_button_hover', 'color')), |
| 335 | (empty($defaults['clear_button_hover']['color']) ? -1 : $defaults['clear_button_hover']['color']) |
| 336 | ); ?> |
| 337 | </td> |
| 338 | <td class="admin-column-color"> |
| 339 | <?php echo br_color_picker( |
| 340 | $settings_name . '[style_settings][clear_button_hover][backcolor]', |
| 341 | br_get_value_from_array($options, array('clear_button_hover', 'backcolor')), |
| 342 | (empty($defaults['clear_button_hover']['backcolor']) ? -1 : $defaults['clear_button_hover']['backcolor']) |
| 343 | ); ?> |
| 344 | </td> |
| 345 | </tr> |
| 346 | </tbody> |
| 347 | <tfoot> |
| 348 | <tr> |
| 349 | <th class="manage-column admin-column-theme" colspan="6" scope="col"> |
| 350 | <input class="all_theme_default button" type="button" value="Set all to theme default"> |
| 351 | <div style="clear:both;"></div> |
| 352 | </th> |
| 353 | </tr> |
| 354 | </tfoot> |
| 355 | </table> |
| 356 | <table class="form-table berocket_compare_products_styler"> |
| 357 | <thead> |
| 358 | <tr><th colspan="5" style="text-align: center; font-size: 2em;"><?php _e('"Add to compare" button', 'products-compare-for-woocommerce') ?></th></tr> |
| 359 | <tr> |
| 360 | <th><?php _e('Button type', 'products-compare-for-woocommerce') ?></th> |
| 361 | <th><?php _e('Font size', 'products-compare-for-woocommerce') ?></th> |
| 362 | <th><?php _e('Width', 'products-compare-for-woocommerce') ?></th> |
| 363 | <th><?php _e('Font color', 'products-compare-for-woocommerce') ?></th> |
| 364 | <th><?php _e('Background color', 'products-compare-for-woocommerce') ?></th> |
| 365 | </tr> |
| 366 | </thead> |
| 367 | <tbody> |
| 368 | <tr> |
| 369 | <td> |
| 370 | <?php _e('Normal', 'products-compare-for-woocommerce') ?> |
| 371 | </td> |
| 372 | <td> |
| 373 | <input data-default="<?php echo $defaults['comparebutton']['fontsize']; ?>" type="text" placeholder="<?php _e('Theme Default', 'products-compare-for-woocommerce') ?>" name="<?php echo $settings_name; ?>[style_settings][comparebutton][fontsize]" value="<?php echo @ $options['comparebutton']['fontsize'] ?>" /> |
| 374 | </td> |
| 375 | <td> |
| 376 | <input data-default="<?php echo $defaults['comparebutton']['width']; ?>" type="text" placeholder="<?php _e('Theme Default', 'products-compare-for-woocommerce') ?>" name="<?php echo $settings_name; ?>[style_settings][comparebutton][width]" value="<?php echo @ $options['comparebutton']['width'] ?>" /> |
| 377 | </td> |
| 378 | <td class="admin-column-color"> |
| 379 | <?php echo br_color_picker( |
| 380 | $settings_name . '[style_settings][comparebutton][color]', |
| 381 | br_get_value_from_array($options, array('comparebutton', 'color')), |
| 382 | (empty($defaults['comparebutton']['color']) ? -1 : $defaults['comparebutton']['color']) |
| 383 | ); ?> |
| 384 | </td> |
| 385 | <td class="admin-column-color"> |
| 386 | <?php echo br_color_picker( |
| 387 | $settings_name . '[style_settings][comparebutton][backcolor]', |
| 388 | br_get_value_from_array($options, array('comparebutton', 'backcolor')), |
| 389 | (empty($defaults['comparebutton']['backcolor']) ? -1 : $defaults['comparebutton']['backcolor']) |
| 390 | ); ?> |
| 391 | </td> |
| 392 | </tr> |
| 393 | <tr> |
| 394 | <td> |
| 395 | <?php _e('On mouse over', 'products-compare-for-woocommerce') ?> |
| 396 | </td> |
| 397 | <td> |
| 398 | <input data-default="<?php echo $defaults['comparebuttonhover']['fontsize']; ?>" type="text" placeholder="<?php _e('Theme Default', 'products-compare-for-woocommerce') ?>" name="<?php echo $settings_name; ?>[style_settings][comparebuttonhover][fontsize]" value="<?php echo @ $options['comparebuttonhover']['fontsize'] ?>" /> |
| 399 | </td> |
| 400 | <td></td> |
| 401 | <td class="admin-column-color"> |
| 402 | <?php echo br_color_picker( |
| 403 | $settings_name . '[style_settings][comparebuttonhover][color]', |
| 404 | br_get_value_from_array($options, array('comparebuttonhover', 'color')), |
| 405 | (empty($defaults['comparebuttonhover']['color']) ? -1 : $defaults['comparebuttonhover']['color']) |
| 406 | ); ?> |
| 407 | </td> |
| 408 | <td class="admin-column-color"> |
| 409 | <?php echo br_color_picker( |
| 410 | $settings_name . '[style_settings][comparebuttonhover][backcolor]', |
| 411 | br_get_value_from_array($options, array('comparebuttonhover', 'backcolor')), |
| 412 | (empty($defaults['comparebuttonhover']['backcolor']) ? -1 : $defaults['comparebuttonhover']['backcolor']) |
| 413 | ); ?> |
| 414 | </td> |
| 415 | </tr> |
| 416 | <tr> |
| 417 | <td> |
| 418 | <?php _e('Added', 'products-compare-for-woocommerce') ?> |
| 419 | </td> |
| 420 | <td> |
| 421 | <input data-default="<?php echo $defaults['comparebuttonadded']['fontsize']; ?>" type="text" placeholder="<?php _e('Theme Default', 'products-compare-for-woocommerce') ?>" name="<?php echo $settings_name; ?>[style_settings][comparebuttonadded][fontsize]" value="<?php echo @ $options['comparebuttonadded']['fontsize'] ?>" /> |
| 422 | </td> |
| 423 | <td></td> |
| 424 | <td class="admin-column-color"> |
| 425 | <?php echo br_color_picker( |
| 426 | $settings_name . '[style_settings][comparebuttonadded][color]', |
| 427 | br_get_value_from_array($options, array('comparebuttonadded', 'color')), |
| 428 | (empty($defaults['comparebuttonadded']['color']) ? -1 : $defaults['comparebuttonadded']['color']) |
| 429 | ); ?> |
| 430 | </td> |
| 431 | <td class="admin-column-color"> |
| 432 | <?php echo br_color_picker( |
| 433 | $settings_name . '[style_settings][comparebuttonadded][backcolor]', |
| 434 | br_get_value_from_array($options, array('comparebuttonadded', 'backcolor')), |
| 435 | (empty($defaults['comparebuttonadded']['backcolor']) ? -1 : $defaults['comparebuttonadded']['backcolor']) |
| 436 | ); ?> |
| 437 | </td> |
| 438 | </tr> |
| 439 | </tbody> |
| 440 | <tfoot> |
| 441 | <tr> |
| 442 | <th class="manage-column admin-column-theme" colspan="5" scope="col"> |
| 443 | <input class="all_theme_default button" type="button" value="Set all to theme default"> |
| 444 | <div style="clear:both;"></div> |
| 445 | </th> |
| 446 | </tr> |
| 447 | </tfoot> |
| 448 | </table> |
| 449 |