PluginProbe
Charitable – Donation & Fundraising Platform (Donation Forms, Recurring Donations & Fundraising Campaigns) / 1.8.0
Charitable – Donation & Fundraising Platform (Donation Forms, Recurring Donations & Fundraising Campaigns) v1.8.0
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 1.7.0.9 1.8.0 All 210 releases
charitable / templates / custom-styles.css.php

custom-styles.css.php in Charitable – Donation & Fundraising Platform (Donation Forms, Recurring Donations & Fundraising Campaigns) 1.8.0, at templates/custom-styles.css.php

55 lines 1.9 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Renders the custom styles added by Charitable.
4 *
5 * Override this template by copying it to yourtheme/charitable/custom-styles.css.php
6 *
7 * @author WP Charitable LLC
8 * @package Charitable/Templates/CSS
9 * @since 1.0.0
10 * @version 1.7.0.8
11 */
12
13 // Exit if accessed directly.
14
15 if ( ! defined( 'ABSPATH' ) ) {
16 exit;
17 }
18
19 // Introduced in 1.7.0.7, as we migrate away from WordPress customizer.
20 $highlight_color_donation_form = esc_html( charitable_get_option( 'donation_form_default_highlight_colour', false ) );
21
22 $highlight_colour = charitable_get_option( 'highlight_colour', apply_filters( 'charitable_default_highlight_colour', '#f89d35' ) );
23 $highlight_colour_error = ( false === $highlight_color_donation_form ) ? charitable_get_option( 'highlight_colour', apply_filters( 'charitable_default_highlight_colour', '#f89d35' ) ) : $highlight_color_donation_form;
24
25 ?>
26 <style id="charitable-highlight-colour-styles">
27 .campaign-raised .amount,
28 .campaign-figures .amount,
29 .donors-count,
30 .time-left,
31 .charitable-form-field a:not(.button),
32 .charitable-form-fields .charitable-fieldset a:not(.button),
33 .charitable-notice,
34 .charitable-notice .errors a {
35 color: <?php echo $highlight_colour_error; ?>;
36
37 }
38 #charitable-donation-form .charitable-notice {
39 border-color: <?php echo $highlight_colour_error; ?>;
40 }
41
42 .campaign-progress-bar .bar,
43 .donate-button,
44 .charitable-donation-form .donation-amount.selected,
45 .charitable-donation-amount-form .donation-amount.selected { background-color: <?php echo $highlight_colour; ?>; }
46
47 .charitable-donation-form .donation-amount.selected,
48 .charitable-donation-amount-form .donation-amount.selected,
49 .charitable-notice,
50 .charitable-drag-drop-images li:hover a.remove-image,
51 .supports-drag-drop .charitable-drag-drop-dropzone.drag-over { border-color: <?php echo $highlight_colour; ?>; }
52
53 <?php do_action( 'charitable_custom_styles', $highlight_colour ) ?>
54 </style>
55