| @@ -5,9 +5,9 @@ | ||
| 5 | 5 | * Action/filter hooks used for Charitable functions/templates |
| 6 | 6 | * |
| 7 | 7 | * @package Charitable/Functions/Templates |
| 8 | 8 | * @author David Bisset |
| 9 | - * @copyright Copyright (c) 2022, WP Charitable LLC | |
| 9 | + * @copyright Copyright (c) 2023, WP Charitable LLC | |
| 10 | 10 | * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License |
| 11 | 11 | * @since 1.0.0 |
| 12 | 12 | * @version 1.7.0.9 |
| 13 | 13 | */ |
| @@ -79,8 +79,10 @@ | ||
| 79 | 79 | |
| 80 | 80 | /** |
| 81 | 81 | * Campaigns loop, after the main title. |
| 82 | 82 | * |
| 83 | + * @version 1.8.2 added 2nd parameter to charitable_template_campaign_description() | |
| 84 | + * | |
| 83 | 85 | * @see charitable_template_campaign_description() |
| 84 | 86 | * @see charitable_template_campaign_progress_bar() |
| 85 | 87 | * @see charitable_template_campaign_loop_donation_stats() |
| 86 | 88 | * @see charitable_template_campaign_donate_link() |
| @@ -85,9 +87,9 @@ | ||
| 85 | 87 | * @see charitable_template_campaign_loop_donation_stats() |
| 86 | 88 | * @see charitable_template_campaign_donate_link() |
| 87 | 89 | * @see charitable_template_campaign_loop_more_link() |
| 88 | 90 | */ |
| 89 | -add_action( 'charitable_campaign_content_loop_after', 'charitable_template_campaign_description', 4 ); | |
| 91 | +add_action( 'charitable_campaign_content_loop_after', 'charitable_template_campaign_description', 4, 2 ); | |
| 90 | 92 | add_action( 'charitable_campaign_content_loop_after', 'charitable_template_campaign_progress_bar', 6 ); |
| 91 | 93 | add_action( 'charitable_campaign_content_loop_after', 'charitable_template_campaign_loop_donation_stats', 8 ); |
| 92 | 94 | add_action( 'charitable_campaign_content_loop_after', 'charitable_template_campaign_loop_donate_link', 10, 2 ); |
| 93 | 95 | add_action( 'charitable_campaign_content_loop_after', 'charitable_template_campaign_loop_more_link', 10, 2 ); |
| @@ -109,8 +111,15 @@ | ||
| 109 | 111 | */ |
| 110 | 112 | add_action( 'wp_footer', 'charitable_template_campaign_modal_donation_window' ); |
| 111 | 113 | |
| 112 | 114 | /** |
| 115 | + * Footer, right before the closing body tag (for Elementor widgets). | |
| 116 | + * | |
| 117 | + * @see charitable_template_elementor_campaign_modal_donation_window() | |
| 118 | + */ | |
| 119 | +add_action( 'wp_footer', 'charitable_template_elementor_campaign_modal_donation_window' ); | |
| 120 | + | |
| 121 | +/** | |
| 113 | 122 | * Add the login form before the donation form, outside the <form> tags |
| 114 | 123 | * |
| 115 | 124 | * @see charitable_template_donation_form_login() |
| 116 | 125 | */ |
| @@ -127,5 +136,5 @@ | ||
| 127 | 136 | * Add a link to the login form after the registration form. |
| 128 | 137 | * |
| 129 | 138 | * @see charitable_template_form_login_link() |
| 130 | 139 | */ |
| 131 | -add_action( 'charitable_user_registration_after', 'charitable_template_form_login_link' ); | |
| 140 | +add_action( 'charitable_user_registration_after', 'charitable_template_form_login_link' ); | |