@@ -11,11 +11,11 @@ discard block |
||
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 | -if ( ! class_exists( 'Auto_Load_Next_Post_Install' ) ) { |
|
18 | +if ( ! class_exists('Auto_Load_Next_Post_Install')) { |
|
19 | 19 | |
20 | 20 | class Auto_Load_Next_Post_Install { |
21 | 21 | |
@@ -36,11 +36,11 @@ discard block |
||
36 | 36 | * @access public |
37 | 37 | */ |
38 | 38 | public function __construct() { |
39 | - add_action( 'init', array( __CLASS__, 'add_rewrite_endpoint' ), 0 ); |
|
40 | - add_action( 'init', array( __CLASS__, 'check_version' ), 5 ); |
|
39 | + add_action('init', array(__CLASS__, 'add_rewrite_endpoint'), 0); |
|
40 | + add_action('init', array(__CLASS__, 'check_version'), 5); |
|
41 | 41 | |
42 | 42 | // Get plugin version. |
43 | - self::$current_version = get_option( 'auto_load_next_post_version' ); |
|
43 | + self::$current_version = get_option('auto_load_next_post_version'); |
|
44 | 44 | } // END __construct() |
45 | 45 | |
46 | 46 | /** |
@@ -53,9 +53,9 @@ discard block |
||
53 | 53 | * @since 1.4.10 |
54 | 54 | */ |
55 | 55 | public static function check_version() { |
56 | - if ( ! defined( 'IFRAME_REQUEST' ) && version_compare( self::$current_version, AUTO_LOAD_NEXT_POST_VERSION, '<' ) ) { |
|
56 | + if ( ! defined('IFRAME_REQUEST') && version_compare(self::$current_version, AUTO_LOAD_NEXT_POST_VERSION, '<')) { |
|
57 | 57 | self::install(); |
58 | - do_action( 'auto_load_next_post_updated' ); |
|
58 | + do_action('auto_load_next_post_updated'); |
|
59 | 59 | } |
60 | 60 | } // END check_version() |
61 | 61 | |
@@ -68,19 +68,19 @@ discard block |
||
68 | 68 | * @version 1.5.0 |
69 | 69 | */ |
70 | 70 | public static function install() { |
71 | - if ( ! is_blog_installed() ) { |
|
71 | + if ( ! is_blog_installed()) { |
|
72 | 72 | return; |
73 | 73 | } |
74 | 74 | |
75 | 75 | // Check if we are not already running this routine. |
76 | - if ( 'yes' === get_transient( 'alnp_installing' ) ) { |
|
76 | + if ('yes' === get_transient('alnp_installing')) { |
|
77 | 77 | return; |
78 | 78 | } |
79 | 79 | |
80 | 80 | // If we made it till here nothing is running yet, lets set the transient now for five minutes. |
81 | - set_transient( 'alnp_installing', 'yes', MINUTE_IN_SECONDS * 5 ); |
|
82 | - if ( ! defined( 'AUTO_LOAD_NEXT_POST_INSTALLING' ) ) { |
|
83 | - define( 'AUTO_LOAD_NEXT_POST_INSTALLING', true ); |
|
81 | + set_transient('alnp_installing', 'yes', MINUTE_IN_SECONDS * 5); |
|
82 | + if ( ! defined('AUTO_LOAD_NEXT_POST_INSTALLING')) { |
|
83 | + define('AUTO_LOAD_NEXT_POST_INSTALLING', true); |
|
84 | 84 | } |
85 | 85 | |
86 | 86 | // Add default options. |
@@ -101,9 +101,9 @@ discard block |
||
101 | 101 | // Refresh rewrite rules. |
102 | 102 | self::flush_rewrite_rules(); |
103 | 103 | |
104 | - delete_transient( 'alnp_installing' ); |
|
104 | + delete_transient('alnp_installing'); |
|
105 | 105 | |
106 | - do_action( 'alnp_installed' ); |
|
106 | + do_action('alnp_installed'); |
|
107 | 107 | } // END install() |
108 | 108 | |
109 | 109 | /** |
@@ -115,16 +115,16 @@ discard block |
||
115 | 115 | * @since 1.5.0 |
116 | 116 | */ |
117 | 117 | private static function set_theme_selectors() { |
118 | - if ( is_alnp_supported() ) { |
|
119 | - $content_container = alnp_get_theme_support( 'content_container' ); |
|
120 | - $title_selector = alnp_get_theme_support( 'title_selector' ); |
|
121 | - $navigation_container = alnp_get_theme_support( 'navigation_container' ); |
|
122 | - $comments_container = alnp_get_theme_support( 'comments_container' ); |
|
123 | - |
|
124 | - if ( ! empty( $content_container ) ) update_option( 'auto_load_next_post_content_container', $content_container ); |
|
125 | - if ( ! empty( $title_selector ) ) update_option( 'auto_load_next_post_title_selector', $title_selector ); |
|
126 | - if ( ! empty( $navigation_container ) ) update_option( 'auto_load_next_post_navigation_container', $navigation_container ); |
|
127 | - if ( ! empty( $comments_container ) ) update_option( 'auto_load_next_post_comments_container', $comments_container ); |
|
118 | + if (is_alnp_supported()) { |
|
119 | + $content_container = alnp_get_theme_support('content_container'); |
|
120 | + $title_selector = alnp_get_theme_support('title_selector'); |
|
121 | + $navigation_container = alnp_get_theme_support('navigation_container'); |
|
122 | + $comments_container = alnp_get_theme_support('comments_container'); |
|
123 | + |
|
124 | + if ( ! empty($content_container)) update_option('auto_load_next_post_content_container', $content_container); |
|
125 | + if ( ! empty($title_selector)) update_option('auto_load_next_post_title_selector', $title_selector); |
|
126 | + if ( ! empty($navigation_container)) update_option('auto_load_next_post_navigation_container', $navigation_container); |
|
127 | + if ( ! empty($comments_container)) update_option('auto_load_next_post_comments_container', $comments_container); |
|
128 | 128 | } |
129 | 129 | } // END set_theme_selectors() |
130 | 130 | |
@@ -139,12 +139,12 @@ discard block |
||
139 | 139 | * @version 1.5.3 |
140 | 140 | */ |
141 | 141 | private static function set_js_in_footer() { |
142 | - if ( is_alnp_supported() ) { |
|
143 | - $load_js_in_footer = alnp_get_theme_support( 'load_js_in_footer' ); |
|
144 | - $lock_js_in_footer = alnp_get_theme_support( 'lock_js_in_footer' ); |
|
142 | + if (is_alnp_supported()) { |
|
143 | + $load_js_in_footer = alnp_get_theme_support('load_js_in_footer'); |
|
144 | + $lock_js_in_footer = alnp_get_theme_support('lock_js_in_footer'); |
|
145 | 145 | |
146 | - if ( ! empty( $load_js_in_footer ) && $load_js_in_footer == 'yes' ) update_option( 'auto_load_next_post_load_js_in_footer', $load_js_in_footer ); |
|
147 | - if ( ! empty( $lock_js_in_footer ) && $lock_js_in_footer == 'yes' ) update_option( 'auto_load_next_post_lock_js_in_footer', $lock_js_in_footer ); |
|
146 | + if ( ! empty($load_js_in_footer) && $load_js_in_footer == 'yes') update_option('auto_load_next_post_load_js_in_footer', $load_js_in_footer); |
|
147 | + if ( ! empty($lock_js_in_footer) && $lock_js_in_footer == 'yes') update_option('auto_load_next_post_lock_js_in_footer', $lock_js_in_footer); |
|
148 | 148 | } |
149 | 149 | } // END set_js_in_footer() |
150 | 150 | |
@@ -155,7 +155,7 @@ discard block |
||
155 | 155 | * @static |
156 | 156 | */ |
157 | 157 | private static function update_version() { |
158 | - update_option( 'auto_load_next_post_version', AUTO_LOAD_NEXT_POST_VERSION ); |
|
158 | + update_option('auto_load_next_post_version', AUTO_LOAD_NEXT_POST_VERSION); |
|
159 | 159 | } // END update_version() |
160 | 160 | |
161 | 161 | /** |
@@ -167,13 +167,13 @@ discard block |
||
167 | 167 | * @version 1.5.0 |
168 | 168 | */ |
169 | 169 | public static function set_install_date() { |
170 | - $install_date = get_site_option( 'auto_load_next_post_install_date' ); |
|
170 | + $install_date = get_site_option('auto_load_next_post_install_date'); |
|
171 | 171 | |
172 | 172 | // If ALNP was installed before but the install date was not converted to time then convert it. |
173 | - if ( ! empty( $install_date ) && !intval( $install_date ) ) { |
|
174 | - update_site_option( 'auto_load_next_post_install_date', strtotime( $install_date ) ); |
|
173 | + if ( ! empty($install_date) && ! intval($install_date)) { |
|
174 | + update_site_option('auto_load_next_post_install_date', strtotime($install_date)); |
|
175 | 175 | } else { |
176 | - add_site_option( 'auto_load_next_post_install_date', time() ); |
|
176 | + add_site_option('auto_load_next_post_install_date', time()); |
|
177 | 177 | } |
178 | 178 | } // END set_install_date() |
179 | 179 | |
@@ -189,15 +189,15 @@ discard block |
||
189 | 189 | */ |
190 | 190 | public static function create_options() { |
191 | 191 | // Include settings so that we can run through defaults |
192 | - include_once( dirname( __FILE__ ) . '/admin/class-alnp-admin-settings.php' ); |
|
192 | + include_once(dirname(__FILE__).'/admin/class-alnp-admin-settings.php'); |
|
193 | 193 | |
194 | 194 | $settings = Auto_Load_Next_Post_Admin_Settings::get_settings_pages(); |
195 | 195 | |
196 | - foreach ( $settings as $section ) { |
|
197 | - foreach ( $section->get_settings() as $value ) { |
|
198 | - if ( isset( $value['default'] ) && isset( $value['id'] ) ) { |
|
199 | - $autoload = isset( $value['autoload'] ) ? (bool) $value['autoload'] : true; |
|
200 | - add_option( $value['id'], $value['default'], '', ( $autoload ? 'yes' : 'no' ) ); |
|
196 | + foreach ($settings as $section) { |
|
197 | + foreach ($section->get_settings() as $value) { |
|
198 | + if (isset($value['default']) && isset($value['id'])) { |
|
199 | + $autoload = isset($value['autoload']) ? (bool) $value['autoload'] : true; |
|
200 | + add_option($value['id'], $value['default'], '', ($autoload ? 'yes' : 'no')); |
|
201 | 201 | } |
202 | 202 | } |
203 | 203 | } |
@@ -212,7 +212,7 @@ discard block |
||
212 | 212 | * @version 1.5.0 |
213 | 213 | */ |
214 | 214 | public static function add_rewrite_endpoint() { |
215 | - add_rewrite_endpoint( 'alnp', EP_PERMALINK | EP_PAGES | EP_ATTACHMENT ); |
|
215 | + add_rewrite_endpoint('alnp', EP_PERMALINK | EP_PAGES | EP_ATTACHMENT); |
|
216 | 216 | } // END add_rewrite_endpoint() |
217 | 217 | |
218 | 218 | /** |
@@ -9,17 +9,17 @@ discard block |
||
9 | 9 | * @package Auto Load Next Post |
10 | 10 | * @license GPL-2.0+ |
11 | 11 | */ |
12 | -if ( ! defined( 'ABSPATH' ) || ! defined( 'WP_UNINSTALL_PLUGIN' ) ) { |
|
12 | +if ( ! defined('ABSPATH') || ! defined('WP_UNINSTALL_PLUGIN')) { |
|
13 | 13 | exit(); // Exit if accessed directly. |
14 | 14 | } |
15 | 15 | |
16 | 16 | global $wpdb; |
17 | 17 | |
18 | 18 | // Make sure it is only a single site we are uninstalling from. |
19 | -if ( ! is_multisite() ) { |
|
20 | - $uninstall = get_option( 'auto_load_next_post_uninstall_data' ); |
|
19 | +if ( ! is_multisite()) { |
|
20 | + $uninstall = get_option('auto_load_next_post_uninstall_data'); |
|
21 | 21 | |
22 | - if ( ! empty( $uninstall ) ) { |
|
22 | + if ( ! empty($uninstall)) { |
|
23 | 23 | // Delete options |
24 | 24 | $wpdb->query("DELETE FROM $wpdb->options WHERE option_name LIKE 'auto_load_next_post_%'"); |
25 | 25 | |
@@ -29,10 +29,10 @@ discard block |
||
29 | 29 | } |
30 | 30 | |
31 | 31 | // Delete Install Date |
32 | -delete_site_option( 'auto_load_next_post_install_date' ); |
|
32 | +delete_site_option('auto_load_next_post_install_date'); |
|
33 | 33 | |
34 | 34 | // Delete Uninstall Data - Just to double check it has been removed. |
35 | -delete_option( 'auto_load_next_post_uninstall_data' ); |
|
35 | +delete_option('auto_load_next_post_uninstall_data'); |
|
36 | 36 | |
37 | 37 | // Clear any cached data that has been removed. |
38 | 38 | wp_cache_flush(); |
@@ -11,7 +11,7 @@ discard block |
||
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 | |
@@ -24,12 +24,12 @@ discard block |
||
24 | 24 | * @param string|array $var Data to sanitize. |
25 | 25 | * @return string|array * |
26 | 26 | */ |
27 | -if ( ! function_exists( 'auto_load_next_post_clean' ) ) { |
|
28 | - function auto_load_next_post_clean( $var ) { |
|
29 | - if ( is_array( $var ) ) { |
|
30 | - return array_map( 'auto_load_next_post_clean', $var ); |
|
27 | +if ( ! function_exists('auto_load_next_post_clean')) { |
|
28 | + function auto_load_next_post_clean($var) { |
|
29 | + if (is_array($var)) { |
|
30 | + return array_map('auto_load_next_post_clean', $var); |
|
31 | 31 | } else { |
32 | - return is_scalar( $var ) ? sanitize_text_field( $var ) : $var; |
|
32 | + return is_scalar($var) ? sanitize_text_field($var) : $var; |
|
33 | 33 | } |
34 | 34 | } // END auto_load_next_post_clean() |
35 | 35 | } |
@@ -44,60 +44,60 @@ discard block |
||
44 | 44 | * @param string $seconds Seconds in time. |
45 | 45 | * @return string |
46 | 46 | */ |
47 | -if ( ! function_exists( 'auto_load_next_post_seconds_to_words' ) ) { |
|
48 | - function auto_load_next_post_seconds_to_words( $seconds ) { |
|
47 | +if ( ! function_exists('auto_load_next_post_seconds_to_words')) { |
|
48 | + function auto_load_next_post_seconds_to_words($seconds) { |
|
49 | 49 | // Get the years. |
50 | - $years = ( intval( $seconds ) / YEAR_IN_SECONDS ) % 100; |
|
51 | - if ( $years > 1 ) { |
|
50 | + $years = (intval($seconds) / YEAR_IN_SECONDS) % 100; |
|
51 | + if ($years > 1) { |
|
52 | 52 | /* translators: Number of years */ |
53 | - return sprintf( __( '%s years', 'auto-load-next-post' ), $years ); |
|
54 | - } elseif ( $years > 0 ) { |
|
55 | - return __( 'a year', 'auto-load-next-post' ); |
|
53 | + return sprintf(__('%s years', 'auto-load-next-post'), $years); |
|
54 | + } elseif ($years > 0) { |
|
55 | + return __('a year', 'auto-load-next-post'); |
|
56 | 56 | } |
57 | 57 | |
58 | 58 | // Get the weeks. |
59 | - $weeks = ( intval( $seconds ) / WEEK_IN_SECONDS ) % 52; |
|
60 | - if ( $weeks > 1 ) { |
|
59 | + $weeks = (intval($seconds) / WEEK_IN_SECONDS) % 52; |
|
60 | + if ($weeks > 1) { |
|
61 | 61 | /* translators: Number of weeks */ |
62 | - return sprintf( __( '%s weeks', 'auto-load-next-post' ), $weeks ); |
|
63 | - } elseif ( $weeks > 0 ) { |
|
64 | - return __( 'a week', 'auto-load-next-post' ); |
|
62 | + return sprintf(__('%s weeks', 'auto-load-next-post'), $weeks); |
|
63 | + } elseif ($weeks > 0) { |
|
64 | + return __('a week', 'auto-load-next-post'); |
|
65 | 65 | } |
66 | 66 | |
67 | 67 | // Get the days. |
68 | - $days = ( intval( $seconds ) / DAY_IN_SECONDS ) % 7; |
|
69 | - if ( $days > 1 ) { |
|
68 | + $days = (intval($seconds) / DAY_IN_SECONDS) % 7; |
|
69 | + if ($days > 1) { |
|
70 | 70 | /* translators: Number of days */ |
71 | - return sprintf( __( '%s days', 'auto-load-next-post' ), $days ); |
|
72 | - } elseif ( $days > 0 ) { |
|
73 | - return __( 'a day', 'auto-load-next-post' ); |
|
71 | + return sprintf(__('%s days', 'auto-load-next-post'), $days); |
|
72 | + } elseif ($days > 0) { |
|
73 | + return __('a day', 'auto-load-next-post'); |
|
74 | 74 | } |
75 | 75 | |
76 | 76 | // Get the hours. |
77 | - $hours = ( intval( $seconds ) / HOUR_IN_SECONDS ) % 24; |
|
78 | - if ( $hours > 1 ) { |
|
77 | + $hours = (intval($seconds) / HOUR_IN_SECONDS) % 24; |
|
78 | + if ($hours > 1) { |
|
79 | 79 | /* translators: Number of hours */ |
80 | - return sprintf( __( '%s hours', 'auto-load-next-post' ), $hours ); |
|
81 | - } elseif ( $hours > 0 ) { |
|
82 | - return __( 'an hour', 'auto-load-next-post' ); |
|
80 | + return sprintf(__('%s hours', 'auto-load-next-post'), $hours); |
|
81 | + } elseif ($hours > 0) { |
|
82 | + return __('an hour', 'auto-load-next-post'); |
|
83 | 83 | } |
84 | 84 | |
85 | 85 | // Get the minutes. |
86 | - $minutes = ( intval( $seconds ) / MINUTE_IN_SECONDS ) % 60; |
|
87 | - if ( $minutes > 1 ) { |
|
86 | + $minutes = (intval($seconds) / MINUTE_IN_SECONDS) % 60; |
|
87 | + if ($minutes > 1) { |
|
88 | 88 | /* translators: Number of minutes */ |
89 | - return sprintf( __( '%s minutes', 'auto-load-next-post' ), $minutes ); |
|
90 | - } elseif ( $minutes > 0 ) { |
|
91 | - return __( 'a minute', 'auto-load-next-post' ); |
|
89 | + return sprintf(__('%s minutes', 'auto-load-next-post'), $minutes); |
|
90 | + } elseif ($minutes > 0) { |
|
91 | + return __('a minute', 'auto-load-next-post'); |
|
92 | 92 | } |
93 | 93 | |
94 | 94 | // Get the seconds. |
95 | - $seconds = intval( $seconds ) % 60; |
|
96 | - if ( $seconds > 1 ) { |
|
95 | + $seconds = intval($seconds) % 60; |
|
96 | + if ($seconds > 1) { |
|
97 | 97 | /* translators: Number of seconds */ |
98 | - return sprintf( __( '%s seconds', 'auto-load-next-post' ), $seconds ); |
|
99 | - } elseif ( $seconds > 0 ) { |
|
100 | - return __( 'a second', 'auto-load-next-post' ); |
|
98 | + return sprintf(__('%s seconds', 'auto-load-next-post'), $seconds); |
|
99 | + } elseif ($seconds > 0) { |
|
100 | + return __('a second', 'auto-load-next-post'); |
|
101 | 101 | } |
102 | 102 | } // END auto_load_next_post_seconds_to_words() |
103 | 103 | } |
@@ -10,12 +10,12 @@ 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 | |
17 | 17 | // Exit if Auto_Load_Next_Post_Customizer_Scripts class already exists. |
18 | -if ( !class_exists( 'Auto_Load_Next_Post_Customizer_Scripts' ) ) { |
|
18 | +if ( ! class_exists('Auto_Load_Next_Post_Customizer_Scripts')) { |
|
19 | 19 | |
20 | 20 | class Auto_Load_Next_Post_Customizer_Scripts { |
21 | 21 | |
@@ -26,8 +26,8 @@ discard block |
||
26 | 26 | * @access public |
27 | 27 | */ |
28 | 28 | public function __construct() { |
29 | - add_action( 'customize_preview_init', array( $this, 'alnp_add_customizer_preview_scripts' ) ); |
|
30 | - add_action( 'customize_controls_print_scripts', array( $this, 'alnp_add_scripts' ), 30 ); |
|
29 | + add_action('customize_preview_init', array($this, 'alnp_add_customizer_preview_scripts')); |
|
30 | + add_action('customize_controls_print_scripts', array($this, 'alnp_add_scripts'), 30); |
|
31 | 31 | } |
32 | 32 | |
33 | 33 | /** |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | * @since 1.5.0 |
37 | 37 | */ |
38 | 38 | public function alnp_add_customizer_preview_scripts() { |
39 | - Auto_Load_Next_Post::load_file( 'alnp-theme-customizer', '/assets/js/customizer/theme-customizer.js', true, array( 'customize-preview' ), '', true ); |
|
39 | + Auto_Load_Next_Post::load_file('alnp-theme-customizer', '/assets/js/customizer/theme-customizer.js', true, array('customize-preview'), '', true); |
|
40 | 40 | } // END alnp_add_customizer_preview_scripts() |
41 | 41 | |
42 | 42 | /** |
@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | * but we are not viewing a single post. |
68 | 68 | */ |
69 | 69 | if ( isExpanded && !is_page_single ) { |
70 | - wp.customize.previewer.previewUrl.set( '<?php echo esc_js( alnp_get_random_page_permalink() ); ?>' ); |
|
70 | + wp.customize.previewer.previewUrl.set( '<?php echo esc_js(alnp_get_random_page_permalink()); ?>' ); |
|
71 | 71 | } |
72 | 72 | |
73 | 73 | } ); |
@@ -13,7 +13,7 @@ discard block |
||
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 | |
@@ -26,12 +26,12 @@ discard block |
||
26 | 26 | * @version 1.5.4 |
27 | 27 | * @global WP_Query $wp_query - The object information defining the current request and determines what type of query it's dealing with. See https://codex.wordpress.org/Class_Reference/WP_Query |
28 | 28 | */ |
29 | -if ( ! function_exists( 'auto_load_next_post_template_redirect' ) ) { |
|
29 | +if ( ! function_exists('auto_load_next_post_template_redirect')) { |
|
30 | 30 | function auto_load_next_post_template_redirect() { |
31 | 31 | global $wp_query; |
32 | 32 | |
33 | 33 | // If this is not a request for alnp or a singular object then bail |
34 | - if ( ! isset( $wp_query->query_vars['alnp'] ) || ! is_singular() ) { |
|
34 | + if ( ! isset($wp_query->query_vars['alnp']) || ! is_singular()) { |
|
35 | 35 | return; |
36 | 36 | } |
37 | 37 | |
@@ -40,28 +40,28 @@ discard block |
||
40 | 40 | * If theme does not have a template file for Auto Load Next Post, |
41 | 41 | * the plugin will load a default template. |
42 | 42 | */ |
43 | - $child_path = get_stylesheet_directory() . '/' . AUTO_LOAD_NEXT_POST_TEMPLATE_PATH; |
|
44 | - $template_path = get_template_directory() . '/' . AUTO_LOAD_NEXT_POST_TEMPLATE_PATH; |
|
43 | + $child_path = get_stylesheet_directory().'/'.AUTO_LOAD_NEXT_POST_TEMPLATE_PATH; |
|
44 | + $template_path = get_template_directory().'/'.AUTO_LOAD_NEXT_POST_TEMPLATE_PATH; |
|
45 | 45 | $default_path = AUTO_LOAD_NEXT_POST_FILE_PATH; |
46 | 46 | |
47 | - if ( file_exists( $child_path . 'content-alnp.php' ) ) { |
|
48 | - $template_redirect = $child_path . 'content-alnp.php'; |
|
47 | + if (file_exists($child_path.'content-alnp.php')) { |
|
48 | + $template_redirect = $child_path.'content-alnp.php'; |
|
49 | 49 | } |
50 | - else if( file_exists( $template_path . 'content-alnp.php') ) { |
|
51 | - $template_redirect = $template_path . 'content-alnp.php'; |
|
50 | + else if (file_exists($template_path.'content-alnp.php')) { |
|
51 | + $template_redirect = $template_path.'content-alnp.php'; |
|
52 | 52 | } |
53 | - else if( file_exists( $default_path . '/template/content-alnp.php' ) ) { |
|
54 | - $template_redirect = $default_path . '/template/content-alnp.php'; |
|
53 | + else if (file_exists($default_path.'/template/content-alnp.php')) { |
|
54 | + $template_redirect = $default_path.'/template/content-alnp.php'; |
|
55 | 55 | } |
56 | 56 | |
57 | - $template_redirect = apply_filters( 'alnp_template_redirect', $template_redirect ); |
|
57 | + $template_redirect = apply_filters('alnp_template_redirect', $template_redirect); |
|
58 | 58 | |
59 | - include( $template_redirect ); |
|
59 | + include($template_redirect); |
|
60 | 60 | |
61 | 61 | exit; |
62 | 62 | } // END auto_load_next_post_template_redirect() |
63 | 63 | } |
64 | -add_action( 'template_redirect', 'auto_load_next_post_template_redirect' ); |
|
64 | +add_action('template_redirect', 'auto_load_next_post_template_redirect'); |
|
65 | 65 | |
66 | 66 | /** |
67 | 67 | * Adds the comments template after the post content. |
@@ -70,15 +70,15 @@ discard block |
||
70 | 70 | * @since 1.4.8 |
71 | 71 | * @version 1.5.4 |
72 | 72 | */ |
73 | -if ( ! function_exists( 'auto_load_next_post_comments' ) ) { |
|
73 | +if ( ! function_exists('auto_load_next_post_comments')) { |
|
74 | 74 | function auto_load_next_post_comments() { |
75 | 75 | // If comments are open or we have at least one comment, load up the comment template. |
76 | - if ( comments_open() || get_comments_number() ) : |
|
76 | + if (comments_open() || get_comments_number()) : |
|
77 | 77 | comments_template(); |
78 | 78 | endif; |
79 | 79 | } // END auto_load_next_post_comments() |
80 | 80 | } |
81 | -add_action( 'alnp_load_after_content', 'auto_load_next_post_comments', 1, 5 ); |
|
81 | +add_action('alnp_load_after_content', 'auto_load_next_post_comments', 1, 5); |
|
82 | 82 | |
83 | 83 | /** |
84 | 84 | * Adds the post navigation for the previous link only after the post content. |
@@ -87,16 +87,16 @@ discard block |
||
87 | 87 | * @since 1.4.8 |
88 | 88 | * @version 1.5.4 |
89 | 89 | */ |
90 | -if ( ! function_exists( 'auto_load_next_post_navigation' ) ) { |
|
90 | +if ( ! function_exists('auto_load_next_post_navigation')) { |
|
91 | 91 | function auto_load_next_post_navigation() { |
92 | 92 | ?> |
93 | 93 | <nav class="navigation post-navigation" role="navigation"> |
94 | - <span class="nav-previous"><?php previous_post_link( '%link', '<span class="meta-nav">' . _x( '←', 'Previous post link', 'auto-load-next-post' ) . '</span> %title' ); ?></span> |
|
94 | + <span class="nav-previous"><?php previous_post_link('%link', '<span class="meta-nav">'._x('←', 'Previous post link', 'auto-load-next-post').'</span> %title'); ?></span> |
|
95 | 95 | </nav> |
96 | 96 | <?php |
97 | 97 | } // END auto_load_next_post_navigation() |
98 | 98 | } |
99 | -add_action( 'alnp_load_after_content', 'auto_load_next_post_navigation', 1, 10 ); |
|
99 | +add_action('alnp_load_after_content', 'auto_load_next_post_navigation', 1, 10); |
|
100 | 100 | |
101 | 101 | /** |
102 | 102 | * Returns the permalink of a random page |
@@ -105,8 +105,8 @@ discard block |
||
105 | 105 | * @param string $post_type - Default is post. |
106 | 106 | * @return int|boolean |
107 | 107 | */ |
108 | -if ( ! function_exists( 'alnp_get_random_page_permalink' ) ) { |
|
109 | - function alnp_get_random_page_permalink( $post_type = 'post' ) { |
|
108 | +if ( ! function_exists('alnp_get_random_page_permalink')) { |
|
109 | + function alnp_get_random_page_permalink($post_type = 'post') { |
|
110 | 110 | $args = array( |
111 | 111 | 'post_type' => $post_type, |
112 | 112 | 'post_status' => 'publish', |
@@ -114,13 +114,13 @@ discard block |
||
114 | 114 | 'posts_per_page' => 1 |
115 | 115 | ); |
116 | 116 | |
117 | - $query = new WP_Query( $args ); |
|
117 | + $query = new WP_Query($args); |
|
118 | 118 | |
119 | - if ( $query->have_posts() ) { |
|
120 | - while ( $query->have_posts() ) : $query->the_post(); |
|
119 | + if ($query->have_posts()) { |
|
120 | + while ($query->have_posts()) : $query->the_post(); |
|
121 | 121 | $id = get_the_ID(); |
122 | 122 | |
123 | - return get_permalink( $id ); |
|
123 | + return get_permalink($id); |
|
124 | 124 | endwhile; |
125 | 125 | } |
126 | 126 | else { |
@@ -11,10 +11,10 @@ |
||
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 <strong>Theme Selectors</strong>. %1$sHow to find my theme selectors?%2$s', 'auto-load-next-post' ), '<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 <strong>Theme Selectors</strong>. %1$sHow to find my theme selectors?%2$s', 'auto-load-next-post'), '<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> |
@@ -11,28 +11,28 @@ |
||
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 | $current_user = wp_get_current_user(); |
19 | 19 | |
20 | -$time = auto_load_next_post_seconds_to_words( time() - $install_date ); |
|
20 | +$time = auto_load_next_post_seconds_to_words(time() - $install_date); |
|
21 | 21 | ?> |
22 | 22 | <div class="notice notice-info auto-load-next-post-notice"> |
23 | 23 | <div class="auto-load-next-post-notice-inner"> |
24 | 24 | <div class="auto-load-next-post-notice-icon"> |
25 | - <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' ); ?>" /> |
|
25 | + <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'); ?>" /> |
|
26 | 26 | </div> |
27 | 27 | |
28 | 28 | <div class="auto-load-next-post-notice-content"> |
29 | - <h3><?php echo esc_html__( 'Are you enjoying Auto Load Next Post?', 'auto-load-next-post' ); ?></h3> |
|
30 | - <p><?php printf( esc_html__( 'You have been using %1$s for %2$s now! Mind leaving a quick review and let me know know what you think of the plugin? I\'d really appreciate it!', 'auto-load-next-post' ), esc_html__( 'Auto Load Next Post', 'auto-load-next-post' ), esc_html( $time ) ); ?></p> |
|
29 | + <h3><?php echo esc_html__('Are you enjoying Auto Load Next Post?', 'auto-load-next-post'); ?></h3> |
|
30 | + <p><?php printf(esc_html__('You have been using %1$s for %2$s now! Mind leaving a quick review and let me know know what you think of the plugin? I\'d really appreciate it!', 'auto-load-next-post'), esc_html__('Auto Load Next Post', 'auto-load-next-post'), esc_html($time)); ?></p> |
|
31 | 31 | </div> |
32 | 32 | |
33 | 33 | <div class="auto-load-next-post-review-now"> |
34 | - <?php printf( '<a href="%1$s" class="button button-primary auto-load-next-post-review-button" target="_blank">%2$s</a>', esc_url( AUTO_LOAD_NEXT_POST_REVIEW_URL . '?rate=5#new-post' ), esc_html__( 'Leave a Review', 'auto-load-next-post' ) ); ?> |
|
35 | - <a href="<?php echo esc_url( add_query_arg( 'hide_auto_load_next_post_review_notice', 'true' ) ); ?>" class="no-thanks"><?php echo esc_html__( 'No thank you / I already have', 'auto-load-next-post' ); ?></a> |
|
34 | + <?php printf('<a href="%1$s" class="button button-primary auto-load-next-post-review-button" target="_blank">%2$s</a>', esc_url(AUTO_LOAD_NEXT_POST_REVIEW_URL.'?rate=5#new-post'), esc_html__('Leave a Review', 'auto-load-next-post')); ?> |
|
35 | + <a href="<?php echo esc_url(add_query_arg('hide_auto_load_next_post_review_notice', 'true')); ?>" class="no-thanks"><?php echo esc_html__('No thank you / I already have', 'auto-load-next-post'); ?></a> |
|
36 | 36 | </div> |
37 | 37 | </div> |
38 | 38 | </div> |
@@ -11,31 +11,31 @@ discard block |
||
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-success 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__( 'Welcome!', 'auto-load-next-post' ); ?></h3> |
|
25 | + <h3><?php echo esc_html__('Welcome!', 'auto-load-next-post'); ?></h3> |
|
26 | 26 | <p> |
27 | - <?php echo sprintf( __( 'Thank you for activating %1$s! If you\'re a first time user, welcome! You\'re well on your way to increasing your pageviews.', 'auto-load-next-post' ), esc_html__( 'Auto Load Next Post', 'auto-load-next-post' ) ); ?> |
|
27 | + <?php echo sprintf(__('Thank you for activating %1$s! If you\'re a first time user, welcome! You\'re well on your way to increasing your pageviews.', 'auto-load-next-post'), esc_html__('Auto Load Next Post', 'auto-load-next-post')); ?> |
|
28 | 28 | <?php |
29 | 29 | // If the theme has not added support then encourage the user to see the documentation. |
30 | - if ( ! is_alnp_supported() ) { |
|
30 | + if ( ! is_alnp_supported()) { |
|
31 | 31 | $query = array( |
32 | 32 | 'autofocus[panel]' => 'alnp', |
33 | 33 | 'autofocus[section]' => 'auto_load_next_post_theme_selectors', |
34 | 34 | 'url' => alnp_get_random_page_permalink(), |
35 | - 'return' => admin_url( 'options-general.php?page=auto-load-next-post-settings' ), |
|
35 | + 'return' => admin_url('options-general.php?page=auto-load-next-post-settings'), |
|
36 | 36 | ); |
37 | - $customizer_link = add_query_arg( $query, admin_url( 'customize.php' ) ); |
|
38 | - echo sprintf( __( 'I encourage you to check out the plugin documentation and getting started with %1$ssetting up your theme selectors%2$s.', 'auto-load-next-post' ), '<a href="' . esc_url( $customizer_link ) . '">', '</a>' ); |
|
37 | + $customizer_link = add_query_arg($query, admin_url('customize.php')); |
|
38 | + echo sprintf(__('I encourage you to check out the plugin documentation and getting started with %1$ssetting up your theme selectors%2$s.', 'auto-load-next-post'), '<a href="'.esc_url($customizer_link).'">', '</a>'); |
|
39 | 39 | } |
40 | 40 | ?> |
41 | 41 | </p> |
@@ -44,11 +44,11 @@ discard block |
||
44 | 44 | <div class="auto-load-next-post-documentation"> |
45 | 45 | <?php |
46 | 46 | // If the theme has not added support then display button to documentation. |
47 | - if ( ! is_alnp_supported() ) { |
|
48 | - printf( '<a href="%1$s" class="button button-primary auto-load-next-post-documentation-button" target="_blank">%2$s</a>', esc_url( AUTO_LOAD_NEXT_POST_STORE_URL . 'documentation/?utm_source=plugin&utm_medium=link&utm_campaign=welcome-notice' ), esc_html__( 'Documentation', 'auto-load-next-post' ) ); |
|
47 | + if ( ! is_alnp_supported()) { |
|
48 | + printf('<a href="%1$s" class="button button-primary auto-load-next-post-documentation-button" target="_blank">%2$s</a>', esc_url(AUTO_LOAD_NEXT_POST_STORE_URL.'documentation/?utm_source=plugin&utm_medium=link&utm_campaign=welcome-notice'), esc_html__('Documentation', 'auto-load-next-post')); |
|
49 | 49 | } |
50 | 50 | ?> |
51 | - <a href="<?php echo esc_url( add_query_arg( 'hide_auto_load_next_post_welcome_notice', 'true' ) ); ?>" class="no-thanks"><?php echo esc_html__( 'Dismiss Notice', 'auto-load-next-post' ); ?></a> |
|
51 | + <a href="<?php echo esc_url(add_query_arg('hide_auto_load_next_post_welcome_notice', 'true')); ?>" class="no-thanks"><?php echo esc_html__('Dismiss Notice', 'auto-load-next-post'); ?></a> |
|
52 | 52 | </div> |
53 | 53 | </div> |
54 | 54 | </div> |
@@ -3,25 +3,25 @@ discard block |
||
3 | 3 | <a class="alnp-banner" href="<?php echo AUTO_LOAD_NEXT_POST_STORE_URL; ?>?utm_source=plugin&utm_medium=alnp-banner&utm_campaign=alnp-settings-page"></a> |
4 | 4 | |
5 | 5 | <div class="alnp-upgrade-details"> |
6 | - <h1><?php esc_html_e( 'Pro Coming Soon', 'auto-load-next-post' ); ?></h1> |
|
6 | + <h1><?php esc_html_e('Pro Coming Soon', 'auto-load-next-post'); ?></h1> |
|
7 | 7 | |
8 | 8 | <ul> |
9 | - <li><?php echo wptexturize( 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> |
|
10 | - <li><?php echo wptexturize( esc_html__( 'Page and Media Attachment Support', 'auto-load-next-post' ) ); ?></li> |
|
11 | - <li><?php echo wptexturize( esc_html__( 'Custom Post Type Support', 'auto-load-next-post' ) ); ?></li> |
|
12 | - <li><?php echo wptexturize( esc_html__( 'Paginated Posts Supported', 'auto-load-next-post' ) ); ?></li> |
|
13 | - <li><?php echo wptexturize( esc_html__( 'Exclude Post Formats', 'auto-load-next-post' ) ); ?></li> |
|
14 | - <li><?php echo wptexturize( esc_html__( 'Limit Posts per Session', 'auto-load-next-post' ) ); ?></li> |
|
15 | - <li><?php echo wptexturize( esc_html__( 'Query Posts by Category and Tag', 'auto-load-next-post' ) ); ?></li> |
|
16 | - <li><?php echo wptexturize( esc_html__( 'Exclude User Roles and Specific Users', 'auto-load-next-post' ) ); ?></li> |
|
17 | - <li><?php echo wptexturize( esc_html__( 'Pre-Query Posts Ready to Load', 'auto-load-next-post' ) ); ?></li> |
|
18 | - <li><?php echo wptexturize( esc_html__( 'Hide Comments and Show by Toggle Button', 'auto-load-next-post' ) ); ?></li> |
|
19 | - <li><?php echo wptexturize( sprintf( esc_html__( 'Multilingual Support for %1$s and %2$s', 'auto-load-next-post' ), 'WPML', 'Polylang' ) ); ?></li> |
|
20 | - <li><?php echo wptexturize( esc_html__( 'Email Support', 'auto-load-next-post' ) ); ?></li> |
|
9 | + <li><?php echo wptexturize(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> |
|
10 | + <li><?php echo wptexturize(esc_html__('Page and Media Attachment Support', 'auto-load-next-post')); ?></li> |
|
11 | + <li><?php echo wptexturize(esc_html__('Custom Post Type Support', 'auto-load-next-post')); ?></li> |
|
12 | + <li><?php echo wptexturize(esc_html__('Paginated Posts Supported', 'auto-load-next-post')); ?></li> |
|
13 | + <li><?php echo wptexturize(esc_html__('Exclude Post Formats', 'auto-load-next-post')); ?></li> |
|
14 | + <li><?php echo wptexturize(esc_html__('Limit Posts per Session', 'auto-load-next-post')); ?></li> |
|
15 | + <li><?php echo wptexturize(esc_html__('Query Posts by Category and Tag', 'auto-load-next-post')); ?></li> |
|
16 | + <li><?php echo wptexturize(esc_html__('Exclude User Roles and Specific Users', 'auto-load-next-post')); ?></li> |
|
17 | + <li><?php echo wptexturize(esc_html__('Pre-Query Posts Ready to Load', 'auto-load-next-post')); ?></li> |
|
18 | + <li><?php echo wptexturize(esc_html__('Hide Comments and Show by Toggle Button', 'auto-load-next-post')); ?></li> |
|
19 | + <li><?php echo wptexturize(sprintf(esc_html__('Multilingual Support for %1$s and %2$s', 'auto-load-next-post'), 'WPML', 'Polylang')); ?></li> |
|
20 | + <li><?php echo wptexturize(esc_html__('Email Support', 'auto-load-next-post')); ?></li> |
|
21 | 21 | </ul> |
22 | 22 | |
23 | 23 | <p> |
24 | - <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 →', 'auto-load-next-post' ); ?></a> |
|
24 | + <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 →', 'auto-load-next-post'); ?></a> |
|
25 | 25 | </p> |
26 | 26 | |
27 | 27 | </div> |
@@ -29,33 +29,33 @@ discard block |
||
29 | 29 | <div class="block"> |
30 | 30 | <div class="inner-block"> |
31 | 31 | <form method="post" action="https://sebastiendumont.us1.list-manage.com/subscribe/post?u=48ead612ad85b23fe2239c6e3&id=79e97b5275" name="mc-embedded-subscribe-form" target="_blank" class="subscribe block"> |
32 | - <h2><?php esc_html_e( 'Sign up to pre-order first', 'auto-load-next-post' ); ?></h2> |
|
32 | + <h2><?php esc_html_e('Sign up to pre-order first', 'auto-load-next-post'); ?></h2> |
|
33 | 33 | |
34 | 34 | <p class="intro"> |
35 | - <?php echo wptexturize( esc_html__( 'Submit your name and email and be the first to know when you can pre-order Auto Load Next Post Pro and keep up to date with my developments plus a 10% discount.', 'auto-load-next-post' ) ); ?> |
|
35 | + <?php echo wptexturize(esc_html__('Submit your name and email and be the first to know when you can pre-order Auto Load Next Post Pro and keep up to date with my developments plus a 10% discount.', 'auto-load-next-post')); ?> |
|
36 | 36 | </p> |
37 | 37 | |
38 | 38 | <div class="field"> |
39 | - <input type="email" name="EMAIL" value="" placeholder="<?php esc_html_e( 'Your Email Address', 'auto-load-next-post' ); ?>"/> |
|
39 | + <input type="email" name="EMAIL" value="" placeholder="<?php esc_html_e('Your Email Address', 'auto-load-next-post'); ?>"/> |
|
40 | 40 | </div> |
41 | 41 | |
42 | 42 | <div class="field"> |
43 | - <input type="text" name="FNAME" value="" placeholder="<?php esc_html_e( 'First Name', 'auto-load-next-post' ); ?>"/> |
|
43 | + <input type="text" name="FNAME" value="" placeholder="<?php esc_html_e('First Name', 'auto-load-next-post'); ?>"/> |
|
44 | 44 | </div> |
45 | 45 | |
46 | 46 | <div class="field"> |
47 | - <input type="text" name="LNAME" value="" placeholder="<?php esc_html_e( 'Last Name', 'auto-load-next-post' ); ?>"/> |
|
47 | + <input type="text" name="LNAME" value="" placeholder="<?php esc_html_e('Last Name', 'auto-load-next-post'); ?>"/> |
|
48 | 48 | </div> |
49 | 49 | |
50 | 50 | <input type="hidden" name="group[35169][1]" value="1"> |
51 | 51 | |
52 | 52 | <div class="field submit-button"> |
53 | 53 | <div style="position: absolute; left: -9999px;" aria-hidden="true"><input type="text" name="b_48ead612ad85b23fe2239c6e3_79e97b5275" tabindex="-1" value=""></div> |
54 | - <input type="submit" name="subscribe" id="mc-embedded-subscribe" class="button" value="<?php esc_html_e( 'Sign me up', 'auto-load-next-post' ); ?>"/> |
|
54 | + <input type="submit" name="subscribe" id="mc-embedded-subscribe" class="button" value="<?php esc_html_e('Sign me up', 'auto-load-next-post'); ?>"/> |
|
55 | 55 | </div> |
56 | 56 | |
57 | 57 | <p class="promise"> |
58 | - <?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' ); ?> |
|
58 | + <?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'); ?> |
|
59 | 59 | </p> |
60 | 60 | |
61 | 61 | </form> |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | </div> |
64 | 64 | |
65 | 65 | <div class="block credits"> |
66 | - <h3><?php esc_html_e( 'Created & maintained by', 'auto-load-next-post' ); ?></h3> |
|
66 | + <h3><?php esc_html_e('Created & maintained by', 'auto-load-next-post'); ?></h3> |
|
67 | 67 | <div class="inner-block"> |
68 | 68 | <ul> |
69 | 69 | <li> |