PluginProbe
Charitable – Donation & Fundraising Platform (Donation Forms, Recurring Donations & Fundraising Campaigns) / 1.8.13
Charitable – Donation & Fundraising Platform (Donation Forms, Recurring Donations & Fundraising Campaigns) v1.8.13
1.8.13.1 1.8.13 1.8.12.3 1.8.12.2 1.8.12.1 1.8.12 1.8.11.3 1.8.11.2 1.8.11.1 1.8.11 1.6.6 1.6.60 1.6.7 1.6.8 1.6.9 1.7.0 1.7.0.1 1.7.0.11 1.7.0.12 1.7.0.14 1.7.0.2 1.7.0.3 1.7.0.5 1.7.0.6 1.7.0.7 All 212 releases
← All changes | templates/custom-styles.css.php +17 -6 1.7.0 → 1.8.13 View file →
@@ -6,9 +6,10 @@
6 6 *
7 7 * @author WP Charitable LLC
8 8 * @package Charitable/Templates/CSS
9 9 * @since 1.0.0
10 - * @version 1.0.0
10 + * @version 1.7.0.8
11 + * @version 1.8.8.6
11 12 */
12 13
13 14 // Exit if accessed directly.
14 15 if ( ! defined( 'ABSPATH' ) ) {
@@ -14,10 +15,14 @@
14 15 if ( ! defined( 'ABSPATH' ) ) {
15 16 exit;
16 17 }
17 18
18 -$highlight_colour = charitable_get_option( 'highlight_colour', apply_filters( 'charitable_default_highlight_colour', '#f89d35' ) );
19 +// Introduced in 1.7.0.7, as we migrate away from WordPress customizer.
20 +$charitable_highlight_color_donation_form = esc_html( charitable_get_option( 'donation_form_default_highlight_colour', false ) );
19 21
22 +$charitable_highlight_colour = charitable_get_option( 'highlight_colour', apply_filters( 'charitable_default_highlight_colour', '#f89d35' ) );
23 +$charitable_highlight_colour_error = ( false === $charitable_highlight_color_donation_form ) ? charitable_get_option( 'highlight_colour', apply_filters( 'charitable_default_highlight_colour', '#f89d35' ) ) : $charitable_highlight_color_donation_form;
24 +
20 25 ?>
21 26 <style id="charitable-highlight-colour-styles">
22 27 .campaign-raised .amount,
23 28 .campaign-figures .amount,
@@ -25,19 +30,25 @@
25 30 .time-left,
26 31 .charitable-form-field a:not(.button),
27 32 .charitable-form-fields .charitable-fieldset a:not(.button),
28 33 .charitable-notice,
29 -.charitable-notice .errors a { color: <?php echo $highlight_colour; ?>; }
34 +.charitable-notice .errors a {
35 + color: <?php echo esc_html( $charitable_highlight_colour_error ); ?>;
30 36
37 +}
38 +#charitable-donation-form .charitable-notice {
39 + border-color: <?php echo esc_html( $charitable_highlight_colour_error ); ?>;
40 +}
41 +
31 42 .campaign-progress-bar .bar,
32 43 .donate-button,
33 44 .charitable-donation-form .donation-amount.selected,
34 -.charitable-donation-amount-form .donation-amount.selected { background-color: <?php echo $highlight_colour; ?>; }
45 +.charitable-donation-amount-form .donation-amount.selected { background-color: <?php echo esc_html( $charitable_highlight_colour ); ?>; }
35 46
36 47 .charitable-donation-form .donation-amount.selected,
37 48 .charitable-donation-amount-form .donation-amount.selected,
38 49 .charitable-notice,
39 50 .charitable-drag-drop-images li:hover a.remove-image,
40 -.supports-drag-drop .charitable-drag-drop-dropzone.drag-over { border-color: <?php echo $highlight_colour; ?>; }
51 +.supports-drag-drop .charitable-drag-drop-dropzone.drag-over { border-color: <?php echo esc_html( $charitable_highlight_colour ); ?>; }
41 52
42 -<?php do_action( 'charitable_custom_styles', $highlight_colour ) ?>
53 +<?php do_action( 'charitable_custom_styles', $charitable_highlight_colour ); ?>
43 54 </style>