From 7ea7289db4fc2899d986cedb059b2dafa7aef8c8 Mon Sep 17 00:00:00 2001 From: Erick Hitter <git-contrib@ethitter.com> Date: Sun, 14 Apr 2019 15:04:00 -0700 Subject: [PATCH] Grunt tasks --- README.md | 62 ++++++++++++++++ languages/automatically-paginate-posts.pot | 86 ++++++++++++++++++++++ readme.txt | 2 +- 3 files changed, 149 insertions(+), 1 deletion(-) create mode 100644 README.md create mode 100644 languages/automatically-paginate-posts.pot diff --git a/README.md b/README.md new file mode 100644 index 0000000..4c5cd3b --- /dev/null +++ b/README.md @@ -0,0 +1,62 @@ +# Automatically Paginate Posts # +**Contributors:** ethitter, thinkoomph, bendoh +Donate link: +**Tags:** paginate, nextpage, Quicktag +**Requires at least:** 3.4 +**Tested up to:** 5.2 +**Stable tag:** 0.2 +**License:** GPLv2 or later +**License URI:** http://www.gnu.org/licenses/gpl-2.0.html + +Automatically paginate posts by inserting the <!--nextpage--> Quicktag into WordPress posts, pages, or custom post type content. + +## DESCRIPTION ## + +Automatically paginate WordPress content by inserting the <!--nextpage--> Quicktag. + +Option is provided to control what post types are automatically paginated (default is just `post`). Supports `post`, `page`, and any public custom post types. + +Option is also provided to specify how many pages content should be broken out over, or how many words should be included per page. + +## Installation ## + +1. Upload automatically-paginate-posts to /wp-content/plugins/. +2. Activate plugin through the WordPress Plugins menu. +3. Configure plugin by going to Settings > Reading. + +## Frequently Asked Questions ## + +### Where do I set the plugin's options ### +The plugin's options are added to the built-in **Reading** settings page in WordPress. + +### Can I disable the plugin's functionality for specific posts, pages, or custom post type objects? ### +Yes, the plugin adds a metabox to individual items in supported post types that allows the autopaging to be disabled on a per-post basis. + +### How can I add support for my custom post type? ### +Navigate to Settings > Reading in WP Admin to enable this plugin for your custom post type. + +You can also use the filter `autopaging_post_types` to add support by appending your post type's name to the array. + +### What filters does this plugin include? ### +* `autopaging_post_types` - modify the post types supported by this plugin. Will override the values set under Settings > Reading. +* `autopaging_num_pages_default` - modify the default number of pages over which a post is displayed. Will override the value set under Settings > Reading. +* `autopaging_max_num_pages` - override the maximum number of pages available in the settings page dropdown when the paging type is "pages". +* `autopaging_max_num_words` - override the minimum number of words allowed per page page when the paging type is "words". +* `autopaging_num_pages` - change the number of pages content is displayed on at runtime. Filter provides access to the full post object in addition to the number of pages. +* `autopaging_num_words` - change the number of words displayed per page at runtime. Filter provides access to the full post object in addition to the number of words. + +## Changelog ## + +### 0.1 ### +* Initial release. + +### 0.2 ### +* Allow for number of words to be specified instead of number of pages. + +## Upgrade Notice ## + +### 0.1 ### +Initial release + +### 0.2 ### +* Allow for number of words to be specified instead of number of pages. diff --git a/languages/automatically-paginate-posts.pot b/languages/automatically-paginate-posts.pot new file mode 100644 index 0000000..04632e2 --- /dev/null +++ b/languages/automatically-paginate-posts.pot @@ -0,0 +1,86 @@ +# Copyright (C) 2019 Erick Hitter & Oomph, Inc. +# This file is distributed under the same license as the Automatically Paginate Posts package. +msgid "" +msgstr "" +"Project-Id-Version: Automatically Paginate Posts 0.2\n" +"Report-Msgid-Bugs-To: " +"https://wordpress.org/support/plugin/automatically-paginate-posts\n" +"POT-Creation-Date: 2019-04-14 22:03:21+00:00\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"PO-Revision-Date: 2019-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" +"Language-Team: LANGUAGE <LL@li.org>\n" +"X-Generator: grunt-wp-i18n 0.5.4\n" +"X-Poedit-KeywordsList: " +"__;_e;_x:1,2c;_ex:1,2c;_n:1,2;_nx:1,2,4c;_n_noop:1,2;_nx_noop:1,2,3c;esc_" +"attr__;esc_html__;esc_attr_e;esc_html_e;esc_attr_x:1,2c;esc_html_x:1,2c;\n" +"Language: en\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" +"X-Poedit-Country: United States\n" +"X-Poedit-SourceCharset: UTF-8\n" +"X-Poedit-Basepath: ../\n" +"X-Poedit-SearchPath-0: .\n" +"X-Poedit-Bookmarks: \n" +"X-Textdomain-Support: yes\n" + +#. Plugin Name of the plugin/theme +msgid "Automatically Paginate Posts" +msgstr "" + +#: automatically-paginate-posts.php:135 +msgid "Supported post types:" +msgstr "" + +#: automatically-paginate-posts.php:136 +msgid "Split post by:" +msgstr "" + +#: automatically-paginate-posts.php:210 +msgid "Total number of pages: " +msgstr "" + +#: automatically-paginate-posts.php:211 +msgid "Approximate words per page: " +msgstr "" + +#: automatically-paginate-posts.php:275 +msgid "" +"If chosen, each page will contain approximately this many words, depending " +"on paragraph lengths." +msgstr "" + +#: automatically-paginate-posts.php:305 +msgid "Post Autopaging" +msgstr "" + +#: automatically-paginate-posts.php:321 +msgid "" +"Check the box above to prevent this post from automatically being split " +"over multiple pages." +msgstr "" + +#: automatically-paginate-posts.php:322 +msgid "" +"Note that if the %1$s Quicktag is used to manually page this post, " +"automatic paging won't be applied, regardless of the setting above." +msgstr "" + +#. Plugin URI of the plugin/theme +msgid "http://www.oomphinc.com/plugins-modules/automatically-paginate-posts/" +msgstr "" + +#. Description of the plugin/theme +msgid "" +"Automatically inserts the <!--nextpage--> Quicktag into WordPress " +"posts, pages, or custom post type content." +msgstr "" + +#. Author of the plugin/theme +msgid "Erick Hitter & Oomph, Inc." +msgstr "" + +#. Author URI of the plugin/theme +msgid "http://www.oomphinc.com/" +msgstr "" \ No newline at end of file diff --git a/readme.txt b/readme.txt index f4acd43..fbb643f 100644 --- a/readme.txt +++ b/readme.txt @@ -3,7 +3,7 @@ Contributors: ethitter, thinkoomph, bendoh Donate link: Tags: paginate, nextpage, Quicktag Requires at least: 3.4 -Tested up to: 4.6 +Tested up to: 5.2 Stable tag: 0.2 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html -- GitLab