Completed
Push — master ( 03e0ea...2f22b3 )
by Devin
49:58 queued 30:05
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 2 patches
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.
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_form] Shortcode Generator class
4
- *
5
- * @package     Give
6
- * @subpackage  Admin
7
- * @copyright   Copyright (c) 2015, WordImpress
8
- * @license     http://opensource.org/licenses/gpl-2.0.php GNU Public License
9
- * @since       1.3.0
10
- */
3
+	 * The [give_form] Shortcode Generator class
4
+	 *
5
+	 * @package     Give
6
+	 * @subpackage  Admin
7
+	 * @copyright   Copyright (c) 2015, 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/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 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_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.
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/admin/welcome.php 2 patches
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -1,14 +1,14 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Give Welcome Page Class
4
- *
5
- * @description Displays on plugin activation
6
- * @package     Give
7
- * @subpackage  Admin/Welcome
8
- * @copyright   Copyright (c) 2015, WordImpress
9
- * @license     http://opensource.org/licenses/gpl-2.0.php GNU Public License
10
- * @since       1.0
11
- */
3
+	 * Give Welcome Page Class
4
+	 *
5
+	 * @description Displays on plugin activation
6
+	 * @package     Give
7
+	 * @subpackage  Admin/Welcome
8
+	 * @copyright   Copyright (c) 2015, WordImpress
9
+	 * @license     http://opensource.org/licenses/gpl-2.0.php GNU Public License
10
+	 * @since       1.0
11
+	 */
12 12
 
13 13
 // Exit if accessed directly
14 14
 if ( ! defined( 'ABSPATH' ) ) {
Please login to merge, or discard this patch.
Spacing   +104 added lines, -104 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@  discard block
 block discarded – undo
11 11
  */
12 12
 
13 13
 // Exit if accessed directly
14
-if ( ! defined( 'ABSPATH' ) ) {
14
+if ( ! defined('ABSPATH')) {
15 15
 	exit;
16 16
 }
17 17
 
@@ -35,9 +35,9 @@  discard block
 block discarded – undo
35 35
 	 * @since 1.0
36 36
 	 */
37 37
 	public function __construct() {
38
-		add_action( 'admin_menu', array( $this, 'admin_menus' ) );
39
-		add_action( 'admin_head', array( $this, 'admin_head' ) );
40
-		add_action( 'admin_init', array( $this, 'welcome' ) );
38
+		add_action('admin_menu', array($this, 'admin_menus'));
39
+		add_action('admin_head', array($this, 'admin_head'));
40
+		add_action('admin_init', array($this, 'welcome'));
41 41
 	}
42 42
 
43 43
 	/**
@@ -51,38 +51,38 @@  discard block
 block discarded – undo
51 51
 	public function admin_menus() {
52 52
 		// About Page
53 53
 		add_dashboard_page(
54
-			__( 'Welcome to Give', 'give' ),
55
-			__( 'Welcome to Give', 'give' ),
54
+			__('Welcome to Give', 'give'),
55
+			__('Welcome to Give', 'give'),
56 56
 			$this->minimum_capability,
57 57
 			'give-about',
58
-			array( $this, 'about_screen' )
58
+			array($this, 'about_screen')
59 59
 		);
60 60
 
61 61
 		// Changelog Page
62 62
 		add_dashboard_page(
63
-			__( 'Give Changelog', 'give' ),
64
-			__( 'Give Changelog', 'give' ),
63
+			__('Give Changelog', 'give'),
64
+			__('Give Changelog', 'give'),
65 65
 			$this->minimum_capability,
66 66
 			'give-changelog',
67
-			array( $this, 'changelog_screen' )
67
+			array($this, 'changelog_screen')
68 68
 		);
69 69
 
70 70
 		// Getting Started Page
71 71
 		add_dashboard_page(
72
-			__( 'Getting started with Give', 'give' ),
73
-			__( 'Getting started with Give', 'give' ),
72
+			__('Getting started with Give', 'give'),
73
+			__('Getting started with Give', 'give'),
74 74
 			$this->minimum_capability,
75 75
 			'give-getting-started',
76
-			array( $this, 'getting_started_screen' )
76
+			array($this, 'getting_started_screen')
77 77
 		);
78 78
 
79 79
 		// Credits Page
80 80
 		add_dashboard_page(
81
-			__( 'The people that build Give', 'give' ),
82
-			__( 'The people that build Give', 'give' ),
81
+			__('The people that build Give', 'give'),
82
+			__('The people that build Give', 'give'),
83 83
 			$this->minimum_capability,
84 84
 			'give-credits',
85
-			array( $this, 'credits_screen' )
85
+			array($this, 'credits_screen')
86 86
 		);
87 87
 	}
88 88
 
@@ -95,13 +95,13 @@  discard block
 block discarded – undo
95 95
 	 */
96 96
 	public function admin_head() {
97 97
 
98
-		remove_submenu_page( 'index.php', 'give-about' );
99
-		remove_submenu_page( 'index.php', 'give-changelog' );
100
-		remove_submenu_page( 'index.php', 'give-getting-started' );
101
-		remove_submenu_page( 'index.php', 'give-credits' );
98
+		remove_submenu_page('index.php', 'give-about');
99
+		remove_submenu_page('index.php', 'give-changelog');
100
+		remove_submenu_page('index.php', 'give-getting-started');
101
+		remove_submenu_page('index.php', 'give-credits');
102 102
 
103 103
 		// Badge for welcome page
104
-		$badge_url = GIVE_PLUGIN_URL . 'assets/images/give-badge.png';
104
+		$badge_url = GIVE_PLUGIN_URL.'assets/images/give-badge.png';
105 105
 
106 106
 		?>
107 107
 		<style type="text/css" media="screen">
@@ -215,20 +215,20 @@  discard block
 block discarded – undo
215 215
 	 * @return void
216 216
 	 */
217 217
 	public function tabs() {
218
-		$selected = isset( $_GET['page'] ) ? $_GET['page'] : 'give-about';
218
+		$selected = isset($_GET['page']) ? $_GET['page'] : 'give-about';
219 219
 		?>
220 220
 		<h1 class="nav-tab-wrapper">
221
-			<a class="nav-tab <?php echo $selected == 'give-about' ? 'nav-tab-active' : ''; ?>" href="<?php echo esc_url( admin_url( add_query_arg( array( 'page' => 'give-about' ), 'index.php' ) ) ); ?>">
222
-				<?php _e( "About Give", 'give' ); ?>
221
+			<a class="nav-tab <?php echo $selected == 'give-about' ? 'nav-tab-active' : ''; ?>" href="<?php echo esc_url(admin_url(add_query_arg(array('page' => 'give-about'), 'index.php'))); ?>">
222
+				<?php _e("About Give", 'give'); ?>
223 223
 			</a>
224
-			<a class="nav-tab <?php echo $selected == 'give-getting-started' ? 'nav-tab-active' : ''; ?>" href="<?php echo esc_url( admin_url( add_query_arg( array( 'page' => 'give-getting-started' ), 'index.php' ) ) ); ?>">
225
-				<?php _e( 'Getting Started', 'give' ); ?>
224
+			<a class="nav-tab <?php echo $selected == 'give-getting-started' ? 'nav-tab-active' : ''; ?>" href="<?php echo esc_url(admin_url(add_query_arg(array('page' => 'give-getting-started'), 'index.php'))); ?>">
225
+				<?php _e('Getting Started', 'give'); ?>
226 226
 			</a>
227
-			<a class="nav-tab <?php echo $selected == 'give-credits' ? 'nav-tab-active' : ''; ?>" href="<?php echo esc_url( admin_url( add_query_arg( array( 'page' => 'give-credits' ), 'index.php' ) ) ); ?>">
228
-				<?php _e( 'Credits', 'give' ); ?>
227
+			<a class="nav-tab <?php echo $selected == 'give-credits' ? 'nav-tab-active' : ''; ?>" href="<?php echo esc_url(admin_url(add_query_arg(array('page' => 'give-credits'), 'index.php'))); ?>">
228
+				<?php _e('Credits', 'give'); ?>
229 229
 			</a>
230
-			<a class="nav-tab <?php echo $selected == 'give-add-ons' ? 'nav-tab-active' : ''; ?>" href="<?php echo esc_url( admin_url( null, 'index.php' ) ) . 'edit.php?post_type=give_forms&page=give-addons'; ?>">
231
-				<?php _e( 'Add-ons', 'give' ); ?>
230
+			<a class="nav-tab <?php echo $selected == 'give-add-ons' ? 'nav-tab-active' : ''; ?>" href="<?php echo esc_url(admin_url(null, 'index.php')).'edit.php?post_type=give_forms&page=give-addons'; ?>">
231
+				<?php _e('Add-ons', 'give'); ?>
232 232
 			</a>
233 233
 		</h1>
234 234
 	<?php
@@ -242,20 +242,20 @@  discard block
 block discarded – undo
242 242
 	 * @return void
243 243
 	 */
244 244
 	public function about_screen() {
245
-		list( $display_version ) = explode( '-', GIVE_VERSION );
245
+		list($display_version) = explode('-', GIVE_VERSION);
246 246
 		?>
247 247
 		<div class="wrap about-wrap">
248
-			<h1 class="welcome-h1"><?php printf( __( 'Welcome to Give %s', 'give' ), $display_version ); ?></h1>
248
+			<h1 class="welcome-h1"><?php printf(__('Welcome to Give %s', 'give'), $display_version); ?></h1>
249 249
 
250 250
 			<?php give_social_media_elements() ?>
251 251
 
252
-			<div class="about-text"><?php printf( __( 'Thank you for activating or updating to the latest version of Give! If you\'re a first time user, welcome! You\'re well on your way to empowering your cause. </You>We encourage you to check out the <a href="%s" title="View the Give plugin documentation online" target="_blank">plugin documentation</a> and getting started guide below.', 'give' ), 'https://givewp.com/documenation/' ); ?></div>
252
+			<div class="about-text"><?php printf(__('Thank you for activating or updating to the latest version of Give! If you\'re a first time user, welcome! You\'re well on your way to empowering your cause. </You>We encourage you to check out the <a href="%s" title="View the Give plugin documentation online" target="_blank">plugin documentation</a> and getting started guide below.', 'give'), 'https://givewp.com/documenation/'); ?></div>
253 253
 
254
-			<p class="newsletter-intro"><?php _e( 'Be sure to sign up for the Give newsletter below to stay informed of important updates and news.', 'give' ); ?></p>
254
+			<p class="newsletter-intro"><?php _e('Be sure to sign up for the Give newsletter below to stay informed of important updates and news.', 'give'); ?></p>
255 255
 
256 256
 			<?php give_get_newsletter() ?>
257 257
 
258
-			<div class="give-badge"><?php printf( __( 'Version %s', 'give' ), $display_version ); ?></div>
258
+			<div class="give-badge"><?php printf(__('Version %s', 'give'), $display_version); ?></div>
259 259
 
260 260
 
261 261
 
@@ -264,15 +264,15 @@  discard block
 block discarded – undo
264 264
 			<div class="feature-section clearfix introduction">
265 265
 
266 266
 				<div class="video feature-section-item">
267
-					<img src="<?php echo GIVE_PLUGIN_URL . '/assets/images/give-form-mockup.png' ?>" title="A Give donation form" alt="A Give donation form">
267
+					<img src="<?php echo GIVE_PLUGIN_URL.'/assets/images/give-form-mockup.png' ?>" title="A Give donation form" alt="A Give donation form">
268 268
 
269 269
 				</div>
270 270
 
271 271
 				<div class="content feature-section-item last-feature">
272 272
 
273
-					<h3><?php _e( 'Give - Democratizing Generosity', 'give' ); ?></h3>
273
+					<h3><?php _e('Give - Democratizing Generosity', 'give'); ?></h3>
274 274
 
275
-					<p><?php _e( 'Give empowers you to easily accept donations and setup fundraising campaigns, directly within WordPress. We created Give to provide a better donation experience for you and your users. Robust, flexible, and intuitive, the plugin is built from the ground up to be the goto donation solution for WordPress. Create powerful donation forms, embed them throughout your website, start a campaign, and exceed your fundraising goals with Give. This plugin is actively developed and proudly supported by folks who are dedicated to helping you and your cause.', 'give' ); ?></p>
275
+					<p><?php _e('Give empowers you to easily accept donations and setup fundraising campaigns, directly within WordPress. We created Give to provide a better donation experience for you and your users. Robust, flexible, and intuitive, the plugin is built from the ground up to be the goto donation solution for WordPress. Create powerful donation forms, embed them throughout your website, start a campaign, and exceed your fundraising goals with Give. This plugin is actively developed and proudly supported by folks who are dedicated to helping you and your cause.', 'give'); ?></p>
276 276
 					<a href="https://givewp.com" target="_blank" class="button-secondary" title="Visit the Give Website">Learn More
277 277
 						<span class="dashicons dashicons-external"></span></a>
278 278
 
@@ -285,9 +285,9 @@  discard block
 block discarded – undo
285 285
 
286 286
 				<div class="content feature-section-item">
287 287
 
288
-					<h3><?php _e( 'Getting to Know Give', 'give' ); ?></h3>
288
+					<h3><?php _e('Getting to Know Give', 'give'); ?></h3>
289 289
 
290
-					<p><?php _e( 'Before you get started with Give we suggest you take a look at the online documentation. There you will find the getting started guide which will help you get up and running quickly. If you have an question, issue or bug with the Core plugin please submit an issue on the Give website. We also welcome your feedback and feature requests. Welcome to Give. We hope you much success with your cause.', 'give' ); ?></p>
290
+					<p><?php _e('Before you get started with Give we suggest you take a look at the online documentation. There you will find the getting started guide which will help you get up and running quickly. If you have an question, issue or bug with the Core plugin please submit an issue on the Give website. We also welcome your feedback and feature requests. Welcome to Give. We hope you much success with your cause.', 'give'); ?></p>
291 291
 					<a href="https://givewp.com/documentation" target="_blank" class="button-secondary" title="Visit the Give Website">View Documentation
292 292
 						<span class="dashicons dashicons-external"></span></a>
293 293
 
@@ -295,7 +295,7 @@  discard block
 block discarded – undo
295 295
 
296 296
 				<div class="content  feature-section-item last-feature">
297 297
 
298
-					<img src="<?php echo GIVE_PLUGIN_URL . '/assets/images/give-logo-photo-mashup.png' ?>" title="Give" alt="Give">
298
+					<img src="<?php echo GIVE_PLUGIN_URL.'/assets/images/give-logo-photo-mashup.png' ?>" title="Give" alt="Give">
299 299
 
300 300
 				</div>
301 301
 
@@ -315,18 +315,18 @@  discard block
 block discarded – undo
315 315
 	 * @return void
316 316
 	 */
317 317
 	public function changelog_screen() {
318
-		list( $display_version ) = explode( '-', GIVE_VERSION );
318
+		list($display_version) = explode('-', GIVE_VERSION);
319 319
 		?>
320 320
 		<div class="wrap about-wrap">
321
-			<h1><?php _e( 'Give Changelog', 'give' ); ?></h1>
321
+			<h1><?php _e('Give Changelog', 'give'); ?></h1>
322 322
 
323
-			<div class="about-text"><?php printf( __( 'Thank you for updating to the latest version! Give %s is ready to make your online store faster, safer, and better!', 'give' ), $display_version ); ?></div>
324
-			<div class="give-badge"><?php printf( __( 'Version %s', 'give' ), $display_version ); ?></div>
323
+			<div class="about-text"><?php printf(__('Thank you for updating to the latest version! Give %s is ready to make your online store faster, safer, and better!', 'give'), $display_version); ?></div>
324
+			<div class="give-badge"><?php printf(__('Version %s', 'give'), $display_version); ?></div>
325 325
 
326 326
 			<?php $this->tabs(); ?>
327 327
 
328 328
 			<div class="changelog">
329
-				<h3><?php _e( 'Full Changelog', 'give' ); ?></h3>
329
+				<h3><?php _e('Full Changelog', 'give'); ?></h3>
330 330
 
331 331
 				<div class="feature-section">
332 332
 					<?php echo $this->parse_readme(); ?>
@@ -334,10 +334,10 @@  discard block
 block discarded – undo
334 334
 			</div>
335 335
 
336 336
 			<div class="return-to-dashboard">
337
-				<a href="<?php echo esc_url( admin_url( add_query_arg( array(
337
+				<a href="<?php echo esc_url(admin_url(add_query_arg(array(
338 338
 					'post_type' => 'give_forms',
339 339
 					'page'      => 'give-settings'
340
-				), 'edit.php' ) ) ); ?>"><?php _e( 'Go to Give Settings', 'give' ); ?></a>
340
+				), 'edit.php'))); ?>"><?php _e('Go to Give Settings', 'give'); ?></a>
341 341
 			</div>
342 342
 		</div>
343 343
 	<?php
@@ -351,35 +351,35 @@  discard block
 block discarded – undo
351 351
 	 * @return void
352 352
 	 */
353 353
 	public function getting_started_screen() {
354
-		list( $display_version ) = explode( '-', GIVE_VERSION );
354
+		list($display_version) = explode('-', GIVE_VERSION);
355 355
 		?>
356 356
 		<div class="wrap about-wrap get-started">
357
-			<h1 class="welcome-h1"><?php printf( __( 'Give %s - Getting Started Guide', 'give' ), $display_version ); ?></h1>
357
+			<h1 class="welcome-h1"><?php printf(__('Give %s - Getting Started Guide', 'give'), $display_version); ?></h1>
358 358
 
359 359
 			<?php give_social_media_elements() ?>
360 360
 
361
-			<div class="about-text"><?php _e( 'Welcome to the getting started guide.', 'give' ); ?></div>
361
+			<div class="about-text"><?php _e('Welcome to the getting started guide.', 'give'); ?></div>
362 362
 
363
-			<p class="newsletter-intro"><?php _e( 'Don\'t forget to sign up for the newsletter!', 'give' ); ?>.</p>
363
+			<p class="newsletter-intro"><?php _e('Don\'t forget to sign up for the newsletter!', 'give'); ?>.</p>
364 364
 
365 365
 			<?php give_get_newsletter() ?>
366 366
 
367
-			<div class="give-badge"><?php printf( __( 'Version %s', 'give' ), $display_version ); ?></div>
367
+			<div class="give-badge"><?php printf(__('Version %s', 'give'), $display_version); ?></div>
368 368
 
369 369
 			<?php $this->tabs(); ?>
370 370
 
371 371
 
372
-			<div class="about-text"><?php printf( __( 'Getting started with Give is easy! We put together this quick start guide to help first time users of the plugin. Our goal is to get you up and running in no time. Let\'s begin!', 'give' ), $display_version ); ?></div>
372
+			<div class="about-text"><?php printf(__('Getting started with Give is easy! We put together this quick start guide to help first time users of the plugin. Our goal is to get you up and running in no time. Let\'s begin!', 'give'), $display_version); ?></div>
373 373
 
374 374
 
375 375
 			<div class="feature-section clearfix">
376 376
 
377 377
 				<div class="content feature-section-item">
378
-					<h3><?php _e( 'STEP 1: Create a New Form', 'give' ); ?></h3>
378
+					<h3><?php _e('STEP 1: Create a New Form', 'give'); ?></h3>
379 379
 
380
-					<p><?php _e( 'Give is driven by it\'s powerful form building features. But it is not simply a "form". From the "Add New Form" page you\'ll be able to choose how and where you want to receive your donations. You\'ll be able to set the donation amounts. You even get to choose whether you want to create a whole page for your form, or embed it on a different page of your site.', 'give' ); ?></p>
380
+					<p><?php _e('Give is driven by it\'s powerful form building features. But it is not simply a "form". From the "Add New Form" page you\'ll be able to choose how and where you want to receive your donations. You\'ll be able to set the donation amounts. You even get to choose whether you want to create a whole page for your form, or embed it on a different page of your site.', 'give'); ?></p>
381 381
 
382
-					<p><?php _e( 'But all of these features begin simply by going to the menu and choosing "Add New Form."', 'give' ); ?></p>
382
+					<p><?php _e('But all of these features begin simply by going to the menu and choosing "Add New Form."', 'give'); ?></p>
383 383
 				</div>
384 384
 
385 385
 				<div class="content feature-section-item last-feature">
@@ -396,9 +396,9 @@  discard block
 block discarded – undo
396 396
 				</div>
397 397
 
398 398
 				<div class="content feature-section-item last-feature">
399
-					<h3><?php _e( 'STEP 2: Choose Your Levels', 'give' ); ?></h3>
399
+					<h3><?php _e('STEP 2: Choose Your Levels', 'give'); ?></h3>
400 400
 
401
-					<p><?php _e( 'Each Form can be set to receive either a pre-determined amount or have multiple suggested levels of giving. Choosing "Multi-level Donation" opens up the levels section where you can add as many levels as you like with your own custom names and amounts.', 'give' ); ?></p>
401
+					<p><?php _e('Each Form can be set to receive either a pre-determined amount or have multiple suggested levels of giving. Choosing "Multi-level Donation" opens up the levels section where you can add as many levels as you like with your own custom names and amounts.', 'give'); ?></p>
402 402
 				</div>
403 403
 
404 404
 			</div>
@@ -407,11 +407,11 @@  discard block
 block discarded – undo
407 407
 			<div class="feature-section clearfix">
408 408
 
409 409
 				<div class="content feature-section-item add-content">
410
-					<h3><?php _e( 'STEP 3: Landing Page or Shortcode Mode?', 'give' ); ?></h3>
410
+					<h3><?php _e('STEP 3: Landing Page or Shortcode Mode?', 'give'); ?></h3>
411 411
 
412
-					<p><?php _e( 'Every form you create in Give can either become it\'s own stand-alone page, or it can be inserted into any other page or post throughout your site as a Shortcode.', 'give' ); ?></p>
412
+					<p><?php _e('Every form you create in Give can either become it\'s own stand-alone page, or it can be inserted into any other page or post throughout your site as a Shortcode.', 'give'); ?></p>
413 413
 
414
-					<p><?php _e( 'You can choose these different modes by going to the "Form Content" section. From there, you can choose to add content before or after the Donation form on a page, or if you choose "None" perhaps you want to instead use the shortcode. You can find the shortcode in the top right column directly under the Publish/Save button. This feature gives you the most amount of flexibility with controlling your content on your website all within the same page.', 'give' ); ?></p>
414
+					<p><?php _e('You can choose these different modes by going to the "Form Content" section. From there, you can choose to add content before or after the Donation form on a page, or if you choose "None" perhaps you want to instead use the shortcode. You can find the shortcode in the top right column directly under the Publish/Save button. This feature gives you the most amount of flexibility with controlling your content on your website all within the same page.', 'give'); ?></p>
415 415
 				</div>
416 416
 
417 417
 				<div class="content feature-section-item last-feature">
@@ -428,9 +428,9 @@  discard block
 block discarded – undo
428 428
 				</div>
429 429
 
430 430
 				<div class="content feature-section-item last-feature">
431
-					<h3><?php _e( 'STEP 4: Configure Your Display Options', 'give' ); ?></h3>
431
+					<h3><?php _e('STEP 4: Configure Your Display Options', 'give'); ?></h3>
432 432
 
433
-					<p><?php _e( 'Lastly, you can present the form in a lot of different ways. With the "Display Options" section you can configure how the credit card field appears, the submit button text, which Gateway you want to use, whether Guests (non-logged in users) can donate or not, and a log-in form.', 'give' ); ?></p>
433
+					<p><?php _e('Lastly, you can present the form in a lot of different ways. With the "Display Options" section you can configure how the credit card field appears, the submit button text, which Gateway you want to use, whether Guests (non-logged in users) can donate or not, and a log-in form.', 'give'); ?></p>
434 434
 				</div>
435 435
 
436 436
 
@@ -450,26 +450,26 @@  discard block
 block discarded – undo
450 450
 	 * @return void
451 451
 	 */
452 452
 	public function credits_screen() {
453
-		list( $display_version ) = explode( '-', GIVE_VERSION );
453
+		list($display_version) = explode('-', GIVE_VERSION);
454 454
 		?>
455 455
 		<div class="wrap about-wrap">
456
-			<h1 class="welcome-h1"><?php printf( __( 'Give %s - Credits', 'give' ), $display_version ); ?></h1>
456
+			<h1 class="welcome-h1"><?php printf(__('Give %s - Credits', 'give'), $display_version); ?></h1>
457 457
 
458 458
 			<?php give_social_media_elements() ?>
459 459
 
460
-			<div class="about-text"><?php printf( __( 'Thanks to all those who have contributed code directly or indirectly. ', 'give' ), $display_version ); ?></div>
460
+			<div class="about-text"><?php printf(__('Thanks to all those who have contributed code directly or indirectly. ', 'give'), $display_version); ?></div>
461 461
 
462
-			<div class="about-text"><?php _e( 'Welcome to the getting started guide.', 'give' ); ?></div>
462
+			<div class="about-text"><?php _e('Welcome to the getting started guide.', 'give'); ?></div>
463 463
 
464 464
 			<p class="newsletter-intro">Be sure to sign up for the Give newsletter below to stay informed of important updates and news.</p>
465 465
 
466 466
 			<?php give_get_newsletter() ?>
467 467
 
468
-			<div class="give-badge"><?php printf( __( 'Version %s', 'give' ), $display_version ); ?></div>
468
+			<div class="give-badge"><?php printf(__('Version %s', 'give'), $display_version); ?></div>
469 469
 
470 470
 			<?php $this->tabs(); ?>
471 471
 
472
-			<p class="about-description"><?php _e( 'Give is created by a dedicated team of developers. If you are interested in contributing please visit the <a href="https://github.com/WordImpress/give" target="_blank">GitHub Repo</a>.', 'give' ); ?></p>
472
+			<p class="about-description"><?php _e('Give is created by a dedicated team of developers. If you are interested in contributing please visit the <a href="https://github.com/WordImpress/give" target="_blank">GitHub Repo</a>.', 'give'); ?></p>
473 473
 
474 474
 			<?php echo $this->contributors(); ?>
475 475
 		</div>
@@ -484,21 +484,21 @@  discard block
 block discarded – undo
484 484
 	 * @return string $readme HTML formatted readme file
485 485
 	 */
486 486
 	public function parse_readme() {
487
-		$file = file_exists( GIVE_PLUGIN_DIR . 'readme.txt' ) ? GIVE_PLUGIN_DIR . 'readme.txt' : null;
487
+		$file = file_exists(GIVE_PLUGIN_DIR.'readme.txt') ? GIVE_PLUGIN_DIR.'readme.txt' : null;
488 488
 
489
-		if ( ! $file ) {
490
-			$readme = '<p>' . __( 'No valid changlog was found.', 'give' ) . '</p>';
489
+		if ( ! $file) {
490
+			$readme = '<p>'.__('No valid changlog was found.', 'give').'</p>';
491 491
 		} else {
492
-			$readme = file_get_contents( $file );
493
-			$readme = nl2br( esc_html( $readme ) );
494
-			$readme = explode( '== Changelog ==', $readme );
495
-			$readme = end( $readme );
496
-
497
-			$readme = preg_replace( '/`(.*?)`/', '<code>\\1</code>', $readme );
498
-			$readme = preg_replace( '/[\040]\*\*(.*?)\*\*/', ' <strong>\\1</strong>', $readme );
499
-			$readme = preg_replace( '/[\040]\*(.*?)\*/', ' <em>\\1</em>', $readme );
500
-			$readme = preg_replace( '/= (.*?) =/', '<h4>\\1</h4>', $readme );
501
-			$readme = preg_replace( '/\[(.*?)\]\((.*?)\)/', '<a href="\\2">\\1</a>', $readme );
492
+			$readme = file_get_contents($file);
493
+			$readme = nl2br(esc_html($readme));
494
+			$readme = explode('== Changelog ==', $readme);
495
+			$readme = end($readme);
496
+
497
+			$readme = preg_replace('/`(.*?)`/', '<code>\\1</code>', $readme);
498
+			$readme = preg_replace('/[\040]\*\*(.*?)\*\*/', ' <strong>\\1</strong>', $readme);
499
+			$readme = preg_replace('/[\040]\*(.*?)\*/', ' <em>\\1</em>', $readme);
500
+			$readme = preg_replace('/= (.*?) =/', '<h4>\\1</h4>', $readme);
501
+			$readme = preg_replace('/\[(.*?)\]\((.*?)\)/', '<a href="\\2">\\1</a>', $readme);
502 502
 		}
503 503
 
504 504
 		return $readme;
@@ -515,21 +515,21 @@  discard block
 block discarded – undo
515 515
 	public function contributors() {
516 516
 		$contributors = $this->get_contributors();
517 517
 
518
-		if ( empty( $contributors ) ) {
518
+		if (empty($contributors)) {
519 519
 			return '';
520 520
 		}
521 521
 
522 522
 		$contributor_list = '<ul class="wp-people-group">';
523 523
 
524
-		foreach ( $contributors as $contributor ) {
524
+		foreach ($contributors as $contributor) {
525 525
 			$contributor_list .= '<li class="wp-person">';
526
-			$contributor_list .= sprintf( '<a href="%s" title="%s">',
527
-				esc_url( 'https://github.com/' . $contributor->login ),
528
-				esc_html( sprintf( __( 'View %s', 'give' ), $contributor->login ) )
526
+			$contributor_list .= sprintf('<a href="%s" title="%s">',
527
+				esc_url('https://github.com/'.$contributor->login),
528
+				esc_html(sprintf(__('View %s', 'give'), $contributor->login))
529 529
 			);
530
-			$contributor_list .= sprintf( '<img src="%s" width="64" height="64" class="gravatar" alt="%s" />', esc_url( $contributor->avatar_url ), esc_html( $contributor->login ) );
530
+			$contributor_list .= sprintf('<img src="%s" width="64" height="64" class="gravatar" alt="%s" />', esc_url($contributor->avatar_url), esc_html($contributor->login));
531 531
 			$contributor_list .= '</a>';
532
-			$contributor_list .= sprintf( '<a class="web" href="%s">%s</a>', esc_url( 'https://github.com/' . $contributor->login ), esc_html( $contributor->login ) );
532
+			$contributor_list .= sprintf('<a class="web" href="%s">%s</a>', esc_url('https://github.com/'.$contributor->login), esc_html($contributor->login));
533 533
 			$contributor_list .= '</a>';
534 534
 			$contributor_list .= '</li>';
535 535
 		}
@@ -547,25 +547,25 @@  discard block
 block discarded – undo
547 547
 	 * @return array $contributors List of contributors
548 548
 	 */
549 549
 	public function get_contributors() {
550
-		$contributors = get_transient( 'give_contributors' );
550
+		$contributors = get_transient('give_contributors');
551 551
 
552
-		if ( false !== $contributors ) {
552
+		if (false !== $contributors) {
553 553
 			return $contributors;
554 554
 		}
555 555
 
556
-		$response = wp_remote_get( 'https://api.github.com/repos/WordImpress/Give/contributors', array( 'sslverify' => false ) );
556
+		$response = wp_remote_get('https://api.github.com/repos/WordImpress/Give/contributors', array('sslverify' => false));
557 557
 
558
-		if ( is_wp_error( $response ) || 200 != wp_remote_retrieve_response_code( $response ) ) {
558
+		if (is_wp_error($response) || 200 != wp_remote_retrieve_response_code($response)) {
559 559
 			return array();
560 560
 		}
561 561
 
562
-		$contributors = json_decode( wp_remote_retrieve_body( $response ) );
562
+		$contributors = json_decode(wp_remote_retrieve_body($response));
563 563
 
564
-		if ( ! is_array( $contributors ) ) {
564
+		if ( ! is_array($contributors)) {
565 565
 			return array();
566 566
 		}
567 567
 
568
-		set_transient( 'give_contributors', $contributors, 3600 );
568
+		set_transient('give_contributors', $contributors, 3600);
569 569
 
570 570
 		return $contributors;
571 571
 	}
@@ -584,24 +584,24 @@  discard block
 block discarded – undo
584 584
 
585 585
 
586 586
 		// Bail if no activation redirect
587
-		if ( ! get_transient( '_give_activation_redirect' ) ) {
587
+		if ( ! get_transient('_give_activation_redirect')) {
588 588
 			return;
589 589
 		}
590 590
 
591 591
 		// Delete the redirect transient
592
-		delete_transient( '_give_activation_redirect' );
592
+		delete_transient('_give_activation_redirect');
593 593
 
594 594
 		// Bail if activating from network, or bulk
595
-		if ( is_network_admin() || isset( $_GET['activate-multi'] ) ) {
595
+		if (is_network_admin() || isset($_GET['activate-multi'])) {
596 596
 			return;
597 597
 		}
598 598
 
599
-		$upgrade = get_option( 'give_version_upgraded_from' );
599
+		$upgrade = get_option('give_version_upgraded_from');
600 600
 
601
-		if ( ! $upgrade ) { // First time install
602
-			wp_safe_redirect( admin_url( 'index.php?page=give-about' ) );
601
+		if ( ! $upgrade) { // First time install
602
+			wp_safe_redirect(admin_url('index.php?page=give-about'));
603 603
 			exit;
604
-		} elseif( isset( $give_options['disable_welcome'] ) ) { // Welcome is disabled in settings
604
+		} elseif (isset($give_options['disable_welcome'])) { // Welcome is disabled in settings
605 605
 
606 606
 		} else { // Welcome is NOT disabled in settings
607 607
 			wp_safe_redirect(admin_url('index.php?page=give-about'));
Please login to merge, or discard this patch.