@@ -9,13 +9,13 @@ discard block |
||
9 | 9 | * @since 1.0 |
10 | 10 | */ |
11 | 11 | |
12 | -if ( ! defined( 'ABSPATH' ) ) { |
|
12 | +if ( ! defined('ABSPATH')) { |
|
13 | 13 | exit; // Exit if accessed directly. |
14 | 14 | } |
15 | 15 | |
16 | -$template = strtolower( get_option( 'template' ) ); |
|
16 | +$template = strtolower(get_option('template')); |
|
17 | 17 | |
18 | -switch ( $template ) { |
|
18 | +switch ($template) { |
|
19 | 19 | case 'twentyeleven' : |
20 | 20 | echo '<div id="primary" class="give-wrap"><div id="content" role="main" class="twentyeleven">'; |
21 | 21 | break; |
@@ -65,6 +65,6 @@ discard block |
||
65 | 65 | echo '<div class="wrapper hentry" style="box-sizing: border-box;">'; |
66 | 66 | break; |
67 | 67 | default : |
68 | - echo apply_filters( 'give_default_wrapper_start', '<div id="container" class="give-wrap container"><div id="content" role="main">' ); |
|
68 | + echo apply_filters('give_default_wrapper_start', '<div id="container" class="give-wrap container"><div id="content" role="main">'); |
|
69 | 69 | break; |
70 | 70 | } |
71 | 71 | \ No newline at end of file |
@@ -9,13 +9,13 @@ discard block |
||
9 | 9 | * @since 1.0 |
10 | 10 | */ |
11 | 11 | |
12 | -if ( ! defined( 'ABSPATH' ) ) { |
|
12 | +if ( ! defined('ABSPATH')) { |
|
13 | 13 | exit; // Exit if accessed directly. |
14 | 14 | } |
15 | 15 | |
16 | -$template = get_option( 'template' ); |
|
16 | +$template = get_option('template'); |
|
17 | 17 | |
18 | -switch ( $template ) { |
|
18 | +switch ($template) { |
|
19 | 19 | case 'twentyeleven' : |
20 | 20 | echo '</div></div>'; |
21 | 21 | break; |
@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | break; |
28 | 28 | case 'twentyfourteen' : |
29 | 29 | echo '</div></div></div>'; |
30 | - get_sidebar( 'content' ); |
|
30 | + get_sidebar('content'); |
|
31 | 31 | break; |
32 | 32 | case 'twentyfifteen' : |
33 | 33 | echo '</div></div>'; |
@@ -57,6 +57,6 @@ discard block |
||
57 | 57 | echo '</div>'; |
58 | 58 | break; |
59 | 59 | default : |
60 | - echo apply_filters( 'give_default_wrapper_end', '</div></div>' ); |
|
60 | + echo apply_filters('give_default_wrapper_end', '</div></div>'); |
|
61 | 61 | break; |
62 | 62 | } |
63 | 63 | \ No newline at end of file |
@@ -8,7 +8,7 @@ discard block |
||
8 | 8 | * @version 1.0 |
9 | 9 | */ |
10 | 10 | |
11 | -if ( ! defined( 'ABSPATH' ) ) { |
|
11 | +if ( ! defined('ABSPATH')) { |
|
12 | 12 | exit; // Exit if accessed directly. |
13 | 13 | } |
14 | 14 | |
@@ -21,11 +21,11 @@ discard block |
||
21 | 21 | * |
22 | 22 | * @since 1.0 |
23 | 23 | */ |
24 | -do_action( 'give_before_main_content' ); |
|
24 | +do_action('give_before_main_content'); |
|
25 | 25 | |
26 | -while ( have_posts() ) : the_post(); |
|
26 | +while (have_posts()) : the_post(); |
|
27 | 27 | |
28 | - give_get_template_part( 'single-give-form/content', 'single-give-form' ); |
|
28 | + give_get_template_part('single-give-form/content', 'single-give-form'); |
|
29 | 29 | |
30 | 30 | endwhile; // end of the loop. |
31 | 31 | |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | * |
37 | 37 | * @since 1.0 |
38 | 38 | */ |
39 | -do_action( 'give_after_main_content' ); |
|
39 | +do_action('give_after_main_content'); |
|
40 | 40 | |
41 | 41 | /** |
42 | 42 | * Fires in single form template, on the sidebar. |
@@ -45,6 +45,6 @@ discard block |
||
45 | 45 | * |
46 | 46 | * @since 1.0 |
47 | 47 | */ |
48 | -do_action( 'give_sidebar' ); |
|
48 | +do_action('give_sidebar'); |
|
49 | 49 | |
50 | 50 | get_footer(); |
51 | 51 | \ No newline at end of file |
@@ -10,7 +10,7 @@ discard block |
||
10 | 10 | * @since 1.0 |
11 | 11 | */ |
12 | 12 | |
13 | -if ( ! defined( 'ABSPATH' ) ) { |
|
13 | +if ( ! defined('ABSPATH')) { |
|
14 | 14 | exit; // Exit if accessed directly. |
15 | 15 | } |
16 | 16 | |
@@ -23,22 +23,22 @@ discard block |
||
23 | 23 | * |
24 | 24 | * @since 1.0 |
25 | 25 | */ |
26 | -do_action( 'give_pre_featured_thumbnail' ); |
|
26 | +do_action('give_pre_featured_thumbnail'); |
|
27 | 27 | ?> |
28 | 28 | |
29 | 29 | <div class="images"> |
30 | 30 | <?php //Featured Thumbnail |
31 | - if ( has_post_thumbnail() ) { |
|
31 | + if (has_post_thumbnail()) { |
|
32 | 32 | |
33 | - $image_size = give_get_option( 'featured_image_size' ); |
|
34 | - $image = get_the_post_thumbnail( $post->ID, apply_filters( 'single_give_form_large_thumbnail_size', ( ! empty( $image_size ) ? $image_size : 'large' ) ) ); |
|
33 | + $image_size = give_get_option('featured_image_size'); |
|
34 | + $image = get_the_post_thumbnail($post->ID, apply_filters('single_give_form_large_thumbnail_size', ( ! empty($image_size) ? $image_size : 'large'))); |
|
35 | 35 | |
36 | - echo apply_filters( 'single_give_form_image_html', $image ); |
|
36 | + echo apply_filters('single_give_form_image_html', $image); |
|
37 | 37 | |
38 | 38 | } else { |
39 | 39 | |
40 | 40 | //Placeholder Image |
41 | - echo apply_filters( 'single_give_form_image_html', sprintf( '<img src="%s" alt="%s" />', give_get_placeholder_img_src(), esc_attr__( 'Placeholder', 'give' ) ), $post->ID ); |
|
41 | + echo apply_filters('single_give_form_image_html', sprintf('<img src="%s" alt="%s" />', give_get_placeholder_img_src(), esc_attr__('Placeholder', 'give')), $post->ID); |
|
42 | 42 | |
43 | 43 | } ?> |
44 | 44 | </div> |
@@ -51,5 +51,5 @@ discard block |
||
51 | 51 | * |
52 | 52 | * @since 1.0 |
53 | 53 | */ |
54 | -do_action( 'give_post_featured_thumbnail' ); |
|
54 | +do_action('give_post_featured_thumbnail'); |
|
55 | 55 | ?> |
@@ -11,9 +11,9 @@ |
||
11 | 11 | * @since 1.0 |
12 | 12 | */ |
13 | 13 | |
14 | -if ( ! defined( 'ABSPATH' ) ) { |
|
14 | +if ( ! defined('ABSPATH')) { |
|
15 | 15 | exit; // Exit if accessed directly. |
16 | 16 | } |
17 | -if ( is_active_sidebar( 'give-forms-sidebar' ) ) { |
|
18 | - dynamic_sidebar( 'give-forms-sidebar' ); |
|
17 | +if (is_active_sidebar('give-forms-sidebar')) { |
|
18 | + dynamic_sidebar('give-forms-sidebar'); |
|
19 | 19 | } |
20 | 20 | \ No newline at end of file |
@@ -8,7 +8,7 @@ discard block |
||
8 | 8 | * @version 1.0 |
9 | 9 | */ |
10 | 10 | |
11 | -if ( ! defined( 'ABSPATH' ) ) { |
|
11 | +if ( ! defined('ABSPATH')) { |
|
12 | 12 | exit; // Exit if accessed directly. |
13 | 13 | } |
14 | 14 | |
@@ -19,9 +19,9 @@ discard block |
||
19 | 19 | * |
20 | 20 | * @since 1.0 |
21 | 21 | */ |
22 | -do_action( 'give_before_single_form' ); |
|
22 | +do_action('give_before_single_form'); |
|
23 | 23 | |
24 | -if ( post_password_required() ) { |
|
24 | +if (post_password_required()) { |
|
25 | 25 | echo get_the_password_form(); |
26 | 26 | return; |
27 | 27 | } |
@@ -37,10 +37,10 @@ discard block |
||
37 | 37 | * |
38 | 38 | * @since 1.0 |
39 | 39 | */ |
40 | - do_action( 'give_before_single_form_summary' ); |
|
40 | + do_action('give_before_single_form_summary'); |
|
41 | 41 | ?> |
42 | 42 | |
43 | - <div class="<?php echo apply_filters( 'give_forms_single_summary_classes', 'summary entry-summary' ); ?>"> |
|
43 | + <div class="<?php echo apply_filters('give_forms_single_summary_classes', 'summary entry-summary'); ?>"> |
|
44 | 44 | |
45 | 45 | <?php |
46 | 46 | /** |
@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | * |
51 | 51 | * @since 1.0 |
52 | 52 | */ |
53 | - do_action( 'give_single_form_summary' ); |
|
53 | + do_action('give_single_form_summary'); |
|
54 | 54 | ?> |
55 | 55 | |
56 | 56 | </div> |
@@ -64,7 +64,7 @@ discard block |
||
64 | 64 | * |
65 | 65 | * @since 1.0 |
66 | 66 | */ |
67 | - do_action( 'give_after_single_form_summary' ); |
|
67 | + do_action('give_after_single_form_summary'); |
|
68 | 68 | ?> |
69 | 69 | |
70 | 70 | </div><!-- #give-form-<?php the_ID(); ?> --> |
@@ -77,5 +77,5 @@ discard block |
||
77 | 77 | * |
78 | 78 | * @since 1.0 |
79 | 79 | */ |
80 | -do_action( 'give_after_single_form' ); |
|
80 | +do_action('give_after_single_form'); |
|
81 | 81 | ?> |
@@ -11,7 +11,7 @@ |
||
11 | 11 | * @since 1.0 |
12 | 12 | */ |
13 | 13 | |
14 | -if ( ! defined( 'ABSPATH' ) ) { |
|
14 | +if ( ! defined('ABSPATH')) { |
|
15 | 15 | exit; // Exit if accessed directly. |
16 | 16 | } ?> |
17 | 17 | <h1 itemprop="name" class="give-form-title entry-title"><?php the_title(); ?></h1> |
@@ -5,11 +5,11 @@ |
||
5 | 5 | ?> |
6 | 6 | <div id="give-payment-processing"> |
7 | 7 | <?php |
8 | - Give()->notices->print_frontend_notice( sprintf( |
|
8 | + Give()->notices->print_frontend_notice(sprintf( |
|
9 | 9 | /* translators: %s: success page URL */ |
10 | - __( 'Your donation is processing. This page will reload automatically in 8 seconds. If it does not, click <a href="%s">here</a>.', 'give' ), |
|
10 | + __('Your donation is processing. This page will reload automatically in 8 seconds. If it does not, click <a href="%s">here</a>.', 'give'), |
|
11 | 11 | give_get_success_page_uri() |
12 | - ), true, 'success' ); |
|
12 | + ), true, 'success'); |
|
13 | 13 | ?> |
14 | 14 | <span class="give-loading-animation"></span> |
15 | 15 | <script type="text/javascript">setTimeout(function () { |
@@ -6,13 +6,13 @@ |
||
6 | 6 | * @version 1.0 |
7 | 7 | */ |
8 | 8 | |
9 | -if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly. |
|
9 | +if ( ! defined('ABSPATH')) exit; // Exit if accessed directly. |
|
10 | 10 | // This is the footer used if no others are available |
11 | 11 | ?> |
12 | 12 | <!DOCTYPE html> |
13 | 13 | <html> |
14 | 14 | <head> |
15 | 15 | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> |
16 | - <title><?php echo get_bloginfo( 'name' ); ?></title> |
|
16 | + <title><?php echo get_bloginfo('name'); ?></title> |
|
17 | 17 | </head> |
18 | 18 | <body> |
19 | 19 | \ No newline at end of file |
@@ -6,7 +6,10 @@ |
||
6 | 6 | * @version 1.0 |
7 | 7 | */ |
8 | 8 | |
9 | -if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly. |
|
9 | +if ( ! defined( 'ABSPATH' ) ) { |
|
10 | + exit; |
|
11 | +} |
|
12 | +// Exit if accessed directly. |
|
10 | 13 | // This is the footer used if no others are available |
11 | 14 | ?> |
12 | 15 | <!DOCTYPE html> |