@@ -311,7 +311,7 @@ discard block |
||
311 | 311 | * @access public |
312 | 312 | * @since 1.5.0 |
313 | 313 | * @static |
314 | - * @return string|boolean |
|
314 | + * @return string|false |
|
315 | 315 | */ |
316 | 316 | public static function is_alnp_using_customizer() { |
317 | 317 | if ( is_customize_preview() ) { |
@@ -331,7 +331,7 @@ discard block |
||
331 | 331 | * @param string $name The ID to register with WordPress. |
332 | 332 | * @param string $file_path The path to the actual file. |
333 | 333 | * @param bool $is_script Optional, argument for if the incoming file_path is a JavaScript source file. |
334 | - * @param array $support Optional, for requiring other javascripts for the source file you are calling. |
|
334 | + * @param string[] $support Optional, for requiring other javascripts for the source file you are calling. |
|
335 | 335 | * @param string $version Optional, can match the version of the plugin or version of the source file. |
336 | 336 | * @param bool $footer Optional, can set the JavaScript to load in the footer instead. |
337 | 337 | * @global string $wp_version |
@@ -25,7 +25,7 @@ discard block |
||
25 | 25 | * |
26 | 26 | * The main instance of the plugin. |
27 | 27 | */ |
28 | -if ( ! class_exists( 'Auto_Load_Next_Post' ) ) { |
|
28 | +if ( ! class_exists('Auto_Load_Next_Post')) { |
|
29 | 29 | |
30 | 30 | class Auto_Load_Next_Post { |
31 | 31 | |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | * @return Auto_Load_Next_Post Single instance. |
60 | 60 | */ |
61 | 61 | public static function instance() { |
62 | - if ( is_null( self::$_instance ) ) { |
|
62 | + if (is_null(self::$_instance)) { |
|
63 | 63 | self::$_instance = new self(); |
64 | 64 | } |
65 | 65 | return self::$_instance; |
@@ -74,7 +74,7 @@ discard block |
||
74 | 74 | */ |
75 | 75 | public function __clone() { |
76 | 76 | // Cloning instances of the class is forbidden |
77 | - _doing_it_wrong( __FUNCTION__, __( 'Cloning this object is forbidden.', 'auto-load-next-post' ), self::$version ); |
|
77 | + _doing_it_wrong(__FUNCTION__, __('Cloning this object is forbidden.', 'auto-load-next-post'), self::$version); |
|
78 | 78 | } // END __clone() |
79 | 79 | |
80 | 80 | /** |
@@ -85,7 +85,7 @@ discard block |
||
85 | 85 | * @return void |
86 | 86 | */ |
87 | 87 | public function __wakeup() { |
88 | - _doing_it_wrong( __FUNCTION__, __( 'Unserializing instances of this class is forbidden.', 'auto-load-next-post' ), self::$version ); |
|
88 | + _doing_it_wrong(__FUNCTION__, __('Unserializing instances of this class is forbidden.', 'auto-load-next-post'), self::$version); |
|
89 | 89 | } // END __wakeup() |
90 | 90 | |
91 | 91 | /** |
@@ -104,7 +104,7 @@ discard block |
||
104 | 104 | /** |
105 | 105 | * Auto Load Next Post is fully loaded. |
106 | 106 | */ |
107 | - do_action( 'auto_load_next_post_loaded' ); |
|
107 | + do_action('auto_load_next_post_loaded'); |
|
108 | 108 | } // END __construct() |
109 | 109 | |
110 | 110 | /** |
@@ -115,10 +115,10 @@ discard block |
||
115 | 115 | */ |
116 | 116 | public function init_hooks() { |
117 | 117 | // Load translation files. |
118 | - add_action( 'init', array( $this, 'load_plugin_textdomain' ) ); |
|
118 | + add_action('init', array($this, 'load_plugin_textdomain')); |
|
119 | 119 | |
120 | 120 | // Load Auto Load Next Post scripts on the frontend. |
121 | - add_action( 'wp_enqueue_scripts', array( $this, 'alnp_enqueue_scripts' ) ); |
|
121 | + add_action('wp_enqueue_scripts', array($this, 'alnp_enqueue_scripts')); |
|
122 | 122 | } // END init_hooks() |
123 | 123 | |
124 | 124 | /** |
@@ -133,8 +133,8 @@ discard block |
||
133 | 133 | $this->define('AUTO_LOAD_NEXT_POST_FILE', __FILE__); |
134 | 134 | $this->define('AUTO_LOAD_NEXT_POST_SLUG', 'auto-load-next-post'); |
135 | 135 | |
136 | - $this->define('AUTO_LOAD_NEXT_POST_URL_PATH', untrailingslashit( plugins_url('/', __FILE__) ) ); |
|
137 | - $this->define('AUTO_LOAD_NEXT_POST_FILE_PATH', untrailingslashit( plugin_dir_path( __FILE__ ) ) ); |
|
136 | + $this->define('AUTO_LOAD_NEXT_POST_URL_PATH', untrailingslashit(plugins_url('/', __FILE__))); |
|
137 | + $this->define('AUTO_LOAD_NEXT_POST_FILE_PATH', untrailingslashit(plugin_dir_path(__FILE__))); |
|
138 | 138 | $this->define('AUTO_LOAD_NEXT_POST_TEMPLATE_PATH', 'auto-load-next-post/'); |
139 | 139 | |
140 | 140 | $this->define('AUTO_LOAD_NEXT_POST_WP_VERSION_REQUIRE', '4.4'); |
@@ -158,9 +158,9 @@ discard block |
||
158 | 158 | * @access private |
159 | 159 | * @since 1.4.3 |
160 | 160 | */ |
161 | - private function define( $name, $value ) { |
|
162 | - if ( ! defined( $name ) ) { |
|
163 | - define( $name, $value ); |
|
161 | + private function define($name, $value) { |
|
162 | + if ( ! defined($name)) { |
|
163 | + define($name, $value); |
|
164 | 164 | } |
165 | 165 | } // END define() |
166 | 166 | |
@@ -173,26 +173,26 @@ discard block |
||
173 | 173 | * @return void |
174 | 174 | */ |
175 | 175 | public function includes() { |
176 | - include_once( dirname( __FILE__ ) . '/includes/class-alnp-autoloader.php' ); // Autoloader. |
|
177 | - include_once( dirname( __FILE__ ) . '/includes/auto-load-next-post-conditional-functions.php' ); // Conditional functions. |
|
178 | - include_once( dirname( __FILE__ ) . '/includes/auto-load-next-post-formatting-functions.php' ); // Formatting functions. |
|
179 | - include_once( dirname( __FILE__ ) . '/includes/auto-load-next-post-themes-supported.php' ); // Handles all supported themes out of the box. |
|
180 | - include_once( dirname( __FILE__ ) . '/includes/auto-load-next-post-core-functions.php' ); // Contains core functions for the front/back end. |
|
176 | + include_once(dirname(__FILE__).'/includes/class-alnp-autoloader.php'); // Autoloader. |
|
177 | + include_once(dirname(__FILE__).'/includes/auto-load-next-post-conditional-functions.php'); // Conditional functions. |
|
178 | + include_once(dirname(__FILE__).'/includes/auto-load-next-post-formatting-functions.php'); // Formatting functions. |
|
179 | + include_once(dirname(__FILE__).'/includes/auto-load-next-post-themes-supported.php'); // Handles all supported themes out of the box. |
|
180 | + include_once(dirname(__FILE__).'/includes/auto-load-next-post-core-functions.php'); // Contains core functions for the front/back end. |
|
181 | 181 | |
182 | 182 | // Include theme support. |
183 | 183 | alnp_include_theme_support(); |
184 | 184 | |
185 | 185 | // Customizer. |
186 | - include_once( dirname( __FILE__ ) . '/includes/customizer/class-alnp-customizer.php' ); |
|
187 | - include_once( dirname( __FILE__ ) . '/includes/customizer/class-alnp-customizer-scripts.php' ); |
|
186 | + include_once(dirname(__FILE__).'/includes/customizer/class-alnp-customizer.php'); |
|
187 | + include_once(dirname(__FILE__).'/includes/customizer/class-alnp-customizer-scripts.php'); |
|
188 | 188 | |
189 | 189 | // Include admin class to handle all back-end functions. |
190 | - if ( is_admin() ) { |
|
191 | - include_once( dirname( __FILE__ ) . '/includes/admin/class-alnp-admin.php' ); // Admin section. |
|
190 | + if (is_admin()) { |
|
191 | + include_once(dirname(__FILE__).'/includes/admin/class-alnp-admin.php'); // Admin section. |
|
192 | 192 | } |
193 | 193 | |
194 | 194 | // Install. |
195 | - require_once( dirname( __FILE__ ) . '/includes/class-alnp-install.php' ); |
|
195 | + require_once(dirname(__FILE__).'/includes/class-alnp-install.php'); |
|
196 | 196 | } // END includes() |
197 | 197 | |
198 | 198 | /** |
@@ -207,7 +207,7 @@ discard block |
||
207 | 207 | * @return void |
208 | 208 | */ |
209 | 209 | public function load_plugin_textdomain() { |
210 | - load_plugin_textdomain( 'auto-load-next-post', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' ); |
|
210 | + load_plugin_textdomain('auto-load-next-post', false, dirname(plugin_basename(__FILE__)).'/languages/'); |
|
211 | 211 | } // END load_plugin_textdomain() |
212 | 212 | |
213 | 213 | /** |
@@ -219,32 +219,32 @@ discard block |
||
219 | 219 | */ |
220 | 220 | public function alnp_enqueue_scripts() { |
221 | 221 | // Load the Javascript if found as a singluar post and the user is not a bot. |
222 | - if ( !alnp_is_bot() && is_singular() && get_post_type() == 'post' ) { |
|
222 | + if ( ! alnp_is_bot() && is_singular() && get_post_type() == 'post') { |
|
223 | 223 | // This helps the plugin decide to load the JavaScript in the footer or not. |
224 | - $load_in_footer = get_option( 'auto_load_next_post_js_footer' ); |
|
224 | + $load_in_footer = get_option('auto_load_next_post_js_footer'); |
|
225 | 225 | |
226 | - $this->load_file( 'auto-load-next-post-scrollspy', '/assets/js/libs/scrollspy.min.js', true, array('jquery'), AUTO_LOAD_NEXT_POST_VERSION, $load_in_footer ); |
|
226 | + $this->load_file('auto-load-next-post-scrollspy', '/assets/js/libs/scrollspy.min.js', true, array('jquery'), AUTO_LOAD_NEXT_POST_VERSION, $load_in_footer); |
|
227 | 227 | |
228 | 228 | // Only load History.js when not in the customizer. |
229 | - if ( ! is_customize_preview() ) { |
|
230 | - $this->load_file( 'auto-load-next-post-history', '/assets/js/libs/jquery.history.js', true, array('jquery'), AUTO_LOAD_NEXT_POST_VERSION, $load_in_footer ); |
|
229 | + if ( ! is_customize_preview()) { |
|
230 | + $this->load_file('auto-load-next-post-history', '/assets/js/libs/jquery.history.js', true, array('jquery'), AUTO_LOAD_NEXT_POST_VERSION, $load_in_footer); |
|
231 | 231 | } |
232 | 232 | |
233 | - $this->load_file( 'auto-load-next-post-script', '/assets/js/frontend/auto-load-next-post' . AUTO_LOAD_NEXT_POST_DEBUG_MODE.AUTO_LOAD_NEXT_POST_SCRIPT_MODE . '.js', true, array('auto-load-next-post-scrollspy'), AUTO_LOAD_NEXT_POST_VERSION, $load_in_footer ); |
|
233 | + $this->load_file('auto-load-next-post-script', '/assets/js/frontend/auto-load-next-post'.AUTO_LOAD_NEXT_POST_DEBUG_MODE.AUTO_LOAD_NEXT_POST_SCRIPT_MODE.'.js', true, array('auto-load-next-post-scrollspy'), AUTO_LOAD_NEXT_POST_VERSION, $load_in_footer); |
|
234 | 234 | |
235 | 235 | // Variables for the JavaScript |
236 | - wp_localize_script( 'auto-load-next-post-script', 'auto_load_next_post_params', array( |
|
236 | + wp_localize_script('auto-load-next-post-script', 'auto_load_next_post_params', array( |
|
237 | 237 | 'alnp_version' => AUTO_LOAD_NEXT_POST_VERSION, |
238 | - 'alnp_content_container' => get_option( 'auto_load_next_post_content_container' ), |
|
239 | - 'alnp_title_selector' => get_option( 'auto_load_next_post_title_selector' ), |
|
240 | - 'alnp_navigation_container' => get_option( 'auto_load_next_post_navigation_container' ), |
|
241 | - 'alnp_comments_container' => get_option( 'auto_load_next_post_comments_container' ), |
|
242 | - 'alnp_remove_comments' => get_option( 'auto_load_next_post_remove_comments' ), |
|
243 | - 'alnp_google_analytics' => get_option( 'auto_load_next_post_google_analytics' ), |
|
244 | - 'alnp_event_on_load' => get_option( 'auto_load_next_post_on_load_event' ), |
|
245 | - 'alnp_event_on_entering' => get_option( 'auto_load_next_post_on_entering_event' ), |
|
238 | + 'alnp_content_container' => get_option('auto_load_next_post_content_container'), |
|
239 | + 'alnp_title_selector' => get_option('auto_load_next_post_title_selector'), |
|
240 | + 'alnp_navigation_container' => get_option('auto_load_next_post_navigation_container'), |
|
241 | + 'alnp_comments_container' => get_option('auto_load_next_post_comments_container'), |
|
242 | + 'alnp_remove_comments' => get_option('auto_load_next_post_remove_comments'), |
|
243 | + 'alnp_google_analytics' => get_option('auto_load_next_post_google_analytics'), |
|
244 | + 'alnp_event_on_load' => get_option('auto_load_next_post_on_load_event'), |
|
245 | + 'alnp_event_on_entering' => get_option('auto_load_next_post_on_entering_event'), |
|
246 | 246 | 'alnp_is_customizer' => $this->is_alnp_using_customizer(), |
247 | - ) ); |
|
247 | + )); |
|
248 | 248 | } // END if is_singular() && get_post_type() |
249 | 249 | } // END alnp_enqueue_scripts() |
250 | 250 | |
@@ -257,7 +257,7 @@ discard block |
||
257 | 257 | * @return string|boolean |
258 | 258 | */ |
259 | 259 | public static function is_alnp_using_customizer() { |
260 | - if ( is_customize_preview() ) { |
|
260 | + if (is_customize_preview()) { |
|
261 | 261 | return "yes"; |
262 | 262 | } |
263 | 263 | |
@@ -279,21 +279,21 @@ discard block |
||
279 | 279 | * @param bool $footer Optional, can set the JavaScript to load in the footer instead. |
280 | 280 | * @global string $wp_version |
281 | 281 | */ |
282 | - public static function load_file( $name, $file_path, $is_script = false, $support = array(), $version = '', $footer = false ) { |
|
282 | + public static function load_file($name, $file_path, $is_script = false, $support = array(), $version = '', $footer = false) { |
|
283 | 283 | global $wp_version; |
284 | 284 | |
285 | - $url = AUTO_LOAD_NEXT_POST_URL_PATH . $file_path; // URL to the file. |
|
285 | + $url = AUTO_LOAD_NEXT_POST_URL_PATH.$file_path; // URL to the file. |
|
286 | 286 | |
287 | - if ( file_exists( AUTO_LOAD_NEXT_POST_FILE_PATH . $file_path ) ) { |
|
288 | - if ( $is_script ) { |
|
289 | - if ( !wp_script_is( $name, 'registered' ) ) { |
|
290 | - wp_register_script( $name, $url, $support, $version, $footer ); |
|
291 | - wp_enqueue_script( $name ); |
|
287 | + if (file_exists(AUTO_LOAD_NEXT_POST_FILE_PATH.$file_path)) { |
|
288 | + if ($is_script) { |
|
289 | + if ( ! wp_script_is($name, 'registered')) { |
|
290 | + wp_register_script($name, $url, $support, $version, $footer); |
|
291 | + wp_enqueue_script($name); |
|
292 | 292 | } |
293 | 293 | } else { |
294 | - if ( !wp_style_is( $name, 'registered' ) ) { |
|
295 | - wp_register_style( $name, $url ); |
|
296 | - wp_enqueue_style( $name ); |
|
294 | + if ( ! wp_style_is($name, 'registered')) { |
|
295 | + wp_register_style($name, $url); |
|
296 | + wp_enqueue_style($name); |
|
297 | 297 | } |
298 | 298 | } // end if |
299 | 299 | } // end if |
@@ -8,32 +8,32 @@ |
||
8 | 8 | * @version 1.5.0 |
9 | 9 | */ |
10 | 10 | |
11 | -if ( have_posts() ) : |
|
11 | +if (have_posts()) : |
|
12 | 12 | |
13 | 13 | // Load content before the loop. |
14 | - do_action( 'alnp_load_before_loop' ); |
|
14 | + do_action('alnp_load_before_loop'); |
|
15 | 15 | |
16 | 16 | // Check that there are posts to load. |
17 | - while ( have_posts() ) : the_post(); |
|
17 | + while (have_posts()) : the_post(); |
|
18 | 18 | |
19 | 19 | // Load content before the post content. |
20 | - do_action( 'alnp_load_before_content' ); |
|
20 | + do_action('alnp_load_before_content'); |
|
21 | 21 | |
22 | 22 | // Load 'loop-templates/content-single.php' |
23 | - get_template_part( alnp_template_location() . 'content', 'single' ); |
|
23 | + get_template_part(alnp_template_location().'content', 'single'); |
|
24 | 24 | |
25 | 25 | // Load content after the post content. |
26 | - do_action( 'alnp_load_after_content' ); |
|
26 | + do_action('alnp_load_after_content'); |
|
27 | 27 | |
28 | 28 | // End the loop. |
29 | 29 | endwhile; |
30 | 30 | |
31 | 31 | // Load content after the loop. |
32 | - do_action( 'alnp_load_after_loop' ); |
|
32 | + do_action('alnp_load_after_loop'); |
|
33 | 33 | |
34 | 34 | else : |
35 | 35 | |
36 | 36 | // Load content if there are no more posts. |
37 | - do_action( 'alnp_no_more_posts' ); |
|
37 | + do_action('alnp_no_more_posts'); |
|
38 | 38 | |
39 | 39 | endif; // END if have_posts() |
@@ -31,9 +31,11 @@ |
||
31 | 31 | // Load content after the loop. |
32 | 32 | do_action( 'alnp_load_after_loop' ); |
33 | 33 | |
34 | -else : |
|
34 | +else { |
|
35 | + : |
|
35 | 36 | |
36 | 37 | // Load content if there are no more posts. |
37 | 38 | do_action( 'alnp_no_more_posts' ); |
39 | +} |
|
38 | 40 | |
39 | 41 | endif; // END if have_posts() |
@@ -8,22 +8,22 @@ discard block |
||
8 | 8 | * @version 1.5.0 |
9 | 9 | */ |
10 | 10 | |
11 | -if ( have_posts() ) : |
|
11 | +if (have_posts()) : |
|
12 | 12 | |
13 | 13 | // Load content before the loop. |
14 | - do_action( 'alnp_load_before_loop' ); |
|
14 | + do_action('alnp_load_before_loop'); |
|
15 | 15 | |
16 | 16 | // Check that there are posts to load. |
17 | - while ( have_posts() ) : the_post(); |
|
17 | + while (have_posts()) : the_post(); |
|
18 | 18 | |
19 | 19 | // Load content before the post content. |
20 | - do_action( 'alnp_load_before_content' ); |
|
20 | + do_action('alnp_load_before_content'); |
|
21 | 21 | ?> |
22 | 22 | <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> |
23 | 23 | <header class="entry-header"> |
24 | 24 | <h1 class="entry-title"><?php the_title(); ?></h1> |
25 | 25 | |
26 | - <?php if ( 'post' == get_post_type() ) : ?> |
|
26 | + <?php if ('post' == get_post_type()) : ?> |
|
27 | 27 | <div class="entry-meta"> |
28 | 28 | <?php twentyeleven_posted_on(); ?> |
29 | 29 | </div><!-- .entry-meta --> |
@@ -32,49 +32,49 @@ discard block |
||
32 | 32 | |
33 | 33 | <div class="entry-content"> |
34 | 34 | <?php the_content(); ?> |
35 | - <?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'auto-load-next-post' ), 'after' => '</div>' ) ); ?> |
|
35 | + <?php wp_link_pages(array('before' => '<div class="page-link">'.__('Pages:', 'auto-load-next-post'), 'after' => '</div>')); ?> |
|
36 | 36 | </div><!-- .entry-content --> |
37 | 37 | |
38 | 38 | <footer class="entry-meta"> |
39 | 39 | <?php |
40 | 40 | /* translators: used between list items, there is a space after the comma */ |
41 | - $categories_list = get_the_category_list( __( ', ', 'auto-load-next-post' ) ); |
|
41 | + $categories_list = get_the_category_list(__(', ', 'auto-load-next-post')); |
|
42 | 42 | |
43 | 43 | /* translators: used between list items, there is a space after the comma */ |
44 | - $tag_list = get_the_tag_list( '', __( ', ', 'auto-load-next-post' ) ); |
|
45 | - if ( '' != $tag_list ) { |
|
46 | - $utility_text = __( 'This entry was posted in %1$s and tagged %2$s by <a href="%6$s">%5$s</a>. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', 'auto-load-next-post' ); |
|
47 | - } elseif ( '' != $categories_list ) { |
|
48 | - $utility_text = __( 'This entry was posted in %1$s by <a href="%6$s">%5$s</a>. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', 'auto-load-next-post' ); |
|
44 | + $tag_list = get_the_tag_list('', __(', ', 'auto-load-next-post')); |
|
45 | + if ('' != $tag_list) { |
|
46 | + $utility_text = __('This entry was posted in %1$s and tagged %2$s by <a href="%6$s">%5$s</a>. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', 'auto-load-next-post'); |
|
47 | + } elseif ('' != $categories_list) { |
|
48 | + $utility_text = __('This entry was posted in %1$s by <a href="%6$s">%5$s</a>. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', 'auto-load-next-post'); |
|
49 | 49 | } else { |
50 | - $utility_text = __( 'This entry was posted by <a href="%6$s">%5$s</a>. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', 'auto-load-next-post' ); |
|
50 | + $utility_text = __('This entry was posted by <a href="%6$s">%5$s</a>. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', 'auto-load-next-post'); |
|
51 | 51 | } |
52 | 52 | |
53 | 53 | printf( |
54 | 54 | $utility_text, |
55 | 55 | $categories_list, |
56 | 56 | $tag_list, |
57 | - esc_url( get_permalink() ), |
|
58 | - the_title_attribute( 'echo=0' ), |
|
57 | + esc_url(get_permalink()), |
|
58 | + the_title_attribute('echo=0'), |
|
59 | 59 | get_the_author(), |
60 | - esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ) |
|
60 | + esc_url(get_author_posts_url(get_the_author_meta('ID'))) |
|
61 | 61 | ); |
62 | 62 | ?> |
63 | 63 | |
64 | - <?php if ( get_the_author_meta( 'description' ) && ( ! function_exists( 'is_multi_author' ) || is_multi_author() ) ) : // If a user has filled out their description and this is a multi-author blog, show a bio on their entries ?> |
|
64 | + <?php if (get_the_author_meta('description') && ( ! function_exists('is_multi_author') || is_multi_author())) : // If a user has filled out their description and this is a multi-author blog, show a bio on their entries ?> |
|
65 | 65 | <div id="author-info"> |
66 | 66 | <div id="author-avatar"> |
67 | 67 | <?php |
68 | 68 | /** This filter is documented in author.php */ |
69 | - echo get_avatar( get_the_author_meta( 'user_email' ), apply_filters( 'twentyeleven_author_bio_avatar_size', 68 ) ); |
|
69 | + echo get_avatar(get_the_author_meta('user_email'), apply_filters('twentyeleven_author_bio_avatar_size', 68)); |
|
70 | 70 | ?> |
71 | 71 | </div><!-- #author-avatar --> |
72 | 72 | <div id="author-description"> |
73 | - <h2><?php printf( __( 'About %s', 'auto-load-next-post' ), get_the_author() ); ?></h2> |
|
74 | - <?php the_author_meta( 'description' ); ?> |
|
73 | + <h2><?php printf(__('About %s', 'auto-load-next-post'), get_the_author()); ?></h2> |
|
74 | + <?php the_author_meta('description'); ?> |
|
75 | 75 | <div id="author-link"> |
76 | - <a href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ); ?>" rel="author"> |
|
77 | - <?php printf( __( 'View all posts by %s <span class="meta-nav">→</span>', 'auto-load-next-post' ), get_the_author() ); ?> |
|
76 | + <a href="<?php echo esc_url(get_author_posts_url(get_the_author_meta('ID'))); ?>" rel="author"> |
|
77 | + <?php printf(__('View all posts by %s <span class="meta-nav">→</span>', 'auto-load-next-post'), get_the_author()); ?> |
|
78 | 78 | </a> |
79 | 79 | </div><!-- #author-link --> |
80 | 80 | </div><!-- #author-description --> |
@@ -84,17 +84,17 @@ discard block |
||
84 | 84 | </article><!-- #post-<?php the_ID(); ?> --> |
85 | 85 | <?php |
86 | 86 | // Load content after the post content. |
87 | - do_action( 'alnp_load_after_content' ); |
|
87 | + do_action('alnp_load_after_content'); |
|
88 | 88 | |
89 | 89 | // End the loop. |
90 | 90 | endwhile; |
91 | 91 | |
92 | 92 | // Load content after the loop. |
93 | - do_action( 'alnp_load_after_loop' ); |
|
93 | + do_action('alnp_load_after_loop'); |
|
94 | 94 | |
95 | 95 | else : |
96 | 96 | |
97 | 97 | // Load content if there are no more posts. |
98 | - do_action( 'alnp_no_more_posts' ); |
|
98 | + do_action('alnp_no_more_posts'); |
|
99 | 99 | |
100 | 100 | endif; // END if have_posts() |
@@ -31,9 +31,11 @@ |
||
31 | 31 | // Load content after the loop. |
32 | 32 | do_action( 'alnp_load_after_loop' ); |
33 | 33 | |
34 | -else : |
|
34 | +else { |
|
35 | + : |
|
35 | 36 | |
36 | 37 | // Load content if there are no more posts. |
37 | 38 | do_action( 'alnp_no_more_posts' ); |
39 | +} |
|
38 | 40 | |
39 | 41 | endif; // END if have_posts() |
@@ -8,40 +8,40 @@ |
||
8 | 8 | * @version 1.5.0 |
9 | 9 | */ |
10 | 10 | |
11 | -if ( have_posts() ) : |
|
11 | +if (have_posts()) : |
|
12 | 12 | |
13 | 13 | // Load content before the loop. |
14 | - do_action( 'alnp_load_before_loop' ); |
|
14 | + do_action('alnp_load_before_loop'); |
|
15 | 15 | |
16 | 16 | // Check that there are more posts to load. |
17 | - while ( have_posts() ) : the_post(); |
|
17 | + while (have_posts()) : the_post(); |
|
18 | 18 | |
19 | 19 | $post_type = alnp_get_post_type(); // Post Type e.g. single |
20 | 20 | |
21 | 21 | // Load content before the post content. |
22 | - do_action( 'alnp_load_before_content' ); |
|
22 | + do_action('alnp_load_before_content'); |
|
23 | 23 | |
24 | 24 | // Load content before the post content for a specific post type. |
25 | - do_action( 'alnp_load_before_content_post_type_' . $post_type ); |
|
25 | + do_action('alnp_load_before_content_post_type_'.$post_type); |
|
26 | 26 | |
27 | 27 | // Load Make partial template for the correct post type. |
28 | - get_template_part( 'partials/content', $post_type ); |
|
28 | + get_template_part('partials/content', $post_type); |
|
29 | 29 | |
30 | 30 | // Load content after the post content for a specific post type. |
31 | - do_action( 'alnp_load_after_content_post_type_' . $post_type ); |
|
31 | + do_action('alnp_load_after_content_post_type_'.$post_type); |
|
32 | 32 | |
33 | 33 | // Load content before the post content. |
34 | - do_action( 'alnp_load_after_content' ); |
|
34 | + do_action('alnp_load_after_content'); |
|
35 | 35 | |
36 | 36 | // End the loop. |
37 | 37 | endwhile; |
38 | 38 | |
39 | 39 | // Load content after the loop. |
40 | - do_action( 'alnp_load_after_loop' ); |
|
40 | + do_action('alnp_load_after_loop'); |
|
41 | 41 | |
42 | 42 | else : |
43 | 43 | |
44 | 44 | // Load content if there are no more posts. |
45 | - do_action( 'alnp_no_more_posts' ); |
|
45 | + do_action('alnp_no_more_posts'); |
|
46 | 46 | |
47 | 47 | endif; // END if have_posts() |
@@ -39,9 +39,11 @@ |
||
39 | 39 | // Load content after the loop. |
40 | 40 | do_action( 'alnp_load_after_loop' ); |
41 | 41 | |
42 | - else : |
|
42 | + else { |
|
43 | + : |
|
43 | 44 | |
44 | 45 | // Load content if there are no more posts. |
45 | 46 | do_action( 'alnp_no_more_posts' ); |
47 | + } |
|
46 | 48 | |
47 | 49 | endif; // END if have_posts() |
@@ -8,16 +8,16 @@ discard block |
||
8 | 8 | * @version 1.5.0 |
9 | 9 | */ |
10 | 10 | |
11 | -if ( have_posts() ) : |
|
11 | +if (have_posts()) : |
|
12 | 12 | |
13 | 13 | // Load content before the loop. |
14 | - do_action( 'alnp_load_before_loop' ); |
|
14 | + do_action('alnp_load_before_loop'); |
|
15 | 15 | |
16 | 16 | // Check that there are posts to load. |
17 | - while ( have_posts() ) : the_post(); |
|
17 | + while (have_posts()) : the_post(); |
|
18 | 18 | |
19 | 19 | // Load content before the post content. |
20 | - do_action( 'alnp_load_before_content' ); |
|
20 | + do_action('alnp_load_before_content'); |
|
21 | 21 | ?> |
22 | 22 | |
23 | 23 | <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>> |
@@ -29,26 +29,26 @@ discard block |
||
29 | 29 | |
30 | 30 | <div class="entry-content"> |
31 | 31 | <?php the_content(); ?> |
32 | - <?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'auto-load-next-post' ), 'after' => '</div>' ) ); ?> |
|
32 | + <?php wp_link_pages(array('before' => '<div class="page-link">'.__('Pages:', 'auto-load-next-post'), 'after' => '</div>')); ?> |
|
33 | 33 | </div><!-- .entry-content --> |
34 | 34 | |
35 | - <?php if ( get_the_author_meta( 'description' ) ) : // If a user has filled out their description, show a bio on their entries ?> |
|
35 | + <?php if (get_the_author_meta('description')) : // If a user has filled out their description, show a bio on their entries ?> |
|
36 | 36 | <div id="entry-author-info"> |
37 | 37 | <div id="author-avatar"> |
38 | 38 | |
39 | 39 | <?php |
40 | 40 | /** This filter is documented in author.php */ |
41 | - echo get_avatar( get_the_author_meta( 'user_email' ), apply_filters( 'twentyten_author_bio_avatar_size', 60 ) ); |
|
41 | + echo get_avatar(get_the_author_meta('user_email'), apply_filters('twentyten_author_bio_avatar_size', 60)); |
|
42 | 42 | ?> |
43 | 43 | </div><!-- #author-avatar --> |
44 | 44 | |
45 | 45 | <div id="author-description"> |
46 | 46 | |
47 | - <h2><?php printf( __( 'About %s', 'auto-load-next-post' ), get_the_author() ); ?></h2> |
|
48 | - <?php the_author_meta( 'description' ); ?> |
|
47 | + <h2><?php printf(__('About %s', 'auto-load-next-post'), get_the_author()); ?></h2> |
|
48 | + <?php the_author_meta('description'); ?> |
|
49 | 49 | <div id="author-link"> |
50 | - <a href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ); ?>" rel="author"> |
|
51 | - <?php printf( __( 'View all posts by %s <span class="meta-nav">→</span>', 'auto-load-next-post' ), get_the_author() ); ?> |
|
50 | + <a href="<?php echo esc_url(get_author_posts_url(get_the_author_meta('ID'))); ?>" rel="author"> |
|
51 | + <?php printf(__('View all posts by %s <span class="meta-nav">→</span>', 'auto-load-next-post'), get_the_author()); ?> |
|
52 | 52 | </a> |
53 | 53 | </div><!-- #author-link --> |
54 | 54 | |
@@ -64,22 +64,22 @@ discard block |
||
64 | 64 | </div><!-- #post-## --> |
65 | 65 | |
66 | 66 | <div id="nav-below" class="navigation"> |
67 | - <div class="nav-previous"><?php previous_post_link( '%link', '<span class="meta-nav">' . _x( '←', 'Previous post link', 'auto-load-next-post' ) . '</span> %title' ); ?></div> |
|
67 | + <div class="nav-previous"><?php previous_post_link('%link', '<span class="meta-nav">'._x('←', 'Previous post link', 'auto-load-next-post').'</span> %title'); ?></div> |
|
68 | 68 | </div><!-- #nav-below --> |
69 | 69 | |
70 | 70 | <?php |
71 | 71 | // Load content after the post content. |
72 | - do_action( 'alnp_load_after_content' ); |
|
72 | + do_action('alnp_load_after_content'); |
|
73 | 73 | |
74 | 74 | // End the loop. |
75 | 75 | endwhile; |
76 | 76 | |
77 | 77 | // Load content after the loop. |
78 | - do_action( 'alnp_load_after_loop' ); |
|
78 | + do_action('alnp_load_after_loop'); |
|
79 | 79 | |
80 | 80 | else : |
81 | 81 | |
82 | 82 | // Load content if there are no more posts. |
83 | - do_action( 'alnp_no_more_posts' ); |
|
83 | + do_action('alnp_no_more_posts'); |
|
84 | 84 | |
85 | 85 | endif; // END if have_posts() |
@@ -31,9 +31,11 @@ |
||
31 | 31 | // Load content after the loop. |
32 | 32 | do_action( 'alnp_load_after_loop' ); |
33 | 33 | |
34 | -else : |
|
34 | +else { |
|
35 | + : |
|
35 | 36 | |
36 | 37 | // Load content if there are no more posts. |
37 | 38 | do_action( 'alnp_no_more_posts' ); |
39 | +} |
|
38 | 40 | |
39 | 41 | endif; // END if have_posts() |
@@ -16,69 +16,69 @@ |
||
16 | 16 | * @version 1.5.0 |
17 | 17 | */ |
18 | 18 | |
19 | -if ( have_posts() ) : |
|
19 | +if (have_posts()) : |
|
20 | 20 | |
21 | 21 | // Load content before the loop. |
22 | - do_action( 'alnp_load_before_loop' ); |
|
22 | + do_action('alnp_load_before_loop'); |
|
23 | 23 | |
24 | 24 | // Check that there are posts to load. |
25 | - while ( have_posts() ) : the_post(); |
|
25 | + while (have_posts()) : the_post(); |
|
26 | 26 | |
27 | 27 | $post_format = get_post_format(); // Post Format e.g. video |
28 | 28 | |
29 | 29 | $post_type = alnp_get_post_type(); // Post Type e.g. single |
30 | 30 | |
31 | 31 | // Load content before the post content. |
32 | - do_action( 'alnp_load_before_content' ); |
|
32 | + do_action('alnp_load_before_content'); |
|
33 | 33 | |
34 | 34 | // Load content before the post content for a specific post format. |
35 | - do_action( 'alnp_load_before_content_post_format_' . $post_format ); |
|
35 | + do_action('alnp_load_before_content_post_format_'.$post_format); |
|
36 | 36 | |
37 | 37 | // Load content before the post content for a specific post type. |
38 | - do_action( 'alnp_load_before_content_post_type_' . $post_type ); |
|
38 | + do_action('alnp_load_before_content_post_type_'.$post_type); |
|
39 | 39 | |
40 | - if ( false === $post_format ) { |
|
40 | + if (false === $post_format) { |
|
41 | 41 | /* |
42 | 42 | * Include the Post-Type-specific template for the content. |
43 | 43 | * content-___.php (where ___ is the Post Type name). |
44 | 44 | */ |
45 | - if ( locate_template( alnp_template_location() . 'content-' . $post_type . '.php') != '' ) { |
|
46 | - get_template_part( alnp_template_location() . 'content', $post_type ); |
|
45 | + if (locate_template(alnp_template_location().'content-'.$post_type.'.php') != '') { |
|
46 | + get_template_part(alnp_template_location().'content', $post_type); |
|
47 | 47 | } else { |
48 | 48 | // If no specific post type found then fallback to standard content.php file. |
49 | - get_template_part( alnp_template_location() . 'content' ); |
|
49 | + get_template_part(alnp_template_location().'content'); |
|
50 | 50 | } |
51 | 51 | } else { |
52 | 52 | /* |
53 | 53 | * Include the Post-Format-specific template for the content. |
54 | 54 | * called format-___.php (where ___ is the Post Format name). |
55 | 55 | */ |
56 | - if ( locate_template( alnp_template_location() . 'format-' . $post_format . '.php' ) != '' ) { |
|
57 | - get_template_part( alnp_template_location() . 'format', $post_format ); |
|
56 | + if (locate_template(alnp_template_location().'format-'.$post_format.'.php') != '') { |
|
57 | + get_template_part(alnp_template_location().'format', $post_format); |
|
58 | 58 | } else { |
59 | 59 | // If no format-{post-format}.php file found then fallback to content-{post-format}.php |
60 | - get_template_part( alnp_template_location() . 'content', $post_format ); |
|
60 | + get_template_part(alnp_template_location().'content', $post_format); |
|
61 | 61 | } |
62 | 62 | } |
63 | 63 | |
64 | 64 | // Load content after the post content for a specific post type. |
65 | - do_action( 'alnp_load_after_content_post_type_' . $post_type ); |
|
65 | + do_action('alnp_load_after_content_post_type_'.$post_type); |
|
66 | 66 | |
67 | 67 | // Load content after the post content for a specific post format. |
68 | - do_action( 'alnp_load_after_content_post_format_' . $post_format ); |
|
68 | + do_action('alnp_load_after_content_post_format_'.$post_format); |
|
69 | 69 | |
70 | 70 | // Load content after the post content. |
71 | - do_action( 'alnp_load_after_content' ); |
|
71 | + do_action('alnp_load_after_content'); |
|
72 | 72 | |
73 | 73 | // End the loop. |
74 | 74 | endwhile; |
75 | 75 | |
76 | 76 | // Load content after the loop. |
77 | - do_action( 'alnp_load_after_loop' ); |
|
77 | + do_action('alnp_load_after_loop'); |
|
78 | 78 | |
79 | 79 | else : |
80 | 80 | |
81 | 81 | // Load content if there are no more posts. |
82 | - do_action( 'alnp_no_more_posts' ); |
|
82 | + do_action('alnp_no_more_posts'); |
|
83 | 83 | |
84 | 84 | endif; // END if have_posts() |
@@ -31,9 +31,11 @@ |
||
31 | 31 | // Load content after the loop. |
32 | 32 | do_action( 'alnp_load_after_loop' ); |
33 | 33 | |
34 | -else : |
|
34 | +else { |
|
35 | + : |
|
35 | 36 | |
36 | 37 | // Load content if there are no more posts. |
37 | 38 | do_action( 'alnp_no_more_posts' ); |
39 | +} |
|
38 | 40 | |
39 | 41 | endif; // END if have_posts() |
@@ -12,7 +12,7 @@ discard block |
||
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 | |
@@ -28,7 +28,7 @@ discard block |
||
28 | 28 | */ |
29 | 29 | public function __construct() { |
30 | 30 | // Update theme selectors if the theme was switched and it has theme support. |
31 | - add_action( 'after_switch_theme', array( $this, 'update_alnp_theme_selectors' ), 15, 2 ); |
|
31 | + add_action('after_switch_theme', array($this, 'update_alnp_theme_selectors'), 15, 2); |
|
32 | 32 | } // END __construct() |
33 | 33 | |
34 | 34 | /** |
@@ -37,16 +37,16 @@ discard block |
||
37 | 37 | * |
38 | 38 | * @access public |
39 | 39 | */ |
40 | - public function update_alnp_theme_selectors( $stylesheet = '', $old_theme = false ) { |
|
40 | + public function update_alnp_theme_selectors($stylesheet = '', $old_theme = false) { |
|
41 | 41 | // Check if Auto Load Next Post is supported before updating the theme selectors. |
42 | - if ( is_alnp_supported() ) { |
|
43 | - $theme_support = get_theme_support( 'auto-load-next-post' ); |
|
42 | + if (is_alnp_supported()) { |
|
43 | + $theme_support = get_theme_support('auto-load-next-post'); |
|
44 | 44 | |
45 | - if ( is_array( $theme_support ) ) { |
|
45 | + if (is_array($theme_support)) { |
|
46 | 46 | // Preferred implementation, where theme provides an array of options |
47 | - if ( isset( $theme_support[0] ) && is_array( $theme_support[0] ) ) { |
|
48 | - foreach( $theme_support[0] as $key => $value ) { |
|
49 | - if ( ! empty( $value ) ) update_option( 'auto_load_next_post_' . $key, $value ); |
|
47 | + if (isset($theme_support[0]) && is_array($theme_support[0])) { |
|
48 | + foreach ($theme_support[0] as $key => $value) { |
|
49 | + if ( ! empty($value)) update_option('auto_load_next_post_'.$key, $value); |
|
50 | 50 | } |
51 | 51 | } |
52 | 52 | } |
@@ -46,7 +46,9 @@ |
||
46 | 46 | // Preferred implementation, where theme provides an array of options |
47 | 47 | if ( isset( $theme_support[0] ) && is_array( $theme_support[0] ) ) { |
48 | 48 | foreach( $theme_support[0] as $key => $value ) { |
49 | - if ( ! empty( $value ) ) update_option( 'auto_load_next_post_' . $key, $value ); |
|
49 | + if ( ! empty( $value ) ) { |
|
50 | + update_option( 'auto_load_next_post_' . $key, $value ); |
|
51 | + } |
|
50 | 52 | } |
51 | 53 | } |
52 | 54 | } |
@@ -12,11 +12,11 @@ discard block |
||
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( 'Auto_Load_Next_Post_Autoloader' ) ) { |
|
19 | +if ( ! class_exists('Auto_Load_Next_Post_Autoloader')) { |
|
20 | 20 | |
21 | 21 | class Auto_Load_Next_Post_Autoloader { |
22 | 22 | |
@@ -32,13 +32,13 @@ discard block |
||
32 | 32 | * The Constructor. |
33 | 33 | */ |
34 | 34 | public function __construct() { |
35 | - if ( function_exists( '__autoload' ) ) { |
|
36 | - spl_autoload_register( '__autoload' ); |
|
35 | + if (function_exists('__autoload')) { |
|
36 | + spl_autoload_register('__autoload'); |
|
37 | 37 | } |
38 | 38 | |
39 | - spl_autoload_register( array( $this, 'autoload' ) ); |
|
39 | + spl_autoload_register(array($this, 'autoload')); |
|
40 | 40 | |
41 | - $this->include_path = untrailingslashit( plugin_dir_path( AUTO_LOAD_NEXT_POST_FILE ) ) . '/includes/'; |
|
41 | + $this->include_path = untrailingslashit(plugin_dir_path(AUTO_LOAD_NEXT_POST_FILE)).'/includes/'; |
|
42 | 42 | } |
43 | 43 | |
44 | 44 | /** |
@@ -48,8 +48,8 @@ discard block |
||
48 | 48 | * @param string $class Class name. |
49 | 49 | * @return string |
50 | 50 | */ |
51 | - private function get_file_name_from_class( $class ) { |
|
52 | - return 'class-' . str_replace( '_', '-', $class ) . '.php'; |
|
51 | + private function get_file_name_from_class($class) { |
|
52 | + return 'class-'.str_replace('_', '-', $class).'.php'; |
|
53 | 53 | } // END get_file_name_from_class() |
54 | 54 | |
55 | 55 | /** |
@@ -59,8 +59,8 @@ discard block |
||
59 | 59 | * @param string $path File path. |
60 | 60 | * @return bool Successful or not. |
61 | 61 | */ |
62 | - private function load_file( $path ) { |
|
63 | - if ( $path && is_readable( $path ) ) { |
|
62 | + private function load_file($path) { |
|
63 | + if ($path && is_readable($path)) { |
|
64 | 64 | include_once $path; |
65 | 65 | return true; |
66 | 66 | } |
@@ -73,22 +73,22 @@ discard block |
||
73 | 73 | * @access public |
74 | 74 | * @param string $class Class name. |
75 | 75 | */ |
76 | - public function autoload( $class ) { |
|
77 | - $class = strtolower( $class ); |
|
76 | + public function autoload($class) { |
|
77 | + $class = strtolower($class); |
|
78 | 78 | |
79 | - if ( 0 !== strpos( $class, 'alnp_' ) ) { |
|
79 | + if (0 !== strpos($class, 'alnp_')) { |
|
80 | 80 | return; |
81 | 81 | } |
82 | 82 | |
83 | - $file = $this->get_file_name_from_class( $class ); |
|
83 | + $file = $this->get_file_name_from_class($class); |
|
84 | 84 | $path = ''; |
85 | 85 | |
86 | - if ( 0 === strpos( $class, 'alnp_admin' ) ) { |
|
87 | - $path = $this->include_path . 'admin/'; |
|
86 | + if (0 === strpos($class, 'alnp_admin')) { |
|
87 | + $path = $this->include_path.'admin/'; |
|
88 | 88 | } |
89 | 89 | |
90 | - if ( empty( $path ) || ! $this->load_file( $path . $file ) ) { |
|
91 | - $this->load_file( $this->include_path . $file ); |
|
90 | + if (empty($path) || ! $this->load_file($path.$file)) { |
|
91 | + $this->load_file($this->include_path.$file); |
|
92 | 92 | } |
93 | 93 | } // END autoload() |
94 | 94 |
@@ -10,7 +10,7 @@ discard block |
||
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 | |
@@ -19,12 +19,12 @@ discard block |
||
19 | 19 | <div class="notice notice-success auto-load-next-post-notice is-dismissible"> |
20 | 20 | <div class="auto-load-next-post-notice-inner"> |
21 | 21 | <div class="auto-load-next-post-notice-icon"> |
22 | - <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 | + <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'); ?>" /> |
|
23 | 23 | </div> |
24 | 24 | |
25 | 25 | <div class="auto-load-next-post-notice-content"> |
26 | - <h3><?php echo esc_html__( 'Congratulations!', 'auto-load-next-post' ); ?></h3> |
|
27 | - <p><?php echo sprintf( __( 'Your current theme <strong>%1$s</strong> is supported. %2$s is ready to increase your pageviews. There is nothing else to setup so your good to go.', 'auto-load-next-post' ), $active_theme->name, esc_html__( 'Auto Load Next Post', 'auto-load-next-post' ) ); ?></p> |
|
26 | + <h3><?php echo esc_html__('Congratulations!', 'auto-load-next-post'); ?></h3> |
|
27 | + <p><?php echo sprintf(__('Your current theme <strong>%1$s</strong> is supported. %2$s is ready to increase your pageviews. There is nothing else to setup so your good to go.', 'auto-load-next-post'), $active_theme->name, esc_html__('Auto Load Next Post', 'auto-load-next-post')); ?></p> |
|
28 | 28 | </div> |
29 | 29 | </div> |
30 | 30 | </div> |