Permalink
Browse files

Small update before the new year.

  • Loading branch information...
1 parent 2a660e5 commit 92ca38263575a806b86e46b2f7edb9e1d1db74c5 @seb86 committed Dec 30, 2016
View
@@ -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).
@@ -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');
@@ -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: <code>main.site-main</code>', 'auto-load-next-post'),
+ 'desc' => __('This is the primary container were the post content is loaded in. Example: <code>main.site-main</code>', '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: <code>h1.entry-title</code>', '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: <code>nav.post-navigation</code>', '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: <code>nav.post-navigation</code>', '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: <code>div#comments</code>', 'auto-load-next-post'),
+ 'desc' => __('This is so comments can be removed if enabled below. Example: <code>div#comments</code>', 'auto-load-next-post'),
'desc_tip' => true,
'id' => 'auto_load_next_post_comments_container',
'default' => 'div#comments',
@@ -1,9 +1,9 @@
<?php
/**
- * Admin View: Admin Review Notice
+ * Admin View: Admin Contribution Notice
*
* @since 1.0.0
- * @version 1.4.8
+ * @version 1.4.9
* @author Sébastien Dumont
* @category Admin
* @package Auto Load Next Post
@@ -17,6 +17,6 @@
$current_user = wp_get_current_user();
?>
<div class="notice notice-info auto-load-next-post-message">
- <p><?php _e(sprintf(__('Hi <b>%s</b>, you\'ve been using <b>%s</b> 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')); ?></p>
- <p class="submit"><a href="https://wordpress.org/support/view/plugin-reviews/auto-load-next-post?filter=5#postform" target="_blank" class="button-primary"><?php _e('Yes, take me there!', 'auto-load-next-post'); ?></a> - <a href="<?php echo esc_url(add_query_arg('hide_auto_load_next_post_review_notice', 'true')); ?>" class="skip button-primary"><?php _e('Already have :)', 'auto-load-next-post'); ?></a></p>
+ <p><?php _e(sprintf(__('Hi <b>%s</b>, you\'ve been using <b>%s</b> 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')); ?></p>
+ <p><a href="https://wordpress.org/support/view/plugin-reviews/auto-load-next-post?filter=5#postform" target="_blank" class="button-primary"><?php _e('Write a Review', 'auto-load-next-post'); ?></a> <a href="https://autoloadnextpost.com/donate/?utm_source=wpadmin&utm_campaign=plugin-admin-contribution-notice" target="_blank" class="button"><?php _e('Make a Donation', 'auto-load-next-post'); ?></a> <a href="<?php echo esc_url(add_query_arg('hide_auto_load_next_post_review_notice', 'true')); ?>" class="skip button"><?php _e('Already have :)', 'auto-load-next-post'); ?></a></p>
</div>
@@ -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;
@@ -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 <mailme@sebastiendumont.com>\n"
"Language-Team: Sébastien Dumont <mailme@sebastiendumont.com>\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,31 +220,37 @@ msgid "Content Container"
msgstr ""
#: includes/admin/settings/class-auto-load-next-post-settings-general.php:91
-msgid "Example: <code>main.site-main</code>"
+msgid ""
+"This is the primary container were the post content is loaded in. Example: "
+"<code>main.site-main</code>"
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
msgid "Example: <code>h1.entry-title</code>"
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: <code>nav.post-navigation</code>"
+msgid ""
+"The post navigation needs to be indentified to find the next post. Example: "
+"<code>nav.post-navigation</code>"
msgstr ""
#: includes/admin/settings/class-auto-load-next-post-settings-general.php:123
msgid "Comments Container"
msgstr ""
#: includes/admin/settings/class-auto-load-next-post-settings-general.php:124
-msgid "Example: <code>div#comments</code>"
+msgid ""
+"This is so comments can be removed if enabled below. Example: "
+"<code>div#comments</code>"
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 <b>%s</b>, you've been using <b>%s</b> for some time now, and I hope "
+"Hi <b>%s</b>, you've been using <b>%s</b> 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
View
@@ -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",

0 comments on commit 92ca382

Please sign in to comment.