Completed
Branch master (a9047a)
by
unknown
02:10
created
admin_pages/events/templates/event_preview_deletion.template.php 1 patch
Indentation   +45 added lines, -45 removed lines patch added patch discarded remove patch
@@ -14,97 +14,97 @@
 block discarded – undo
14 14
 </h2>
15 15
 <h3>
16 16
     <?php echo esc_html(
17
-        sprintf(
18
-        // translators: 1: number of events
19
-            _n('%1$d Event', '%1$d Events', count($events), 'event_espresso'),
20
-            count($events)
21
-        )
22
-    );
17
+		sprintf(
18
+		// translators: 1: number of events
19
+			_n('%1$d Event', '%1$d Events', count($events), 'event_espresso'),
20
+			count($events)
21
+		)
22
+	);
23 23
 ?>
24 24
 </h3>
25 25
 <ul>
26 26
     <?php
27
-    foreach ($events as $event) {
28
-        ?>
27
+	foreach ($events as $event) {
28
+		?>
29 29
         <li>
30 30
             <?php echo esc_html($event->name()); ?>
31 31
         </li>
32 32
         <?php
33
-    }
34
-    ?>
33
+	}
34
+	?>
35 35
 </ul>
36 36
 <h3>
37 37
     <?php echo esc_html(
38
-        sprintf(
39
-        // translators: 1: number of datetimes
40
-            _n('%1$d Datetime', '%1$d Datetimes', count($datetimes), 'event_espresso'),
41
-            count($datetimes)
42
-        )
43
-    );
38
+		sprintf(
39
+		// translators: 1: number of datetimes
40
+			_n('%1$d Datetime', '%1$d Datetimes', count($datetimes), 'event_espresso'),
41
+			count($datetimes)
42
+		)
43
+	);
44 44
 ?>
45 45
 </h3>
46 46
 <ul>
47 47
     <?php
48
-    foreach ($datetimes as $datetime) {
49
-        ?>
48
+	foreach ($datetimes as $datetime) {
49
+		?>
50 50
         <li>
51 51
             <?php echo esc_html($datetime->get_dtt_display_name(true)); ?>
52 52
         </li>
53 53
         <?php
54
-    }
55
-    ?>
54
+	}
55
+	?>
56 56
 </ul>
57 57
 <h3>
58 58
     <?php echo esc_html(
59
-        sprintf(
60
-            _n('%1$d Registration', '%1$d Registrations', $reg_count, 'event_espresso'),
61
-            $reg_count
62
-        )
63
-    );
59
+		sprintf(
60
+			_n('%1$d Registration', '%1$d Registrations', $reg_count, 'event_espresso'),
61
+			$reg_count
62
+		)
63
+	);
64 64
 ?>
65 65
 </h3>
66 66
 <?php
67 67
 if ($reg_count > count($registrations)) {
68
-    ?>
68
+	?>
69 69
     <p class="notice">
70 70
         <?php printf(
71
-            esc_html__('Only showing first %1$d.', 'event_espresso'),
72
-            count($registrations)
73
-        );
74
-        ?>
71
+			esc_html__('Only showing first %1$d.', 'event_espresso'),
72
+			count($registrations)
73
+		);
74
+		?>
75 75
     </p>
76 76
     <?php
77 77
 }
78 78
 ?>
79 79
 <?php
80 80
 if ($reg_count > 0) {
81
-    ?>
81
+	?>
82 82
     <p>
83 83
         <?php esc_html_e(
84
-            'Note: contacts will not be deleted, only their registrations for the enumerated events.',
85
-            'event_espresso'
86
-        ); ?>
84
+			'Note: contacts will not be deleted, only their registrations for the enumerated events.',
85
+			'event_espresso'
86
+		); ?>
87 87
     </p>
88 88
     <?php
89 89
 }
90 90
 ?>
91 91
 <ul>
92 92
     <?php
93
-    foreach ($registrations as $registration) {
94
-        ?>
93
+	foreach ($registrations as $registration) {
94
+		?>
95 95
         <li>
96 96
             <?php echo esc_html(
97
-                sprintf(
98
-                    _x('%1$s (%2$d of %3$d)', 'Registration name (number of count)', 'event_espresso'),
99
-                    $registration->attendeeName(true),
100
-                    $registration->count(),
101
-                    $registration->group_size()
102
-                )
103
-            ); ?>
97
+				sprintf(
98
+					_x('%1$s (%2$d of %3$d)', 'Registration name (number of count)', 'event_espresso'),
99
+					$registration->attendeeName(true),
100
+					$registration->count(),
101
+					$registration->group_size()
102
+				)
103
+			); ?>
104 104
         </li>
105 105
         <?php
106
-    }
107
-    ?>
106
+	}
107
+	?>
108 108
 </ul>
109 109
 <form action="<?php echo esc_url_raw($form_url); ?>" method="POST">
110 110
     <?php echo $form->get_html_and_js(); // already escaped ?>
Please login to merge, or discard this patch.
espresso.php 1 patch
Indentation   +80 added lines, -80 removed lines patch added patch discarded remove patch
@@ -38,103 +38,103 @@
 block discarded – undo
38 38
  * @since           4.0
39 39
  */
40 40
 if (function_exists('espresso_version')) {
41
-    if (! function_exists('espresso_duplicate_plugin_error')) {
42
-        /**
43
-         *    espresso_duplicate_plugin_error
44
-         *    displays if more than one version of EE is activated at the same time
45
-         */
46
-        function espresso_duplicate_plugin_error()
47
-        {
48
-            ?>
41
+	if (! function_exists('espresso_duplicate_plugin_error')) {
42
+		/**
43
+		 *    espresso_duplicate_plugin_error
44
+		 *    displays if more than one version of EE is activated at the same time
45
+		 */
46
+		function espresso_duplicate_plugin_error()
47
+		{
48
+			?>
49 49
             <div class="error">
50 50
                 <p>
51 51
                     <?php
52
-                    echo esc_html__(
53
-                        'Can not run multiple versions of Event Espresso! One version has been automatically deactivated. Please verify that you have the correct version you want still active.',
54
-                        'event_espresso'
55
-                    ); ?>
52
+					echo esc_html__(
53
+						'Can not run multiple versions of Event Espresso! One version has been automatically deactivated. Please verify that you have the correct version you want still active.',
54
+						'event_espresso'
55
+					); ?>
56 56
                 </p>
57 57
             </div>
58 58
             <?php
59
-            espresso_deactivate_plugin(plugin_basename(__FILE__));
60
-        }
61
-    }
62
-    add_action('admin_notices', 'espresso_duplicate_plugin_error', 1);
59
+			espresso_deactivate_plugin(plugin_basename(__FILE__));
60
+		}
61
+	}
62
+	add_action('admin_notices', 'espresso_duplicate_plugin_error', 1);
63 63
 } else {
64
-    define('EE_MIN_PHP_VER_REQUIRED', '5.6.2');
65
-    if (! version_compare(PHP_VERSION, EE_MIN_PHP_VER_REQUIRED, '>=')) {
66
-        /**
67
-         * espresso_minimum_php_version_error
68
-         *
69
-         * @return void
70
-         */
71
-        function espresso_minimum_php_version_error()
72
-        {
73
-            ?>
64
+	define('EE_MIN_PHP_VER_REQUIRED', '5.6.2');
65
+	if (! version_compare(PHP_VERSION, EE_MIN_PHP_VER_REQUIRED, '>=')) {
66
+		/**
67
+		 * espresso_minimum_php_version_error
68
+		 *
69
+		 * @return void
70
+		 */
71
+		function espresso_minimum_php_version_error()
72
+		{
73
+			?>
74 74
             <div class="error">
75 75
                 <p>
76 76
                     <?php
77
-                    printf(
78
-                        esc_html__(
79
-                            'We\'re sorry, but Event Espresso requires PHP version %1$s or greater in order to operate. You are currently running version %2$s.%3$sIn order to update your version of PHP, you will need to contact your current hosting provider.%3$sFor information on stable PHP versions, please go to %4$s.',
80
-                            'event_espresso'
81
-                        ),
82
-                        EE_MIN_PHP_VER_REQUIRED,
83
-                        PHP_VERSION,
84
-                        '<br/>',
85
-                        '<a href="http://php.net/downloads.php">http://php.net/downloads.php</a>'
86
-                    );
87
-                    ?>
77
+					printf(
78
+						esc_html__(
79
+							'We\'re sorry, but Event Espresso requires PHP version %1$s or greater in order to operate. You are currently running version %2$s.%3$sIn order to update your version of PHP, you will need to contact your current hosting provider.%3$sFor information on stable PHP versions, please go to %4$s.',
80
+							'event_espresso'
81
+						),
82
+						EE_MIN_PHP_VER_REQUIRED,
83
+						PHP_VERSION,
84
+						'<br/>',
85
+						'<a href="http://php.net/downloads.php">http://php.net/downloads.php</a>'
86
+					);
87
+					?>
88 88
                 </p>
89 89
             </div>
90 90
             <?php
91
-            espresso_deactivate_plugin(plugin_basename(__FILE__));
92
-        }
91
+			espresso_deactivate_plugin(plugin_basename(__FILE__));
92
+		}
93 93
 
94
-        add_action('admin_notices', 'espresso_minimum_php_version_error', 1);
95
-    } else {
96
-        define('EVENT_ESPRESSO_MAIN_FILE', __FILE__);
97
-        /**
98
-         * espresso_version
99
-         * Returns the plugin version
100
-         *
101
-         * @return string
102
-         */
103
-        function espresso_version()
104
-        {
105
-            return apply_filters('FHEE__espresso__espresso_version', '4.10.15.rc.016');
106
-        }
94
+		add_action('admin_notices', 'espresso_minimum_php_version_error', 1);
95
+	} else {
96
+		define('EVENT_ESPRESSO_MAIN_FILE', __FILE__);
97
+		/**
98
+		 * espresso_version
99
+		 * Returns the plugin version
100
+		 *
101
+		 * @return string
102
+		 */
103
+		function espresso_version()
104
+		{
105
+			return apply_filters('FHEE__espresso__espresso_version', '4.10.15.rc.016');
106
+		}
107 107
 
108
-        /**
109
-         * espresso_plugin_activation
110
-         * adds a wp-option to indicate that EE has been activated via the WP admin plugins page
111
-         */
112
-        function espresso_plugin_activation()
113
-        {
114
-            update_option('ee_espresso_activation', true);
115
-        }
108
+		/**
109
+		 * espresso_plugin_activation
110
+		 * adds a wp-option to indicate that EE has been activated via the WP admin plugins page
111
+		 */
112
+		function espresso_plugin_activation()
113
+		{
114
+			update_option('ee_espresso_activation', true);
115
+		}
116 116
 
117
-        register_activation_hook(EVENT_ESPRESSO_MAIN_FILE, 'espresso_plugin_activation');
117
+		register_activation_hook(EVENT_ESPRESSO_MAIN_FILE, 'espresso_plugin_activation');
118 118
 
119
-        require_once __DIR__ . '/core/bootstrap_espresso.php';
120
-        bootstrap_espresso();
121
-    }
119
+		require_once __DIR__ . '/core/bootstrap_espresso.php';
120
+		bootstrap_espresso();
121
+	}
122 122
 }
123 123
 if (! function_exists('espresso_deactivate_plugin')) {
124
-    /**
125
-     *    deactivate_plugin
126
-     * usage:  espresso_deactivate_plugin( plugin_basename( __FILE__ ));
127
-     *
128
-     * @access public
129
-     * @param string $plugin_basename - the results of plugin_basename( __FILE__ ) for the plugin's main file
130
-     * @return    void
131
-     */
132
-    function espresso_deactivate_plugin($plugin_basename = '')
133
-    {
134
-        if (! function_exists('deactivate_plugins')) {
135
-            require_once ABSPATH . 'wp-admin/includes/plugin.php';
136
-        }
137
-        unset($_GET['activate'], $_REQUEST['activate']);
138
-        deactivate_plugins($plugin_basename);
139
-    }
124
+	/**
125
+	 *    deactivate_plugin
126
+	 * usage:  espresso_deactivate_plugin( plugin_basename( __FILE__ ));
127
+	 *
128
+	 * @access public
129
+	 * @param string $plugin_basename - the results of plugin_basename( __FILE__ ) for the plugin's main file
130
+	 * @return    void
131
+	 */
132
+	function espresso_deactivate_plugin($plugin_basename = '')
133
+	{
134
+		if (! function_exists('deactivate_plugins')) {
135
+			require_once ABSPATH . 'wp-admin/includes/plugin.php';
136
+		}
137
+		unset($_GET['activate'], $_REQUEST['activate']);
138
+		deactivate_plugins($plugin_basename);
139
+	}
140 140
 }
Please login to merge, or discard this patch.