Completed
Pull Request — master (#1233)
by Dan
07:34
created
includes/theme-integrations/twentysixteen.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -7,4 +7,4 @@
 block discarded – undo
7 7
  *
8 8
  * @since 1.9.0
9 9
 */
10
-Class Sensei_Twentysixteen extends Sensei__S{ }
10
+Class Sensei_Twentysixteen extends Sensei__S { }
Please login to merge, or discard this patch.
includes/theme-integrations/twentyeleven.php 2 patches
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -9,24 +9,24 @@
 block discarded – undo
9 9
 */
10 10
 Class Sensei_Twentythirteen {
11 11
 
12
-    /**
13
-     * Output opening wrappers
14
-     * @since 1.9.0
15
-     */
16
-    public function wrapper_start(){
17
-    ?>
12
+	/**
13
+	 * Output opening wrappers
14
+	 * @since 1.9.0
15
+	 */
16
+	public function wrapper_start(){
17
+	?>
18 18
 
19 19
         <div id="primary" class="site-content">
20 20
             <div id="content" role="main" class="entry-content">
21 21
 
22 22
     <?php }
23 23
 
24
-    /**
25
-     * Output closing wrappers
26
-     *
27
-     * @since 1.9.0
28
-     */
29
-    public function wrapper_end(){ ?>
24
+	/**
25
+	 * Output closing wrappers
26
+	 *
27
+	 * @since 1.9.0
28
+	 */
29
+	public function wrapper_end(){ ?>
30 30
 
31 31
 			</div>
32 32
 		</div>
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
      * Output opening wrappers
14 14
      * @since 1.9.0
15 15
      */
16
-    public function wrapper_start(){
16
+    public function wrapper_start() {
17 17
     ?>
18 18
 
19 19
         <div id="primary" class="site-content">
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
      *
27 27
      * @since 1.9.0
28 28
      */
29
-    public function wrapper_end(){ ?>
29
+    public function wrapper_end() { ?>
30 30
 
31 31
 			</div>
32 32
 		</div>
Please login to merge, or discard this patch.
includes/theme-integrations/twentytwelve.php 2 patches
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -9,24 +9,24 @@
 block discarded – undo
9 9
 */
10 10
 Class Sensei_Twentythirteen {
11 11
 
12
-    /**
13
-     * Output opening wrappers
14
-     * @since 1.9.0
15
-     */
16
-    public function wrapper_start(){
17
-    ?>
12
+	/**
13
+	 * Output opening wrappers
14
+	 * @since 1.9.0
15
+	 */
16
+	public function wrapper_start(){
17
+	?>
18 18
 
19 19
         <div id="primary" class="site-content">
20 20
             <div id="content" role="main" class="entry-content">
21 21
 
22 22
     <?php }
23 23
 
24
-    /**
25
-     * Output closing wrappers
26
-     *
27
-     * @since 1.9.0
28
-     */
29
-    public function wrapper_end(){ ?>
24
+	/**
25
+	 * Output closing wrappers
26
+	 *
27
+	 * @since 1.9.0
28
+	 */
29
+	public function wrapper_end(){ ?>
30 30
 
31 31
 			</div>
32 32
 		</div>
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
      * Output opening wrappers
14 14
      * @since 1.9.0
15 15
      */
16
-    public function wrapper_start(){
16
+    public function wrapper_start() {
17 17
     ?>
18 18
 
19 19
         <div id="primary" class="site-content">
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
      *
27 27
      * @since 1.9.0
28 28
      */
29
-    public function wrapper_end(){ ?>
29
+    public function wrapper_end() { ?>
30 30
 
31 31
 			</div>
32 32
 		</div>
Please login to merge, or discard this patch.
includes/class-sensei-language-pack-manager.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
 	 */
92 92
 	public static function has_language_pack_available( $locale = null ) {
93 93
 
94
-        if ( is_null( $locale ) ) {
94
+		if ( is_null( $locale ) ) {
95 95
 
96 96
 			$locale = get_locale();
97 97
 
@@ -109,11 +109,11 @@  discard block
 block discarded – undo
109 109
 
110 110
 		}
111 111
 
112
-        if( isset( $_GET['translation_updated'] ) && 5 ==  $_GET['translation_updated'] ){
112
+		if( isset( $_GET['translation_updated'] ) && 5 ==  $_GET['translation_updated'] ){
113 113
 
114
-            return false;
114
+			return false;
115 115
 
116
-        }
116
+		}
117 117
 
118 118
 		$version = get_option( 'woothemes_sensei_language_pack_version', array( '0', $locale ) );
119 119
 
Please login to merge, or discard this patch.
Spacing   +66 added lines, -66 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-if ( ! defined( 'ABSPATH' ) ) {
3
+if ( ! defined('ABSPATH')) {
4 4
 	exit; // Exit if accessed directly
5 5
 }
6 6
 
@@ -28,8 +28,8 @@  discard block
 block discarded – undo
28 28
 	 * Initialize the language pack manager
29 29
 	 */
30 30
 	public function __construct() {
31
-		add_action( 'update_option_WPLANG', array( $this, 'updated_language_option' ), 10, 2 );
32
-		add_filter( 'admin_init', array( $this, 'language_package_actions' ), 10 );
31
+		add_action('update_option_WPLANG', array($this, 'updated_language_option'), 10, 2);
32
+		add_filter('admin_init', array($this, 'language_package_actions'), 10);
33 33
 	}
34 34
 
35 35
 	/**
@@ -39,8 +39,8 @@  discard block
 block discarded – undo
39 39
 	 *
40 40
 	 * @return string
41 41
 	 */
42
-	public static function get_package_uri( $locale ) {
43
-		return self::$repo . Sensei()->version . '/packages/' . $locale . '.zip';
42
+	public static function get_package_uri($locale) {
43
+		return self::$repo.Sensei()->version.'/packages/'.$locale.'.zip';
44 44
 	}
45 45
 
46 46
 	/**
@@ -50,8 +50,8 @@  discard block
 block discarded – undo
50 50
 	 *
51 51
 	 * @return string
52 52
 	 */
53
-	protected static function get_settings_uri( $action ) {
54
-		return wp_nonce_url( admin_url( 'admin.php?page=woothemes-sensei-settings&action=' . $action ), 'language_pack', '_sensei_language_nonce' );
53
+	protected static function get_settings_uri($action) {
54
+		return wp_nonce_url(admin_url('admin.php?page=woothemes-sensei-settings&action='.$action), 'language_pack', '_sensei_language_nonce');
55 55
 	}
56 56
 
57 57
 	/**
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
 	 * @return string
61 61
 	 */
62 62
 	public static function get_install_uri() {
63
-		return self::get_settings_uri( 'language_pack_install' );
63
+		return self::get_settings_uri('language_pack_install');
64 64
 	}
65 65
 
66 66
 	/**
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
 	 * @return string
70 70
 	 */
71 71
 	public static function get_dismiss_uri() {
72
-		return self::get_settings_uri( 'dismiss_language_pack_notice' );
72
+		return self::get_settings_uri('dismiss_language_pack_notice');
73 73
 	}
74 74
 
75 75
 	/**
@@ -78,8 +78,8 @@  discard block
 block discarded – undo
78 78
 	 * @param string $old
79 79
 	 * @param string $new
80 80
 	 */
81
-	public function updated_language_option( $old, $new ) {
82
-		self::has_language_pack_available( $new );
81
+	public function updated_language_option($old, $new) {
82
+		self::has_language_pack_available($new);
83 83
 	}
84 84
 
85 85
 	/**
@@ -89,42 +89,42 @@  discard block
 block discarded – undo
89 89
 	 *
90 90
 	 * @return bool
91 91
 	 */
92
-	public static function has_language_pack_available( $locale = null ) {
92
+	public static function has_language_pack_available($locale = null) {
93 93
 
94
-        if ( is_null( $locale ) ) {
94
+        if (is_null($locale)) {
95 95
 
96 96
 			$locale = get_locale();
97 97
 
98 98
 		}
99 99
 
100
-		if ( 'en_US' === $locale ) {
100
+		if ('en_US' === $locale) {
101 101
 
102 102
 			return false;
103 103
 
104 104
 		}
105 105
 
106
-		if ( 'yes' === get_option( 'sensei_needs_language_pack_install' ) ) {
106
+		if ('yes' === get_option('sensei_needs_language_pack_install')) {
107 107
 
108 108
 			return true;
109 109
 
110 110
 		}
111 111
 
112
-        if( isset( $_GET['translation_updated'] ) && 5 ==  $_GET['translation_updated'] ){
112
+        if (isset($_GET['translation_updated']) && 5 == $_GET['translation_updated']) {
113 113
 
114 114
             return false;
115 115
 
116 116
         }
117 117
 
118
-		$version = get_option( 'woothemes_sensei_language_pack_version', array( '0', $locale ) );
118
+		$version = get_option('woothemes_sensei_language_pack_version', array('0', $locale));
119 119
 
120
-		if ( ! is_array( $version ) || version_compare( $version[0], Sensei()->version, '<' ) || $version[1] !== $locale ) {
121
-			if ( self::check_if_language_pack_exists( $locale ) ) {
122
-				update_option( 'sensei_needs_language_pack_install', 'yes' );
120
+		if ( ! is_array($version) || version_compare($version[0], Sensei()->version, '<') || $version[1] !== $locale) {
121
+			if (self::check_if_language_pack_exists($locale)) {
122
+				update_option('sensei_needs_language_pack_install', 'yes');
123 123
 
124 124
 				return true;
125 125
 			} else {
126 126
 				// Updated the woothemes_sensei_language_pack_version to avoid searching translations for this release again
127
-				self::update_language_pack_version( $locale );
127
+				self::update_language_pack_version($locale);
128 128
 			}
129 129
 		}
130 130
 
@@ -137,10 +137,10 @@  discard block
 block discarded – undo
137 137
 	 *
138 138
 	 * @return bool
139 139
 	 */
140
-	public static function check_if_language_pack_exists( $locale ) {
141
-		$response = wp_safe_remote_get( self::get_package_uri( $locale ), array( 'timeout' => 60 ) );
140
+	public static function check_if_language_pack_exists($locale) {
141
+		$response = wp_safe_remote_get(self::get_package_uri($locale), array('timeout' => 60));
142 142
 
143
-		if ( ! is_wp_error( $response ) && $response['response']['code'] >= 200 && $response['response']['code'] < 300 ) {
143
+		if ( ! is_wp_error($response) && $response['response']['code'] >= 200 && $response['response']['code'] < 300) {
144 144
 			return true;
145 145
 		} else {
146 146
 			return false;
@@ -152,12 +152,12 @@  discard block
 block discarded – undo
152 152
 	 *
153 153
 	 * @param string $locale
154 154
 	 */
155
-	public static function update_language_pack_version( $locale ) {
155
+	public static function update_language_pack_version($locale) {
156 156
 		// Update the language pack version
157
-		update_option( 'woothemes_sensei_language_pack_version', array( Sensei()->version, $locale ) );
157
+		update_option('woothemes_sensei_language_pack_version', array(Sensei()->version, $locale));
158 158
 
159 159
 		// Remove the translation upgrade notice
160
-		update_option( 'sensei_needs_language_pack_install', 'no' );
160
+		update_option('sensei_needs_language_pack_install', 'no');
161 161
 	}
162 162
 
163 163
 	/**
@@ -166,17 +166,17 @@  discard block
 block discarded – undo
166 166
 	public function language_package_actions() {
167 167
 		if (
168 168
 			is_admin()
169
-			&& current_user_can( 'update_plugins' )
170
-			&& isset( $_GET['page'] )
169
+			&& current_user_can('update_plugins')
170
+			&& isset($_GET['page'])
171 171
 			&& 'woothemes-sensei-settings' === $_GET['page']
172
-			&& isset( $_GET['action'] )
172
+			&& isset($_GET['action'])
173 173
 		) {
174 174
 
175
-			if ( 'language_pack_install' === $_GET['action'] ) {
175
+			if ('language_pack_install' === $_GET['action']) {
176 176
 				$this->language_pack_install();
177 177
 			}
178 178
 
179
-			if ( 'dismiss_language_pack_notice' ) {
179
+			if ('dismiss_language_pack_notice') {
180 180
 				$this->dismiss_language_pack_notice();
181 181
 			}
182 182
 		}
@@ -186,66 +186,66 @@  discard block
 block discarded – undo
186 186
 	 * Install language pack.
187 187
 	 */
188 188
 	protected function language_pack_install() {
189
-		$url          = wp_nonce_url( admin_url( 'admin.php?page=woothemes-sensei-settings&action=language_pack_install' ), 'language_install' );
190
-		$settings_url = admin_url( 'admin.php?page=woothemes-sensei-settings' );
189
+		$url          = wp_nonce_url(admin_url('admin.php?page=woothemes-sensei-settings&action=language_pack_install'), 'language_install');
190
+		$settings_url = admin_url('admin.php?page=woothemes-sensei-settings');
191 191
 		$locale       = get_locale();
192 192
 
193
-		if ( ! isset( $_REQUEST['_sensei_language_nonce'] ) && wp_verify_nonce( $_REQUEST['_sensei_language_nonce'], 'language_pack' ) ) {
194
-			wp_redirect( add_query_arg( array( 'translation_updated' => 2 ), $settings_url ) );
193
+		if ( ! isset($_REQUEST['_sensei_language_nonce']) && wp_verify_nonce($_REQUEST['_sensei_language_nonce'], 'language_pack')) {
194
+			wp_redirect(add_query_arg(array('translation_updated' => 2), $settings_url));
195 195
 			exit;
196 196
 		}
197 197
 
198
-		if ( 'en_US' === $locale || ! self::check_if_language_pack_exists( $locale ) ) {
199
-			wp_redirect( add_query_arg( array( 'translation_updated' => 3 ), $settings_url ) );
198
+		if ('en_US' === $locale || ! self::check_if_language_pack_exists($locale)) {
199
+			wp_redirect(add_query_arg(array('translation_updated' => 3), $settings_url));
200 200
 			exit;
201 201
 		}
202 202
 
203
-		if ( false === ( $creds = request_filesystem_credentials( $url, '', false, false, null ) ) ) {
204
-			wp_redirect( add_query_arg( array( 'translation_updated' => 4 ), $settings_url ) );
203
+		if (false === ($creds = request_filesystem_credentials($url, '', false, false, null))) {
204
+			wp_redirect(add_query_arg(array('translation_updated' => 4), $settings_url));
205 205
 			exit;
206 206
 		}
207 207
 
208
-		if ( ! WP_Filesystem( $creds ) ) {
209
-			request_filesystem_credentials( $url, '', true, false, null );
208
+		if ( ! WP_Filesystem($creds)) {
209
+			request_filesystem_credentials($url, '', true, false, null);
210 210
 
211
-			wp_redirect( add_query_arg( array( 'translation_updated' => 4 ), $settings_url ) );
211
+			wp_redirect(add_query_arg(array('translation_updated' => 4), $settings_url));
212 212
 			exit;
213 213
 		}
214 214
 
215 215
 		// Download the language pack
216
-		$response = wp_safe_remote_get( self::get_package_uri( $locale ), array( 'timeout' => 60 ) );
217
-		if ( ! is_wp_error( $response ) && $response['response']['code'] >= 200 && $response['response']['code'] < 300 ) {
216
+		$response = wp_safe_remote_get(self::get_package_uri($locale), array('timeout' => 60));
217
+		if ( ! is_wp_error($response) && $response['response']['code'] >= 200 && $response['response']['code'] < 300) {
218 218
 			global $wp_filesystem;
219 219
 
220 220
 			$upload_dir = wp_upload_dir();
221
-			$file       = trailingslashit( $upload_dir['path'] ) . $locale . '.zip';
221
+			$file       = trailingslashit($upload_dir['path']).$locale.'.zip';
222 222
 
223 223
 			// Save the zip file
224
-			if ( ! $wp_filesystem->put_contents( $file, $response['body'], FS_CHMOD_FILE ) ) {
225
-				wp_redirect( add_query_arg( array( 'translation_updated' => 4 ), $settings_url ) );
224
+			if ( ! $wp_filesystem->put_contents($file, $response['body'], FS_CHMOD_FILE)) {
225
+				wp_redirect(add_query_arg(array('translation_updated' => 4), $settings_url));
226 226
 				exit;
227 227
 			}
228 228
 
229 229
 			// Unzip the file to wp-content/languages/plugins directory
230
-			$dir   = trailingslashit( WP_LANG_DIR ) . 'plugins/';
231
-			$unzip = unzip_file( $file, $dir );
232
-			if ( true !== $unzip ) {
233
-				wp_redirect( add_query_arg( array( 'translation_updated' => 4 ), $settings_url ) );
230
+			$dir   = trailingslashit(WP_LANG_DIR).'plugins/';
231
+			$unzip = unzip_file($file, $dir);
232
+			if (true !== $unzip) {
233
+				wp_redirect(add_query_arg(array('translation_updated' => 4), $settings_url));
234 234
 				exit;
235 235
 			}
236 236
 
237 237
 			// Delete the package file
238
-			$wp_filesystem->delete( $file );
238
+			$wp_filesystem->delete($file);
239 239
 
240 240
 			// Update version and remove notice
241
-			self::update_language_pack_version( $locale );
241
+			self::update_language_pack_version($locale);
242 242
 
243 243
 			// Redirect and show a success message
244
-			wp_redirect( add_query_arg( array( 'translation_updated' => 1 ), $settings_url ) );
244
+			wp_redirect(add_query_arg(array('translation_updated' => 1), $settings_url));
245 245
 			exit;
246 246
 		} else {
247 247
 			// Don't have a valid package for the current language!
248
-			wp_redirect( add_query_arg( array( 'translation_updated' => 5 ), $settings_url ) );
248
+			wp_redirect(add_query_arg(array('translation_updated' => 5), $settings_url));
249 249
 			exit;
250 250
 		}
251 251
 	}
@@ -254,38 +254,38 @@  discard block
 block discarded – undo
254 254
 	 * Hide language pack notice.
255 255
 	 */
256 256
 	protected function dismiss_language_pack_notice() {
257
-		if ( ! isset( $_REQUEST['_sensei_language_nonce'] ) && wp_verify_nonce( $_REQUEST['_sensei_language_nonce'], 'language_pack' ) ) {
258
-			wp_die( __( 'Cheatin&#8217; huh?', 'woothemes-sensei' ) );
257
+		if ( ! isset($_REQUEST['_sensei_language_nonce']) && wp_verify_nonce($_REQUEST['_sensei_language_nonce'], 'language_pack')) {
258
+			wp_die(__('Cheatin&#8217; huh?', 'woothemes-sensei'));
259 259
 		}
260 260
 
261 261
 		// Update version and remove notice
262
-		self::update_language_pack_version( get_locale() );
262
+		self::update_language_pack_version(get_locale());
263 263
 	}
264 264
 
265 265
 	/**
266 266
 	 * Language pack messages
267 267
 	 */
268 268
 	public static function messages() {
269
-		if ( empty( $_GET['translation_updated'] ) ) {
269
+		if (empty($_GET['translation_updated'])) {
270 270
 			return;
271 271
 		}
272 272
 
273
-		switch ( $_GET['translation_updated'] ) {
273
+		switch ($_GET['translation_updated']) {
274 274
 			case 2 :
275
-				echo '<div class="error"><p>' . __( 'Failed to install/update the translation:', 'woothemes-sensei' ) . ' ' . __( 'Seems you don\'t have permission to do this!', 'woothemes-sensei' ) . '</p></div>';
275
+				echo '<div class="error"><p>'.__('Failed to install/update the translation:', 'woothemes-sensei').' '.__('Seems you don\'t have permission to do this!', 'woothemes-sensei').'</p></div>';
276 276
 				break;
277 277
 			case 3 :
278
-				echo '<div class="error"><p>' . __( 'Failed to install/update the translation:', 'woothemes-sensei' ) . ' ' . __( 'There is no translation available for your language!', 'woothemes-sensei' ) . '</p></div>';
278
+				echo '<div class="error"><p>'.__('Failed to install/update the translation:', 'woothemes-sensei').' '.__('There is no translation available for your language!', 'woothemes-sensei').'</p></div>';
279 279
 				break;
280 280
 			case 4 :
281
-				echo '<div class="error"><p>' . __( 'Failed to install/update the translation:', 'woothemes-sensei' ) . ' ' . sprintf( __( 'An authentication error occurred while updating the translation. Please try again or configure your %sUpgrade Constants%s.', 'woothemes-sensei' ), '<a href="http://codex.wordpress.org/Editing_wp-config.php#WordPress_Upgrade_Constants">', '</a>' ) . '</p></div>';
281
+				echo '<div class="error"><p>'.__('Failed to install/update the translation:', 'woothemes-sensei').' '.sprintf(__('An authentication error occurred while updating the translation. Please try again or configure your %sUpgrade Constants%s.', 'woothemes-sensei'), '<a href="http://codex.wordpress.org/Editing_wp-config.php#WordPress_Upgrade_Constants">', '</a>').'</p></div>';
282 282
 				break;
283 283
 			case 5 :
284
-				echo '<div class="error"><p>' . __( 'Failed to install/update the translation:', 'woothemes-sensei' ) . ' ' . __( 'Sorry but there is no translation available for your language =/', 'woothemes-sensei' ) . '</p></div>';
284
+				echo '<div class="error"><p>'.__('Failed to install/update the translation:', 'woothemes-sensei').' '.__('Sorry but there is no translation available for your language =/', 'woothemes-sensei').'</p></div>';
285 285
 				break;
286 286
 
287 287
 			default :
288
-				echo '<div class="updated"><p>' . __( 'Translations installed/updated successfully!', 'woothemes-sensei' ) . '</p></div>';
288
+				echo '<div class="updated"><p>'.__('Translations installed/updated successfully!', 'woothemes-sensei').'</p></div>';
289 289
 				break;
290 290
 		}
291 291
 	}
Please login to merge, or discard this patch.
includes/hooks/template.php 1 patch
Spacing   +89 added lines, -89 removed lines patch added patch discarded remove patch
@@ -18,10 +18,10 @@  discard block
 block discarded – undo
18 18
  *
19 19
  ***************************/
20 20
 //This hook allow us to change the template WordPress loads for a given page/post_type @since 1.9.0
21
-add_filter( 'template_include', array ( 'Sensei_Templates', 'template_loader' ), 10, 1 );
21
+add_filter('template_include', array('Sensei_Templates', 'template_loader'), 10, 1);
22 22
 
23 23
 //This hook adds the sensei pagination to the pagination hook
24
-add_action( 'sensei_pagination', array( 'Sensei_Frontend', 'load_content_pagination' ), 30 );
24
+add_action('sensei_pagination', array('Sensei_Frontend', 'load_content_pagination'), 30);
25 25
 
26 26
 
27 27
 /***************************
@@ -32,16 +32,16 @@  discard block
 block discarded – undo
32 32
  *
33 33
  ***************************/
34 34
 // deprecate the archive content hook @since 1.9.0
35
-add_action( 'sensei_archive_before_course_loop', array ( 'Sensei_Templates', 'deprecated_archive_course_content_hook' ), 10, 1 );
35
+add_action('sensei_archive_before_course_loop', array('Sensei_Templates', 'deprecated_archive_course_content_hook'), 10, 1);
36 36
 
37 37
 // Course archive title hook @since 1.9.0
38
-add_action('sensei_archive_before_course_loop', array( 'Sensei_Course', 'archive_header' ), 10, 0 );
38
+add_action('sensei_archive_before_course_loop', array('Sensei_Course', 'archive_header'), 10, 0);
39 39
 
40 40
 // add the course image above the content
41
-add_action('sensei_course_content_inside_before', array( Sensei()->course, 'course_image' ) ,10, 1 );
41
+add_action('sensei_course_content_inside_before', array(Sensei()->course, 'course_image'), 10, 1);
42 42
 
43 43
 // add course content title to the courses on the archive page
44
-add_action('sensei_course_content_inside_before', array( 'Sensei_Templates', 'the_title' ) ,5, 1 );
44
+add_action('sensei_course_content_inside_before', array('Sensei_Templates', 'the_title'), 5, 1);
45 45
 
46 46
 /***************************
47 47
  *
@@ -53,33 +53,33 @@  discard block
 block discarded – undo
53 53
 // @1.9.0
54 54
 // add deprecated action hooks for backwards compatibility sake
55 55
 // hooks on single course page: sensei_course_image , sensei_course_single_title, sensei_course_single_meta
56
-add_action('sensei_single_course_content_inside_before', array( 'Sensei_Templates', 'deprecated_single_course_inside_before_hooks' ), 80);
56
+add_action('sensei_single_course_content_inside_before', array('Sensei_Templates', 'deprecated_single_course_inside_before_hooks'), 80);
57 57
 
58 58
 // @1.9.0
59 59
 // hook the single course title on the single course page
60
-add_action( 'sensei_single_course_content_inside_before',array( 'Sensei_Course', 'the_title'), 10 );
60
+add_action('sensei_single_course_content_inside_before', array('Sensei_Course', 'the_title'), 10);
61 61
 
62 62
 // @1.9.0
63 63
 // hook the single course title on the single course page
64
-add_action( 'sensei_single_course_content_inside_before', array( Sensei()->course , 'course_image'), 20 );
64
+add_action('sensei_single_course_content_inside_before', array(Sensei()->course, 'course_image'), 20);
65 65
 
66 66
 
67 67
 // @1.9.0
68 68
 //Add legacy hooks deprecated in 1.9.0
69
-add_action( 'sensei_single_course_content_inside_before', array( 'Sensei_Templates','deprecate_course_single_meta_hooks'), 10 );
69
+add_action('sensei_single_course_content_inside_before', array('Sensei_Templates', 'deprecate_course_single_meta_hooks'), 10);
70 70
 
71 71
 // @1.9.0
72 72
 // Filter the content and replace it with the excerpt if the user doesn't have full access
73
-add_filter( 'the_content', array('Sensei_Course', 'single_course_content' ) );
73
+add_filter('the_content', array('Sensei_Course', 'single_course_content'));
74 74
 
75 75
 // @1.9.0
76 76
 // Deprecate lessons specific single course hooks
77
-add_action( 'sensei_single_course_content_inside_after', array( 'Sensei_Templates','deprecate_sensei_course_single_lessons_hook' ) );
77
+add_action('sensei_single_course_content_inside_after', array('Sensei_Templates', 'deprecate_sensei_course_single_lessons_hook'));
78 78
 
79 79
 // @1.9.0
80 80
 // Deprecate single main content hooks
81
-add_action( 'sensei_single_course_content_inside_after', array( 'Sensei_Templates', 'deprecated_single_main_content_hook') );
82
-add_action( 'sensei_single_message_content_inside_after', array( 'Sensei_Templates', 'deprecated_single_main_content_hook') );
81
+add_action('sensei_single_course_content_inside_after', array('Sensei_Templates', 'deprecated_single_main_content_hook'));
82
+add_action('sensei_single_message_content_inside_after', array('Sensei_Templates', 'deprecated_single_main_content_hook'));
83 83
 
84 84
 /**
85 85
  * Deprecate all the post type single titile hooks in favor of before content and after content hooks
@@ -87,62 +87,62 @@  discard block
 block discarded – undo
87 87
  * @deprecate 1.9.0
88 88
  * @1.9.0
89 89
  */
90
-add_action('sensei_single_message_content_inside_before', array( 'Sensei_Templates', 'deprecate_all_post_type_single_title_hooks' ) );
90
+add_action('sensei_single_message_content_inside_before', array('Sensei_Templates', 'deprecate_all_post_type_single_title_hooks'));
91 91
 
92 92
 /**
93 93
  * Deprecate hooks into the single course modules
94 94
  * @deprecated since 1.9.0
95 95
  */
96
-add_action('sensei_single_course_modules_before', array('Sensei_Templates','deprecate_module_before_hook' ) );
97
-add_action('sensei_single_course_modules_after', array('Sensei_Templates','deprecate_module_after_hook' ) );
96
+add_action('sensei_single_course_modules_before', array('Sensei_Templates', 'deprecate_module_before_hook'));
97
+add_action('sensei_single_course_modules_after', array('Sensei_Templates', 'deprecate_module_after_hook'));
98 98
 
99 99
 // @since 1.9.0
100 100
 // add the single course lessons title
101
-add_action( 'sensei_single_course_content_inside_after' , array( 'Sensei_Course','the_course_lessons_title'), 9 );
101
+add_action('sensei_single_course_content_inside_after', array('Sensei_Course', 'the_course_lessons_title'), 9);
102 102
 
103 103
 // @since 1.9.0
104 104
 // hooks in the course lessons query and remove it at the end
105 105
 // also loading the course lessons template in the middle
106
-add_action( 'sensei_single_course_lessons_before', array('Sensei_Course','load_single_course_lessons_query' ) );
107
-add_action( 'sensei_single_course_content_inside_after', 'course_single_lessons', 10 );
108
-add_action( 'sensei_single_course_lessons_after', array( 'Sensei_Utils','restore_wp_query' ));
106
+add_action('sensei_single_course_lessons_before', array('Sensei_Course', 'load_single_course_lessons_query'));
107
+add_action('sensei_single_course_content_inside_after', 'course_single_lessons', 10);
108
+add_action('sensei_single_course_lessons_after', array('Sensei_Utils', 'restore_wp_query'));
109 109
 
110 110
 // @since 1.9.0
111 111
 // add post classes to the lessons on the single course page
112
-add_filter( 'post_class', array( 'Sensei_Lesson', 'single_course_lessons_classes' ) );
112
+add_filter('post_class', array('Sensei_Lesson', 'single_course_lessons_classes'));
113 113
 
114 114
 // @since 1.9.0
115 115
 // lesson meta information on the single course page
116
-add_action( 'sensei_single_course_inside_before_lesson', array('Sensei_Lesson','the_lesson_meta') , 5);
116
+add_action('sensei_single_course_inside_before_lesson', array('Sensei_Lesson', 'the_lesson_meta'), 5);
117 117
 
118 118
 //@since 1.9.0
119 119
 // lesson image
120
-add_action( 'sensei_single_course_inside_before_lesson', array('Sensei_Lesson','the_lesson_thumbnail') , 8);
120
+add_action('sensei_single_course_inside_before_lesson', array('Sensei_Lesson', 'the_lesson_thumbnail'), 8);
121 121
 
122 122
 //@since 1.9.0
123 123
 // lesson custom excerpts
124
-add_filter( 'get_the_excerpt', array( 'Sensei_Lesson', 'alter_the_lesson_excerpt' ) );
124
+add_filter('get_the_excerpt', array('Sensei_Lesson', 'alter_the_lesson_excerpt'));
125 125
 
126 126
 // @since 1.9.0
127 127
 // run a deprecated hook for backwards compatibility sake
128
-add_action( 'sensei_single_course_modules_before', array( 'Sensei_Core_Modules', 'deprecate_sensei_single_course_modules_content'  ) );
128
+add_action('sensei_single_course_modules_before', array('Sensei_Core_Modules', 'deprecate_sensei_single_course_modules_content'));
129 129
 
130 130
 // @since 1.9.0
131 131
 // hook in the module loop intialization functionality
132
-add_action( 'sensei_single_course_modules_before', array( 'Sensei_Core_Modules', 'setup_single_course_module_loop' ) );
132
+add_action('sensei_single_course_modules_before', array('Sensei_Core_Modules', 'setup_single_course_module_loop'));
133 133
 
134 134
 // @since 1.9.0
135 135
 // hook in the module loop destructor functionality
136
-add_action( 'sensei_single_course_modules_after', array( 'Sensei_Core_Modules', 'teardown_single_course_module_loop' ) );
136
+add_action('sensei_single_course_modules_after', array('Sensei_Core_Modules', 'teardown_single_course_module_loop'));
137 137
 
138 138
 // @since 1.9.0
139 139
 // hook in the possible full content override to show instead of excerpt
140
-add_filter('get_the_excerpt', array( 'Sensei_Course', 'full_content_excerpt_override' ) );
140
+add_filter('get_the_excerpt', array('Sensei_Course', 'full_content_excerpt_override'));
141 141
 
142 142
 //@since 1.9.0
143 143
 //Course meta
144
-add_action( 'sensei_single_course_content_inside_before', array( 'Sensei_Course', 'the_course_enrolment_actions' ), 30 );
145
-add_action( 'sensei_single_course_content_inside_before', array( 'Sensei_Course' , 'the_course_video' ), 40 );
144
+add_action('sensei_single_course_content_inside_before', array('Sensei_Course', 'the_course_enrolment_actions'), 30);
145
+add_action('sensei_single_course_content_inside_before', array('Sensei_Course', 'the_course_video'), 40);
146 146
 
147 147
 /***************************
148 148
  *
@@ -153,54 +153,54 @@  discard block
 block discarded – undo
153 153
  ***************************/
154 154
 //@since 1.9.0
155 155
 // deprecate hooks no longer needed
156
-add_action( 'sensei_single_quiz_content_inside_before', array('Sensei_Quiz', 'deprecate_quiz_sensei_single_main_content_hook' ) );
157
-add_action( 'sensei_single_quiz_content_inside_before', array('Sensei_Quiz', 'deprecate_quiz_sensei_quiz_single_title_hook' ) );
156
+add_action('sensei_single_quiz_content_inside_before', array('Sensei_Quiz', 'deprecate_quiz_sensei_single_main_content_hook'));
157
+add_action('sensei_single_quiz_content_inside_before', array('Sensei_Quiz', 'deprecate_quiz_sensei_quiz_single_title_hook'));
158 158
 
159 159
 //@since 1.9.0
160 160
 // Single quiz title
161
-add_filter( 'the_title', array( 'Sensei_Quiz' , 'single_quiz_title' ), 20 , 2 ); // append Quiz
162
-add_action( 'sensei_single_quiz_content_inside_before', array( 'Sensei_Quiz', 'the_title' ), 20 ); //output single quiz
161
+add_filter('the_title', array('Sensei_Quiz', 'single_quiz_title'), 20, 2); // append Quiz
162
+add_action('sensei_single_quiz_content_inside_before', array('Sensei_Quiz', 'the_title'), 20); //output single quiz
163 163
 
164 164
 // since 1.9.0
165 165
 // initialize the quiz questions loop
166
-add_action( 'sensei_single_quiz_content_inside_before', array( 'Sensei_Quiz', 'start_quiz_questions_loop') );
166
+add_action('sensei_single_quiz_content_inside_before', array('Sensei_Quiz', 'start_quiz_questions_loop'));
167 167
 
168 168
 // since 1.9.0
169 169
 // hook in the quiz user message
170
-add_action( 'sensei_single_quiz_content_inside_before', array( 'Sensei_Quiz', 'the_user_status_message' ), 40 );
170
+add_action('sensei_single_quiz_content_inside_before', array('Sensei_Quiz', 'the_user_status_message'), 40);
171 171
 
172 172
 //@since 1.9.0
173 173
 // hook in the question title, description and quesiton media
174
-add_action( 'sensei_quiz_question_inside_before', array( 'Sensei_Question','the_question_title' ), 10 );
175
-add_action( 'sensei_quiz_question_inside_before', array( 'Sensei_Question','the_question_description' ), 20 );
176
-add_action( 'sensei_quiz_question_inside_before', array( 'Sensei_Question','the_question_media' ), 30 );
177
-add_action( 'sensei_quiz_question_inside_before', array( 'Sensei_Question','the_question_hidden_fields' ), 40 );
174
+add_action('sensei_quiz_question_inside_before', array('Sensei_Question', 'the_question_title'), 10);
175
+add_action('sensei_quiz_question_inside_before', array('Sensei_Question', 'the_question_description'), 20);
176
+add_action('sensei_quiz_question_inside_before', array('Sensei_Question', 'the_question_media'), 30);
177
+add_action('sensei_quiz_question_inside_before', array('Sensei_Question', 'the_question_hidden_fields'), 40);
178 178
 
179 179
 //@since 1.9.0
180 180
 // hook in incorrect / correct message above questions if the quiz has been graded
181
-add_action( 'sensei_quiz_question_inside_before', array( 'Sensei_Question', 'the_answer_result_indication' ), 50 );
181
+add_action('sensei_quiz_question_inside_before', array('Sensei_Question', 'the_answer_result_indication'), 50);
182 182
 
183 183
 //@since 1.9.0
184 184
 // add answer grading feedback at the bottom of the question
185
-add_action( 'sensei_quiz_question_inside_after', array( 'Sensei_Question', 'answer_feedback_notes' ) );
185
+add_action('sensei_quiz_question_inside_after', array('Sensei_Question', 'answer_feedback_notes'));
186 186
 
187 187
 //@since 1.9.0
188 188
 // add extra question data for different quesiton types when get_question_template_data_is_called.
189
-add_filter( 'sensei_get_question_template_data', array( 'Sensei_Question','multiple_choice_load_question_data'), 10, 3);
190
-add_filter( 'sensei_get_question_template_data', array( 'Sensei_Question','gap_fill_load_question_data'), 10, 3);
191
-add_filter( 'sensei_get_question_template_data', array( 'Sensei_Question','file_upload_load_question_data'), 10, 3);
189
+add_filter('sensei_get_question_template_data', array('Sensei_Question', 'multiple_choice_load_question_data'), 10, 3);
190
+add_filter('sensei_get_question_template_data', array('Sensei_Question', 'gap_fill_load_question_data'), 10, 3);
191
+add_filter('sensei_get_question_template_data', array('Sensei_Question', 'file_upload_load_question_data'), 10, 3);
192 192
 
193 193
 //@since 1.9.0
194 194
 // deprecate the quiz button action
195
-add_action( 'sensei_single_quiz_questions_after', array( 'Sensei_Quiz', 'action_buttons' ), 10, 0 );
195
+add_action('sensei_single_quiz_questions_after', array('Sensei_Quiz', 'action_buttons'), 10, 0);
196 196
 
197 197
 //@since 1.9.0
198 198
 // deprecate the sensei_complete_quiz hook
199
-add_action( 'sensei_single_quiz_content_inside_before', array( 'Sensei_Templates', 'deprecate_sensei_complete_quiz_action' ));
199
+add_action('sensei_single_quiz_content_inside_before', array('Sensei_Templates', 'deprecate_sensei_complete_quiz_action'));
200 200
 
201 201
 //@since 1.9.0
202 202
 // deprecate the sensei_quiz_question_type hook
203
-add_action( 'sensei_quiz_question_inside_after', array( 'Sensei_Templates', 'deprecate_sensei_quiz_question_type_action' ));
203
+add_action('sensei_quiz_question_inside_after', array('Sensei_Templates', 'deprecate_sensei_quiz_question_type_action'));
204 204
 
205 205
 /***************************
206 206
  *
@@ -211,63 +211,63 @@  discard block
 block discarded – undo
211 211
  ***************************/
212 212
 //@since 1.9.0
213 213
 // deprecate the main content hook on the single lesson page
214
-add_action( 'sensei_single_lesson_content_inside_before', array( 'Sensei_Templates', 'deprecate_lesson_single_main_content_hook' ), 20);
214
+add_action('sensei_single_lesson_content_inside_before', array('Sensei_Templates', 'deprecate_lesson_single_main_content_hook'), 20);
215 215
 
216 216
 //@since 1.9.0
217 217
 // hook in the lesson image on the single lesson
218
-add_action( 'sensei_single_lesson_content_inside_before', array( 'Sensei_Lesson', 'the_lesson_image' ), 17 );
218
+add_action('sensei_single_lesson_content_inside_before', array('Sensei_Lesson', 'the_lesson_image'), 17);
219 219
 
220 220
 //@since 1.9.0
221 221
 // hook in the lesson image on the single lesson deprecated hook function
222
-add_action( 'sensei_single_lesson_content_inside_before', array( 'Sensei_Templates','deprecate_lesson_image_hook' ), 10 );
222
+add_action('sensei_single_lesson_content_inside_before', array('Sensei_Templates', 'deprecate_lesson_image_hook'), 10);
223 223
 
224 224
 //@since 1.9.0
225 225
 // hook in the lesson single title deprecated function
226
-add_action( 'sensei_single_lesson_content_inside_before', array( 'Sensei_Templates', 'deprecate_sensei_lesson_single_title' ), 15 );
226
+add_action('sensei_single_lesson_content_inside_before', array('Sensei_Templates', 'deprecate_sensei_lesson_single_title'), 15);
227 227
 
228 228
 // @since 1.9.0
229 229
 // hook in the sensei lesson user notices
230
-add_action( 'sensei_single_lesson_content_inside_before', array( 'Sensei_Lesson', 'user_not_taking_course_message' ), 15 );
230
+add_action('sensei_single_lesson_content_inside_before', array('Sensei_Lesson', 'user_not_taking_course_message'), 15);
231 231
 
232 232
 // @since 1.9.0
233 233
 // attach the lesson title
234
-add_action( 'sensei_single_lesson_content_inside_before', array( 'Sensei_Lesson', 'the_title' ), 15 );
234
+add_action('sensei_single_lesson_content_inside_before', array('Sensei_Lesson', 'the_title'), 15);
235 235
 
236 236
 //@since 1.9.0
237 237
 // hook in the lesson image on the single lesson
238
-add_action( 'sensei_single_lesson_content_inside_before', array( 'Sensei_Lesson', 'user_lesson_quiz_status_message' ), 20 );
238
+add_action('sensei_single_lesson_content_inside_before', array('Sensei_Lesson', 'user_lesson_quiz_status_message'), 20);
239 239
 
240 240
 // @since 1.9.0
241 241
 // add the single lesson meta
242
-add_action( 'sensei_single_lesson_content_inside_after', 'sensei_the_single_lesson_meta', 10 );
242
+add_action('sensei_single_lesson_content_inside_after', 'sensei_the_single_lesson_meta', 10);
243 243
 
244 244
 // @since 1.9.0
245 245
 // deprecate the sensei_lesson_single_meta hook
246
-add_action( 'sensei_single_lesson_content_inside_after', array( 'Sensei_Templates', 'deprecate_sensei_lesson_single_meta_hook' ), 15 );
246
+add_action('sensei_single_lesson_content_inside_after', array('Sensei_Templates', 'deprecate_sensei_lesson_single_meta_hook'), 15);
247 247
 
248 248
 // @since 1.9.0
249 249
 // deprecate the sensei_lesson_course_signup hook
250
-add_action( 'sensei_single_lesson_content_inside_after', array( 'Sensei_Templates','deprecate_sensei_lesson_course_signup_hook' ), 20 );
250
+add_action('sensei_single_lesson_content_inside_after', array('Sensei_Templates', 'deprecate_sensei_lesson_course_signup_hook'), 20);
251 251
 
252 252
 // @since 1.9.0
253 253
 // hook in the lesson prerequisite completion message
254
-add_action( 'sensei_single_lesson_content_inside_after', array( 'Sensei_Lesson', 'prerequisite_complete_message' ), 20 );
254
+add_action('sensei_single_lesson_content_inside_after', array('Sensei_Lesson', 'prerequisite_complete_message'), 20);
255 255
 
256 256
 // @since 1.9.0
257 257
 // hook the single lesson course_signup_link
258
-add_action( 'sensei_single_lesson_content_inside_after', array( 'Sensei_Lesson', 'course_signup_link' ), 30 );
258
+add_action('sensei_single_lesson_content_inside_after', array('Sensei_Lesson', 'course_signup_link'), 30);
259 259
 
260 260
 // @since 1.9.0
261 261
 // hook the deprecate breadcrumbs and comments hooks
262
-add_action( 'sensei_after_main_content', array( 'Sensei_Templates', 'deprecate_single_lesson_breadcrumbs_and_comments_hooks'), 5 );
262
+add_action('sensei_after_main_content', array('Sensei_Templates', 'deprecate_single_lesson_breadcrumbs_and_comments_hooks'), 5);
263 263
 
264 264
 // @since 1.9.0
265 265
 // Add the quiz specific buttons and notices to the lesson
266
-add_action( 'sensei_single_lesson_content_inside_after', array('Sensei_Lesson', 'footer_quiz_call_to_action' ));
266
+add_action('sensei_single_lesson_content_inside_after', array('Sensei_Lesson', 'footer_quiz_call_to_action'));
267 267
 
268 268
 // @since 1.9.0
269 269
 // hook in the comments on the single lessons page
270
-add_action( 'sensei_pagination', array( 'Sensei_Lesson', 'output_comments' ), 90 );
270
+add_action('sensei_pagination', array('Sensei_Lesson', 'output_comments'), 90);
271 271
 
272 272
 /**********************
273 273
  *
@@ -277,9 +277,9 @@  discard block
 block discarded – undo
277 277
  *
278 278
  ************************/
279 279
 
280
-add_action( 'sensei_single_message_content_inside_before', array( 'Sensei_Messages', 'the_title' ), 20 );
280
+add_action('sensei_single_message_content_inside_before', array('Sensei_Messages', 'the_title'), 20);
281 281
 
282
-add_action( 'sensei_single_message_content_inside_before', array( 'Sensei_Messages', 'the_message_sent_by_title' ), 40 );
282
+add_action('sensei_single_message_content_inside_before', array('Sensei_Messages', 'the_message_sent_by_title'), 40);
283 283
 
284 284
 /*************************
285 285
  *
@@ -291,15 +291,15 @@  discard block
 block discarded – undo
291 291
 
292 292
 // deprecate the sensei_lesson_archive_header hook
293 293
 // @deprecated since 1.9.0
294
-add_action( 'sensei_loop_lesson_inside_before', array( 'Sensei_Lesson', 'deprecate_sensei_lesson_archive_header_hook' ), 20 );
294
+add_action('sensei_loop_lesson_inside_before', array('Sensei_Lesson', 'deprecate_sensei_lesson_archive_header_hook'), 20);
295 295
 
296 296
 // @1.9.0
297 297
 //The archive title header on the lesson archive loop
298
-add_action( 'sensei_loop_lesson_inside_before', array( Sensei()->lesson, 'the_archive_header' ), 20 );
298
+add_action('sensei_loop_lesson_inside_before', array(Sensei()->lesson, 'the_archive_header'), 20);
299 299
 
300 300
 // @since 1.9.0
301 301
 //Output the lesson header on the content-lesson.php which runs inside the lessons loop
302
-add_action( 'sensei_content_lesson_inside_before', array( 'Sensei_Lesson', 'the_lesson_meta' ), 20 );
302
+add_action('sensei_content_lesson_inside_before', array('Sensei_Lesson', 'the_lesson_meta'), 20);
303 303
 
304 304
 /**************************
305 305
  *
@@ -310,15 +310,15 @@  discard block
 block discarded – undo
310 310
  **************************/
311 311
 // @since 1.9.0
312 312
 // deprecate the learner profile content hook as the markup code is added in the template directly.
313
-add_action('sensei_learner_profile_content_before', array( 'Sensei_Learner_Profiles', 'deprecate_sensei_learner_profile_content_hook' ) );
313
+add_action('sensei_learner_profile_content_before', array('Sensei_Learner_Profiles', 'deprecate_sensei_learner_profile_content_hook'));
314 314
 
315 315
 // @since 1.9.0
316 316
 // do the sensei complete course action on the learner profiles page.
317
-add_action('sensei_learner_profile_content_before', array( 'Sensei_Templates', 'fire_sensei_complete_course_hook' ) );
317
+add_action('sensei_learner_profile_content_before', array('Sensei_Templates', 'fire_sensei_complete_course_hook'));
318 318
 
319 319
 // @since 1.9.0
320 320
 // fire the frontend messages hook before the profile content
321
-add_action('sensei_learner_profile_inside_content_before', array( 'Sensei_Templates', 'fire_frontend_messages_hook' ) );
321
+add_action('sensei_learner_profile_inside_content_before', array('Sensei_Templates', 'fire_frontend_messages_hook'));
322 322
 
323 323
 
324 324
 /**********************************
@@ -331,23 +331,23 @@  discard block
 block discarded – undo
331 331
 
332 332
 // @since 1.9.0
333 333
 // fire the deprecated hook function within the course-result.php file
334
-add_action( 'sensei_course_results_content_before', array('Sensei_Course_Results','deprecate_sensei_course_results_content_hook') );
334
+add_action('sensei_course_results_content_before', array('Sensei_Course_Results', 'deprecate_sensei_course_results_content_hook'));
335 335
 
336 336
 // @since 1.9.0
337 337
 // fire the sensei message hooke inside the course-result.php file
338
-add_action( 'sensei_course_results_content_inside_before', array('Sensei_Course_Results','fire_sensei_message_hook') );
338
+add_action('sensei_course_results_content_inside_before', array('Sensei_Course_Results', 'fire_sensei_message_hook'));
339 339
 
340 340
 // @since 1.9.0
341 341
 // load the course information on the course results page
342
-add_action( 'sensei_course_results_content_inside_after', array( Sensei()->course_results,'course_info') );
342
+add_action('sensei_course_results_content_inside_after', array(Sensei()->course_results, 'course_info'));
343 343
 
344 344
 // @since 1.9.0
345 345
 // deprecate the course results top hook in favour of a new hook
346
-add_action( 'sensei_course_results_content_inside_before', array( 'Sensei_Course_Results', 'deprecate_course_results_top_hook') );
346
+add_action('sensei_course_results_content_inside_before', array('Sensei_Course_Results', 'deprecate_course_results_top_hook'));
347 347
 
348 348
 // @since 1.9.0
349 349
 // Fire the course image hook within the course results page
350
-add_action( 'sensei_course_results_content_inside_before', array( 'Sensei_Course_Results', 'fire_course_image_hook') );
350
+add_action('sensei_course_results_content_inside_before', array('Sensei_Course_Results', 'fire_course_image_hook'));
351 351
 
352 352
 
353 353
 /**********************************
@@ -359,19 +359,19 @@  discard block
 block discarded – undo
359 359
  ********************************/
360 360
 // @since 1.9.0
361 361
 // fire the sensei complete course action on the my courses template
362
-add_action( 'sensei_my_courses_before', array( 'Sensei_Templates', 'fire_sensei_complete_course_hook' ) );
362
+add_action('sensei_my_courses_before', array('Sensei_Templates', 'fire_sensei_complete_course_hook'));
363 363
 
364 364
 // @since 1.9.0
365 365
 // fire the sensei frontend messages hook before the my-courses content
366
-add_action('sensei_my_courses_content_inside_before', array( 'Sensei_Templates', 'fire_frontend_messages_hook' ) );
366
+add_action('sensei_my_courses_content_inside_before', array('Sensei_Templates', 'fire_frontend_messages_hook'));
367 367
 
368 368
 // @since 1.9.0
369 369
 // deprecate the sensei_before_user_course_content hook
370
-add_action('sensei_my_courses_content_inside_before', array( 'Sensei_Templates', 'deprecate_sensei_before_user_course_content_hook' ) );
370
+add_action('sensei_my_courses_content_inside_before', array('Sensei_Templates', 'deprecate_sensei_before_user_course_content_hook'));
371 371
 
372 372
 // @since 1.9.0
373 373
 // deprecate the sensei_after_user_course_content hook
374
-add_action('sensei_my_courses_content_inside_after', array( 'Sensei_Templates', 'deprecate_sensei_after_user_course_content_hook' ) );
374
+add_action('sensei_my_courses_content_inside_after', array('Sensei_Templates', 'deprecate_sensei_after_user_course_content_hook'));
375 375
 
376 376
 /**********************************
377 377
  *
@@ -383,7 +383,7 @@  discard block
 block discarded – undo
383 383
 // @since 1.9.0
384 384
 // deprecate the sensei_login_form hok which was use to load the login form.
385 385
 // This now loads independent of the my-courses template which helps keep templates free from logic
386
-add_action( 'sensei_login_form_before', array( 'Sensei_Templates', 'deprecate_sensei_login_form_hook' ) );
386
+add_action('sensei_login_form_before', array('Sensei_Templates', 'deprecate_sensei_login_form_hook'));
387 387
 
388 388
 /**********************************
389 389
  *
@@ -394,16 +394,16 @@  discard block
 block discarded – undo
394 394
  ********************************/
395 395
 // @since 1.9.0
396 396
 // Deprecate the archive messages hooks no longer supported
397
-add_action( 'sensei_archive_before_message_loop', array( 'Sensei_Templates', 'deprecated_archive_message_hooks' ) );
397
+add_action('sensei_archive_before_message_loop', array('Sensei_Templates', 'deprecated_archive_message_hooks'));
398 398
 
399 399
 // @since 1.9.0
400 400
 // Deprecate the archive messages hooks no longer supported
401
-add_action( 'sensei_archive_before_message_loop', array( 'Sensei_Messages', 'the_archive_header' ) );
401
+add_action('sensei_archive_before_message_loop', array('Sensei_Messages', 'the_archive_header'));
402 402
 
403 403
 // @since 1.9.0
404 404
 // output the message title and the message sensei
405
-add_action( 'sensei_content_message_before', array( 'Sensei_Messages', 'the_message_title' ), 10, 1 );
406
-add_action( 'sensei_content_message_before', array( 'Sensei_Messages', 'the_message_sender' ), 20 , 1 );
405
+add_action('sensei_content_message_before', array('Sensei_Messages', 'the_message_title'), 10, 1);
406
+add_action('sensei_content_message_before', array('Sensei_Messages', 'the_message_sender'), 20, 1);
407 407
 
408 408
 /**********************************
409 409
  *
@@ -412,7 +412,7 @@  discard block
 block discarded – undo
412 412
  *
413 413
  *
414 414
  **********************************/
415
-add_action( 'sensei_loop_course_before', array( 'Sensei_Course', 'course_category_title' ), 70 , 1 );
415
+add_action('sensei_loop_course_before', array('Sensei_Course', 'course_category_title'), 70, 1);
416 416
 
417 417
 /**********************************
418 418
  *
@@ -423,9 +423,9 @@  discard block
 block discarded – undo
423 423
  **********************************/
424 424
 //@since 1.9.0
425 425
 //add a title to the teacher archive page when viewn siteurl/author/{teacher-username}
426
-add_action( 'sensei_teacher_archive_course_loop_before', array( 'Sensei_Teacher', 'archive_title' ) );
426
+add_action('sensei_teacher_archive_course_loop_before', array('Sensei_Teacher', 'archive_title'));
427 427
 
428 428
 //@since 1.9.0
429 429
 // remove course meta from the teacher page until it can be refactored to allow only removing the
430 430
 // teacher name and not all lessons
431
-add_action( 'sensei_teacher_archive_course_loop_before', array( 'Sensei_Teacher', 'remove_course_meta_on_teacher_archive' ) );
431
+add_action('sensei_teacher_archive_course_loop_before', array('Sensei_Teacher', 'remove_course_meta_on_teacher_archive'));
Please login to merge, or discard this patch.
templates/single-message.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@  discard block
 block discarded – undo
11 11
  */
12 12
 ?>
13 13
 
14
-<?php  get_sensei_header();  ?>
14
+<?php  get_sensei_header(); ?>
15 15
 
16 16
 <article <?php post_class(); ?> >
17 17
 
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
      * @hooked WooThemes_Sensei_Messages::the_title                 - 20
27 27
      * @hooked WooThemes_Sensei_Messages::the_message_sent_by_title - 40
28 28
      */
29
-    do_action( 'sensei_single_message_content_inside_before', get_the_ID());
29
+    do_action('sensei_single_message_content_inside_before', get_the_ID());
30 30
     ?>
31 31
 
32 32
     <section class="entry">
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
      *
44 44
      * @param integer $message_id
45 45
      */
46
-    do_action( 'sensei_single_message_content_inside_after', get_the_ID());
46
+    do_action('sensei_single_message_content_inside_after', get_the_ID());
47 47
 
48 48
     ?>
49 49
 </article><!-- .post -->
Please login to merge, or discard this patch.
Indentation   +29 added lines, -29 removed lines patch added patch discarded remove patch
@@ -1,14 +1,14 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * The Template for displaying all single messages.
4
- *
5
- * Override this template by copying it to yourtheme/sensei/single-message.php
6
- *
7
- * @author 		Automattic
8
- * @package 	Sensei
9
- * @category    Templates
10
- * @version     1.9.0
11
- */
3
+		 * The Template for displaying all single messages.
4
+		 *
5
+		 * Override this template by copying it to yourtheme/sensei/single-message.php
6
+		 *
7
+		 * @author 		Automattic
8
+		 * @package 	Sensei
9
+		 * @category    Templates
10
+		 * @version     1.9.0
11
+		 */
12 12
 ?>
13 13
 
14 14
 <?php  get_sensei_header();  ?>
@@ -16,18 +16,18 @@  discard block
 block discarded – undo
16 16
 <article <?php post_class(); ?> >
17 17
 
18 18
     <?php
19
-    /**
20
-     * Action inside the single message template before the content
21
-     *
22
-     * @since 1.9.0
23
-     *
24
-     * @param integer $message_id
25
-     *
26
-     * @hooked WooThemes_Sensei_Messages::the_title                 - 20
27
-     * @hooked WooThemes_Sensei_Messages::the_message_sent_by_title - 40
28
-     */
29
-    do_action( 'sensei_single_message_content_inside_before', get_the_ID());
30
-    ?>
19
+	/**
20
+	 * Action inside the single message template before the content
21
+	 *
22
+	 * @since 1.9.0
23
+	 *
24
+	 * @param integer $message_id
25
+	 *
26
+	 * @hooked WooThemes_Sensei_Messages::the_title                 - 20
27
+	 * @hooked WooThemes_Sensei_Messages::the_message_sent_by_title - 40
28
+	 */
29
+	do_action( 'sensei_single_message_content_inside_before', get_the_ID());
30
+	?>
31 31
 
32 32
     <section class="entry">
33 33
 
@@ -37,15 +37,15 @@  discard block
 block discarded – undo
37 37
 
38 38
     <?php
39 39
 
40
-    /**
41
-     * action inside the single message template after the content
42
-     * @since 1.9.0
43
-     *
44
-     * @param integer $message_id
45
-     */
46
-    do_action( 'sensei_single_message_content_inside_after', get_the_ID());
40
+	/**
41
+	 * action inside the single message template after the content
42
+	 * @since 1.9.0
43
+	 *
44
+	 * @param integer $message_id
45
+	 */
46
+	do_action( 'sensei_single_message_content_inside_after', get_the_ID());
47 47
 
48
-    ?>
48
+	?>
49 49
 </article><!-- .post -->
50 50
 
51 51
 <?php get_sensei_footer(); ?>
Please login to merge, or discard this patch.
templates/single-lesson.php 2 patches
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -11,11 +11,11 @@  discard block
 block discarded – undo
11 11
  */
12 12
 ?>
13 13
 
14
-<?php  get_sensei_header();  ?>
14
+<?php  get_sensei_header(); ?>
15 15
 
16 16
 <?php the_post(); ?>
17 17
 
18
-<article <?php post_class( array( 'lesson', 'post' ) ); ?>>
18
+<article <?php post_class(array('lesson', 'post')); ?>>
19 19
 
20 20
     <?php
21 21
 
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
          * @hooked Sensei_Lesson::lesson_image() -  17
32 32
          * @hooked deprecate_lesson_single_main_content_hook - 20
33 33
          */
34
-        do_action( 'sensei_single_lesson_content_inside_before', get_the_ID() );
34
+        do_action('sensei_single_lesson_content_inside_before', get_the_ID());
35 35
 
36 36
     ?>
37 37
 
@@ -39,11 +39,11 @@  discard block
 block discarded – undo
39 39
 
40 40
         <?php
41 41
 
42
-        if ( sensei_can_user_view_lesson() ) {
42
+        if (sensei_can_user_view_lesson()) {
43 43
 
44
-            if( apply_filters( 'sensei_video_position', 'top', $post->ID ) == 'top' ) {
44
+            if (apply_filters('sensei_video_position', 'top', $post->ID) == 'top') {
45 45
 
46
-                do_action( 'sensei_lesson_video', $post->ID );
46
+                do_action('sensei_lesson_video', $post->ID);
47 47
 
48 48
             }
49 49
 
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
          *
73 73
          * @hooked Sensei()->frontend->sensei_breadcrumb   - 30
74 74
          */
75
-        do_action( 'sensei_single_lesson_content_inside_after', get_the_ID() );
75
+        do_action('sensei_single_lesson_content_inside_after', get_the_ID());
76 76
 
77 77
     ?>
78 78
 
Please login to merge, or discard this patch.
Indentation   +45 added lines, -45 removed lines patch added patch discarded remove patch
@@ -1,14 +1,14 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * The Template for displaying all single lessons.
4
- *
5
- * Override this template by copying it to yourtheme/sensei/single-lesson.php
6
- *
7
- * @author 		Automattic
8
- * @package 	Sensei
9
- * @category    Templates
10
- * @version     1.9.0
11
- */
3
+	 * The Template for displaying all single lessons.
4
+	 *
5
+	 * Override this template by copying it to yourtheme/sensei/single-lesson.php
6
+	 *
7
+	 * @author 		Automattic
8
+	 * @package 	Sensei
9
+	 * @category    Templates
10
+	 * @version     1.9.0
11
+	 */
12 12
 ?>
13 13
 
14 14
 <?php  get_sensei_header();  ?>
@@ -19,62 +19,62 @@  discard block
 block discarded – undo
19 19
 
20 20
     <?php
21 21
 
22
-        /**
23
-         * Hook inside the single lesson above the content
24
-         *
25
-         * @since 1.9.0
26
-         *
27
-         * @param integer $lesson_id
28
-         *
29
-         * @hooked deprecated_lesson_image_hook - 10
30
-         * @hooked deprecate_sensei_lesson_single_title - 15
31
-         * @hooked Sensei_Lesson::lesson_image() -  17
32
-         * @hooked deprecate_lesson_single_main_content_hook - 20
33
-         */
34
-        do_action( 'sensei_single_lesson_content_inside_before', get_the_ID() );
35
-
36
-    ?>
22
+		/**
23
+		 * Hook inside the single lesson above the content
24
+		 *
25
+		 * @since 1.9.0
26
+		 *
27
+		 * @param integer $lesson_id
28
+		 *
29
+		 * @hooked deprecated_lesson_image_hook - 10
30
+		 * @hooked deprecate_sensei_lesson_single_title - 15
31
+		 * @hooked Sensei_Lesson::lesson_image() -  17
32
+		 * @hooked deprecate_lesson_single_main_content_hook - 20
33
+		 */
34
+		do_action( 'sensei_single_lesson_content_inside_before', get_the_ID() );
35
+
36
+	?>
37 37
 
38 38
     <section class="entry fix">
39 39
 
40 40
         <?php
41 41
 
42
-        if ( sensei_can_user_view_lesson() ) {
42
+		if ( sensei_can_user_view_lesson() ) {
43 43
 
44
-            if( apply_filters( 'sensei_video_position', 'top', $post->ID ) == 'top' ) {
44
+			if( apply_filters( 'sensei_video_position', 'top', $post->ID ) == 'top' ) {
45 45
 
46
-                do_action( 'sensei_lesson_video', $post->ID );
46
+				do_action( 'sensei_lesson_video', $post->ID );
47 47
 
48
-            }
48
+			}
49 49
 
50
-            the_content();
50
+			the_content();
51 51
 
52
-        } else {
53
-            ?>
52
+		} else {
53
+			?>
54 54
 
55 55
                 <p> <?php the_excerpt(); ?> </p>
56 56
 
57 57
             <?php
58
-        }
58
+		}
59 59
 
60
-        ?>
60
+		?>
61 61
 
62 62
     </section>
63 63
 
64 64
     <?php
65 65
 
66
-        /**
67
-         * Hook inside the single lesson template after the content
68
-         *
69
-         * @since 1.9.0
70
-         *
71
-         * @param integer $lesson_id
72
-         *
73
-         * @hooked Sensei()->frontend->sensei_breadcrumb   - 30
74
-         */
75
-        do_action( 'sensei_single_lesson_content_inside_after', get_the_ID() );
76
-
77
-    ?>
66
+		/**
67
+		 * Hook inside the single lesson template after the content
68
+		 *
69
+		 * @since 1.9.0
70
+		 *
71
+		 * @param integer $lesson_id
72
+		 *
73
+		 * @hooked Sensei()->frontend->sensei_breadcrumb   - 30
74
+		 */
75
+		do_action( 'sensei_single_lesson_content_inside_after', get_the_ID() );
76
+
77
+	?>
78 78
 
79 79
 </article><!-- .post -->
80 80
 
Please login to merge, or discard this patch.
templates/course-results.php 2 patches
Indentation   +47 added lines, -47 removed lines patch added patch discarded remove patch
@@ -1,26 +1,26 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * The Template for displaying course archives, including the course page template.
4
- *
5
- * Override this template by copying it to yourtheme/sensei/archive-course.php
6
- *
7
- * @author 		Automattic
8
- * @package 	Sensei
9
- * @category    Templates
10
- * @version     1.9.0
11
- */
3
+	 * The Template for displaying course archives, including the course page template.
4
+	 *
5
+	 * Override this template by copying it to yourtheme/sensei/archive-course.php
6
+	 *
7
+	 * @author 		Automattic
8
+	 * @package 	Sensei
9
+	 * @category    Templates
10
+	 * @version     1.9.0
11
+	 */
12 12
 ?>
13 13
 
14 14
 <?php  get_sensei_header();  ?>
15 15
 
16 16
 <?php
17 17
 /**
18
- * This hook fire inside learner-profile.php before the content
19
- *
20
- * @since 1.9.0
21
- *
22
- * @hooked Sensei_Course_Results::deprecate_sensei_course_results_content_hook() - 20
23
- */
18
+	 * This hook fire inside learner-profile.php before the content
19
+	 *
20
+	 * @since 1.9.0
21
+	 *
22
+	 * @hooked Sensei_Course_Results::deprecate_sensei_course_results_content_hook() - 20
23
+	 */
24 24
 do_action( 'sensei_course_results_content_before' );
25 25
 ?>
26 26
 
@@ -34,17 +34,17 @@  discard block
 block discarded – undo
34 34
     <section class="entry fix">
35 35
 
36 36
         <?php
37
-        /**
38
-         * This hook fire inside learner-profile.php inside directly before the content
39
-         *
40
-         * @since 1.9.0
41
-         *
42
-         * @param integer $course_id
43
-         *
44
-         * @hooked Sensei_Course_Results::fire_sensei_message_hook() - 20
45
-         */
46
-        do_action( 'sensei_course_results_content_inside_before', $course->ID );
47
-        ?>
37
+		/**
38
+		 * This hook fire inside learner-profile.php inside directly before the content
39
+		 *
40
+		 * @since 1.9.0
41
+		 *
42
+		 * @param integer $course_id
43
+		 *
44
+		 * @hooked Sensei_Course_Results::fire_sensei_message_hook() - 20
45
+		 */
46
+		do_action( 'sensei_course_results_content_inside_before', $course->ID );
47
+		?>
48 48
 
49 49
         <header>
50 50
 
@@ -58,29 +58,29 @@  discard block
 block discarded – undo
58 58
 
59 59
             <section class="course-results-lessons">
60 60
                 <?php
61
-                $started_course = Sensei_Utils::user_started_course( $course->ID, get_current_user_id() );
62
-                if( $started_course ) {
61
+				$started_course = Sensei_Utils::user_started_course( $course->ID, get_current_user_id() );
62
+				if( $started_course ) {
63 63
 
64
-                    sensei_the_course_results_lessons();
64
+					sensei_the_course_results_lessons();
65 65
 
66
-                }
67
-                ?>
66
+				}
67
+				?>
68 68
             </section>
69 69
 
70 70
         <?php endif; ?>
71 71
 
72 72
         <?php
73
-        /**
74
-         * This hook fire inside learner-profile.php inside directly after the content
75
-         *
76
-         * @since 1.9.0
77
-         *
78
-         * @param integer $course_id
79
-         *
80
-         * @hooked Sensei()->course_results->course_info - 20
81
-         */
82
-        do_action( 'sensei_course_results_content_inside_after', $course->ID );
83
-        ?>
73
+		/**
74
+		 * This hook fire inside learner-profile.php inside directly after the content
75
+		 *
76
+		 * @since 1.9.0
77
+		 *
78
+		 * @param integer $course_id
79
+		 *
80
+		 * @hooked Sensei()->course_results->course_info - 20
81
+		 */
82
+		do_action( 'sensei_course_results_content_inside_after', $course->ID );
83
+		?>
84 84
 
85 85
     </section>
86 86
 
@@ -88,11 +88,11 @@  discard block
 block discarded – undo
88 88
 
89 89
 <?php
90 90
 /**
91
- * This hook fire inside course-results.php before the content
92
- *
93
- * @since 1.9.0
94
- *
95
- */
91
+		 * This hook fire inside course-results.php before the content
92
+		 *
93
+		 * @since 1.9.0
94
+		 *
95
+		 */
96 96
 do_action( 'sensei_course_results_content_after' );
97 97
 ?>
98 98
 
Please login to merge, or discard this patch.
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@  discard block
 block discarded – undo
11 11
  */
12 12
 ?>
13 13
 
14
-<?php  get_sensei_header();  ?>
14
+<?php  get_sensei_header(); ?>
15 15
 
16 16
 <?php
17 17
 /**
@@ -21,15 +21,15 @@  discard block
 block discarded – undo
21 21
  *
22 22
  * @hooked Sensei_Course_Results::deprecate_sensei_course_results_content_hook() - 20
23 23
  */
24
-do_action( 'sensei_course_results_content_before' );
24
+do_action('sensei_course_results_content_before');
25 25
 ?>
26 26
 
27 27
 <?php
28 28
 global $course;
29
-$course = get_page_by_path( $wp_query->query_vars['course_results'], OBJECT, 'course' );
29
+$course = get_page_by_path($wp_query->query_vars['course_results'], OBJECT, 'course');
30 30
 ?>
31 31
 
32
-<article <?php post_class( array( 'course', 'post','course-results' ) ); ?> >
32
+<article <?php post_class(array('course', 'post', 'course-results')); ?> >
33 33
 
34 34
     <section class="entry fix">
35 35
 
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
          *
44 44
          * @hooked Sensei_Course_Results::fire_sensei_message_hook() - 20
45 45
          */
46
-        do_action( 'sensei_course_results_content_inside_before', $course->ID );
46
+        do_action('sensei_course_results_content_inside_before', $course->ID);
47 47
         ?>
48 48
 
49 49
         <header>
@@ -54,12 +54,12 @@  discard block
 block discarded – undo
54 54
 
55 55
         </header>
56 56
 
57
-        <?php if ( is_user_logged_in() ):?>
57
+        <?php if (is_user_logged_in()):?>
58 58
 
59 59
             <section class="course-results-lessons">
60 60
                 <?php
61
-                $started_course = Sensei_Utils::user_started_course( $course->ID, get_current_user_id() );
62
-                if( $started_course ) {
61
+                $started_course = Sensei_Utils::user_started_course($course->ID, get_current_user_id());
62
+                if ($started_course) {
63 63
 
64 64
                     sensei_the_course_results_lessons();
65 65
 
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
          *
80 80
          * @hooked Sensei()->course_results->course_info - 20
81 81
          */
82
-        do_action( 'sensei_course_results_content_inside_after', $course->ID );
82
+        do_action('sensei_course_results_content_inside_after', $course->ID);
83 83
         ?>
84 84
 
85 85
     </section>
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
  * @since 1.9.0
94 94
  *
95 95
  */
96
-do_action( 'sensei_course_results_content_after' );
96
+do_action('sensei_course_results_content_after');
97 97
 ?>
98 98
 
99 99
 
Please login to merge, or discard this patch.
templates/single-course.php 2 patches
Indentation   +29 added lines, -29 removed lines patch added patch discarded remove patch
@@ -17,24 +17,24 @@  discard block
 block discarded – undo
17 17
 
18 18
     <?php
19 19
 
20
-    /**
21
-     * Hook inside the single course post above the content
22
-     *
23
-     * @since 1.9.0
24
-     *
25
-     * @param integer $course_id
26
-     *
27
-     * @hooked Sensei()->frontend->sensei_course_start     -  10
28
-     * @hooked Sensei_Course::the_title                    -  10
29
-     * @hooked Sensei()->course->course_image              -  20
30
-     * @hooked Sensei_WC::course_in_cart_message           -  20
31
-     * @hooked Sensei_Course::the_course_enrolment_actions -  30
32
-     * @hooked Sensei()->message->send_message_link        -  35
33
-     * @hooked Sensei_Course::the_course_video             -  40
34
-     */
35
-    do_action( 'sensei_single_course_content_inside_before', get_the_ID() );
36
-
37
-    ?>
20
+	/**
21
+	 * Hook inside the single course post above the content
22
+	 *
23
+	 * @since 1.9.0
24
+	 *
25
+	 * @param integer $course_id
26
+	 *
27
+	 * @hooked Sensei()->frontend->sensei_course_start     -  10
28
+	 * @hooked Sensei_Course::the_title                    -  10
29
+	 * @hooked Sensei()->course->course_image              -  20
30
+	 * @hooked Sensei_WC::course_in_cart_message           -  20
31
+	 * @hooked Sensei_Course::the_course_enrolment_actions -  30
32
+	 * @hooked Sensei()->message->send_message_link        -  35
33
+	 * @hooked Sensei_Course::the_course_video             -  40
34
+	 */
35
+	do_action( 'sensei_single_course_content_inside_before', get_the_ID() );
36
+
37
+	?>
38 38
 
39 39
     <section class="entry fix">
40 40
 
@@ -44,17 +44,17 @@  discard block
 block discarded – undo
44 44
 
45 45
     <?php
46 46
 
47
-    /**
48
-     * Hook inside the single course post above the content
49
-     *
50
-     * @since 1.9.0
51
-     *
52
-     * @param integer $course_id
53
-     *
54
-     */
55
-    do_action( 'sensei_single_course_content_inside_after', get_the_ID() );
56
-
57
-    ?>
47
+	/**
48
+	 * Hook inside the single course post above the content
49
+	 *
50
+	 * @since 1.9.0
51
+	 *
52
+	 * @param integer $course_id
53
+	 *
54
+	 */
55
+	do_action( 'sensei_single_course_content_inside_after', get_the_ID() );
56
+
57
+	?>
58 58
 </article><!-- .post .single-course -->
59 59
 
60 60
 <?php get_sensei_footer(); ?>
61 61
\ No newline at end of file
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -11,9 +11,9 @@  discard block
 block discarded – undo
11 11
  */
12 12
 ?>
13 13
 
14
-<?php  get_sensei_header();  ?>
14
+<?php  get_sensei_header(); ?>
15 15
 
16
-<article <?php post_class( array( 'course', 'post' ) ); ?>>
16
+<article <?php post_class(array('course', 'post')); ?>>
17 17
 
18 18
     <?php
19 19
 
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
      * @hooked Sensei()->message->send_message_link        -  35
33 33
      * @hooked Sensei_Course::the_course_video             -  40
34 34
      */
35
-    do_action( 'sensei_single_course_content_inside_before', get_the_ID() );
35
+    do_action('sensei_single_course_content_inside_before', get_the_ID());
36 36
 
37 37
     ?>
38 38
 
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
      * @param integer $course_id
53 53
      *
54 54
      */
55
-    do_action( 'sensei_single_course_content_inside_after', get_the_ID() );
55
+    do_action('sensei_single_course_content_inside_after', get_the_ID());
56 56
 
57 57
     ?>
58 58
 </article><!-- .post .single-course -->
Please login to merge, or discard this patch.