@@ -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,13 +29,13 @@ discard block |
||
29 | 29 | */ |
30 | 30 | public static function init() { |
31 | 31 | // This removes the default post navigation in the repeater template. |
32 | - remove_action( 'alnp_load_after_content', 'auto_load_next_post_navigation', 1, 10 ); |
|
32 | + remove_action('alnp_load_after_content', 'auto_load_next_post_navigation', 1, 10); |
|
33 | 33 | |
34 | 34 | // Add a compaitable post navigation. |
35 | - add_action( 'alnp_load_after_content', array( __CLASS__, 'alnp_twentythirteen_post_navigation' ), 1, 10 ); |
|
35 | + add_action('alnp_load_after_content', array(__CLASS__, 'alnp_twentythirteen_post_navigation'), 1, 10); |
|
36 | 36 | |
37 | 37 | // Add theme support and preset the theme selectors. |
38 | - add_action( 'after_setup_theme', array( __CLASS__, 'add_theme_support' ) ); |
|
38 | + add_action('after_setup_theme', array(__CLASS__, 'add_theme_support')); |
|
39 | 39 | } // END init() |
40 | 40 | |
41 | 41 | /** |
@@ -56,14 +56,14 @@ discard block |
||
56 | 56 | * @static |
57 | 57 | */ |
58 | 58 | public static function add_theme_support() { |
59 | - add_theme_support( 'auto-load-next-post', array( |
|
59 | + add_theme_support('auto-load-next-post', array( |
|
60 | 60 | 'content_container' => '#content', |
61 | 61 | 'title_selector' => 'h1.entry-title', |
62 | 62 | 'navigation_container' => 'nav.post-navigation', |
63 | 63 | 'comments_container' => 'div#comments', |
64 | 64 | 'load_js_in_footer' => 'no', |
65 | 65 | 'lock_js_in_footer' => 'no', |
66 | - ) ); |
|
66 | + )); |
|
67 | 67 | } // END add_theme_support() |
68 | 68 | |
69 | 69 | } // 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,16 +29,16 @@ discard block |
||
29 | 29 | */ |
30 | 30 | public static function init() { |
31 | 31 | // This removes the default post navigation in the repeater template. |
32 | - remove_action( 'alnp_load_after_content', 'auto_load_next_post_navigation', 1, 10 ); |
|
32 | + remove_action('alnp_load_after_content', 'auto_load_next_post_navigation', 1, 10); |
|
33 | 33 | |
34 | 34 | // Add a compaitable post navigation. |
35 | - add_action( 'alnp_load_after_content', array( __CLASS__, 'alnp_twentyeleven_post_navigation' ), 1, 10 ); |
|
35 | + add_action('alnp_load_after_content', array(__CLASS__, 'alnp_twentyeleven_post_navigation'), 1, 10); |
|
36 | 36 | |
37 | 37 | // Filters the repeater template location. |
38 | - add_filter( 'alnp_template_redirect', array( __CLASS__, 'alnp_twentyeleven_template_redirect' ) ); |
|
38 | + add_filter('alnp_template_redirect', array(__CLASS__, 'alnp_twentyeleven_template_redirect')); |
|
39 | 39 | |
40 | 40 | // Add theme support and preset the theme selectors. |
41 | - add_action( 'after_setup_theme', array( __CLASS__, 'add_theme_support' ) ); |
|
41 | + add_action('after_setup_theme', array(__CLASS__, 'add_theme_support')); |
|
42 | 42 | } // END init() |
43 | 43 | |
44 | 44 | /** |
@@ -50,8 +50,8 @@ discard block |
||
50 | 50 | public static function alnp_twentyeleven_post_navigation() { |
51 | 51 | ?> |
52 | 52 | <nav id="nav-single"> |
53 | - <h3 class="assistive-text"><?php _e( 'Post navigation', 'auto-load-next-post' ); ?></h3> |
|
54 | - <span class="nav-previous"><?php previous_post_link( '%link', __( '<span class="meta-nav">←</span> Previous', 'auto-load-next-post' ) ); ?></span> |
|
53 | + <h3 class="assistive-text"><?php _e('Post navigation', 'auto-load-next-post'); ?></h3> |
|
54 | + <span class="nav-previous"><?php previous_post_link('%link', __('<span class="meta-nav">←</span> Previous', 'auto-load-next-post')); ?></span> |
|
55 | 55 | </nav><!-- #nav-single --> |
56 | 56 | <?php |
57 | 57 | } // END alnp_twentyeleven_post_navigation() |
@@ -64,7 +64,7 @@ discard block |
||
64 | 64 | * @return string |
65 | 65 | */ |
66 | 66 | public static function alnp_twentyeleven_template_redirect() { |
67 | - return AUTO_LOAD_NEXT_POST_FILE_PATH . '/template/theme-support/twenty-eleven/content-alnp.php'; |
|
67 | + return AUTO_LOAD_NEXT_POST_FILE_PATH.'/template/theme-support/twenty-eleven/content-alnp.php'; |
|
68 | 68 | } // END alnp_twentyeleven_template_redirect() |
69 | 69 | |
70 | 70 | /** |
@@ -75,14 +75,14 @@ discard block |
||
75 | 75 | * @static |
76 | 76 | */ |
77 | 77 | public static function add_theme_support() { |
78 | - add_theme_support( 'auto-load-next-post', array( |
|
78 | + add_theme_support('auto-load-next-post', array( |
|
79 | 79 | 'content_container' => '#content', |
80 | 80 | 'title_selector' => 'h1.entry-title', |
81 | 81 | 'navigation_container' => '#nav-single', |
82 | 82 | 'comments_container' => 'div#comments', |
83 | 83 | 'load_js_in_footer' => 'no', |
84 | 84 | 'lock_js_in_footer' => 'no', |
85 | - ) ); |
|
85 | + )); |
|
86 | 86 | } // END add_theme_support() |
87 | 87 | |
88 | 88 | } // 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,10 +29,10 @@ discard block |
||
29 | 29 | */ |
30 | 30 | public static function init() { |
31 | 31 | // Filters the repeater template location. |
32 | - add_filter( 'alnp_template_redirect', array( __CLASS__, 'alnp_twentyten_template_redirect' ) ); |
|
32 | + add_filter('alnp_template_redirect', array(__CLASS__, 'alnp_twentyten_template_redirect')); |
|
33 | 33 | |
34 | 34 | // Add theme support and preset the theme selectors. |
35 | - add_action( 'after_setup_theme', array( __CLASS__, 'add_theme_support' ) ); |
|
35 | + add_action('after_setup_theme', array(__CLASS__, 'add_theme_support')); |
|
36 | 36 | } // END init() |
37 | 37 | |
38 | 38 | /** |
@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | * @return string |
44 | 44 | */ |
45 | 45 | public static function alnp_twentyten_template_redirect() { |
46 | - return AUTO_LOAD_NEXT_POST_FILE_PATH . '/template/theme-support/twenty-ten/content-alnp.php'; |
|
46 | + return AUTO_LOAD_NEXT_POST_FILE_PATH.'/template/theme-support/twenty-ten/content-alnp.php'; |
|
47 | 47 | } // END alnp_twentyten_template_redirect() |
48 | 48 | |
49 | 49 | /** |
@@ -54,14 +54,14 @@ discard block |
||
54 | 54 | * @static |
55 | 55 | */ |
56 | 56 | public static function add_theme_support() { |
57 | - add_theme_support( 'auto-load-next-post', array( |
|
57 | + add_theme_support('auto-load-next-post', array( |
|
58 | 58 | 'content_container' => '#content', |
59 | 59 | 'title_selector' => 'h1.entry-title', |
60 | 60 | 'navigation_container' => '#nav-below', |
61 | 61 | 'comments_container' => 'div#comments', |
62 | 62 | 'load_js_in_footer' => 'no', |
63 | 63 | 'lock_js_in_footer' => 'no', |
64 | - ) ); |
|
64 | + )); |
|
65 | 65 | } // END add_theme_support() |
66 | 66 | |
67 | 67 | } // 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,14 +40,14 @@ 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 | 'load_js_in_footer' => 'no', |
49 | 49 | 'lock_js_in_footer' => 'no', |
50 | - ) ); |
|
50 | + )); |
|
51 | 51 | } // END add_theme_support() |
52 | 52 | |
53 | 53 | } // 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,14 +40,14 @@ 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' => '.site-content', |
45 | 45 | 'title_selector' => 'h1.entry-title', |
46 | 46 | 'navigation_container' => 'nav.post-navigation', |
47 | 47 | 'comments_container' => 'div#comments', |
48 | 48 | 'load_js_in_footer' => 'no', |
49 | 49 | 'lock_js_in_footer' => 'no', |
50 | - ) ); |
|
50 | + )); |
|
51 | 51 | } // END add_theme_support() |
52 | 52 | |
53 | 53 | } // 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,10 +29,10 @@ 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 | |
34 | 34 | // Filters the repeater template location. |
35 | - add_filter( 'alnp_template_location', array( __CLASS__, 'alnp_understrap_template_location' ) ); |
|
35 | + add_filter('alnp_template_location', array(__CLASS__, 'alnp_understrap_template_location')); |
|
36 | 36 | } // END init() |
37 | 37 | |
38 | 38 | /** |
@@ -53,14 +53,14 @@ discard block |
||
53 | 53 | * @static |
54 | 54 | */ |
55 | 55 | public static function add_theme_support() { |
56 | - add_theme_support( 'auto-load-next-post', array( |
|
56 | + add_theme_support('auto-load-next-post', array( |
|
57 | 57 | 'content_container' => 'main.site-main', |
58 | 58 | 'title_selector' => 'h1.entry-title', |
59 | 59 | 'navigation_container' => 'nav.post-navigation', |
60 | 60 | 'comments_container' => 'div#comments', |
61 | 61 | 'load_js_in_footer' => 'no', |
62 | 62 | 'lock_js_in_footer' => 'no', |
63 | - ) ); |
|
63 | + )); |
|
64 | 64 | } // END add_theme_support() |
65 | 65 | |
66 | 66 | } // 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,14 +40,14 @@ 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 | 'load_js_in_footer' => 'no', |
49 | 49 | 'lock_js_in_footer' => 'no', |
50 | - ) ); |
|
50 | + )); |
|
51 | 51 | } // END add_theme_support() |
52 | 52 | |
53 | 53 | } // 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,14 +40,14 @@ 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 | 'load_js_in_footer' => 'no', |
49 | 49 | 'lock_js_in_footer' => 'no', |
50 | - ) ); |
|
50 | + )); |
|
51 | 51 | } // END add_theme_support() |
52 | 52 | |
53 | 53 | } // END class |
@@ -10,11 +10,11 @@ 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 | -if ( ! class_exists( 'Auto_Load_Next_Post_Settings_Misc_Tab' ) ) { |
|
17 | +if ( ! class_exists('Auto_Load_Next_Post_Settings_Misc_Tab')) { |
|
18 | 18 | |
19 | 19 | class Auto_Load_Next_Post_Settings_Misc_Tab extends Auto_Load_Next_Post_Settings_Page { |
20 | 20 | |
@@ -28,12 +28,12 @@ discard block |
||
28 | 28 | */ |
29 | 29 | public function __construct() { |
30 | 30 | $this->id = 'misc'; |
31 | - $this->label = esc_html__( 'Misc', 'auto-load-next-post' ); |
|
31 | + $this->label = esc_html__('Misc', 'auto-load-next-post'); |
|
32 | 32 | |
33 | 33 | parent::__construct(); |
34 | 34 | |
35 | - add_filter( 'auto_load_next_post_' . $this->id . '_settings', array( __CLASS__, 'lock_js_in_footer' ), 0, 1 ); |
|
36 | - add_action( 'auto_load_next_post_sections_' . $this->id, array( __CLASS__, 'no_comment_selector_set' ), 10 ); |
|
35 | + add_filter('auto_load_next_post_'.$this->id.'_settings', array(__CLASS__, 'lock_js_in_footer'), 0, 1); |
|
36 | + add_action('auto_load_next_post_sections_'.$this->id, array(__CLASS__, 'no_comment_selector_set'), 10); |
|
37 | 37 | } // END __construct() |
38 | 38 | |
39 | 39 | /** |
@@ -44,11 +44,11 @@ discard block |
||
44 | 44 | * @since 1.5.0 |
45 | 45 | */ |
46 | 46 | public static function no_comment_selector_set() { |
47 | - $comments_container = get_option( 'auto_load_next_post_comments_container' ); |
|
48 | - $remove_comments = get_option( 'auto_load_next_post_remove_comments' ); |
|
47 | + $comments_container = get_option('auto_load_next_post_comments_container'); |
|
48 | + $remove_comments = get_option('auto_load_next_post_remove_comments'); |
|
49 | 49 | |
50 | - if ( empty( $comments_container ) && ! empty( $remove_comments ) ) { |
|
51 | - include( dirname( AUTO_LOAD_NEXT_POST_FILE ) . '/includes/admin/views/html-notice-no-comment-selector.php' ); |
|
50 | + if (empty($comments_container) && ! empty($remove_comments)) { |
|
51 | + include(dirname(AUTO_LOAD_NEXT_POST_FILE).'/includes/admin/views/html-notice-no-comment-selector.php'); |
|
52 | 52 | } |
53 | 53 | } // END no_comment_selector_set() |
54 | 54 | |
@@ -62,19 +62,19 @@ discard block |
||
62 | 62 | * @param array $settings |
63 | 63 | * @return array $settings |
64 | 64 | */ |
65 | - public static function lock_js_in_footer( $settings ) { |
|
66 | - $js_locked_in_footer = get_option( 'auto_load_next_post_js_footer_locked' ); |
|
65 | + public static function lock_js_in_footer($settings) { |
|
66 | + $js_locked_in_footer = get_option('auto_load_next_post_js_footer_locked'); |
|
67 | 67 | |
68 | - if ( !empty( $js_locked_in_footer ) && $js_locked_in_footer == 'yes' ) { |
|
68 | + if ( ! empty($js_locked_in_footer) && $js_locked_in_footer == 'yes') { |
|
69 | 69 | // Setting key to look for. |
70 | 70 | $key = 'load_js_in_footer'; |
71 | 71 | |
72 | 72 | // Find the setting. |
73 | - $find_setting = array_search( $key, $settings ); |
|
73 | + $find_setting = array_search($key, $settings); |
|
74 | 74 | |
75 | 75 | // Does the setting exist? |
76 | - if ( is_bool( $find_setting ) === true ) { |
|
77 | - unset( $settings[$key] ); |
|
76 | + if (is_bool($find_setting) === true) { |
|
77 | + unset($settings[$key]); |
|
78 | 78 | } |
79 | 79 | } |
80 | 80 | |
@@ -95,45 +95,45 @@ discard block |
||
95 | 95 | 'title' => array( |
96 | 96 | 'title' => $this->label, |
97 | 97 | 'type' => 'title', |
98 | - 'desc' => sprintf( esc_html__( 'Here you set if you want to track pageviews, remove comments and load %s javascript in the footer.', 'auto-load-next-post' ), esc_html__( 'Auto Load Next Post', 'auto-load-next-post' ) ), |
|
98 | + 'desc' => sprintf(esc_html__('Here you set if you want to track pageviews, remove comments and load %s javascript in the footer.', 'auto-load-next-post'), esc_html__('Auto Load Next Post', 'auto-load-next-post')), |
|
99 | 99 | 'id' => 'misc_options' |
100 | 100 | ), |
101 | 101 | |
102 | 102 | 'remove_comments' => array( |
103 | - 'title' => esc_html__( 'Remove Comments', 'auto-load-next-post' ), |
|
104 | - 'desc' => esc_html__( 'Enable to remove comments when each post loads including the initial post.', 'auto-load-next-post' ), |
|
103 | + 'title' => esc_html__('Remove Comments', 'auto-load-next-post'), |
|
104 | + 'desc' => esc_html__('Enable to remove comments when each post loads including the initial post.', 'auto-load-next-post'), |
|
105 | 105 | 'id' => 'auto_load_next_post_remove_comments', |
106 | 106 | 'default' => 'yes', |
107 | 107 | 'type' => 'checkbox' |
108 | 108 | ), |
109 | 109 | |
110 | 110 | 'google_analytics' => array( |
111 | - 'title' => esc_html__( 'Update Google Analytics', 'auto-load-next-post' ), |
|
112 | - 'desc' => esc_html__( 'Enable to track each post the visitor is reading. This will count as a pageview. You must already have Google Analytics setup.', 'auto-load-next-post' ), |
|
111 | + 'title' => esc_html__('Update Google Analytics', 'auto-load-next-post'), |
|
112 | + 'desc' => esc_html__('Enable to track each post the visitor is reading. This will count as a pageview. You must already have Google Analytics setup.', 'auto-load-next-post'), |
|
113 | 113 | 'id' => 'auto_load_next_post_google_analytics', |
114 | 114 | 'default' => 'no', |
115 | 115 | 'type' => 'checkbox' |
116 | 116 | ), |
117 | 117 | |
118 | 118 | 'load_js_in_footer' => array( |
119 | - 'title' => esc_html__( 'JavaScript in Footer?', 'auto-load-next-post' ), |
|
120 | - 'desc' => esc_html__( 'Enable to load Auto Load Next Post in the footer instead of the header. Can be useful to optimize your site or if the current theme requires it.', 'auto-load-next-post' ), |
|
119 | + 'title' => esc_html__('JavaScript in Footer?', 'auto-load-next-post'), |
|
120 | + 'desc' => esc_html__('Enable to load Auto Load Next Post in the footer instead of the header. Can be useful to optimize your site or if the current theme requires it.', 'auto-load-next-post'), |
|
121 | 121 | 'id' => 'auto_load_next_post_load_js_in_footer', |
122 | 122 | 'default' => 'no', |
123 | 123 | 'type' => 'checkbox' |
124 | 124 | ), |
125 | 125 | |
126 | 126 | 'reset_data' => array( |
127 | - 'title' => esc_html__( 'Reset all data?', 'auto-load-next-post' ), |
|
128 | - 'desc' => esc_html__( 'Press the reset button to clear all settings for this plugin and re-install the default settings.', 'auto-load-next-post' ), |
|
127 | + 'title' => esc_html__('Reset all data?', 'auto-load-next-post'), |
|
128 | + 'desc' => esc_html__('Press the reset button to clear all settings for this plugin and re-install the default settings.', 'auto-load-next-post'), |
|
129 | 129 | 'id' => 'auto_load_next_post_reset_data', |
130 | 130 | 'default' => 'no', |
131 | 131 | 'type' => 'reset_data' |
132 | 132 | ), |
133 | 133 | |
134 | 134 | 'uninstall' => array( |
135 | - 'title' => esc_html__( 'Remove all data on uninstall?', 'auto-load-next-post' ), |
|
136 | - 'desc' => esc_html__( 'If enabled, all settings for this plugin will all be deleted when uninstalling via Plugins > Delete.', 'auto-load-next-post' ), |
|
135 | + 'title' => esc_html__('Remove all data on uninstall?', 'auto-load-next-post'), |
|
136 | + 'desc' => esc_html__('If enabled, all settings for this plugin will all be deleted when uninstalling via Plugins > Delete.', 'auto-load-next-post'), |
|
137 | 137 | 'id' => 'auto_load_next_post_uninstall_data', |
138 | 138 | 'default' => 'no', |
139 | 139 | 'type' => 'checkbox' |
@@ -153,15 +153,15 @@ discard block |
||
153 | 153 | * @since 1.5.0 |
154 | 154 | * @param mixed $settings |
155 | 155 | */ |
156 | - public function customize_button( $settings ) { |
|
156 | + public function customize_button($settings) { |
|
157 | 157 | ?> |
158 | 158 | <tr valign="top"> |
159 | - <th scope="row" class="titledesc"><?php echo $settings['title'];?></th> |
|
160 | - <td class="forminp forminp-<?php echo sanitize_title( $settings['type'] ) ?>"> |
|
161 | - <a href="<?php echo $settings['link']; ?>" class="button-secondary <?php echo esc_attr( $settings['class'] ); ?>"> |
|
159 | + <th scope="row" class="titledesc"><?php echo $settings['title']; ?></th> |
|
160 | + <td class="forminp forminp-<?php echo sanitize_title($settings['type']) ?>"> |
|
161 | + <a href="<?php echo $settings['link']; ?>" class="button-secondary <?php echo esc_attr($settings['class']); ?>"> |
|
162 | 162 | <?php echo $settings['button_text']; ?> |
163 | 163 | </a> |
164 | - <span class="description"><?php echo $settings['desc'];?></span> |
|
164 | + <span class="description"><?php echo $settings['desc']; ?></span> |
|
165 | 165 | </td> |
166 | 166 | </tr> |
167 | 167 | <?php |
@@ -178,7 +178,7 @@ discard block |
||
178 | 178 | public function output() { |
179 | 179 | $settings = $this->get_settings(); |
180 | 180 | |
181 | - Auto_Load_Next_Post_Admin_Settings::output_fields( $settings ); |
|
181 | + Auto_Load_Next_Post_Admin_Settings::output_fields($settings); |
|
182 | 182 | } // END output() |
183 | 183 | |
184 | 184 | /** |
@@ -190,7 +190,7 @@ discard block |
||
190 | 190 | public function save() { |
191 | 191 | $settings = $this->get_settings(); |
192 | 192 | |
193 | - Auto_Load_Next_Post_Admin_Settings::save_fields( $settings ); |
|
193 | + Auto_Load_Next_Post_Admin_Settings::save_fields($settings); |
|
194 | 194 | } // END save() |
195 | 195 | |
196 | 196 | } // END class |