Test Failed
Pull Request — master (#2225)
by Devin
04:31
created
includes/admin/shortcodes/shortcode-give-goal.php 1 patch
Spacing   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
  */
10 10
 
11 11
 // Exit if accessed directly.
12
-if ( ! defined( 'ABSPATH' ) ) {
12
+if ( ! defined('ABSPATH')) {
13 13
 	exit;
14 14
 }
15 15
 
@@ -23,10 +23,10 @@  discard block
 block discarded – undo
23 23
 	 */
24 24
 	public function __construct() {
25 25
 
26
-		$this->shortcode['title'] = esc_html__( 'Donation Form Goal', 'give' );
27
-		$this->shortcode['label'] = esc_html__( 'Donation Form Goal', 'give' );
26
+		$this->shortcode['title'] = esc_html__('Donation Form Goal', 'give');
27
+		$this->shortcode['label'] = esc_html__('Donation Form Goal', 'give');
28 28
 
29
-		parent::__construct( 'give_goal' );
29
+		parent::__construct('give_goal');
30 30
 	}
31 31
 
32 32
 	/**
@@ -38,8 +38,8 @@  discard block
 block discarded – undo
38 38
 
39 39
 		$create_form_link = sprintf(
40 40
 		/* translators: %s: create new form URL */
41
-			__( '<a href="%s">Create</a> a new Donation Form.', 'give' ),
42
-			admin_url( 'post-new.php?post_type=give_forms' )
41
+			__('<a href="%s">Create</a> a new Donation Form.', 'give'),
42
+			admin_url('post-new.php?post_type=give_forms')
43 43
 		);
44 44
 
45 45
 		return array(
@@ -51,35 +51,35 @@  discard block
 block discarded – undo
51 51
 					'meta_value' => 'enabled',
52 52
 				),
53 53
 				'name'        => 'id',
54
-				'tooltip'     => esc_attr__( 'Select a Donation Form', 'give' ),
55
-				'placeholder' => '- ' . esc_attr__( 'Select a Donation Form', 'give' ) . ' -',
54
+				'tooltip'     => esc_attr__('Select a Donation Form', 'give'),
55
+				'placeholder' => '- '.esc_attr__('Select a Donation Form', 'give').' -',
56 56
 				'required'    => array(
57
-					'alert' => esc_html__( 'You must first select a Form!', 'give' ),
58
-					'error' => sprintf( '<p class="strong">%s</p><p class="no-margin">%s</p>', esc_html__( 'No forms found.', 'give' ), $create_form_link ),
57
+					'alert' => esc_html__('You must first select a Form!', 'give'),
58
+					'error' => sprintf('<p class="strong">%s</p><p class="no-margin">%s</p>', esc_html__('No forms found.', 'give'), $create_form_link),
59 59
 				),
60 60
 			),
61 61
 			array(
62 62
 				'type' => 'container',
63
-				'html' => sprintf( '<p class="strong margin-top">%s</p>', esc_html__( 'Optional settings', 'give' ) ),
63
+				'html' => sprintf('<p class="strong margin-top">%s</p>', esc_html__('Optional settings', 'give')),
64 64
 			),
65 65
 			array(
66 66
 				'type'    => 'listbox',
67 67
 				'name'    => 'show_text',
68
-				'label'   => esc_attr__( 'Show Text:', 'give' ),
69
-				'tooltip' => esc_attr__( 'This text displays the amount of income raised compared to the goal.', 'give' ),
68
+				'label'   => esc_attr__('Show Text:', 'give'),
69
+				'tooltip' => esc_attr__('This text displays the amount of income raised compared to the goal.', 'give'),
70 70
 				'options' => array(
71
-					'true'  => esc_html__( 'Show', 'give' ),
72
-					'false' => esc_html__( 'Hide', 'give' ),
71
+					'true'  => esc_html__('Show', 'give'),
72
+					'false' => esc_html__('Hide', 'give'),
73 73
 				),
74 74
 			),
75 75
 			array(
76 76
 				'type'    => 'listbox',
77 77
 				'name'    => 'show_bar',
78
-				'label'   => esc_attr__( 'Show Progress Bar:', 'give' ),
79
-				'tooltip' => esc_attr__( 'Do you want to display the goal\'s progress bar?', 'give' ),
78
+				'label'   => esc_attr__('Show Progress Bar:', 'give'),
79
+				'tooltip' => esc_attr__('Do you want to display the goal\'s progress bar?', 'give'),
80 80
 				'options' => array(
81
-					'true'  => esc_html__( 'Show', 'give' ),
82
-					'false' => esc_html__( 'Hide', 'give' ),
81
+					'true'  => esc_html__('Show', 'give'),
82
+					'false' => esc_html__('Hide', 'give'),
83 83
 				),
84 84
 			),
85 85
 		);
Please login to merge, or discard this patch.
templates/shortcode-register.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -2,7 +2,7 @@  discard block
 block discarded – undo
2 2
 /**
3 3
  * This template is used to display the registration form with [give_register]
4 4
  */
5
-Give()->notices->render_frontend_notices( 0 ); ?>
5
+Give()->notices->render_frontend_notices(0); ?>
6 6
 
7 7
 <form id="give-register-form" class="give-form" action="" method="post">
8 8
 	<?php
@@ -13,11 +13,11 @@  discard block
 block discarded – undo
13 13
 	 *
14 14
 	 * @since 1.0
15 15
 	 */
16
-	do_action( 'give_register_form_fields_top' );
16
+	do_action('give_register_form_fields_top');
17 17
 	?>
18 18
 
19 19
 	<fieldset>
20
-		<legend><?php esc_html_e( 'Register a New Account', 'give' ); ?></legend>
20
+		<legend><?php esc_html_e('Register a New Account', 'give'); ?></legend>
21 21
 
22 22
 		<?php
23 23
 		/**
@@ -27,26 +27,26 @@  discard block
 block discarded – undo
27 27
 		 *
28 28
 		 * @since 1.0
29 29
 		 */
30
-		do_action( 'give_register_form_fields_before' );
30
+		do_action('give_register_form_fields_before');
31 31
 		?>
32 32
 
33 33
 		<div class="form-row form-row-first form-row-responsive">
34
-			<label for="give-user-login"><?php esc_html_e( 'Username', 'give' ); ?></label>
34
+			<label for="give-user-login"><?php esc_html_e('Username', 'give'); ?></label>
35 35
 			<input id="give-user-login" class="required give-input" type="text" name="give_user_login" required aria-required="true" />
36 36
 		</div>
37 37
 
38 38
 		<div class="form-row form-row-last form-row-responsive">
39
-			<label for="give-user-email"><?php esc_html_e( 'Email', 'give' ); ?></label>
39
+			<label for="give-user-email"><?php esc_html_e('Email', 'give'); ?></label>
40 40
 			<input id="give-user-email" class="required give-input" type="email" name="give_user_email" required aria-required="true" />
41 41
 		</div>
42 42
 
43 43
 		<div class="form-row form-row-first form-row-responsive">
44
-			<label for="give-user-pass"><?php esc_html_e( 'Password', 'give' ); ?></label>
44
+			<label for="give-user-pass"><?php esc_html_e('Password', 'give'); ?></label>
45 45
 			<input id="give-user-pass" class="password required give-input" type="password" name="give_user_pass" required aria-required="true" />
46 46
 		</div>
47 47
 
48 48
 		<div class="form-row form-row-last form-row-responsive">
49
-			<label for="give-user-pass2"><?php esc_html_e( 'Confirm PW', 'give' ); ?></label>
49
+			<label for="give-user-pass2"><?php esc_html_e('Confirm PW', 'give'); ?></label>
50 50
 			<input id="give-user-pass2" class="password required give-input" type="password" name="give_user_pass2" required aria-required="true" />
51 51
 		</div>
52 52
 
@@ -58,17 +58,17 @@  discard block
 block discarded – undo
58 58
 		 *
59 59
 		 * @since 1.0
60 60
 		 */
61
-		do_action( 'give_register_form_fields_before_submit' );
61
+		do_action('give_register_form_fields_before_submit');
62 62
 		?>
63 63
 
64 64
 		<div class="give-hidden">
65 65
 			<input type="hidden" name="give_honeypot" value="" />
66 66
 			<input type="hidden" name="give_action" value="user_register" />
67
-			<input type="hidden" name="give_redirect" value="<?php echo esc_url( $give_register_redirect ); ?>" />
67
+			<input type="hidden" name="give_redirect" value="<?php echo esc_url($give_register_redirect); ?>" />
68 68
 		</div>
69 69
 
70 70
 		<div class="form-row">
71
-			<input class="button" name="give_register_submit" type="submit" value="<?php esc_attr_e( 'Register', 'give' ); ?>" />
71
+			<input class="button" name="give_register_submit" type="submit" value="<?php esc_attr_e('Register', 'give'); ?>" />
72 72
 		</div>
73 73
 
74 74
 		<?php
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
 		 *
80 80
 		 * @since 1.0
81 81
 		 */
82
-		do_action( 'give_register_form_fields_after' );
82
+		do_action('give_register_form_fields_after');
83 83
 		?>
84 84
 
85 85
 	</fieldset>
@@ -92,6 +92,6 @@  discard block
 block discarded – undo
92 92
 	 *
93 93
 	 * @since 1.0
94 94
 	 */
95
-	do_action( 'give_register_form_fields_bottom' );
95
+	do_action('give_register_form_fields_bottom');
96 96
 	?>
97 97
 </form>
Please login to merge, or discard this patch.
templates/global/wrapper-start.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -9,13 +9,13 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
Please login to merge, or discard this patch.
templates/global/wrapper-end.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -9,13 +9,13 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
Please login to merge, or discard this patch.
templates/shortcode-login.php 1 patch
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -2,13 +2,13 @@  discard block
 block discarded – undo
2 2
 /**
3 3
  * This template is used to display the login form with [give_login]
4 4
  */
5
-if ( ! is_user_logged_in() ) {
5
+if ( ! is_user_logged_in()) {
6 6
 
7 7
 	// Show any error messages after form submission
8
-	Give()->notices->render_frontend_notices( 0 ); ?>
8
+	Give()->notices->render_frontend_notices(0); ?>
9 9
 	<form id="give-login-form" class="give-form" action="" method="post">
10 10
 		<fieldset>
11
-			<legend><?php esc_html_e( 'Log into Your Account', 'give' ); ?></legend>
11
+			<legend><?php esc_html_e('Log into Your Account', 'give'); ?></legend>
12 12
 			<?php
13 13
 			/**
14 14
 			 * Fires in the login shortcode, before the login fields.
@@ -17,27 +17,27 @@  discard block
 block discarded – undo
17 17
 			 *
18 18
 			 * @since 1.0
19 19
 			 */
20
-			do_action( 'give_login_fields_before' );
20
+			do_action('give_login_fields_before');
21 21
 			?>
22 22
 			<div class="give-login-username give-login">
23
-				<label for="give_user_login"><?php esc_html_e( 'Username', 'give' ); ?></label>
23
+				<label for="give_user_login"><?php esc_html_e('Username', 'give'); ?></label>
24 24
 				<input name="give_user_login" id="give_user_login" class="give-required give-input" type="text" required aria-required="true" />
25 25
 			</div>
26 26
 
27 27
 			<div class="give-login-password give-login">
28
-				<label for="give_user_pass"><?php esc_html_e( 'Password', 'give' ); ?></label>
28
+				<label for="give_user_pass"><?php esc_html_e('Password', 'give'); ?></label>
29 29
 				<input name="give_user_pass" id="give_user_pass" class="give-password give-required give-input" type="password" required aria-required="true" />
30 30
 			</div>
31 31
 
32 32
 			<div class="give-login-submit give-login">
33
-				<input type="hidden" name="give_login_redirect" value="<?php echo esc_url( $give_login_redirect ); ?>" />
34
-				<input type="hidden" name="give_login_nonce" value="<?php echo wp_create_nonce( 'give-login-nonce' ); ?>" />
33
+				<input type="hidden" name="give_login_redirect" value="<?php echo esc_url($give_login_redirect); ?>" />
34
+				<input type="hidden" name="give_login_nonce" value="<?php echo wp_create_nonce('give-login-nonce'); ?>" />
35 35
 				<input type="hidden" name="give_action" value="user_login" />
36
-				<input id="give_login_submit" type="submit" class="give_submit" value="<?php esc_attr_e( 'Log In', 'give' ); ?>" />
36
+				<input id="give_login_submit" type="submit" class="give_submit" value="<?php esc_attr_e('Log In', 'give'); ?>" />
37 37
 			</div>
38 38
 
39 39
 			<div class="give-lost-password give-login">
40
-				<a href="<?php echo wp_lostpassword_url(); ?>"><?php esc_html_e( 'Reset Password', 'give' ); ?></a>
40
+				<a href="<?php echo wp_lostpassword_url(); ?>"><?php esc_html_e('Reset Password', 'give'); ?></a>
41 41
 			</div>
42 42
 			<?php
43 43
 			/**
@@ -47,12 +47,12 @@  discard block
 block discarded – undo
47 47
 			 *
48 48
 			 * @since 1.0
49 49
 			 */
50
-			do_action( 'give_login_fields_after' );
50
+			do_action('give_login_fields_after');
51 51
 			?>
52 52
 		</fieldset>
53 53
 	</form>
54
-<?php } elseif( isset( $_GET['give-login-success'] ) && $_GET['give-login-success'] == true ) { ?>
55
-	<?php Give()->notices->print_frontend_notice( apply_filters('give_successful_login_message', esc_html__( 'Login successful. Welcome!', 'give' )), true, 'success' ); ?>
54
+<?php } elseif (isset($_GET['give-login-success']) && $_GET['give-login-success'] == true) { ?>
55
+	<?php Give()->notices->print_frontend_notice(apply_filters('give_successful_login_message', esc_html__('Login successful. Welcome!', 'give')), true, 'success'); ?>
56 56
 <?php } else { ?>
57
-	<?php Give()->notices->print_frontend_notice( apply_filters('give_already_logged_in_message', sprintf( __( 'You are already logged in to the site. <a href="%s">Click here</a> to logout.', 'give' ), esc_url( $give_logout_redirect ) ) ), true, 'warning' ); ?>
57
+	<?php Give()->notices->print_frontend_notice(apply_filters('give_already_logged_in_message', sprintf(__('You are already logged in to the site. <a href="%s">Click here</a> to logout.', 'give'), esc_url($give_logout_redirect))), true, 'warning'); ?>
58 58
 <?php } ?>
59 59
\ No newline at end of file
Please login to merge, or discard this patch.
templates/shortcode-goal.php 1 patch
Spacing   +28 added lines, -28 removed lines patch added patch discarded remove patch
@@ -3,24 +3,24 @@  discard block
 block discarded – undo
3 3
  * This template is used to display the goal with [give_goal]
4 4
  */
5 5
 
6
-$form        = new Give_Donate_Form( $form_id );
7
-$goal_option = give_get_meta( $form->ID, '_give_goal_option', true );
6
+$form        = new Give_Donate_Form($form_id);
7
+$goal_option = give_get_meta($form->ID, '_give_goal_option', true);
8 8
 
9 9
 //Sanity check - ensure form has pass all condition to show goal.
10 10
 if (
11
-	( isset( $args['show_goal'] ) &&  ! filter_var( $args['show_goal'], FILTER_VALIDATE_BOOLEAN ) )
12
-	|| empty( $form->ID )
13
-	|| ( is_singular( 'give_forms' ) && ! give_is_setting_enabled( $goal_option ) )
14
-	|| ! give_is_setting_enabled( $goal_option )
11
+	(isset($args['show_goal']) && ! filter_var($args['show_goal'], FILTER_VALIDATE_BOOLEAN))
12
+	|| empty($form->ID)
13
+	|| (is_singular('give_forms') && ! give_is_setting_enabled($goal_option))
14
+	|| ! give_is_setting_enabled($goal_option)
15 15
 	|| 0 === $form->goal
16 16
 ) {
17 17
 	return false;
18 18
 }
19 19
 
20
-$goal_format = give_get_meta( $form_id, '_give_goal_format', true );
21
-$color       = give_get_meta( $form_id, '_give_goal_color', true );
22
-$show_text   = isset( $args['show_text'] ) ? filter_var( $args['show_text'], FILTER_VALIDATE_BOOLEAN ) : true;
23
-$show_bar    = isset( $args['show_bar'] ) ? filter_var( $args['show_bar'], FILTER_VALIDATE_BOOLEAN ) : true;
20
+$goal_format = give_get_meta($form_id, '_give_goal_format', true);
21
+$color       = give_get_meta($form_id, '_give_goal_color', true);
22
+$show_text   = isset($args['show_text']) ? filter_var($args['show_text'], FILTER_VALIDATE_BOOLEAN) : true;
23
+$show_bar    = isset($args['show_bar']) ? filter_var($args['show_bar'], FILTER_VALIDATE_BOOLEAN) : true;
24 24
 
25 25
 
26 26
 /**
@@ -28,14 +28,14 @@  discard block
 block discarded – undo
28 28
  *
29 29
  * @since 1.8.8
30 30
  */
31
-$income = apply_filters( 'give_goal_amount_raised_output', $form->get_earnings(), $form_id, $form );
31
+$income = apply_filters('give_goal_amount_raised_output', $form->get_earnings(), $form_id, $form);
32 32
 
33 33
 /**
34 34
  * Filter the form
35 35
  *
36 36
  * @since 1.8.8
37 37
  */
38
-$goal = apply_filters( 'give_goal_amount_target_output', $form->goal, $form_id, $form );
38
+$goal = apply_filters('give_goal_amount_target_output', $form->goal, $form_id, $form);
39 39
 
40 40
 
41 41
 /**
@@ -43,39 +43,39 @@  discard block
 block discarded – undo
43 43
  *
44 44
  * @since 1.8.8
45 45
  */
46
-$progress = apply_filters( 'give_goal_amount_funded_percentage_output', round( ( $income / $goal ) * 100, 2 ), $form_id, $form );
46
+$progress = apply_filters('give_goal_amount_funded_percentage_output', round(($income / $goal) * 100, 2), $form_id, $form);
47 47
 
48 48
 
49 49
 // Set progress to 100 percentage if income > goal.
50
-if ( $income >= $goal ) {
50
+if ($income >= $goal) {
51 51
 	$progress = 100;
52 52
 }
53 53
 
54 54
 ?>
55 55
 <div class="give-goal-progress">
56
-	<?php if ( ! empty( $show_text ) ) : ?>
56
+	<?php if ( ! empty($show_text)) : ?>
57 57
 		<div class="raised">
58 58
 			<?php
59
-			if ( $goal_format !== 'percentage' ) :
59
+			if ($goal_format !== 'percentage') :
60 60
 
61 61
 				// Get formatted amount.
62
-				$income = give_human_format_large_amount( give_format_amount( $income, array( 'sanitize' => false ) ) );
63
-				$goal   = give_human_format_large_amount( give_format_amount( $goal, array( 'sanitize' => false ) ) );
62
+				$income = give_human_format_large_amount(give_format_amount($income, array('sanitize' => false)));
63
+				$goal   = give_human_format_large_amount(give_format_amount($goal, array('sanitize' => false)));
64 64
 
65 65
 				echo sprintf(
66 66
 				/* translators: 1: amount of income raised 2: goal target ammount */
67
-					__( '%1$s of %2$s raised', 'give' ),
68
-					'<span class="income">' . give_currency_filter( $income ) . '</span>',
69
-					'<span class="goal-text">' . give_currency_filter( $goal ) . '</span>'
67
+					__('%1$s of %2$s raised', 'give'),
68
+					'<span class="income">'.give_currency_filter($income).'</span>',
69
+					'<span class="goal-text">'.give_currency_filter($goal).'</span>'
70 70
 				);
71 71
 
72 72
 
73
-			elseif ( $goal_format == 'percentage' ) :
73
+			elseif ($goal_format == 'percentage') :
74 74
 
75 75
 				echo sprintf(
76 76
 				/* translators: %s: percentage of the amount raised compared to the goal target */
77
-					__( '%s%% funded', 'give' ),
78
-					'<span class="give-percentage">' . round( $progress ) . '</span>'
77
+					__('%s%% funded', 'give'),
78
+					'<span class="give-percentage">'.round($progress).'</span>'
79 79
 				);
80 80
 
81 81
 			endif;
@@ -84,10 +84,10 @@  discard block
 block discarded – undo
84 84
 	<?php endif; ?>
85 85
 
86 86
 
87
-	<?php if ( ! empty( $show_bar ) ) : ?>
88
-		<div class="give-progress-bar" role="progressbar" aria-valuemin="0" aria-valuemax="100" aria-valuenow="<?php echo esc_attr( $progress ); ?>">
89
-			<span style="width: <?php echo esc_attr( $progress ); ?>%;<?php if ( ! empty( $color ) ) {
90
-				echo 'background-color:' . $color;
87
+	<?php if ( ! empty($show_bar)) : ?>
88
+		<div class="give-progress-bar" role="progressbar" aria-valuemin="0" aria-valuemax="100" aria-valuenow="<?php echo esc_attr($progress); ?>">
89
+			<span style="width: <?php echo esc_attr($progress); ?>%;<?php if ( ! empty($color)) {
90
+				echo 'background-color:'.$color;
91 91
 			} ?>"></span>
92 92
 		</div><!-- /.give-progress-bar -->
93 93
 	<?php endif; ?>
Please login to merge, or discard this patch.
templates/single-give-form.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
Please login to merge, or discard this patch.
templates/single-give-form/featured-image.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 ?>
Please login to merge, or discard this patch.
templates/single-give-form/sidebar.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -11,9 +11,9 @@
 block discarded – undo
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
Please login to merge, or discard this patch.