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 +23 -16 1.6.7 → 1.8.13 View file →
@@ -3,45 +3,52 @@
3 3 * Renders the custom styles added by Charitable.
4 4 *
5 5 * Override this template by copying it to yourtheme/charitable/custom-styles.css.php
6 6 *
7 - * @author Studio 164a
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 -if ( ! defined( 'ABSPATH' ) ) { exit; }
15 +if ( ! defined( 'ABSPATH' ) ) {
16 + exit;
17 +}
15 18
16 -$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 ) );
17 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 +
18 25 ?>
19 26 <style id="charitable-highlight-colour-styles">
20 -.campaign-raised .amount,
27 +.campaign-raised .amount,
21 28 .campaign-figures .amount,
22 -.donors-count,
29 +.donors-count,
23 30 .time-left,
24 31 .charitable-form-field a:not(.button),
25 32 .charitable-form-fields .charitable-fieldset a:not(.button),
26 33 .charitable-notice,
27 34 .charitable-notice .errors a {
28 - color: <?php echo $highlight_colour ?>;
35 + color: <?php echo esc_html( $charitable_highlight_colour_error ); ?>;
36 +
29 37 }
38 +#charitable-donation-form .charitable-notice {
39 + border-color: <?php echo esc_html( $charitable_highlight_colour_error ); ?>;
40 +}
30 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 {
35 - background-color: <?php echo $highlight_colour ?>;
36 -}
45 +.charitable-donation-amount-form .donation-amount.selected { background-color: <?php echo esc_html( $charitable_highlight_colour ); ?>; }
37 46
38 47 .charitable-donation-form .donation-amount.selected,
39 48 .charitable-donation-amount-form .donation-amount.selected,
40 -.charitable-notice,
49 +.charitable-notice,
41 50 .charitable-drag-drop-images li:hover a.remove-image,
42 -.supports-drag-drop .charitable-drag-drop-dropzone.drag-over {
43 - border-color: <?php echo $highlight_colour ?>;
44 -}
51 +.supports-drag-drop .charitable-drag-drop-dropzone.drag-over { border-color: <?php echo esc_html( $charitable_highlight_colour ); ?>; }
45 52
46 -<?php do_action( 'charitable_custom_styles', $highlight_colour ) ?>
47 -</style>
53 +<?php do_action( 'charitable_custom_styles', $charitable_highlight_colour ); ?>
54 +</style>