Completed
Branch v1.6.0 (7bff6e)
by Sébastien
01:27
created
includes/admin/class-alnp-admin-pro-preview.php 1 patch
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -12,11 +12,11 @@  discard block
 block discarded – undo
12 12
  */
13 13
 
14 14
 // Exit if accessed directly.
15
-if ( ! defined( 'ABSPATH' ) ) {
15
+if ( ! defined('ABSPATH')) {
16 16
 	exit;
17 17
 }
18 18
 
19
-if ( ! class_exists( 'ALNP_Pro_Preview' ) ) {
19
+if ( ! class_exists('ALNP_Pro_Preview')) {
20 20
 
21 21
 	class ALNP_Pro_Preview {
22 22
 
@@ -26,8 +26,8 @@  discard block
 block discarded – undo
26 26
 		 * @access public
27 27
 		 */
28 28
 		public function __construct() {
29
-			add_filter( 'alnp_settings_tabs_array', array( $this, 'add_pro_tabs' ), 99 );
30
-			add_filter( 'alnp_settings_tab_url', array( $this, 'hash'), 0, 2 );
29
+			add_filter('alnp_settings_tabs_array', array($this, 'add_pro_tabs'), 99);
30
+			add_filter('alnp_settings_tab_url', array($this, 'hash'), 0, 2);
31 31
 		} // END __construct()
32 32
 
33 33
 		/**
@@ -37,16 +37,16 @@  discard block
 block discarded – undo
37 37
 		 * @param  array $pages
38 38
 		 * @return array $pages
39 39
 		 */
40
-		public function add_pro_tabs( $pages ) {
40
+		public function add_pro_tabs($pages) {
41 41
 			$pro_pages = array(
42
-				'comments'        => __( 'Comments', 'auto-load-next-post' ),
43
-				'load-and-scroll' => __( 'Load & Scroll', 'auto-load-next-post' ),
44
-				'restrictions'    => __( 'Restrictions', 'auto-load-next-post' ),
45
-				'query'           => __( 'Query', 'auto-load-next-post' ),
46
-				'license'         => __( 'License', 'auto-load-next-post' ),
42
+				'comments'        => __('Comments', 'auto-load-next-post'),
43
+				'load-and-scroll' => __('Load & Scroll', 'auto-load-next-post'),
44
+				'restrictions'    => __('Restrictions', 'auto-load-next-post'),
45
+				'query'           => __('Query', 'auto-load-next-post'),
46
+				'license'         => __('License', 'auto-load-next-post'),
47 47
 			);
48 48
 
49
-			$pages = array_merge( $pages, $pro_pages );
49
+			$pages = array_merge($pages, $pro_pages);
50 50
 
51 51
 			return $pages;
52 52
 		} // END add_pro_tabs()
@@ -59,14 +59,14 @@  discard block
 block discarded – undo
59 59
 		 * @param  string $slug
60 60
 		 * @return string
61 61
 		 */
62
-		public function hash( $url, $slug ) {
63
-			if ( ! in_array( $slug, array(
62
+		public function hash($url, $slug) {
63
+			if ( ! in_array($slug, array(
64 64
 				'comments', 
65 65
 				'load-and-scroll', 
66 66
 				'restrictions', 
67 67
 				'query', 
68 68
 				'license'
69
-			) ) ) {
69
+			))) {
70 70
 				return $url;
71 71
 			}
72 72
 
Please login to merge, or discard this patch.
includes/admin/class-alnp-extensions.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -12,11 +12,11 @@  discard block
 block discarded – undo
12 12
  */
13 13
 
14 14
 // Exit if accessed directly.
15
-if ( ! defined( 'ABSPATH' ) ) {
15
+if ( ! defined('ABSPATH')) {
16 16
 	exit;
17 17
 }
18 18
 
19
-if ( ! class_exists( 'ALNP_Extensions' ) ) {
19
+if ( ! class_exists('ALNP_Extensions')) {
20 20
 
21 21
 	class ALNP_Extensions {
22 22
 
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
 		 */
36 36
 		public function __construct() {
37 37
 			$this->id    = 'extensions';
38
-			$this->label = esc_html__( 'Extensions', 'auto-load-next-post' );
38
+			$this->label = esc_html__('Extensions', 'auto-load-next-post');
39 39
 
40 40
 			// Below are extensions hosted on WordPress.org
41 41
 			self::$extensions = array(
@@ -44,10 +44,10 @@  discard block
 block discarded – undo
44 44
 				),
45 45
 			);
46 46
 
47
-			include_once( AUTO_LOAD_NEXT_POST_FILE_PATH . '/vendor/connekt-plugin-installer/class-connekt-plugin-installer.php'); // Plugin Installer
47
+			include_once(AUTO_LOAD_NEXT_POST_FILE_PATH.'/vendor/connekt-plugin-installer/class-connekt-plugin-installer.php'); // Plugin Installer
48 48
 
49
-			add_filter( 'alnp_settings_tabs_array', array( $this, 'add_extensions_page' ), 99 );
50
-			add_action( 'auto_load_next_post_settings_end', array( $this, 'output' ), 10, 2 );
49
+			add_filter('alnp_settings_tabs_array', array($this, 'add_extensions_page'), 99);
50
+			add_action('auto_load_next_post_settings_end', array($this, 'output'), 10, 2);
51 51
 		} // END __construct()
52 52
 
53 53
 		/**
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
 		 * @param  array $pages
58 58
 		 * @return array $pages
59 59
 		 */
60
-		public function add_extensions_page( $pages ) {
60
+		public function add_extensions_page($pages) {
61 61
 			$pages[$this->id] = $this->label;
62 62
 
63 63
 			return $pages;
@@ -70,22 +70,22 @@  discard block
 block discarded – undo
70 70
 		 * @param  string $current_view
71 71
 		 * @param  array  $tabs
72 72
 		 */
73
-		public function output( $current_view, $tabs ) {
74
-			if ( $current_view !== 'extensions' ) {
73
+		public function output($current_view, $tabs) {
74
+			if ($current_view !== 'extensions') {
75 75
 				return;
76 76
 			}
77 77
 			?>
78 78
 			<div class="wrap auto-load-next-post">
79 79
 				<?php
80 80
 				// Include settings tabs.
81
-				include_once( dirname( __FILE__ ) . '/views/html-admin-tabs.php' );
81
+				include_once(dirname(__FILE__).'/views/html-admin-tabs.php');
82 82
 				?>
83
-				<h1 class="screen-reader-text"><?php echo esc_html( $this->label ); ?></h1>
83
+				<h1 class="screen-reader-text"><?php echo esc_html($this->label); ?></h1>
84 84
 
85 85
 				<?php
86 86
 				// Load the class if it exists and Airplane Mode is disabled.
87
-				if ( class_exists( 'Connekt_Plugin_Installer' ) && ! alnp_airplane_mode_enabled() ) {
88
-					Connekt_Plugin_Installer::init( self::$extensions );
87
+				if (class_exists('Connekt_Plugin_Installer') && ! alnp_airplane_mode_enabled()) {
88
+					Connekt_Plugin_Installer::init(self::$extensions);
89 89
 				}
90 90
 				?>
91 91
 			</div>
Please login to merge, or discard this patch.
includes/admin/views/html-notice-template-location.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -10,16 +10,16 @@
 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
 
17 17
 $locate_single = alnp_get_template_directory();
18 18
 
19
-if ( empty( $locate_single ) ) {
20
-	$response = sprintf( __( '%1$s has not detected your theme templates. Currently using fallback support. Try the new %2$sSetup Wizard%3$s to help.', 'auto-load-next-post' ), esc_html__( 'Auto Load Next Post', 'auto-load-next-post' ), '<a href="' . add_query_arg( array( 'page' => 'auto-load-next-post', 'view' => 'setup-wizard' ), admin_url( 'options-general.php' ) ) . '">', '</a>' );
19
+if (empty($locate_single)) {
20
+	$response = sprintf(__('%1$s has not detected your theme templates. Currently using fallback support. Try the new %2$sSetup Wizard%3$s to help.', 'auto-load-next-post'), esc_html__('Auto Load Next Post', 'auto-load-next-post'), '<a href="'.add_query_arg(array('page' => 'auto-load-next-post', 'view' => 'setup-wizard'), admin_url('options-general.php')).'">', '</a>');
21 21
 } else {
22
-	$response = sprintf( __( 'Template location detected: %1$s%3$s%2$s If this is incorrect, please set the correct location for the template below.', 'auto-load-next-post' ), '<code>', '</code>', $locate_single );
22
+	$response = sprintf(__('Template location detected: %1$s%3$s%2$s If this is incorrect, please set the correct location for the template below.', 'auto-load-next-post'), '<code>', '</code>', $locate_single);
23 23
 }
24 24
 ?>
25 25
 <div class="notice notice-info">
Please login to merge, or discard this patch.
includes/admin/views/html-notice-trying-beta.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -11,24 +11,24 @@
 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
 ?>
18 18
 <div class="notice notice-info auto-load-next-post-notice">
19 19
 	<div class="auto-load-next-post-notice-inner">
20 20
 		<div class="auto-load-next-post-notice-icon">
21
-			<img src="https://ps.w.org/auto-load-next-post/assets/icon-256x256.png" alt="<?php echo esc_attr__( 'Auto Load Next Post WordPress Plugin', 'auto-load-next-post' ); ?>" />
21
+			<img src="https://ps.w.org/auto-load-next-post/assets/icon-256x256.png" alt="<?php echo esc_attr__('Auto Load Next Post WordPress Plugin', 'auto-load-next-post'); ?>" />
22 22
 		</div>
23 23
 
24 24
 		<div class="auto-load-next-post-notice-content">
25
-			<h3><?php echo esc_html__( 'Thanks for trying out this beta/pre-release!', 'auto-load-next-post' ); ?></h3>
26
-			<p><?php echo esc_html__( 'If you have any questions or any feedback at all, please let me know. Any little bit you\'re willing to share helps.', 'auto-load-next-post' ); ?></p>
25
+			<h3><?php echo esc_html__('Thanks for trying out this beta/pre-release!', 'auto-load-next-post'); ?></h3>
26
+			<p><?php echo esc_html__('If you have any questions or any feedback at all, please let me know. Any little bit you\'re willing to share helps.', 'auto-load-next-post'); ?></p>
27 27
 		</div>
28 28
 
29 29
 		<div class="auto-load-next-post-send-feedback">
30
-			<?php printf( '<a href="%1$s" class="button button-primary auto-load-next-post-feedback-button" target="_blank">%2$s</a>', esc_url( AUTO_LOAD_NEXT_POST_STORE_URL . 'contact/' ), esc_html__( 'Give Feedback', 'auto-load-next-post' ) ); ?>
31
-			<a href="<?php echo esc_url( add_query_arg( 'hide_auto_load_next_post_beta_notice', 'true' ) ); ?>" class="no-thanks"><?php echo esc_html__( 'Ask me again in 7 days', 'auto-load-next-post' ); ?></a>
30
+			<?php printf('<a href="%1$s" class="button button-primary auto-load-next-post-feedback-button" target="_blank">%2$s</a>', esc_url(AUTO_LOAD_NEXT_POST_STORE_URL.'contact/'), esc_html__('Give Feedback', 'auto-load-next-post')); ?>
31
+			<a href="<?php echo esc_url(add_query_arg('hide_auto_load_next_post_beta_notice', 'true')); ?>" class="no-thanks"><?php echo esc_html__('Ask me again in 7 days', 'auto-load-next-post'); ?></a>
32 32
 		</div>
33 33
 	</div>
34 34
 </div>
Please login to merge, or discard this patch.
includes/admin/views/html-notice-is-supported.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -11,12 +11,12 @@
 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
 
18 18
 $active_theme = wp_get_theme();
19 19
 ?>
20 20
 <div class="notice notice-info">
21
-	<p><?php echo sprintf( __( 'Your active theme %1$s, supports %2$s. Changes to set theme selectors are disabled.', 'auto-load-next-post' ), $active_theme->name, esc_html__( 'Auto Load Next Post', 'auto-load-next-post' ) ); ?></p>
21
+	<p><?php echo sprintf(__('Your active theme %1$s, supports %2$s. Changes to set theme selectors are disabled.', 'auto-load-next-post'), $active_theme->name, esc_html__('Auto Load Next Post', 'auto-load-next-post')); ?></p>
22 22
 </div>
Please login to merge, or discard this patch.
includes/admin/views/html-admin-sidebar.php 1 patch
Spacing   +22 added lines, -22 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
 
@@ -22,56 +22,56 @@  discard block
 block discarded – undo
22 22
 $last_name    = $current_user->last_name;
23 23
 ?>
24 24
 <div class="alnp-upgrade-details">
25
-	<h1><?php esc_html_e( 'Pro Coming Soon', 'auto-load-next-post' ); ?></h1>
25
+	<h1><?php esc_html_e('Pro Coming Soon', 'auto-load-next-post'); ?></h1>
26 26
 
27 27
 	<ul>
28
-		<li><?php echo esc_html__( 'Load the Next Post or Next Post with same Category or New Posts or Related Posts or by Custom Query', 'auto-load-next-post' ); ?></li>
29
-		<li><?php echo esc_html__( 'Page and Media Attachment Support', 'auto-load-next-post' ); ?></li>
30
-		<li><?php echo esc_html__( 'Custom Post Type Support', 'auto-load-next-post' ); ?></li>
31
-		<li><?php echo esc_html__( 'Paginated Posts Supported', 'auto-load-next-post' ); ?></li>
32
-		<li><?php echo esc_html__( 'Exclude Post Formats', 'auto-load-next-post' ); ?></li>
33
-		<li><?php echo esc_html__( 'Limit Posts per Session', 'auto-load-next-post' ); ?></li>
34
-		<li><?php echo esc_html__( 'Query Posts by Category and Tag', 'auto-load-next-post' ); ?></li>
35
-		<li><?php echo esc_html__( 'Exclude User Roles and Specific Users', 'auto-load-next-post' ); ?></li>
36
-		<li><?php echo esc_html__( 'Pre-Query Posts Ready to Load', 'auto-load-next-post' ); ?></li>
37
-		<li><?php echo esc_html__( 'Hide Comments and Show by Toggle Button', 'auto-load-next-post' ); ?></li>
38
-		<li><?php echo sprintf( esc_html__( 'Multilingual Support for %1$s and %2$s', 'auto-load-next-post' ), 'WPML', 'Polylang' ); ?></li>
39
-		<li><?php echo esc_html__( 'Email Support', 'auto-load-next-post' ); ?></li>
28
+		<li><?php echo esc_html__('Load the Next Post or Next Post with same Category or New Posts or Related Posts or by Custom Query', 'auto-load-next-post'); ?></li>
29
+		<li><?php echo esc_html__('Page and Media Attachment Support', 'auto-load-next-post'); ?></li>
30
+		<li><?php echo esc_html__('Custom Post Type Support', 'auto-load-next-post'); ?></li>
31
+		<li><?php echo esc_html__('Paginated Posts Supported', 'auto-load-next-post'); ?></li>
32
+		<li><?php echo esc_html__('Exclude Post Formats', 'auto-load-next-post'); ?></li>
33
+		<li><?php echo esc_html__('Limit Posts per Session', 'auto-load-next-post'); ?></li>
34
+		<li><?php echo esc_html__('Query Posts by Category and Tag', 'auto-load-next-post'); ?></li>
35
+		<li><?php echo esc_html__('Exclude User Roles and Specific Users', 'auto-load-next-post'); ?></li>
36
+		<li><?php echo esc_html__('Pre-Query Posts Ready to Load', 'auto-load-next-post'); ?></li>
37
+		<li><?php echo esc_html__('Hide Comments and Show by Toggle Button', 'auto-load-next-post'); ?></li>
38
+		<li><?php echo sprintf(esc_html__('Multilingual Support for %1$s and %2$s', 'auto-load-next-post'), 'WPML', 'Polylang'); ?></li>
39
+		<li><?php echo esc_html__('Email Support', 'auto-load-next-post'); ?></li>
40 40
 	</ul>
41 41
 
42 42
 	<p>
43
-		<a href="<?php echo AUTO_LOAD_NEXT_POST_STORE_URL; ?>pro/?utm_source=plugin&utm_medium=link&utm_campaign=alnp-settings-page"><?php esc_html_e( 'Visit autoloadnextpost.com &rarr;', 'auto-load-next-post' ); ?></a>
43
+		<a href="<?php echo AUTO_LOAD_NEXT_POST_STORE_URL; ?>pro/?utm_source=plugin&utm_medium=link&utm_campaign=alnp-settings-page"><?php esc_html_e('Visit autoloadnextpost.com &rarr;', 'auto-load-next-post'); ?></a>
44 44
 	</p>
45 45
 
46 46
 </div>
47 47
 
48 48
 <form method="post" action="https://sebastiendumont.us1.list-manage.com/subscribe/post?u=48ead612ad85b23fe2239c6e3&amp;id=79e97b5275" name="mc-embedded-subscribe-form" target="_blank" class="subscribe block">
49
-	<h2><?php esc_html_e( 'Sign up to pre-order first', 'auto-load-next-post' ); ?></h2>
49
+	<h2><?php esc_html_e('Sign up to pre-order first', 'auto-load-next-post'); ?></h2>
50 50
 
51 51
 	<p class="intro">
52
-		<?php echo sprintf( __( 'Submit your name and email and be the first to know when you can pre-order %1$s and keep up to date with my developments plus a %2$s discount.', 'auto-load-next-post' ), esc_html__( 'Auto Load Next Post Pro', 'auto-load-next-post' ), '20%' ); ?>
52
+		<?php echo sprintf(__('Submit your name and email and be the first to know when you can pre-order %1$s and keep up to date with my developments plus a %2$s discount.', 'auto-load-next-post'), esc_html__('Auto Load Next Post Pro', 'auto-load-next-post'), '20%'); ?>
53 53
 	</p>
54 54
 
55 55
 	<div class="field">
56
-		<input type="email" name="EMAIL" value="<?php echo $user_email; ?>" placeholder="<?php esc_html_e( 'Your Email Address', 'auto-load-next-post' ); ?>"/>
56
+		<input type="email" name="EMAIL" value="<?php echo $user_email; ?>" placeholder="<?php esc_html_e('Your Email Address', 'auto-load-next-post'); ?>"/>
57 57
 	</div>
58 58
 
59 59
 	<div class="field">
60
-		<input type="text" name="FNAME" value="<?php echo $first_name; ?>" placeholder="<?php esc_html_e( 'First Name', 'auto-load-next-post' ); ?>"/>
60
+		<input type="text" name="FNAME" value="<?php echo $first_name; ?>" placeholder="<?php esc_html_e('First Name', 'auto-load-next-post'); ?>"/>
61 61
 	</div>
62 62
 
63 63
 	<div class="field">
64
-		<input type="text" name="LNAME" value="<?php echo $last_name; ?>" placeholder="<?php esc_html_e( 'Last Name', 'auto-load-next-post' ); ?>"/>
64
+		<input type="text" name="LNAME" value="<?php echo $last_name; ?>" placeholder="<?php esc_html_e('Last Name', 'auto-load-next-post'); ?>"/>
65 65
 	</div>
66 66
 
67 67
 	<input type="hidden" name="group[35169][1]" value="1">
68 68
 
69 69
 	<div class="field submit-button">
70 70
 		<div style="position: absolute; left: -9999px;" aria-hidden="true"><input type="text" name="b_48ead612ad85b23fe2239c6e3_79e97b5275" tabindex="-1" value=""></div>
71
-		<input type="submit" name="subscribe" id="mc-embedded-subscribe" class="button" value="<?php esc_html_e( 'Sign me up', 'auto-load-next-post' ); ?>"/>
71
+		<input type="submit" name="subscribe" id="mc-embedded-subscribe" class="button" value="<?php esc_html_e('Sign me up', 'auto-load-next-post'); ?>"/>
72 72
 	</div>
73 73
 
74 74
 	<p class="promise">
75
-		<?php esc_html_e( 'I promise I will not use your email for anything else and you can unsubscribe with 1-click anytime.', 'auto-load-next-post' ); ?>
75
+		<?php esc_html_e('I promise I will not use your email for anything else and you can unsubscribe with 1-click anytime.', 'auto-load-next-post'); ?>
76 76
 	</p>
77 77
 </form>
78 78
\ No newline at end of file
Please login to merge, or discard this patch.
includes/admin/views/html-admin-sidebar-logo.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -10,10 +10,10 @@
 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
 ?>
17 17
 <a class="alnp-banner" href="https://autoloadnextpost.com/?utm_source=plugin&utm_medium=alnp-banner&utm_campaign=alnp-settings-page">
18
-	<img src="<?php echo AUTO_LOAD_NEXT_POST_URL_PATH . '/assets/images/banner.png'; ?>" alt="<?php _e( 'Auto Load Next Post', 'auto-load-next-post' ); ?>" width="100%" />
18
+	<img src="<?php echo AUTO_LOAD_NEXT_POST_URL_PATH.'/assets/images/banner.png'; ?>" alt="<?php _e('Auto Load Next Post', 'auto-load-next-post'); ?>" width="100%" />
19 19
 </a>
Please login to merge, or discard this patch.
includes/admin/views/html-notice-no-comment-selector.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -11,10 +11,10 @@
 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
 ?>
18 18
 <div class="notice notice-error">
19
-	<p><?php echo sprintf( __( 'In order to remove comments we need to know what the comments container is. Please identify the comments container under %1$sTheme Selectors%2$s. %3$sHow to find my theme selectors?%4$s', 'auto-load-next-post' ), '<strong>', '</strong>', '<a href="' . AUTO_LOAD_NEXT_POST_STORE_URL . 'documentation/find-theme-selectors/?utm_source=wpadmin&utm_campaign=plugin-settings-misc" target="_blank">', '</a>' ); ?></p>
19
+	<p><?php echo sprintf(__('In order to remove comments we need to know what the comments container is. Please identify the comments container under %1$sTheme Selectors%2$s. %3$sHow to find my theme selectors?%4$s', 'auto-load-next-post'), '<strong>', '</strong>', '<a href="'.AUTO_LOAD_NEXT_POST_STORE_URL.'documentation/find-theme-selectors/?utm_source=wpadmin&utm_campaign=plugin-settings-misc" target="_blank">', '</a>'); ?></p>
20 20
 </div>
Please login to merge, or discard this patch.
includes/admin/views/html-admin-settings.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -13,17 +13,17 @@  discard block
 block discarded – undo
13 13
  */
14 14
 
15 15
 // Exit if accessed directly.
16
-if ( ! defined( 'ABSPATH' ) ) {
16
+if ( ! defined('ABSPATH')) {
17 17
 	exit;
18 18
 }
19 19
 
20 20
 global $current_section, $current_view;
21 21
 
22
-$tab_exists    = isset( $tabs[ $current_view ] ) || has_action( 'auto_load_next_post_sections_' . $current_view ) || has_action( 'auto_load_next_post_settings_' . $current_view ) || has_action( 'auto_load_next_post_settings_tabs_' . $current_view );
23
-$current_label = isset( $tabs[ $current_view ] ) ? $tabs[ $current_view ] : '';
22
+$tab_exists    = isset($tabs[$current_view]) || has_action('auto_load_next_post_sections_'.$current_view) || has_action('auto_load_next_post_settings_'.$current_view) || has_action('auto_load_next_post_settings_tabs_'.$current_view);
23
+$current_label = isset($tabs[$current_view]) ? $tabs[$current_view] : '';
24 24
 
25
-if ( ! $tab_exists ) {
26
-	wp_safe_redirect( admin_url( 'options-general.php?page=auto-load-next-post' ) );
25
+if ( ! $tab_exists) {
26
+	wp_safe_redirect(admin_url('options-general.php?page=auto-load-next-post'));
27 27
 	exit;
28 28
 }
29 29
 ?>
@@ -31,24 +31,24 @@  discard block
 block discarded – undo
31 31
 	<form method="post" id="mainform" action="" enctype="multipart/form-data">
32 32
 		<?php
33 33
 		// Include settings tabs.
34
-		include_once( dirname( __FILE__ ) . '/html-admin-tabs.php' ); ?>
34
+		include_once(dirname(__FILE__).'/html-admin-tabs.php'); ?>
35 35
 
36
-		<h1 class="screen-reader-text"><?php echo esc_html( $current_label ); ?></h1>
36
+		<h1 class="screen-reader-text"><?php echo esc_html($current_label); ?></h1>
37 37
 
38 38
 		<?php
39
-		do_action( 'auto_load_next_post_sections_' . $current_view );
39
+		do_action('auto_load_next_post_sections_'.$current_view);
40 40
 
41 41
 		self::show_messages();
42 42
 
43
-		do_action( 'auto_load_next_post_settings_' . $current_view );
43
+		do_action('auto_load_next_post_settings_'.$current_view);
44 44
 		?>
45 45
 		<p class="submit">
46
-			<?php submit_button( esc_attr__( 'Save Changes', 'auto-load-next-post' ), 'button-primary', esc_attr__( 'Save Changes', 'auto-load-next-post' ), false, array( 'id' => 'save' ) ); ?>
47
-			<?php wp_nonce_field( 'auto-load-next-post-settings' ); ?>
46
+			<?php submit_button(esc_attr__('Save Changes', 'auto-load-next-post'), 'button-primary', esc_attr__('Save Changes', 'auto-load-next-post'), false, array('id' => 'save')); ?>
47
+			<?php wp_nonce_field('auto-load-next-post-settings'); ?>
48 48
 		</p>
49 49
 	</form>
50 50
 
51 51
 	<div class="alnp-sidebar">
52
-		<?php do_action( 'auto_load_next_post_sidebar', $current_view ); ?>
52
+		<?php do_action('auto_load_next_post_sidebar', $current_view); ?>
53 53
 	</div>
54 54
 </div>
Please login to merge, or discard this patch.