@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> |
2 | 2 | <header class="entry-header"> |
3 | - <?php get_template_part( 'template-parts/header/entry', 'header' ); ?> |
|
3 | + <?php get_template_part('template-parts/header/entry', 'header'); ?> |
|
4 | 4 | </header> |
5 | 5 | |
6 | 6 | <?php twentynineteen_post_thumbnail(); ?> |
@@ -11,21 +11,21 @@ discard block |
||
11 | 11 | |
12 | 12 | wp_link_pages( |
13 | 13 | array( |
14 | - 'before' => '<div class="page-links">' . __( 'Pages:', 'auto-load-next-post' ), |
|
14 | + 'before' => '<div class="page-links">'.__('Pages:', 'auto-load-next-post'), |
|
15 | 15 | 'after' => '</div>', |
16 | 16 | ) |
17 | 17 | ); |
18 | 18 | ?> |
19 | 19 | </div><!-- .entry-content --> |
20 | 20 | |
21 | - <?php if ( get_edit_post_link() ) : ?> |
|
21 | + <?php if (get_edit_post_link()) : ?> |
|
22 | 22 | <footer class="entry-footer"> |
23 | 23 | <?php |
24 | 24 | edit_post_link( |
25 | 25 | sprintf( |
26 | 26 | wp_kses( |
27 | 27 | /* translators: %s: Name of current post. Only visible to screen readers */ |
28 | - __( 'Edit <span class="screen-reader-text">%s</span>', 'auto-load-next-post' ), |
|
28 | + __('Edit <span class="screen-reader-text">%s</span>', 'auto-load-next-post'), |
|
29 | 29 | array( |
30 | 30 | 'span' => array( |
31 | 31 | 'class' => array(), |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> |
2 | 2 | <header class="entry-header"> |
3 | - <?php get_template_part( 'template-parts/header/entry', 'header' ); ?> |
|
3 | + <?php get_template_part('template-parts/header/entry', 'header'); ?> |
|
4 | 4 | </header> |
5 | 5 | |
6 | 6 | <?php twentynineteen_post_thumbnail(); ?> |
@@ -11,7 +11,7 @@ discard block |
||
11 | 11 | |
12 | 12 | wp_link_pages( |
13 | 13 | array( |
14 | - 'before' => '<div class="page-links">' . __( 'Pages:', 'auto-load-next-post' ), |
|
14 | + 'before' => '<div class="page-links">'.__('Pages:', 'auto-load-next-post'), |
|
15 | 15 | 'after' => '</div>', |
16 | 16 | ) |
17 | 17 | ); |
@@ -22,8 +22,8 @@ discard block |
||
22 | 22 | <?php twentynineteen_entry_footer(); ?> |
23 | 23 | </footer><!-- .entry-footer --> |
24 | 24 | |
25 | - <?php if ( ! is_singular( 'attachment' ) ) : ?> |
|
26 | - <?php get_template_part( 'template-parts/post/author', 'bio' ); ?> |
|
25 | + <?php if ( ! is_singular('attachment')) : ?> |
|
26 | + <?php get_template_part('template-parts/post/author', 'bio'); ?> |
|
27 | 27 | <?php endif; ?> |
28 | 28 | |
29 | 29 | </article><!-- #post-${ID} --> |
30 | 30 | \ No newline at end of file |
@@ -10,11 +10,11 @@ discard block |
||
10 | 10 | * @license GPL-2.0+ |
11 | 11 | */ |
12 | 12 | |
13 | -if ( ! defined('ABSPATH') ) { |
|
13 | +if ( ! defined('ABSPATH')) { |
|
14 | 14 | exit; // Exit if accessed directly. |
15 | 15 | } |
16 | 16 | |
17 | -if ( ! class_exists( 'Auto_Load_Next_Post_Settings_Page' ) ) { |
|
17 | +if ( ! class_exists('Auto_Load_Next_Post_Settings_Page')) { |
|
18 | 18 | |
19 | 19 | abstract class Auto_Load_Next_Post_Settings_Page { |
20 | 20 | |
@@ -24,7 +24,7 @@ discard block |
||
24 | 24 | * @access protected |
25 | 25 | * @var string $id |
26 | 26 | */ |
27 | - protected $id = ''; |
|
27 | + protected $id = ''; |
|
28 | 28 | |
29 | 29 | /** |
30 | 30 | * Setting page label. |
@@ -42,10 +42,10 @@ discard block |
||
42 | 42 | * @version 1.5.5 |
43 | 43 | */ |
44 | 44 | public function __construct() { |
45 | - add_filter( 'auto_load_next_post_settings_tabs_array', array( $this, 'add_settings_page' ), 20 ); |
|
46 | - add_action( 'auto_load_next_post_settings_' . $this->id, array( $this, 'need_help' ), 0 ); |
|
47 | - add_action( 'auto_load_next_post_settings_' . $this->id, array( $this, 'output' ), 10 ); |
|
48 | - add_action( 'auto_load_next_post_settings_save_' . $this->id, array( $this, 'save' ) ); |
|
45 | + add_filter('auto_load_next_post_settings_tabs_array', array($this, 'add_settings_page'), 20); |
|
46 | + add_action('auto_load_next_post_settings_'.$this->id, array($this, 'need_help'), 0); |
|
47 | + add_action('auto_load_next_post_settings_'.$this->id, array($this, 'output'), 10); |
|
48 | + add_action('auto_load_next_post_settings_save_'.$this->id, array($this, 'save')); |
|
49 | 49 | } |
50 | 50 | |
51 | 51 | /** |
@@ -78,7 +78,7 @@ discard block |
||
78 | 78 | * @param array $pages |
79 | 79 | * @return array $pages |
80 | 80 | */ |
81 | - public function add_settings_page( $pages ) { |
|
81 | + public function add_settings_page($pages) { |
|
82 | 82 | $pages[$this->id] = $this->label; |
83 | 83 | |
84 | 84 | return $pages; |
@@ -92,7 +92,7 @@ discard block |
||
92 | 92 | * @param array $pages |
93 | 93 | * @return array $pages |
94 | 94 | */ |
95 | - public function add_menu_page( $pages ) { |
|
95 | + public function add_menu_page($pages) { |
|
96 | 96 | $pages[$this->id] = $this->label; |
97 | 97 | |
98 | 98 | return $pages; |
@@ -118,7 +118,7 @@ discard block |
||
118 | 118 | public function output() { |
119 | 119 | $settings = $this->get_settings(); |
120 | 120 | |
121 | - Auto_Load_Next_Post_Admin_Settings::output_fields( $settings ); |
|
121 | + Auto_Load_Next_Post_Admin_Settings::output_fields($settings); |
|
122 | 122 | } // END output() |
123 | 123 | |
124 | 124 | /** |
@@ -133,7 +133,7 @@ discard block |
||
133 | 133 | |
134 | 134 | $settings = $this->get_settings(); |
135 | 135 | |
136 | - Auto_Load_Next_Post_Admin_Settings::save_fields( $settings, $current_tab ); |
|
136 | + Auto_Load_Next_Post_Admin_Settings::save_fields($settings, $current_tab); |
|
137 | 137 | } // END save() |
138 | 138 | |
139 | 139 | /** |
@@ -150,11 +150,11 @@ discard block |
||
150 | 150 | global $current_tab; |
151 | 151 | |
152 | 152 | // If theme is already supported then don't show help button for theme selectors. |
153 | - if ( is_alnp_supported() && $current_tab == 'theme-selectors' ) { |
|
153 | + if (is_alnp_supported() && $current_tab == 'theme-selectors') { |
|
154 | 154 | return; |
155 | 155 | } |
156 | 156 | |
157 | - echo '<a href="#" class="need-help trigger-help" data-tab="' . $current_tab . '"><span class="sonar-dot"></span> ' . esc_html( 'Need Help?', 'auto-load-next-post' ) . '</a>'; |
|
157 | + echo '<a href="#" class="need-help trigger-help" data-tab="'.$current_tab.'"><span class="sonar-dot"></span> '.esc_html('Need Help?', 'auto-load-next-post').'</a>'; |
|
158 | 158 | } // END need_help() |
159 | 159 | |
160 | 160 | } // END class |