| 1 |
<?php |
| 2 |
/** |
| 3 |
* The Template for displaying all single Give Forms. |
| 4 |
* |
| 5 |
* Override this template by copying it to yourtheme/give/single-give-forms.php |
| 6 |
* |
| 7 |
* @package Give/Templates |
| 8 |
* @version 1.0 |
| 9 |
*/ |
| 10 |
|
| 11 |
if ( ! defined( 'ABSPATH' ) ) { |
| 12 |
exit; // Exit if accessed directly. |
| 13 |
} |
| 14 |
|
| 15 |
get_header(); |
| 16 |
|
| 17 |
/** |
| 18 |
* Fires in single form template, before the main content. |
| 19 |
* |
| 20 |
* Allows you to add elements before the main content. |
| 21 |
* |
| 22 |
* @since 1.0 |
| 23 |
*/ |
| 24 |
do_action( 'give_before_main_content' ); |
| 25 |
|
| 26 |
while ( have_posts() ) : |
| 27 |
the_post(); |
| 28 |
|
| 29 |
give_get_template_part( 'single-give-form/content', 'single-give-form' ); |
| 30 |
|
| 31 |
endwhile; // end of the loop. |
| 32 |
|
| 33 |
/** |
| 34 |
* Fires in single form template, after the main content. |
| 35 |
* |
| 36 |
* Allows you to add elements after the main content. |
| 37 |
* |
| 38 |
* @since 1.0 |
| 39 |
*/ |
| 40 |
do_action( 'give_after_main_content' ); |
| 41 |
|
| 42 |
/** |
| 43 |
* Fires in single form template, on the sidebar. |
| 44 |
* |
| 45 |
* Allows you to add elements to the sidebar. |
| 46 |
* |
| 47 |
* @since 1.0 |
| 48 |
*/ |
| 49 |
do_action( 'give_sidebar' ); |
| 50 |
|
| 51 |
get_footer(); |
| 52 |
|