Completed
Push — master ( 5af761...870917 )
by Devin
50:15 queued 30:19
created
includes/admin/shortcodes/shortcode-give-donation-history.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
  * @since       1.3.0
10 10
  */
11 11
 
12
-defined( 'ABSPATH' ) or exit;
12
+defined('ABSPATH') or exit;
13 13
 
14 14
 class Give_Shortcode_Donation_History extends Give_Shortcode_Generator {
15 15
 
@@ -18,9 +18,9 @@  discard block
 block discarded – undo
18 18
 	 */
19 19
 	public function __construct() {
20 20
 
21
-		$this->shortcode['label'] = __( 'Donation History', 'give' );
21
+		$this->shortcode['label'] = __('Donation History', 'give');
22 22
 
23
-		parent::__construct( 'donation_history' );
23
+		parent::__construct('donation_history');
24 24
 	}
25 25
 }
26 26
 
Please login to merge, or discard this patch.
includes/admin/shortcodes/shortcode-give-form.php 1 patch
Spacing   +33 added lines, -33 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
  * @since       1.3.0
10 10
  */
11 11
 
12
-defined( 'ABSPATH' ) or exit;
12
+defined('ABSPATH') or exit;
13 13
 
14 14
 class Give_Shortcode_Donation_Form extends Give_Shortcode_Generator {
15 15
 
@@ -18,10 +18,10 @@  discard block
 block discarded – undo
18 18
 	 */
19 19
 	public function __construct() {
20 20
 
21
-		$this->shortcode['title']   = __( 'Donation Form', 'give' );
22
-		$this->shortcode['label']   = __( 'Donation Form', 'give' );
21
+		$this->shortcode['title']   = __('Donation Form', 'give');
22
+		$this->shortcode['label']   = __('Donation Form', 'give');
23 23
 
24
-		parent::__construct( 'give_form' );
24
+		parent::__construct('give_form');
25 25
 	}
26 26
 
27 27
 	/**
@@ -31,8 +31,8 @@  discard block
 block discarded – undo
31 31
 	 */
32 32
 	public function define_fields() {
33 33
 
34
-		$create_form_link = sprintf( __( '%sClick here%s to create a new Donation Form.', 'give' ),
35
-			'<a href="' . admin_url( 'post-new.php?post_type=give_forms' ) . '">',
34
+		$create_form_link = sprintf(__('%sClick here%s to create a new Donation Form.', 'give'),
35
+			'<a href="'.admin_url('post-new.php?post_type=give_forms').'">',
36 36
 			'</a>'
37 37
 		);
38 38
 
@@ -43,68 +43,68 @@  discard block
 block discarded – undo
43 43
 					'post_type' => 'give_forms',
44 44
 				),
45 45
 				'name'        => 'id',
46
-				'tooltip'     => __( 'Select a Donation Form', 'give' ),
47
-				'placeholder' => sprintf( '– %s –', __( 'Select a Form', 'give' ) ),
46
+				'tooltip'     => __('Select a Donation Form', 'give'),
47
+				'placeholder' => sprintf('– %s –', __('Select a Form', 'give')),
48 48
 				'required'    => array(
49
-					'alert' => __( 'You must first select a Form!', 'give' ),
50
-					'error' => sprintf( '<p class="strong">%s</p><p class="no-margin">%s</p>', __( 'No donation forms were found!', 'give' ), $create_form_link ),
49
+					'alert' => __('You must first select a Form!', 'give'),
50
+					'error' => sprintf('<p class="strong">%s</p><p class="no-margin">%s</p>', __('No donation forms were found!', 'give'), $create_form_link),
51 51
 				),
52 52
 			),
53 53
 			array(
54 54
 				'type' => 'container',
55
-				'html' => sprintf( '<p class="strong margin-top">%s</p>', __( 'Optional form settings', 'give' ) ),
55
+				'html' => sprintf('<p class="strong margin-top">%s</p>', __('Optional form settings', 'give')),
56 56
 			),
57 57
 			array(
58 58
 				'type'    => 'listbox',
59 59
 				'name'    => 'show_title',
60
-				'label'   => __( 'Show Title:', 'give' ),
61
-				'tooltip' => __( 'Do you want to display the form title?', 'give' ),
60
+				'label'   => __('Show Title:', 'give'),
61
+				'tooltip' => __('Do you want to display the form title?', 'give'),
62 62
 				'options' => array(
63
-					'true'  => __( 'Show', 'give' ),
64
-					'false' => __( 'Hide', 'give' ),
63
+					'true'  => __('Show', 'give'),
64
+					'false' => __('Hide', 'give'),
65 65
 				),
66 66
 			),
67 67
 			array(
68 68
 				'type'    => 'listbox',
69 69
 				'name'    => 'show_goal',
70
-				'label'   => __( 'Show Goal:', 'give' ),
71
-				'tooltip' => __( 'Do you want to display the donation goal?', 'give' ),
70
+				'label'   => __('Show Goal:', 'give'),
71
+				'tooltip' => __('Do you want to display the donation goal?', 'give'),
72 72
 				'options' => array(
73
-					'true'  => __( 'Show', 'give' ),
74
-					'false' => __( 'Hide', 'give' ),
73
+					'true'  => __('Show', 'give'),
74
+					'false' => __('Hide', 'give'),
75 75
 				),
76 76
 			),
77 77
 			array(
78 78
 				'type'    => 'listbox',
79 79
 				'name'    => 'show_content',
80 80
 				'minWidth' => 240,
81
-				'label'   => __( 'Display Content:', 'give' ),
82
-				'tooltip' => __( 'Do you want to display the form content?', 'give' ),
81
+				'label'   => __('Display Content:', 'give'),
82
+				'tooltip' => __('Do you want to display the form content?', 'give'),
83 83
 				'options' => array(
84
-					'none'  => __( 'No Content', 'give' ),
85
-					'above' => __( 'Display above the form fields', 'give' ),
86
-					'below' => __( 'Display below the form fields', 'give' ),
84
+					'none'  => __('No Content', 'give'),
85
+					'above' => __('Display above the form fields', 'give'),
86
+					'below' => __('Display below the form fields', 'give'),
87 87
 				),
88 88
 			),
89 89
 			array(
90 90
 				'type'    => 'listbox',
91 91
 				'name'    => 'display_style',
92
-				'label'   => __( 'Payment Fields:', 'give' ),
93
-				'tooltip' => __( 'How would you like to display payment information?', 'give' ),
92
+				'label'   => __('Payment Fields:', 'give'),
93
+				'tooltip' => __('How would you like to display payment information?', 'give'),
94 94
 				'options' => array(
95
-					'onpage' => __( 'Show on Page', 'give' ),
96
-					'reveal' => __( 'Reveal Upon Click', 'give' ),
97
-					'modal'  => __( 'Modal Window Upon Click', 'give' ),
95
+					'onpage' => __('Show on Page', 'give'),
96
+					'reveal' => __('Reveal Upon Click', 'give'),
97
+					'modal'  => __('Modal Window Upon Click', 'give'),
98 98
 				),
99 99
 			),
100 100
 			array(
101 101
 				'type'    => 'listbox',
102 102
 				'name'    => 'float_labels',
103
-				'label'   => __( 'Floating Labels:', 'give' ),
104
-				'tooltip' => __( 'Override the default floating labels setting for this form?', 'give' ),
103
+				'label'   => __('Floating Labels:', 'give'),
104
+				'tooltip' => __('Override the default floating labels setting for this form?', 'give'),
105 105
 				'options' => array(
106
-					'enabled'  => __( 'Enabled', 'give' ),
107
-					'disabled' => __( 'Disabled', 'give' ),
106
+					'enabled'  => __('Enabled', 'give'),
107
+					'disabled' => __('Disabled', 'give'),
108 108
 				),
109 109
 			),
110 110
 		);
Please login to merge, or discard this patch.
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
  * @since       1.3.0
10 10
  */
11 11
 
12
-defined( 'ABSPATH' ) or exit;
12
+defined('ABSPATH') or exit;
13 13
 
14 14
 class Give_Shortcode_Donation_Form_Goal extends Give_Shortcode_Generator {
15 15
 
@@ -18,10 +18,10 @@  discard block
 block discarded – undo
18 18
 	 */
19 19
 	public function __construct() {
20 20
 
21
-		$this->shortcode['title'] = __( 'Donation Form Goal', 'give' );
22
-		$this->shortcode['label'] = __( 'Donation Form Goal', 'give' );
21
+		$this->shortcode['title'] = __('Donation Form Goal', 'give');
22
+		$this->shortcode['label'] = __('Donation Form Goal', 'give');
23 23
 
24
-		parent::__construct( 'give_goal' );
24
+		parent::__construct('give_goal');
25 25
 	}
26 26
 
27 27
 	/**
@@ -31,8 +31,8 @@  discard block
 block discarded – undo
31 31
 	 */
32 32
 	public function define_fields() {
33 33
 
34
-		$create_form_link = sprintf( __( '%sClick here%s to create a new Donation Form.', 'give' ),
35
-			'<a href="' . admin_url( 'post-new.php?post_type=give_forms' ) . '">',
34
+		$create_form_link = sprintf(__('%sClick here%s to create a new Donation Form.', 'give'),
35
+			'<a href="'.admin_url('post-new.php?post_type=give_forms').'">',
36 36
 			'</a>'
37 37
 		);
38 38
 
@@ -43,35 +43,35 @@  discard block
 block discarded – undo
43 43
 					'post_type' => 'give_forms',
44 44
 				),
45 45
 				'name'        => 'id',
46
-				'tooltip'     => __( 'Select a Donation Form', 'give' ),
47
-				'placeholder' => sprintf( '– %s –', __( 'Select a Form', 'give' ) ),
46
+				'tooltip'     => __('Select a Donation Form', 'give'),
47
+				'placeholder' => sprintf('– %s –', __('Select a Form', 'give')),
48 48
 				'required'    => array(
49
-					'alert' => __( 'You must first select a Form!', 'give' ),
50
-					'error' => sprintf( '<p class="strong">%s</p><p class="no-margin">%s</p>', __( 'No donation forms were found!', 'give' ), $create_form_link ),
49
+					'alert' => __('You must first select a Form!', 'give'),
50
+					'error' => sprintf('<p class="strong">%s</p><p class="no-margin">%s</p>', __('No donation forms were found!', 'give'), $create_form_link),
51 51
 				),
52 52
 			),
53 53
 			array(
54 54
 				'type' => 'container',
55
-				'html' => sprintf( '<p class="strong margin-top">%s</p>', __( 'Optional settings', 'give' ) ),
55
+				'html' => sprintf('<p class="strong margin-top">%s</p>', __('Optional settings', 'give')),
56 56
 			),
57 57
 			array(
58 58
 				'type'    => 'listbox',
59 59
 				'name'    => 'show_text',
60
-				'label'   => __( 'Show Text:', 'give' ),
61
-				'tooltip' => __( 'This text displays the amount of income raised compared to the goal.', 'give' ),
60
+				'label'   => __('Show Text:', 'give'),
61
+				'tooltip' => __('This text displays the amount of income raised compared to the goal.', 'give'),
62 62
 				'options' => array(
63
-					'true'  => __( 'Show', 'give' ),
64
-					'false' => __( 'Hide', 'give' ),
63
+					'true'  => __('Show', 'give'),
64
+					'false' => __('Hide', 'give'),
65 65
 				),
66 66
 			),
67 67
 			array(
68 68
 				'type'    => 'listbox',
69 69
 				'name'    => 'show_bar',
70
-				'label'   => __( 'Show Progress Bar:', 'give' ),
71
-				'tooltip' => __( 'Do you want to display the goal\'s progress bar?', 'give' ),
70
+				'label'   => __('Show Progress Bar:', 'give'),
71
+				'tooltip' => __('Do you want to display the goal\'s progress bar?', 'give'),
72 72
 				'options' => array(
73
-					'true'  => __( 'Show', 'give' ),
74
-					'false' => __( 'Hide', 'give' ),
73
+					'true'  => __('Show', 'give'),
74
+					'false' => __('Hide', 'give'),
75 75
 				),
76 76
 			),
77 77
 		);
Please login to merge, or discard this patch.
includes/admin/shortcodes/shortcode-give-login.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
  * @since       1.3.0
10 10
  */
11 11
 
12
-defined( 'ABSPATH' ) or exit;
12
+defined('ABSPATH') or exit;
13 13
 
14 14
 class Give_Shortcode_Login extends Give_Shortcode_Generator {
15 15
 
@@ -18,10 +18,10 @@  discard block
 block discarded – undo
18 18
 	 */
19 19
 	public function __construct() {
20 20
 
21
-		$this->shortcode['title'] = __( 'Login', 'give' );
22
-		$this->shortcode['label'] = __( 'Login', 'give' );
21
+		$this->shortcode['title'] = __('Login', 'give');
22
+		$this->shortcode['label'] = __('Login', 'give');
23 23
 
24
-		parent::__construct( 'give_login' );
24
+		parent::__construct('give_login');
25 25
 	}
26 26
 
27 27
 	/**
@@ -34,13 +34,13 @@  discard block
 block discarded – undo
34 34
 		return array(
35 35
 			array(
36 36
 				'type' => 'container',
37
-				'html' => sprintf( '<p class="no-margin">%s</p>', __( 'Redirect URL (optional):', 'give' ) ),
37
+				'html' => sprintf('<p class="no-margin">%s</p>', __('Redirect URL (optional):', 'give')),
38 38
 			),
39 39
 			array(
40 40
 				'type'     => 'textbox',
41 41
 				'name'     => 'redirect',
42 42
 				'minWidth' => 320,
43
-				'tooltip'  => __( 'Enter an URL here to redirect to after login.', 'give' ),
43
+				'tooltip'  => __('Enter an URL here to redirect to after login.', 'give'),
44 44
 			),
45 45
 		);
46 46
 	}
Please login to merge, or discard this patch.
includes/admin/shortcodes/shortcode-give-profile-editor.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
  * @since       1.3.0
10 10
  */
11 11
 
12
-defined( 'ABSPATH' ) or exit;
12
+defined('ABSPATH') or exit;
13 13
 
14 14
 class Give_Shortcode_Profile_Editor extends Give_Shortcode_Generator {
15 15
 
@@ -18,9 +18,9 @@  discard block
 block discarded – undo
18 18
 	 */
19 19
 	public function __construct() {
20 20
 
21
-		$this->shortcode['label'] = __( 'Profile Editor', 'give' );
21
+		$this->shortcode['label'] = __('Profile Editor', 'give');
22 22
 
23
-		parent::__construct( 'give_profile_editor' );
23
+		parent::__construct('give_profile_editor');
24 24
 	}
25 25
 }
26 26
 
Please login to merge, or discard this patch.
includes/admin/shortcodes/shortcode-give-receipt.php 1 patch
Spacing   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
  * @since       1.3.0
10 10
  */
11 11
 
12
-defined( 'ABSPATH' ) or exit;
12
+defined('ABSPATH') or exit;
13 13
 
14 14
 class Give_Shortcode_Donation_Receipt extends Give_Shortcode_Generator {
15 15
 
@@ -18,10 +18,10 @@  discard block
 block discarded – undo
18 18
 	 */
19 19
 	public function __construct() {
20 20
 
21
-		$this->shortcode['title'] = __( 'Donation Receipt', 'give' );
22
-		$this->shortcode['label'] = __( 'Donation Receipt', 'give' );
21
+		$this->shortcode['title'] = __('Donation Receipt', 'give');
22
+		$this->shortcode['label'] = __('Donation Receipt', 'give');
23 23
 
24
-		parent::__construct( 'give_receipt' );
24
+		parent::__construct('give_receipt');
25 25
 	}
26 26
 
27 27
 	/**
@@ -34,51 +34,51 @@  discard block
 block discarded – undo
34 34
 		return array(
35 35
 			array(
36 36
 				'type' => 'container',
37
-				'html' => sprintf( '<p class="strong">%s</p>', __( 'Optional settings', 'give' ) ),
37
+				'html' => sprintf('<p class="strong">%s</p>', __('Optional settings', 'give')),
38 38
 			),
39 39
 			array(
40 40
 				'type'    => 'listbox',
41 41
 				'name'    => 'price',
42
-				'label'   => __( 'Show Price:', 'give' ),
42
+				'label'   => __('Show Price:', 'give'),
43 43
 				'options' => array(
44
-					'true'  => __( 'Show', 'give' ),
45
-					'false' => __( 'Hide', 'give' ),
44
+					'true'  => __('Show', 'give'),
45
+					'false' => __('Hide', 'give'),
46 46
 				),
47 47
 			),
48 48
 			array(
49 49
 				'type'    => 'listbox',
50 50
 				'name'    => 'date',
51
-				'label'   => __( 'Show Date:', 'give' ),
51
+				'label'   => __('Show Date:', 'give'),
52 52
 				'options' => array(
53
-					'true'  => __( 'Show', 'give' ),
54
-					'false' => __( 'Hide', 'give' ),
53
+					'true'  => __('Show', 'give'),
54
+					'false' => __('Hide', 'give'),
55 55
 				),
56 56
 			),
57 57
 			array(
58 58
 				'type'    => 'listbox',
59 59
 				'name'    => 'payment_key',
60
-				'label'   => __( 'Show Payment Key:', 'give' ),
60
+				'label'   => __('Show Payment Key:', 'give'),
61 61
 				'options' => array(
62
-					'true'  => __( 'Show', 'give' ),
63
-					'false' => __( 'Hide', 'give' ),
62
+					'true'  => __('Show', 'give'),
63
+					'false' => __('Hide', 'give'),
64 64
 				),
65 65
 			),
66 66
 			array(
67 67
 				'type'    => 'listbox',
68 68
 				'name'    => 'payment_method',
69
-				'label'   => __( 'Show Payment Method:', 'give' ),
69
+				'label'   => __('Show Payment Method:', 'give'),
70 70
 				'options' => array(
71
-					'true'  => __( 'Show', 'give' ),
72
-					'false' => __( 'Hide', 'give' ),
71
+					'true'  => __('Show', 'give'),
72
+					'false' => __('Hide', 'give'),
73 73
 				),
74 74
 			),
75 75
 			array(
76 76
 				'type'    => 'listbox',
77 77
 				'name'    => 'payment_id',
78
-				'label'   => __( 'Show Payment ID:', 'give' ),
78
+				'label'   => __('Show Payment ID:', 'give'),
79 79
 				'options' => array(
80
-					'true'  => __( 'Show', 'give' ),
81
-					'false' => __( 'Hide', 'give' ),
80
+					'true'  => __('Show', 'give'),
81
+					'false' => __('Hide', 'give'),
82 82
 				),
83 83
 			),
84 84
 		);
Please login to merge, or discard this patch.
includes/admin/shortcodes/shortcode-give-register.php 2 patches
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
  * @since       1.3.0
10 10
  */
11 11
 
12
-defined( 'ABSPATH' ) or exit;
12
+defined('ABSPATH') or exit;
13 13
 
14 14
 class Give_Shortcode_Register extends Give_Shortcode_Generator {
15 15
 
@@ -18,10 +18,10 @@  discard block
 block discarded – undo
18 18
 	 */
19 19
 	public function __construct() {
20 20
 
21
-		$this->shortcode['title'] = __( 'Register', 'give' );
22
-		$this->shortcode['label'] = __( 'Register', 'give' );
21
+		$this->shortcode['title'] = __('Register', 'give');
22
+		$this->shortcode['label'] = __('Register', 'give');
23 23
 
24
-		parent::__construct( 'give_register' );
24
+		parent::__construct('give_register');
25 25
 	}
26 26
 
27 27
 	/**
@@ -34,13 +34,13 @@  discard block
 block discarded – undo
34 34
 		return array(
35 35
 			array(
36 36
 				'type' => 'container',
37
-				'html' => sprintf( '<p class="no-margin">%s</p>', __( 'Redirect URL (optional):', 'give' ) ),
37
+				'html' => sprintf('<p class="no-margin">%s</p>', __('Redirect URL (optional):', 'give')),
38 38
 			),
39 39
 			array(
40 40
 				'type'     => 'textbox',
41 41
 				'name'     => 'redirect',
42 42
 				'minWidth' => 320,
43
-				'tooltip'  => __( 'Enter an URL here to redirect to after registering.', 'give' ),
43
+				'tooltip'  => __('Enter an URL here to redirect to after registering.', 'give'),
44 44
 			),
45 45
 		);
46 46
 	}
Please login to merge, or discard this patch.
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -1,13 +1,13 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * The [give_register] Shortcode Generator class
4
- *
5
- * @package     Give
6
- * @subpackage  Admin
7
- * @copyright   Copyright (c) 2016, WordImpress
8
- * @license     http://opensource.org/licenses/gpl-2.0.php GNU Public License
9
- * @since       1.3.0
10
- */
3
+	 * The [give_register] Shortcode Generator class
4
+	 *
5
+	 * @package     Give
6
+	 * @subpackage  Admin
7
+	 * @copyright   Copyright (c) 2016, WordImpress
8
+	 * @license     http://opensource.org/licenses/gpl-2.0.php GNU Public License
9
+	 * @since       1.3.0
10
+	 */
11 11
 
12 12
 defined( 'ABSPATH' ) or exit;
13 13
 
Please login to merge, or discard this patch.
includes/admin/upgrades/upgrades.php 2 patches
Spacing   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@  discard block
 block discarded – undo
10 10
  */
11 11
 
12 12
 // Exit if accessed directly
13
-if ( ! defined( 'ABSPATH' ) ) {
13
+if ( ! defined('ABSPATH')) {
14 14
 	exit;
15 15
 }
16 16
 
@@ -21,12 +21,12 @@  discard block
 block discarded – undo
21 21
  * @return void
22 22
  */
23 23
 function give_upgrades_screen() {
24
-	$action = isset( $_GET['give-upgrade'] ) ? sanitize_text_field( $_GET['give-upgrade'] ) : '';
25
-	$step   = isset( $_GET['step'] ) ? absint( $_GET['step'] ) : 1;
26
-	$total  = isset( $_GET['total'] ) ? absint( $_GET['total'] ) : false;
27
-	$custom = isset( $_GET['custom'] ) ? absint( $_GET['custom'] ) : 0;
28
-	$number = isset( $_GET['number'] ) ? absint( $_GET['number'] ) : 100;
29
-	$steps  = round( ( $total / $number ), 0 );
24
+	$action = isset($_GET['give-upgrade']) ? sanitize_text_field($_GET['give-upgrade']) : '';
25
+	$step   = isset($_GET['step']) ? absint($_GET['step']) : 1;
26
+	$total  = isset($_GET['total']) ? absint($_GET['total']) : false;
27
+	$custom = isset($_GET['custom']) ? absint($_GET['custom']) : 0;
28
+	$number = isset($_GET['number']) ? absint($_GET['number']) : 100;
29
+	$steps  = round(($total / $number), 0);
30 30
 
31 31
 	$doing_upgrade_args = array(
32 32
 		'page'         => 'give-upgrades',
@@ -36,25 +36,25 @@  discard block
 block discarded – undo
36 36
 		'custom'       => $custom,
37 37
 		'steps'        => $steps
38 38
 	);
39
-	update_option( 'give_doing_upgrade', $doing_upgrade_args );
40
-	if ( $step > $steps ) {
39
+	update_option('give_doing_upgrade', $doing_upgrade_args);
40
+	if ($step > $steps) {
41 41
 		// Prevent a weird case where the estimate was off. Usually only a couple.
42 42
 		$steps = $step;
43 43
 	}
44 44
 	?>
45 45
 	<div class="wrap">
46
-		<h2><?php _e( 'Give - Upgrades', 'give' ); ?></h2>
46
+		<h2><?php _e('Give - Upgrades', 'give'); ?></h2>
47 47
 
48
-		<?php if ( ! empty( $action ) ) : ?>
48
+		<?php if ( ! empty($action)) : ?>
49 49
 
50 50
 			<div id="give-upgrade-status">
51
-				<p style="font-size: 20px;max-width: 900px;"><?php _e( 'The upgrade process has started, please be patient and do not close this window or navigate away from this page. This could take several minutes depending on the upgrade and the size of your website. You will be automatically redirected when the upgrade is finished.', 'give' ); ?>
52
-					<img src="<?php echo GIVE_PLUGIN_URL . '/assets/images/spinner.gif'; ?>" id="give-upgrade-loader" style="  position: relative; top: 3px; left: 6px;" />
51
+				<p style="font-size: 20px;max-width: 900px;"><?php _e('The upgrade process has started, please be patient and do not close this window or navigate away from this page. This could take several minutes depending on the upgrade and the size of your website. You will be automatically redirected when the upgrade is finished.', 'give'); ?>
52
+					<img src="<?php echo GIVE_PLUGIN_URL.'/assets/images/spinner.gif'; ?>" id="give-upgrade-loader" style="  position: relative; top: 3px; left: 6px;" />
53 53
 				</p>
54 54
 
55
-				<?php if ( ! empty( $total ) ) : ?>
55
+				<?php if ( ! empty($total)) : ?>
56 56
 					<p>
57
-						<strong><?php printf( __( 'Step %d of approximately %d running', 'give' ), $step, $steps ); ?></strong>
57
+						<strong><?php printf(__('Step %d of approximately %d running', 'give'), $step, $steps); ?></strong>
58 58
 					</p>
59 59
 				<?php endif; ?>
60 60
 			</div>
@@ -68,8 +68,8 @@  discard block
 block discarded – undo
68 68
 
69 69
 			<div id="give-upgrade-status">
70 70
 				<p style="font-size: 20px;max-width: 900px;">
71
-					<?php _e( 'The upgrade process has started, please be patient and do not close this window or navigate away from this page. This could take several minutes depending on the upgrade and the size of your website. You will be automatically redirected when the upgrade is finished.', 'give' ); ?>
72
-					<img src="<?php echo GIVE_PLUGIN_URL . '/assets/images/spinner.gif'; ?>" id="give-upgrade-loader" style="  position: relative; top: 3px; left: 6px;" />
71
+					<?php _e('The upgrade process has started, please be patient and do not close this window or navigate away from this page. This could take several minutes depending on the upgrade and the size of your website. You will be automatically redirected when the upgrade is finished.', 'give'); ?>
72
+					<img src="<?php echo GIVE_PLUGIN_URL.'/assets/images/spinner.gif'; ?>" id="give-upgrade-loader" style="  position: relative; top: 3px; left: 6px;" />
73 73
 				</p>
74 74
 			</div>
75 75
 			<script type="text/javascript">
Please login to merge, or discard this patch.
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -64,11 +64,14 @@
 block discarded – undo
64 64
 				}, 250 );
65 65
 			</script>
66 66
 
67
-		<?php else : ?>
67
+		<?php else {
68
+	: ?>
68 69
 
69 70
 			<div id="give-upgrade-status">
70 71
 				<p style="font-size: 20px;max-width: 900px;">
71
-					<?php _e( 'The upgrade process has started, please be patient and do not close this window or navigate away from this page. This could take several minutes depending on the upgrade and the size of your website. You will be automatically redirected when the upgrade is finished.', 'give' ); ?>
72
+					<?php _e( 'The upgrade process has started, please be patient and do not close this window or navigate away from this page. This could take several minutes depending on the upgrade and the size of your website. You will be automatically redirected when the upgrade is finished.', 'give' );
73
+}
74
+?>
72 75
 					<img src="<?php echo GIVE_PLUGIN_URL . '/assets/images/spinner.gif'; ?>" id="give-upgrade-loader" style="  position: relative; top: 3px; left: 6px;" />
73 76
 				</p>
74 77
 			</div>
Please login to merge, or discard this patch.
includes/api/class-give-api-v1.php 3 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@
 block discarded – undo
10 10
  */
11 11
 
12 12
 // Exit if accessed directly
13
-if ( ! defined( 'ABSPATH' ) ) exit;
13
+if ( ! defined('ABSPATH')) exit;
14 14
 
15 15
 /**
16 16
  * Give_API_V1 Class
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,9 @@
 block discarded – undo
10 10
  */
11 11
 
12 12
 // Exit if accessed directly
13
-if ( ! defined( 'ABSPATH' ) ) exit;
13
+if ( ! defined( 'ABSPATH' ) ) {
14
+	exit;
15
+}
14 16
 
15 17
 /**
16 18
  * Give_API_V1 Class
Please login to merge, or discard this patch.
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -1,13 +1,13 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Give API V1
4
- *
5
- * @package     Give
6
- * @subpackage  Classes/API
7
- * @copyright   Copyright (c) 2016, WordImpress
8
- * @license     http://opensource.org/licenses/gpl-2.0.php GNU Public License
9
- * @since       1.1
10
- */
3
+	 * Give API V1
4
+	 *
5
+	 * @package     Give
6
+	 * @subpackage  Classes/API
7
+	 * @copyright   Copyright (c) 2016, WordImpress
8
+	 * @license     http://opensource.org/licenses/gpl-2.0.php GNU Public License
9
+	 * @since       1.1
10
+	 */
11 11
 
12 12
 // Exit if accessed directly
13 13
 if ( ! defined( 'ABSPATH' ) ) exit;
Please login to merge, or discard this patch.