@@ -3,61 +3,61 @@ |
||
3 | 3 | <a class="alnp-banner" href="https://autoloadnextpost.com/?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__( 'Exclude Post Formats', 'auto-load-next-post' ) ); ?></li> |
|
13 | - <li><?php echo wptexturize( esc_html__( 'Limit Posts per Session', 'auto-load-next-post' ) ); ?></li> |
|
14 | - <li><?php echo wptexturize( esc_html__( 'Query Posts by Category and Tag', 'auto-load-next-post' ) ); ?></li> |
|
15 | - <li><?php echo wptexturize( esc_html__( 'Exclude User Roles and Specific Users', 'auto-load-next-post' ) ); ?></li> |
|
16 | - <li><?php echo wptexturize( esc_html__( 'Pre-Query Posts Ready to Load', 'auto-load-next-post' ) ); ?></li> |
|
17 | - <li><?php echo wptexturize( esc_html__( 'Hide Comments and Show by Toggle Button', 'auto-load-next-post' ) ); ?></li> |
|
18 | - <li><?php echo wptexturize( sprintf( esc_html__( 'Multilingual Support for %1$s and %2$s', 'auto-load-next-post' ), 'WPML', 'Polylang' ) ); ?></li> |
|
19 | - <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__('Exclude Post Formats', 'auto-load-next-post')); ?></li> |
|
13 | + <li><?php echo wptexturize(esc_html__('Limit Posts per Session', 'auto-load-next-post')); ?></li> |
|
14 | + <li><?php echo wptexturize(esc_html__('Query Posts by Category and Tag', 'auto-load-next-post')); ?></li> |
|
15 | + <li><?php echo wptexturize(esc_html__('Exclude User Roles and Specific Users', 'auto-load-next-post')); ?></li> |
|
16 | + <li><?php echo wptexturize(esc_html__('Pre-Query Posts Ready to Load', 'auto-load-next-post')); ?></li> |
|
17 | + <li><?php echo wptexturize(esc_html__('Hide Comments and Show by Toggle Button', 'auto-load-next-post')); ?></li> |
|
18 | + <li><?php echo wptexturize(sprintf(esc_html__('Multilingual Support for %1$s and %2$s', 'auto-load-next-post'), 'WPML', 'Polylang')); ?></li> |
|
19 | + <li><?php echo wptexturize(esc_html__('Email Support', 'auto-load-next-post')); ?></li> |
|
20 | 20 | </ul> |
21 | 21 | |
22 | 22 | <p> |
23 | - <a href="https://autoloadnextpost.com/pro/?utm_source=plugin&utm_medium=link&utm_campaign=alnp-settings-page"><?php esc_html_e( 'Visit autoloadnextpost.com →', 'auto-load-next-post' ); ?></a> |
|
23 | + <a href="https://autoloadnextpost.com/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 | 24 | </p> |
25 | 25 | |
26 | 26 | </div> |
27 | 27 | |
28 | 28 | <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"> |
29 | - <h2><?php esc_html_e( 'Sign up to pre-order first', 'auto-load-next-post' ); ?></h2> |
|
29 | + <h2><?php esc_html_e('Sign up to pre-order first', 'auto-load-next-post'); ?></h2> |
|
30 | 30 | |
31 | 31 | <p class="intro"> |
32 | - <?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' ) ); ?> |
|
32 | + <?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')); ?> |
|
33 | 33 | </p> |
34 | 34 | |
35 | 35 | <div class="field"> |
36 | - <input type="email" name="EMAIL" value="" placeholder="<?php esc_html_e( 'Your Email Address', 'auto-load-next-post' ); ?>"/> |
|
36 | + <input type="email" name="EMAIL" value="" placeholder="<?php esc_html_e('Your Email Address', 'auto-load-next-post'); ?>"/> |
|
37 | 37 | </div> |
38 | 38 | |
39 | 39 | <div class="field"> |
40 | - <input type="text" name="FNAME" value="" placeholder="<?php esc_html_e( 'First Name', 'auto-load-next-post' ); ?>"/> |
|
40 | + <input type="text" name="FNAME" value="" placeholder="<?php esc_html_e('First Name', 'auto-load-next-post'); ?>"/> |
|
41 | 41 | </div> |
42 | 42 | |
43 | 43 | <div class="field"> |
44 | - <input type="text" name="LNAME" value="" placeholder="<?php esc_html_e( 'Last Name', 'auto-load-next-post' ); ?>"/> |
|
44 | + <input type="text" name="LNAME" value="" placeholder="<?php esc_html_e('Last Name', 'auto-load-next-post'); ?>"/> |
|
45 | 45 | </div> |
46 | 46 | |
47 | 47 | <input type="hidden" name="group[35169][1]" value="1"> |
48 | 48 | |
49 | 49 | <div class="field submit-button"> |
50 | 50 | <div style="position: absolute; left: -9999px;" aria-hidden="true"><input type="text" name="b_48ead612ad85b23fe2239c6e3_79e97b5275" tabindex="-1" value=""></div> |
51 | - <input type="submit" name="subscribe" id="mc-embedded-subscribe" class="button" value="<?php esc_html_e( 'Sign me up', 'auto-load-next-post' ); ?>"/> |
|
51 | + <input type="submit" name="subscribe" id="mc-embedded-subscribe" class="button" value="<?php esc_html_e('Sign me up', 'auto-load-next-post'); ?>"/> |
|
52 | 52 | </div> |
53 | 53 | |
54 | 54 | <p class="promise"> |
55 | - <?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' ); ?> |
|
55 | + <?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'); ?> |
|
56 | 56 | </p> |
57 | 57 | </form> |
58 | 58 | |
59 | 59 | <div class="block credits"> |
60 | - <h4><?php esc_html_e( 'Created & maintained by', 'auto-load-next-post' ); ?></h4> |
|
60 | + <h4><?php esc_html_e('Created & maintained by', 'auto-load-next-post'); ?></h4> |
|
61 | 61 | <ul> |
62 | 62 | <li> |
63 | 63 | <a href="https://profiles.wordpress.org/sebd86"> |
@@ -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 | |
@@ -29,7 +29,7 @@ discard block |
||
29 | 29 | */ |
30 | 30 | public static function init() { |
31 | 31 | // Add theme support and preset the theme selectors. |
32 | - add_action( 'after_setup_theme', array( __CLASS__, 'add_theme_support' ) ); |
|
32 | + add_action('after_setup_theme', array(__CLASS__, 'add_theme_support')); |
|
33 | 33 | } // END init() |
34 | 34 | |
35 | 35 | /** |
@@ -40,12 +40,12 @@ discard block |
||
40 | 40 | * @static |
41 | 41 | */ |
42 | 42 | public static function add_theme_support() { |
43 | - add_theme_support( 'auto-load-next-post', array( |
|
43 | + add_theme_support('auto-load-next-post', array( |
|
44 | 44 | 'content_container' => 'main.site-main', |
45 | 45 | 'title_selector' => 'h1.entry-title', |
46 | 46 | 'navigation_container' => 'nav.post-navigation', |
47 | 47 | 'comments_container' => 'section#comments', |
48 | - ) ); |
|
48 | + )); |
|
49 | 49 | } // END add_theme_support() |
50 | 50 | |
51 | 51 | } // END class |
@@ -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 | |
@@ -29,7 +29,7 @@ discard block |
||
29 | 29 | */ |
30 | 30 | public static function init() { |
31 | 31 | // Add theme support and preset the theme selectors. |
32 | - add_action( 'after_setup_theme', array( __CLASS__, 'add_theme_support' ) ); |
|
32 | + add_action('after_setup_theme', array(__CLASS__, 'add_theme_support')); |
|
33 | 33 | } // END init() |
34 | 34 | |
35 | 35 | /** |
@@ -40,12 +40,12 @@ discard block |
||
40 | 40 | * @static |
41 | 41 | */ |
42 | 42 | public static function add_theme_support() { |
43 | - add_theme_support( 'auto-load-next-post', array( |
|
43 | + add_theme_support('auto-load-next-post', array( |
|
44 | 44 | 'content_container' => 'main.site-main', |
45 | 45 | 'title_selector' => 'h1.entry-title', |
46 | 46 | 'navigation_container' => 'nav.post-navigation', |
47 | 47 | 'comments_container' => 'section#comments', |
48 | - ) ); |
|
48 | + )); |
|
49 | 49 | } // END add_theme_support() |
50 | 50 | |
51 | 51 | } // END class |
@@ -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 | |
@@ -29,7 +29,7 @@ discard block |
||
29 | 29 | */ |
30 | 30 | public static function init() { |
31 | 31 | // Add theme support and preset the theme selectors. |
32 | - add_action( 'after_setup_theme', array( __CLASS__, 'add_theme_support' ) ); |
|
32 | + add_action('after_setup_theme', array(__CLASS__, 'add_theme_support')); |
|
33 | 33 | } // END init() |
34 | 34 | |
35 | 35 | /** |
@@ -40,12 +40,12 @@ discard block |
||
40 | 40 | * @static |
41 | 41 | */ |
42 | 42 | public static function add_theme_support() { |
43 | - add_theme_support( 'auto-load-next-post', array( |
|
43 | + add_theme_support('auto-load-next-post', array( |
|
44 | 44 | 'content_container' => 'main.site-main', |
45 | 45 | 'title_selector' => 'h1.entry-title', |
46 | 46 | 'navigation_container' => 'nav.post-navigation', |
47 | 47 | 'comments_container' => 'section#comments', |
48 | - ) ); |
|
48 | + )); |
|
49 | 49 | } // END add_theme_support() |
50 | 50 | |
51 | 51 | } // END class |
@@ -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 | |
@@ -26,10 +26,10 @@ discard block |
||
26 | 26 | * @return string|array * |
27 | 27 | */ |
28 | 28 | function auto_load_next_post_clean($var) { |
29 | - if ( is_array( $var ) ) { |
|
30 | - return array_map( '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 | |
@@ -40,58 +40,58 @@ discard block |
||
40 | 40 | * |
41 | 41 | * @param string $seconds Seconds in time. |
42 | 42 | */ |
43 | -function auto_load_next_post_seconds_to_words( $seconds ) { |
|
43 | +function auto_load_next_post_seconds_to_words($seconds) { |
|
44 | 44 | // Get the years. |
45 | - $years = ( intval( $seconds ) / YEAR_IN_SECONDS ) % 100; |
|
46 | - if ( $years > 1 ) { |
|
45 | + $years = (intval($seconds) / YEAR_IN_SECONDS) % 100; |
|
46 | + if ($years > 1) { |
|
47 | 47 | /* translators: Number of years */ |
48 | - return sprintf( __( '%s years', 'auto-load-next-post' ), $years ); |
|
49 | - } elseif ( $years > 0 ) { |
|
50 | - return __( 'a year', 'auto-load-next-post' ); |
|
48 | + return sprintf(__('%s years', 'auto-load-next-post'), $years); |
|
49 | + } elseif ($years > 0) { |
|
50 | + return __('a year', 'auto-load-next-post'); |
|
51 | 51 | } |
52 | 52 | |
53 | 53 | // Get the weeks. |
54 | - $weeks = ( intval( $seconds ) / WEEK_IN_SECONDS ) % 52; |
|
55 | - if ( $weeks > 1 ) { |
|
54 | + $weeks = (intval($seconds) / WEEK_IN_SECONDS) % 52; |
|
55 | + if ($weeks > 1) { |
|
56 | 56 | /* translators: Number of weeks */ |
57 | - return sprintf( __( '%s weeks', 'auto-load-next-post' ), $weeks ); |
|
58 | - } elseif ( $weeks > 0 ) { |
|
59 | - return __( 'a week', 'auto-load-next-post' ); |
|
57 | + return sprintf(__('%s weeks', 'auto-load-next-post'), $weeks); |
|
58 | + } elseif ($weeks > 0) { |
|
59 | + return __('a week', 'auto-load-next-post'); |
|
60 | 60 | } |
61 | 61 | |
62 | 62 | // Get the days. |
63 | - $days = ( intval( $seconds ) / DAY_IN_SECONDS ) % 7; |
|
64 | - if ( $days > 1 ) { |
|
63 | + $days = (intval($seconds) / DAY_IN_SECONDS) % 7; |
|
64 | + if ($days > 1) { |
|
65 | 65 | /* translators: Number of days */ |
66 | - return sprintf( __( '%s days', 'auto-load-next-post' ), $days ); |
|
67 | - } elseif ( $days > 0 ) { |
|
68 | - return __( 'a day', 'auto-load-next-post' ); |
|
66 | + return sprintf(__('%s days', 'auto-load-next-post'), $days); |
|
67 | + } elseif ($days > 0) { |
|
68 | + return __('a day', 'auto-load-next-post'); |
|
69 | 69 | } |
70 | 70 | |
71 | 71 | // Get the hours. |
72 | - $hours = ( intval( $seconds ) / HOUR_IN_SECONDS ) % 24; |
|
73 | - if ( $hours > 1 ) { |
|
72 | + $hours = (intval($seconds) / HOUR_IN_SECONDS) % 24; |
|
73 | + if ($hours > 1) { |
|
74 | 74 | /* translators: Number of hours */ |
75 | - return sprintf( __( '%s hours', 'auto-load-next-post' ), $hours ); |
|
76 | - } elseif ( $hours > 0 ) { |
|
77 | - return __( 'an hour', 'auto-load-next-post' ); |
|
75 | + return sprintf(__('%s hours', 'auto-load-next-post'), $hours); |
|
76 | + } elseif ($hours > 0) { |
|
77 | + return __('an hour', 'auto-load-next-post'); |
|
78 | 78 | } |
79 | 79 | |
80 | 80 | // Get the minutes. |
81 | - $minutes = ( intval( $seconds ) / MINUTE_IN_SECONDS ) % 60; |
|
82 | - if ( $minutes > 1 ) { |
|
81 | + $minutes = (intval($seconds) / MINUTE_IN_SECONDS) % 60; |
|
82 | + if ($minutes > 1) { |
|
83 | 83 | /* translators: Number of minutes */ |
84 | - return sprintf( __( '%s minutes', 'auto-load-next-post' ), $minutes ); |
|
85 | - } elseif ( $minutes > 0 ) { |
|
86 | - return __( 'a minute', 'auto-load-next-post' ); |
|
84 | + return sprintf(__('%s minutes', 'auto-load-next-post'), $minutes); |
|
85 | + } elseif ($minutes > 0) { |
|
86 | + return __('a minute', 'auto-load-next-post'); |
|
87 | 87 | } |
88 | 88 | |
89 | 89 | // Get the seconds. |
90 | - $seconds = intval( $seconds ) % 60; |
|
91 | - if ( $seconds > 1 ) { |
|
90 | + $seconds = intval($seconds) % 60; |
|
91 | + if ($seconds > 1) { |
|
92 | 92 | /* translators: Number of seconds */ |
93 | - return sprintf( __( '%s seconds', 'auto-load-next-post' ), $seconds ); |
|
94 | - } elseif ( $seconds > 0 ) { |
|
95 | - return __( 'a second', 'auto-load-next-post' ); |
|
93 | + return sprintf(__('%s seconds', 'auto-load-next-post'), $seconds); |
|
94 | + } elseif ($seconds > 0) { |
|
95 | + return __('a second', 'auto-load-next-post'); |
|
96 | 96 | } |
97 | 97 | } |