| @@ -1,50 +1,51 @@ | ||
| 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() ) : the_post(); | |
| 27 | - | |
| 28 | - give_get_template_part( 'single-give-form/content', 'single-give-form' ); | |
| 29 | - | |
| 30 | -endwhile; // end of the loop. | |
| 31 | - | |
| 32 | -/** | |
| 33 | - * Fires in single form template, after the main content. | |
| 34 | - * | |
| 35 | - * Allows you to add elements after the main content. | |
| 36 | - * | |
| 37 | - * @since 1.0 | |
| 38 | - */ | |
| 39 | -do_action( 'give_after_main_content' ); | |
| 40 | - | |
| 41 | -/** | |
| 42 | - * Fires in single form template, on the sidebar. | |
| 43 | - * | |
| 44 | - * Allows you to add elements to the sidebar. | |
| 45 | - * | |
| 46 | - * @since 1.0 | |
| 47 | - */ | |
| 48 | -do_action( 'give_sidebar' ); | |
| 49 | - | |
| 50 | -get_footer(); | |
| 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(); | |