diff --git a/CHANGELOG.md b/CHANGELOG.md index c28fd0c..4d0536e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +# 1.4.9 (30th December 2016) +* Added: Support for Twenty Sixteen. +* Updated: Admin notice for contribution. +* Updated: Admin settings field labels and help tips. +* Updated: POT file. + # 1.4.8 (25th December 2016) * Added: Support for child-themes so they too can also use the plugin. Thanks to [lwesolowski](https://github.com/lwesolowski) * Added: New template location filter. [See Documentation](https://github.com/seb86/Auto-Load-Next-Post/wiki). diff --git a/auto-load-next-post.php b/auto-load-next-post.php index 1f6a6b9..34347f3 100644 --- a/auto-load-next-post.php +++ b/auto-load-next-post.php @@ -3,7 +3,7 @@ * Plugin Name: Auto Load Next Post * Plugin URI: https://autoloadnextpost.com * Description: Gain more post views on your site as readers continue reading your posts scrolling down the page. - * Version: 1.4.8 + * Version: 1.4.9 * Author: Sébastien Dumont * Author URI: https://sebastiendumont.com * @@ -37,7 +37,7 @@ * Main Auto Load Next Post Class * * @class Auto_Load_Next_Post - * @version 1.4.8 + * @version 1.4.9 */ final class Auto_Load_Next_Post { @@ -145,11 +145,11 @@ public function autoload($class) { * Setup Constants * * @since 1.4.3 - * @version 1.4.8 + * @version 1.4.9 * @access private */ private function setup_constants() { - $this->define('AUTO_LOAD_NEXT_POST_VERSION', '1.4.8'); + $this->define('AUTO_LOAD_NEXT_POST_VERSION', '1.4.9'); $this->define('AUTO_LOAD_NEXT_POST_FILE', __FILE__); $this->define('AUTO_LOAD_NEXT_POST_SLUG', 'auto-load-next-post'); diff --git a/includes/admin/settings/class-auto-load-next-post-settings-general.php b/includes/admin/settings/class-auto-load-next-post-settings-general.php index 66725ba..84e7bb2 100644 --- a/includes/admin/settings/class-auto-load-next-post-settings-general.php +++ b/includes/admin/settings/class-auto-load-next-post-settings-general.php @@ -3,6 +3,7 @@ * Auto Load Next Post General Tab Settings * * @since 1.0.0 + * @version 1.4.9 * @author Sébastien Dumont * @category Admin * @package Auto Load Next Post @@ -87,7 +88,7 @@ public function get_settings() { array( 'title' => __('Content Container', 'auto-load-next-post'), - 'desc' => __('Example: main.site-main', 'auto-load-next-post'), + 'desc' => __('This is the primary container were the post content is loaded in. Example: main.site-main', 'auto-load-next-post'), 'desc_tip' => true, 'id' => 'auto_load_next_post_content_container', 'default' => 'main.site-main', @@ -97,7 +98,7 @@ public function get_settings() { ), array( - 'title' => __('Post Title Selector', 'auto-load-next-post'), + 'title' => __('Post Title', 'auto-load-next-post'), 'desc' => __('Example: h1.entry-title', 'auto-load-next-post'), 'desc_tip' => true, 'id' => 'auto_load_next_post_title_selector', @@ -108,8 +109,8 @@ public function get_settings() { ), array( - 'title' => __('Post Navigation Container', 'auto-load-next-post'), - 'desc' => __('Example: nav.post-navigation', 'auto-load-next-post'), + 'title' => __('Post Navigation', 'auto-load-next-post'), + 'desc' => __('The post navigation needs to be indentified to find the next post. Example: nav.post-navigation', 'auto-load-next-post'), 'desc_tip' => true, 'id' => 'auto_load_next_post_navigation_container', 'default' => 'nav.post-navigation', @@ -120,7 +121,7 @@ public function get_settings() { array( 'title' => __('Comments Container', 'auto-load-next-post'), - 'desc' => __('Example: div#comments', 'auto-load-next-post'), + 'desc' => __('This is so comments can be removed if enabled below. Example: div#comments', 'auto-load-next-post'), 'desc_tip' => true, 'id' => 'auto_load_next_post_comments_container', 'default' => 'div#comments', diff --git a/includes/admin/views/html-notice-please-review.php b/includes/admin/views/html-notice-please-review.php index 960d62c..e9ea771 100644 --- a/includes/admin/views/html-notice-please-review.php +++ b/includes/admin/views/html-notice-please-review.php @@ -1,9 +1,9 @@
-

%s, you\'ve been using %s for some time now, and I hope you\'re happy with it. I\'ve spent countless hours developing this free plugin for you, and I would really appreciate it if you could give it a review!', 'auto-load-next-post'), $current_user->display_name, 'Auto Load Next Post')); ?>

-

-

+

%s, you\'ve been using %s for some time now and I hope you\'re happy with it. I\'ve spent countless hours developing this free plugin for you and I would really appreciate it if you could give it a review or offer a contribution. Thank you!', 'auto-load-next-post'), $current_user->display_name, 'Auto Load Next Post')); ?>

+

diff --git a/includes/auto-load-next-post-conditional-functions.php b/includes/auto-load-next-post-conditional-functions.php index ed65ee0..f3e431a 100644 --- a/includes/auto-load-next-post-conditional-functions.php +++ b/includes/auto-load-next-post-conditional-functions.php @@ -38,14 +38,14 @@ function auto_load_next_post_is_ajax() { * Returns true or false if the plugin is supported by the theme. * * @since 1.4.3 - * @version 1.4.8 + * @version 1.4.9 * @access public * @return boolen */ function supports_alnp() { /* WordPress core themes. */ $core_themes = array( - 'twentyseventeen', 'twentyfifteen', 'twentyfourteen', 'twentythirteen', 'twentytwelve', 'twentyten' + 'twentyseventeen', 'twentysixteen', 'twentyfifteen', 'twentyfourteen', 'twentythirteen', 'twentytwelve', 'twentyten' ); if (in_array(get_option('template'), $core_themes)) { @@ -63,6 +63,7 @@ function supports_alnp() { * Filters the template location for get_template_part(). * * @since 1.4.8 + * @version 1.4.9 * @access public * @return boolen */ @@ -74,6 +75,10 @@ function alnp_template_location() { $path = 'template-parts/post/'; break; + case 'twentysixteen': + $path = 'template-parts/'; + break; + default: $path = ''; break; diff --git a/languages/auto-load-next-post.pot b/languages/auto-load-next-post.pot index 294a78c..0d24bd3 100644 --- a/languages/auto-load-next-post.pot +++ b/languages/auto-load-next-post.pot @@ -4,7 +4,7 @@ msgid "" msgstr "" "Project-Id-Version: Auto Load Next Post\n" "Report-Msgid-Bugs-To: https://github.com/seb86/Auto-Load-Next-Post/issues\n" -"POT-Creation-Date: 2016-12-25 00:18+0100\n" +"POT-Creation-Date: 2016-12-30 21:01+0100\n" "PO-Revision-Date: 2015-05-20 17:15+0100\n" "Last-Translator: Auto Load Next Post \n" "Language-Team: Sébastien Dumont \n" @@ -133,6 +133,7 @@ msgid "Complete a Survey" msgstr "" #: includes/admin/class-auto-load-next-post-admin-help.php:85 +#: includes/admin/views/html-notice-please-review.php:21 msgid "Make a Donation" msgstr "" @@ -219,11 +220,13 @@ msgid "Content Container" msgstr "" #: includes/admin/settings/class-auto-load-next-post-settings-general.php:91 -msgid "Example: main.site-main" +msgid "" +"This is the primary container were the post content is loaded in. Example: " +"main.site-main" msgstr "" #: includes/admin/settings/class-auto-load-next-post-settings-general.php:101 -msgid "Post Title Selector" +msgid "Post Title" msgstr "" #: includes/admin/settings/class-auto-load-next-post-settings-general.php:102 @@ -231,11 +234,13 @@ msgid "Example: h1.entry-title" msgstr "" #: includes/admin/settings/class-auto-load-next-post-settings-general.php:112 -msgid "Post Navigation Container" +msgid "Post Navigation" msgstr "" #: includes/admin/settings/class-auto-load-next-post-settings-general.php:113 -msgid "Example: nav.post-navigation" +msgid "" +"The post navigation needs to be indentified to find the next post. Example: " +"nav.post-navigation" msgstr "" #: includes/admin/settings/class-auto-load-next-post-settings-general.php:123 @@ -243,7 +248,9 @@ msgid "Comments Container" msgstr "" #: includes/admin/settings/class-auto-load-next-post-settings-general.php:124 -msgid "Example: div#comments" +msgid "" +"This is so comments can be removed if enabled below. Example: " +"div#comments" msgstr "" #: includes/admin/settings/class-auto-load-next-post-settings-general.php:134 @@ -292,13 +299,14 @@ msgstr "" #: includes/admin/views/html-notice-please-review.php:20 #, php-format msgid "" -"Hi %s, you've been using %s for some time now, and I hope " +"Hi %s, you've been using %s for some time now and I hope " "you're happy with it. I've spent countless hours developing this free plugin " -"for you, and I would really appreciate it if you could give it a review!" +"for you and I would really appreciate it if you could give it a review or " +"offer a contribution. Thank you!" msgstr "" #: includes/admin/views/html-notice-please-review.php:21 -msgid "Yes, take me there!" +msgid "Write a Review" msgstr "" #: includes/admin/views/html-notice-please-review.php:21 diff --git a/package.json b/package.json index 1547996..e43a5f0 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "auto-load-next-post", "title": "Auto Load Next Post", - "version": "1.4.8", + "version": "1.4.9", "homepage": "https://autoloadnextpost.com", "repository": { "type": "git",