@@ -14,11 +14,11 @@ discard block |
||
14 | 14 | */ |
15 | 15 | |
16 | 16 | // Exit if accessed directly. |
17 | -if ( ! defined( 'ABSPATH' ) ) { |
|
17 | +if ( ! defined('ABSPATH')) { |
|
18 | 18 | exit; |
19 | 19 | } |
20 | 20 | |
21 | -if ( ! class_exists( 'Auto_Load_Next_Post_Admin_Help' ) ) { |
|
21 | +if ( ! class_exists('Auto_Load_Next_Post_Admin_Help')) { |
|
22 | 22 | |
23 | 23 | class Auto_Load_Next_Post_Admin_Help { |
24 | 24 | |
@@ -29,7 +29,7 @@ discard block |
||
29 | 29 | * @since 1.0.0 |
30 | 30 | */ |
31 | 31 | public function __construct() { |
32 | - add_action( 'current_screen', array( $this, 'add_help_tabs' ), 50 ); |
|
32 | + add_action('current_screen', array($this, 'add_help_tabs'), 50); |
|
33 | 33 | } // END __construct() |
34 | 34 | |
35 | 35 | /** |
@@ -42,62 +42,62 @@ discard block |
||
42 | 42 | public function add_help_tabs() { |
43 | 43 | $screen = get_current_screen(); |
44 | 44 | |
45 | - if ( $screen->id != 'settings_page_auto-load-next-post-settings') { |
|
45 | + if ($screen->id != 'settings_page_auto-load-next-post-settings') { |
|
46 | 46 | return; |
47 | 47 | } |
48 | 48 | |
49 | - $screen->add_help_tab( array( |
|
49 | + $screen->add_help_tab(array( |
|
50 | 50 | 'id' => 'auto_load_next_post_theme_selectors_tab', |
51 | - 'title' => __( 'Theme Selectors', 'auto-load-next-post' ), |
|
51 | + 'title' => __('Theme Selectors', 'auto-load-next-post'), |
|
52 | 52 | 'content' => |
53 | - '<h2>' . __( 'Theme Selectors', 'auto-load-next-post' ) . '</h2>' . |
|
54 | - '<p>' . sprintf( __( 'Theme Selectors allows %s look for where to load content in, the post being read, the next post to load and whether to show or hide comments per post.', 'auto-load-next-post' ), esc_html__( 'Auto Load Next Post', 'auto-load-next-post' ) ) . '</p>' . |
|
55 | - '<p>' . sprintf( __( 'When the plugin was activated, default theme selectors are set that match the majority of most WordPress themes. If the active theme supports %1$s then it will set its own theme selectors. If the theme has not declared support for %1$s and posts are not loading, dont worry. It is most likely that at least one of these selectors need to be changed. You may find it to be the <em>Content Container</em>. See more information on %2$show to find your theme selectors%3$s.', 'auto-load-next-post' ), esc_html__( 'Auto Load Next Post', 'auto-load-next-post' ), '<a href="' . AUTO_LOAD_NEXT_POST_STORE_URL . 'documentation/find-theme-selectors/">', '</a>' ) . '</p>' . |
|
56 | - '<p>' . sprintf( esc_html__( 'These are the default theme selectors when %s is installed.', 'auto-load-next-post' ), esc_html__( 'Auto Load Next Post', 'auto-load-next-post' ) ) . '</p>' . |
|
57 | - '<h5>' . esc_html__( 'Default Theme Selectors', 'auto-load-next-post' ) . '</h5>' . |
|
58 | - '<ul>' . |
|
59 | - '<li><strong>' . esc_html__( 'Content Container', 'auto-load-next-post' ) . '</strong>' . '<br>main.site-main</li>' . |
|
60 | - '<li><strong>' . esc_html__( 'Post Title', 'auto-load-next-post' ) . '</strong>' . '<br>h1.entry-title</li>' . |
|
61 | - '<li><strong>' . esc_html__( 'Post Navigation', 'auto-load-next-post' ) . '</strong>' . '<br>nav.post-navigation</li>' . |
|
62 | - '<li><strong>' . esc_html__( 'Comments Container', 'auto-load-next-post' ) . '</strong>' . '<br>div#comments</li>' . |
|
53 | + '<h2>'.__('Theme Selectors', 'auto-load-next-post').'</h2>'. |
|
54 | + '<p>'.sprintf(__('Theme Selectors allows %s look for where to load content in, the post being read, the next post to load and whether to show or hide comments per post.', 'auto-load-next-post'), esc_html__('Auto Load Next Post', 'auto-load-next-post')).'</p>'. |
|
55 | + '<p>'.sprintf(__('When the plugin was activated, default theme selectors are set that match the majority of most WordPress themes. If the active theme supports %1$s then it will set its own theme selectors. If the theme has not declared support for %1$s and posts are not loading, dont worry. It is most likely that at least one of these selectors need to be changed. You may find it to be the <em>Content Container</em>. See more information on %2$show to find your theme selectors%3$s.', 'auto-load-next-post'), esc_html__('Auto Load Next Post', 'auto-load-next-post'), '<a href="'.AUTO_LOAD_NEXT_POST_STORE_URL.'documentation/find-theme-selectors/">', '</a>').'</p>'. |
|
56 | + '<p>'.sprintf(esc_html__('These are the default theme selectors when %s is installed.', 'auto-load-next-post'), esc_html__('Auto Load Next Post', 'auto-load-next-post')).'</p>'. |
|
57 | + '<h5>'.esc_html__('Default Theme Selectors', 'auto-load-next-post').'</h5>'. |
|
58 | + '<ul>'. |
|
59 | + '<li><strong>'.esc_html__('Content Container', 'auto-load-next-post').'</strong>'.'<br>main.site-main</li>'. |
|
60 | + '<li><strong>'.esc_html__('Post Title', 'auto-load-next-post').'</strong>'.'<br>h1.entry-title</li>'. |
|
61 | + '<li><strong>'.esc_html__('Post Navigation', 'auto-load-next-post').'</strong>'.'<br>nav.post-navigation</li>'. |
|
62 | + '<li><strong>'.esc_html__('Comments Container', 'auto-load-next-post').'</strong>'.'<br>div#comments</li>'. |
|
63 | 63 | '</ul>' |
64 | - ) ); |
|
64 | + )); |
|
65 | 65 | |
66 | - $screen->add_help_tab( array( |
|
66 | + $screen->add_help_tab(array( |
|
67 | 67 | 'id' => 'auto_load_next_post_support_tab', |
68 | - 'title' => esc_html__( 'Help & Support', 'auto-load-next-post' ), |
|
68 | + 'title' => esc_html__('Help & Support', 'auto-load-next-post'), |
|
69 | 69 | 'content' => |
70 | - '<h2>' . esc_html__( 'Help & Support', 'auto-load-next-post' ) . '</h2>' . |
|
71 | - '<p>' . sprintf( __( 'Should you need help understanding, using, or extending %1$s, please %2$sread the documentation%3$s. You will find snippets, tutorials and much more.', 'auto-load-next-post' ), esc_html__( 'Auto Load Next Post', 'auto-load-next-post' ), '<a href="' . AUTO_LOAD_NEXT_POST_STORE_URL . 'documentation/?utm_source=wpadmin&utm_campaign=plugin-settings-help-tab" target="_blank">', '</a>' ) . '</p>' . |
|
72 | - '<p>' . sprintf( __( 'For further assistance with %1$s you can use the %2$scommunity forum%3$s.', 'auto-load-next-post' ), esc_html__( 'Auto Load Next Post', 'auto-load-next-post' ), '<a href="'. AUTO_LOAD_NEXT_POST_SUPPORT_URL . '" target="_blank">', '</a>' ) . '</p> ' . |
|
73 | - '<p>' . sprintf( __( '%1$s is in need of translations. Is the plugin not translated in your language or do you spot errors with the current translations? Helping out is easy! Head over to the project on WordPress.org and click %2$sTranslate %1$s%3$s.', 'auto-load-next-post' ), esc_html__( 'Auto Load Next Post', 'auto-load-next-post' ), '<a href="https://translate.wordpress.org/projects/wp-plugins/auto-load-next-post" target="_blank">', '</a>' ) . '</p>' . |
|
74 | - '<p><a href="' . AUTO_LOAD_NEXT_POST_STORE_URL . 'documentation/?utm_source=wpadmin&utm_campaign=plugin-settings-help-tab" class="button button-primary" target="_blank">' . esc_html__( 'Documentation', 'auto-load-next-post' ) . '</a> <a href="'. AUTO_LOAD_NEXT_POST_SUPPORT_URL . '" class="button button-secondary" target="_blank">' . esc_html__( 'Community Forum', 'auto-load-next-post' ) . '</a> <a href="' . AUTO_LOAD_NEXT_POST_STORE_URL . 'f-a-q/?utm_source=wpadmin&utm_campaign=plugin-settings-help-tab" class="button button-secondary" target="_blank">' . esc_html__( 'Frequently Asked Questions', 'auto-load-next-post' ) . '</a> <a href="https://translate.wordpress.org/projects/wp-plugins/auto-load-next-post" class="button button-secondary" target="_blank">' . sprintf( esc_html__( 'Translate %s', 'auto-load-next-post' ), esc_html__( 'Auto Load Next Post', 'auto-load-next-post' ) ) . '</a></p>' |
|
75 | - ) ); |
|
70 | + '<h2>'.esc_html__('Help & Support', 'auto-load-next-post').'</h2>'. |
|
71 | + '<p>'.sprintf(__('Should you need help understanding, using, or extending %1$s, please %2$sread the documentation%3$s. You will find snippets, tutorials and much more.', 'auto-load-next-post'), esc_html__('Auto Load Next Post', 'auto-load-next-post'), '<a href="'.AUTO_LOAD_NEXT_POST_STORE_URL.'documentation/?utm_source=wpadmin&utm_campaign=plugin-settings-help-tab" target="_blank">', '</a>').'</p>'. |
|
72 | + '<p>'.sprintf(__('For further assistance with %1$s you can use the %2$scommunity forum%3$s.', 'auto-load-next-post'), esc_html__('Auto Load Next Post', 'auto-load-next-post'), '<a href="'.AUTO_LOAD_NEXT_POST_SUPPORT_URL.'" target="_blank">', '</a>').'</p> '. |
|
73 | + '<p>'.sprintf(__('%1$s is in need of translations. Is the plugin not translated in your language or do you spot errors with the current translations? Helping out is easy! Head over to the project on WordPress.org and click %2$sTranslate %1$s%3$s.', 'auto-load-next-post'), esc_html__('Auto Load Next Post', 'auto-load-next-post'), '<a href="https://translate.wordpress.org/projects/wp-plugins/auto-load-next-post" target="_blank">', '</a>').'</p>'. |
|
74 | + '<p><a href="'.AUTO_LOAD_NEXT_POST_STORE_URL.'documentation/?utm_source=wpadmin&utm_campaign=plugin-settings-help-tab" class="button button-primary" target="_blank">'.esc_html__('Documentation', 'auto-load-next-post').'</a> <a href="'.AUTO_LOAD_NEXT_POST_SUPPORT_URL.'" class="button button-secondary" target="_blank">'.esc_html__('Community Forum', 'auto-load-next-post').'</a> <a href="'.AUTO_LOAD_NEXT_POST_STORE_URL.'f-a-q/?utm_source=wpadmin&utm_campaign=plugin-settings-help-tab" class="button button-secondary" target="_blank">'.esc_html__('Frequently Asked Questions', 'auto-load-next-post').'</a> <a href="https://translate.wordpress.org/projects/wp-plugins/auto-load-next-post" class="button button-secondary" target="_blank">'.sprintf(esc_html__('Translate %s', 'auto-load-next-post'), esc_html__('Auto Load Next Post', 'auto-load-next-post')).'</a></p>' |
|
75 | + )); |
|
76 | 76 | |
77 | - $screen->add_help_tab( array( |
|
77 | + $screen->add_help_tab(array( |
|
78 | 78 | 'id' => 'auto_load_next_post_bugs_tab', |
79 | - 'title' => esc_html__( 'Found a bug?', 'auto-load-next-post' ), |
|
79 | + 'title' => esc_html__('Found a bug?', 'auto-load-next-post'), |
|
80 | 80 | 'content' => |
81 | - '<h2>' . esc_html__( 'Found a bug?', 'auto-load-next-post' ) . '</h2>' . |
|
82 | - '<p>' . sprintf( __( 'If you find a bug within %1$s, please %2$sreport the issue%4$s by creating a ticket on the GitHub repository where I can deal with it more appropriately. Please ensure that you have read the %3$sguidelines to contributing%4$s prior to submitting your report. To help me solve the issue, please be as descriptive as possible.', 'auto-load-next-post' ), esc_html__( 'Auto Load Next Post', 'auto-load-next-post' ), '<a href="https://github.com/AutoLoadNextPost/Auto-Load-Next-Post/issues?state=open" target="_blank">', '<a href="https://github.com/AutoLoadNextPost/Auto-Load-Next-Post/blob/master/CONTRIBUTING.md" target="_blank">', '</a>' ) . '</p>' . |
|
83 | - '<p><a href="https://github.com/AutoLoadNextPost/Auto-Load-Next-Post/issues?state=open" class="button button-primary" target="_blank">' . esc_html__( 'Report an Issue', 'auto-load-next-post' ) . '</a></p>' |
|
84 | - ) ); |
|
81 | + '<h2>'.esc_html__('Found a bug?', 'auto-load-next-post').'</h2>'. |
|
82 | + '<p>'.sprintf(__('If you find a bug within %1$s, please %2$sreport the issue%4$s by creating a ticket on the GitHub repository where I can deal with it more appropriately. Please ensure that you have read the %3$sguidelines to contributing%4$s prior to submitting your report. To help me solve the issue, please be as descriptive as possible.', 'auto-load-next-post'), esc_html__('Auto Load Next Post', 'auto-load-next-post'), '<a href="https://github.com/AutoLoadNextPost/Auto-Load-Next-Post/issues?state=open" target="_blank">', '<a href="https://github.com/AutoLoadNextPost/Auto-Load-Next-Post/blob/master/CONTRIBUTING.md" target="_blank">', '</a>').'</p>'. |
|
83 | + '<p><a href="https://github.com/AutoLoadNextPost/Auto-Load-Next-Post/issues?state=open" class="button button-primary" target="_blank">'.esc_html__('Report an Issue', 'auto-load-next-post').'</a></p>' |
|
84 | + )); |
|
85 | 85 | |
86 | 86 | $screen->add_help_tab(array( |
87 | 87 | 'id' => 'auto_load_next_post_feedback_tab', |
88 | - 'title' => esc_html__( 'Feedback', 'auto-load-next-post' ), |
|
88 | + 'title' => esc_html__('Feedback', 'auto-load-next-post'), |
|
89 | 89 | 'content' => |
90 | - '<h2>' . esc_html__( 'Feedback', 'auto-load-next-post' ) . '</h2>' . |
|
91 | - '<p>' . esc_html__( 'Your feedback is very important to me. Please consider leaving a review on WordPress.org or complete a simple survey.', 'auto-load-next-post' ) . '</p>' . |
|
92 | - '<p>' . sprintf( __( 'If %1$s has worked out for you well and you like it, please consider %2$smaking a donation%3$s.', 'auto-load-next-post' ), esc_html__( 'Auto Load Next Post', 'auto-load-next-post' ), '<a href="https://www.buymeacoffee.com/sebastien" target="_blank">', '</a>' ) . '</p>'. |
|
93 | - '<p><a href="' . AUTO_LOAD_NEXT_POST_REVIEW_URL . '?filter=5#postform" class="button button-primary" target="_blank">' . esc_html__( 'Submit a Review', 'auto-load-next-post' ) . '</a> <a href="https://docs.google.com/forms/d/e/1FAIpQLSdzxlvnXRBIw8gqI7Z2O-HzYtncpGjDkLjlaeZLVsfrR61FNA/viewform?usp=sf_link" class="button button-secondary" target="_blank">' . esc_html__( 'Complete a Simple Survey', 'auto-load-next-post' ) . '</a> <a href="https://www.buymeacoffee.com/sebastien" class="button button-secondary" target="_blank">' . esc_html__( 'Make a Donation', 'auto-load-next-post' ) . '</a></p>' |
|
94 | - ) ); |
|
90 | + '<h2>'.esc_html__('Feedback', 'auto-load-next-post').'</h2>'. |
|
91 | + '<p>'.esc_html__('Your feedback is very important to me. Please consider leaving a review on WordPress.org or complete a simple survey.', 'auto-load-next-post').'</p>'. |
|
92 | + '<p>'.sprintf(__('If %1$s has worked out for you well and you like it, please consider %2$smaking a donation%3$s.', 'auto-load-next-post'), esc_html__('Auto Load Next Post', 'auto-load-next-post'), '<a href="https://www.buymeacoffee.com/sebastien" target="_blank">', '</a>').'</p>'. |
|
93 | + '<p><a href="'.AUTO_LOAD_NEXT_POST_REVIEW_URL.'?filter=5#postform" class="button button-primary" target="_blank">'.esc_html__('Submit a Review', 'auto-load-next-post').'</a> <a href="https://docs.google.com/forms/d/e/1FAIpQLSdzxlvnXRBIw8gqI7Z2O-HzYtncpGjDkLjlaeZLVsfrR61FNA/viewform?usp=sf_link" class="button button-secondary" target="_blank">'.esc_html__('Complete a Simple Survey', 'auto-load-next-post').'</a> <a href="https://www.buymeacoffee.com/sebastien" class="button button-secondary" target="_blank">'.esc_html__('Make a Donation', 'auto-load-next-post').'</a></p>' |
|
94 | + )); |
|
95 | 95 | |
96 | 96 | $screen->set_help_sidebar( |
97 | - '<p><strong>' . esc_html__( 'For more information:', 'auto-load-next-post' ) . '</strong></p>' . |
|
98 | - '<p><a href="' . AUTO_LOAD_NEXT_POST_STORE_URL . 'about/?utm_source=wpadmin&utm_campaign=plugin-settings-help-tab" target="_blank">' . sprintf( esc_html__( 'About %s', 'auto-load-next-post' ), esc_html__( 'Auto Load Next Post', 'auto-load-next-post' ) ) . '</a></p>' . |
|
99 | - '<p><a href="https://wordpress.org/plugins/auto-load-next-post/" target="_blank">' . esc_html__( 'WordPress.org Project', 'auto-load-next-post' ) . '</a></p>' . |
|
100 | - '<p><a href="https://github.com/AutoLoadNextPost/Auto-Load-Next-Post/" target="_blank">' . esc_html__( 'GitHub Project', 'auto-load-next-post' ) . '</a></p>' |
|
97 | + '<p><strong>'.esc_html__('For more information:', 'auto-load-next-post').'</strong></p>'. |
|
98 | + '<p><a href="'.AUTO_LOAD_NEXT_POST_STORE_URL.'about/?utm_source=wpadmin&utm_campaign=plugin-settings-help-tab" target="_blank">'.sprintf(esc_html__('About %s', 'auto-load-next-post'), esc_html__('Auto Load Next Post', 'auto-load-next-post')).'</a></p>'. |
|
99 | + '<p><a href="https://wordpress.org/plugins/auto-load-next-post/" target="_blank">'.esc_html__('WordPress.org Project', 'auto-load-next-post').'</a></p>'. |
|
100 | + '<p><a href="https://github.com/AutoLoadNextPost/Auto-Load-Next-Post/" target="_blank">'.esc_html__('GitHub Project', 'auto-load-next-post').'</a></p>' |
|
101 | 101 | ); |
102 | 102 | |
103 | 103 | } // END add_help_tabs() |
@@ -12,16 +12,16 @@ 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 | 19 | // Exit if WP_Customize_Control does not exsist. |
20 | -if ( ! class_exists( 'WP_Customize_Control' ) ) { |
|
20 | +if ( ! class_exists('WP_Customize_Control')) { |
|
21 | 21 | return null; |
22 | 22 | } |
23 | 23 | |
24 | -if ( !class_exists( 'Auto_Load_Next_Post_Pro_Preview_Controller' ) ) { |
|
24 | +if ( ! class_exists('Auto_Load_Next_Post_Pro_Preview_Controller')) { |
|
25 | 25 | |
26 | 26 | /** |
27 | 27 | * The 'alnp_pro_preview' for Auto Load Next Post Pro control class. |
@@ -45,39 +45,39 @@ discard block |
||
45 | 45 | <span class="customize-control-title"><?php echo $this->label; ?></span> |
46 | 46 | |
47 | 47 | <p> |
48 | - <?php printf( esc_html__( '%1$s is coming soon and will come with more powerful features. Here are just a few of them you can look forward to.', 'auto-load-next-post' ), esc_html__( 'Auto Load Next Post Pro', 'auto-load-next-post' ) ); ?> |
|
48 | + <?php printf(esc_html__('%1$s is coming soon and will come with more powerful features. Here are just a few of them you can look forward to.', 'auto-load-next-post'), esc_html__('Auto Load Next Post Pro', 'auto-load-next-post')); ?> |
|
49 | 49 | </p> |
50 | 50 | |
51 | 51 | <ul style="list-style: disc; margin-left: 1em;"> |
52 | - <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> |
|
53 | - <li><?php echo wptexturize( esc_html__( 'Page and Media Attachment Support', 'auto-load-next-post' ) ); ?></li> |
|
54 | - <li><?php echo wptexturize( esc_html__( 'Custom Post Type Support', 'auto-load-next-post' ) ); ?></li> |
|
55 | - <li><?php echo wptexturize( esc_html__( 'Paginated Posts Supported', 'auto-load-next-post' ) ); ?></li> |
|
56 | - <li><?php echo wptexturize( esc_html__( 'Exclude Post Formats', 'auto-load-next-post' ) ); ?></li> |
|
57 | - <li><?php echo wptexturize( esc_html__( 'Limit Posts per Session', 'auto-load-next-post' ) ); ?></li> |
|
58 | - <li><?php echo wptexturize( esc_html__( 'Query Posts by Category and Tag', 'auto-load-next-post' ) ); ?></li> |
|
59 | - <li><?php echo wptexturize( esc_html__( 'Exclude User Roles and Specific Users', 'auto-load-next-post' ) ); ?></li> |
|
60 | - <li><?php echo wptexturize( esc_html__( 'Pre-Query Posts Ready to Load', 'auto-load-next-post' ) ); ?></li> |
|
61 | - <li><?php echo wptexturize( esc_html__( 'Hide Comments and Show by Toggle Button', 'auto-load-next-post' ) ); ?></li> |
|
62 | - <li><?php echo wptexturize( sprintf( esc_html__( 'Multilingual Support for %1$s and %2$s', 'auto-load-next-post' ), 'WPML', 'Polylang' ) ); ?></li> |
|
63 | - <li><?php echo wptexturize( esc_html__( 'Email Support', 'auto-load-next-post' ) ); ?></li> |
|
52 | + <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> |
|
53 | + <li><?php echo wptexturize(esc_html__('Page and Media Attachment Support', 'auto-load-next-post')); ?></li> |
|
54 | + <li><?php echo wptexturize(esc_html__('Custom Post Type Support', 'auto-load-next-post')); ?></li> |
|
55 | + <li><?php echo wptexturize(esc_html__('Paginated Posts Supported', 'auto-load-next-post')); ?></li> |
|
56 | + <li><?php echo wptexturize(esc_html__('Exclude Post Formats', 'auto-load-next-post')); ?></li> |
|
57 | + <li><?php echo wptexturize(esc_html__('Limit Posts per Session', 'auto-load-next-post')); ?></li> |
|
58 | + <li><?php echo wptexturize(esc_html__('Query Posts by Category and Tag', 'auto-load-next-post')); ?></li> |
|
59 | + <li><?php echo wptexturize(esc_html__('Exclude User Roles and Specific Users', 'auto-load-next-post')); ?></li> |
|
60 | + <li><?php echo wptexturize(esc_html__('Pre-Query Posts Ready to Load', 'auto-load-next-post')); ?></li> |
|
61 | + <li><?php echo wptexturize(esc_html__('Hide Comments and Show by Toggle Button', 'auto-load-next-post')); ?></li> |
|
62 | + <li><?php echo wptexturize(sprintf(esc_html__('Multilingual Support for %1$s and %2$s', 'auto-load-next-post'), 'WPML', 'Polylang')); ?></li> |
|
63 | + <li><?php echo wptexturize(esc_html__('Email Support', 'auto-load-next-post')); ?></li> |
|
64 | 64 | </ul> |
65 | 65 | |
66 | 66 | <p> |
67 | - <?php printf( esc_html__( 'Find out more about %1$s%2$s%3$s.', 'auto-load-next-post'), '<a target="_blank" href="' . esc_url( AUTO_LOAD_NEXT_POST_STORE_URL . 'pro/?utm_source=wpcustomizer&utm_campaign=plugin-settings-pro-preview' ) . '">', esc_html__( 'Auto Load Next Post Pro', 'auto-load-next-post' ), '</a>' ); ?> |
|
67 | + <?php printf(esc_html__('Find out more about %1$s%2$s%3$s.', 'auto-load-next-post'), '<a target="_blank" href="'.esc_url(AUTO_LOAD_NEXT_POST_STORE_URL.'pro/?utm_source=wpcustomizer&utm_campaign=plugin-settings-pro-preview').'">', esc_html__('Auto Load Next Post Pro', 'auto-load-next-post'), '</a>'); ?> |
|
68 | 68 | </p> |
69 | 69 | |
70 | - <span class="customize-control-title"><?php printf( esc_html__( 'Add-ons for %s', 'auto-load-next-post' ), esc_html__( 'Auto Load Next Post', 'auto-load-next-post' ) ); ?></span> |
|
70 | + <span class="customize-control-title"><?php printf(esc_html__('Add-ons for %s', 'auto-load-next-post'), esc_html__('Auto Load Next Post', 'auto-load-next-post')); ?></span> |
|
71 | 71 | |
72 | 72 | <p> |
73 | - <?php printf( esc_html__( 'Add-ons available provide additional support or options for %1$s. %2$sCheck out the add-ons%3$s to see what is available.', 'auto-load-next-post' ), esc_html__( 'Auto Load Next Post', 'auto-load-next-post' ), '<a target="_blank" href="' . esc_url( AUTO_LOAD_NEXT_POST_STORE_URL . 'add-ons/?utm_source=wpcustomizer&utm_campaign=plugin-settings-pro-preview' ) . '">', '</a>' ); ?> |
|
73 | + <?php printf(esc_html__('Add-ons available provide additional support or options for %1$s. %2$sCheck out the add-ons%3$s to see what is available.', 'auto-load-next-post'), esc_html__('Auto Load Next Post', 'auto-load-next-post'), '<a target="_blank" href="'.esc_url(AUTO_LOAD_NEXT_POST_STORE_URL.'add-ons/?utm_source=wpcustomizer&utm_campaign=plugin-settings-pro-preview').'">', '</a>'); ?> |
|
74 | 74 | </p> |
75 | 75 | |
76 | - <span class="customize-control-title"><?php printf( esc_html__( 'Enjoying %s?', 'auto-load-next-post' ), esc_html__( 'Auto Load Next Post', 'auto-load-next-post' ) ); ?></span> |
|
76 | + <span class="customize-control-title"><?php printf(esc_html__('Enjoying %s?', 'auto-load-next-post'), esc_html__('Auto Load Next Post', 'auto-load-next-post')); ?></span> |
|
77 | 77 | |
78 | 78 | <div class="notice inline notice-info"> |
79 | 79 | <p> |
80 | - <?php printf( esc_html__( 'Why not leave me a review on %1$sWordPress.org%2$s? I\'d really appreciate it!', 'auto-load-next-post' ), '<a target="_blank" href="https://wordpress.org/support/view/plugin-reviews/auto-load-next-post?filter=5#postform">', '</a>' ); ?> |
|
80 | + <?php printf(esc_html__('Why not leave me a review on %1$sWordPress.org%2$s? I\'d really appreciate it!', 'auto-load-next-post'), '<a target="_blank" href="https://wordpress.org/support/view/plugin-reviews/auto-load-next-post?filter=5#postform">', '</a>'); ?> |
|
81 | 81 | </p> |
82 | 82 | </div> |
83 | 83 | <?php |
@@ -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 | |
@@ -43,13 +43,13 @@ discard block |
||
43 | 43 | function alnp_include_theme_support() { |
44 | 44 | $themes_supported = alnp_themes_supported(); |
45 | 45 | |
46 | - if ( is_alnp_active_theme( $themes_supported ) ) { |
|
47 | - foreach( $themes_supported as $theme ) { |
|
48 | - if ( get_template() == $theme ) { |
|
49 | - include_once( dirname( __FILE__ ) . '/theme-support/class-alnp-' . $theme . '.php' ); |
|
46 | + if (is_alnp_active_theme($themes_supported)) { |
|
47 | + foreach ($themes_supported as $theme) { |
|
48 | + if (get_template() == $theme) { |
|
49 | + include_once(dirname(__FILE__).'/theme-support/class-alnp-'.$theme.'.php'); |
|
50 | 50 | } |
51 | 51 | } |
52 | 52 | } |
53 | 53 | |
54 | - include_once( dirname( __FILE__ ) . '/theme-support/class-alnp-theme-support.php' ); |
|
54 | + include_once(dirname(__FILE__).'/theme-support/class-alnp-theme-support.php'); |
|
55 | 55 | } // END alnp_include_theme_support() |
@@ -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_Settings_Events_Tab' ) ) { |
|
18 | +if ( ! class_exists('Auto_Load_Next_Post_Settings_Events_Tab')) { |
|
19 | 19 | |
20 | 20 | class Auto_Load_Next_Post_Settings_Events_Tab extends Auto_Load_Next_Post_Settings_Page { |
21 | 21 | |
@@ -26,11 +26,11 @@ discard block |
||
26 | 26 | */ |
27 | 27 | public function __construct() { |
28 | 28 | $this->id = 'events'; |
29 | - $this->label = esc_html__( 'Events', 'auto-load-next-post' ); |
|
29 | + $this->label = esc_html__('Events', 'auto-load-next-post'); |
|
30 | 30 | |
31 | 31 | parent::__construct(); |
32 | 32 | |
33 | - add_action( 'auto_load_next_post_settings_events', array( __CLASS__, 'is_jetpack_lazy_images_active' ), 10 ); |
|
33 | + add_action('auto_load_next_post_settings_events', array(__CLASS__, 'is_jetpack_lazy_images_active'), 10); |
|
34 | 34 | } // END __construct() |
35 | 35 | |
36 | 36 | /** |
@@ -41,9 +41,9 @@ discard block |
||
41 | 41 | * @static |
42 | 42 | */ |
43 | 43 | public static function is_jetpack_lazy_images_active() { |
44 | - if ( alnp_check_jetpack() == 'yes' ) { |
|
45 | - if ( Jetpack::is_module_active( 'lazy-images' ) ) { |
|
46 | - include( dirname( AUTO_LOAD_NEXT_POST_FILE ) . '/includes/admin/views/html-notice-jetpack-lazy-images-module.php' ); |
|
44 | + if (alnp_check_jetpack() == 'yes') { |
|
45 | + if (Jetpack::is_module_active('lazy-images')) { |
|
46 | + include(dirname(AUTO_LOAD_NEXT_POST_FILE).'/includes/admin/views/html-notice-jetpack-lazy-images-module.php'); |
|
47 | 47 | } |
48 | 48 | } |
49 | 49 | } // END is_jetpack_lazy_images_active() |
@@ -61,13 +61,13 @@ discard block |
||
61 | 61 | array( |
62 | 62 | 'title' => $this->label, |
63 | 63 | 'type' => 'title', |
64 | - 'desc' => sprintf( __( 'Below you can enter external JavaScript events to be triggered alongside %1$s native events. Separate each event like so: %2$s', 'auto-load-next-post' ), esc_html__( 'Auto Load Next Post', 'auto-load-next-post' ), '<code>event1, event2,</code>' ), |
|
64 | + 'desc' => sprintf(__('Below you can enter external JavaScript events to be triggered alongside %1$s native events. Separate each event like so: %2$s', 'auto-load-next-post'), esc_html__('Auto Load Next Post', 'auto-load-next-post'), '<code>event1, event2,</code>'), |
|
65 | 65 | 'id' => 'events_options' |
66 | 66 | ), |
67 | 67 | |
68 | 68 | array( |
69 | - 'title' => esc_html__( 'Post loaded', 'auto-load-next-post' ), |
|
70 | - 'desc' => esc_html__( 'Events listed here will be triggered after a new post has loaded.', 'auto-load-next-post' ), |
|
69 | + 'title' => esc_html__('Post loaded', 'auto-load-next-post'), |
|
70 | + 'desc' => esc_html__('Events listed here will be triggered after a new post has loaded.', 'auto-load-next-post'), |
|
71 | 71 | 'id' => 'auto_load_next_post_on_load_event', |
72 | 72 | 'default' => '', |
73 | 73 | 'type' => 'textarea', |
@@ -76,8 +76,8 @@ discard block |
||
76 | 76 | ), |
77 | 77 | |
78 | 78 | array( |
79 | - 'title' => esc_html__( 'Entering a Post', 'auto-load-next-post' ), |
|
80 | - 'desc' => esc_html__( 'Events listed here will be triggered when entering a post.', 'auto-load-next-post' ), |
|
79 | + 'title' => esc_html__('Entering a Post', 'auto-load-next-post'), |
|
80 | + 'desc' => esc_html__('Events listed here will be triggered when entering a post.', 'auto-load-next-post'), |
|
81 | 81 | 'id' => 'auto_load_next_post_on_entering_event', |
82 | 82 | 'default' => '', |
83 | 83 | 'type' => 'textarea', |
@@ -100,7 +100,7 @@ discard block |
||
100 | 100 | public function output() { |
101 | 101 | $settings = $this->get_settings(); |
102 | 102 | |
103 | - Auto_Load_Next_Post_Admin_Settings::output_fields( $settings ); |
|
103 | + Auto_Load_Next_Post_Admin_Settings::output_fields($settings); |
|
104 | 104 | } // END output() |
105 | 105 | |
106 | 106 | /** |
@@ -111,7 +111,7 @@ discard block |
||
111 | 111 | public function save() { |
112 | 112 | $settings = $this->get_settings(); |
113 | 113 | |
114 | - Auto_Load_Next_Post_Admin_Settings::save_fields( $settings ); |
|
114 | + Auto_Load_Next_Post_Admin_Settings::save_fields($settings); |
|
115 | 115 | } // END save() |
116 | 116 | |
117 | 117 | } // 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 |
@@ -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,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_twentytwelve_post_navigation' ), 1, 10 ); |
|
35 | + add_action('alnp_load_after_content', array(__CLASS__, 'alnp_twentytwelve_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 | /** |
@@ -47,8 +47,8 @@ discard block |
||
47 | 47 | public static function alnp_twentytwelve_post_navigation() { |
48 | 48 | ?> |
49 | 49 | <nav class="nav-single"> |
50 | - <h3 class="assistive-text"><?php _e( 'Post navigation', 'auto-load-next-post' ); ?></h3> |
|
51 | - <span class="nav-previous"><?php previous_post_link( '%link', '<span class="meta-nav">' . _x( '←', 'Previous post link', 'auto-load-next-post' ) . '</span> %title' ); ?></span> |
|
50 | + <h3 class="assistive-text"><?php _e('Post navigation', 'auto-load-next-post'); ?></h3> |
|
51 | + <span class="nav-previous"><?php previous_post_link('%link', '<span class="meta-nav">'._x('←', 'Previous post link', 'auto-load-next-post').'</span> %title'); ?></span> |
|
52 | 52 | </nav><!-- .nav-single --> |
53 | 53 | <?php |
54 | 54 | } // END alnp_twentytwelve_post_navigation() |
@@ -61,14 +61,14 @@ discard block |
||
61 | 61 | * @static |
62 | 62 | */ |
63 | 63 | public static function add_theme_support() { |
64 | - add_theme_support( 'auto-load-next-post', array( |
|
64 | + add_theme_support('auto-load-next-post', array( |
|
65 | 65 | 'content_container' => '#content', |
66 | 66 | 'title_selector' => 'h1.entry-title', |
67 | 67 | 'navigation_container' => '.nav-single', |
68 | 68 | 'comments_container' => 'div#comments', |
69 | 69 | 'load_js_in_footer' => 'no', |
70 | 70 | 'lock_js_in_footer' => 'no', |
71 | - ) ); |
|
71 | + )); |
|
72 | 72 | } // END add_theme_support() |
73 | 73 | |
74 | 74 | } // 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 |