Changeset 2268789
- Timestamp:
- 03/27/2020 05:04:03 AM (6 years ago)
- Location:
- pe-category-filter/trunk
- Files:
-
- 120 added
- 1 deleted
- 3 edited
-
.editorconfig (added)
-
.git (added)
-
.git/COMMIT_EDITMSG (added)
-
.git/FETCH_HEAD (added)
-
.git/HEAD (added)
-
.git/ORIG_HEAD (added)
-
.git/branches (added)
-
.git/config (added)
-
.git/description (added)
-
.git/hooks (added)
-
.git/hooks/applypatch-msg.sample (added)
-
.git/hooks/commit-msg.sample (added)
-
.git/hooks/post-update.sample (added)
-
.git/hooks/pre-applypatch.sample (added)
-
.git/hooks/pre-commit.sample (added)
-
.git/hooks/pre-push.sample (added)
-
.git/hooks/pre-rebase.sample (added)
-
.git/hooks/prepare-commit-msg.sample (added)
-
.git/hooks/update.sample (added)
-
.git/index (added)
-
.git/info (added)
-
.git/info/exclude (added)
-
.git/logs (added)
-
.git/logs/HEAD (added)
-
.git/logs/refs (added)
-
.git/logs/refs/heads (added)
-
.git/logs/refs/heads/2020-023-23-general-upgrade (added)
-
.git/logs/refs/heads/master (added)
-
.git/logs/refs/remotes (added)
-
.git/logs/refs/remotes/origin (added)
-
.git/logs/refs/remotes/origin/2020-023-23-general-upgrade (added)
-
.git/logs/refs/remotes/origin/HEAD (added)
-
.git/logs/refs/remotes/origin/master (added)
-
.git/objects (added)
-
.git/objects/09 (added)
-
.git/objects/09/cbbb29c6f889fd9477828055fed1e05028ecb4 (added)
-
.git/objects/14 (added)
-
.git/objects/14/7bc0c206e0dc6693a1f7420db4a8416edb0992 (added)
-
.git/objects/20 (added)
-
.git/objects/20/84a53d9452972fdbd21ee8ee02234eb42a030e (added)
-
.git/objects/23 (added)
-
.git/objects/23/cb790338e191e29205d6f4123882c0583ef8eb (added)
-
.git/objects/24 (added)
-
.git/objects/24/30c5d0a36744da7e8a6cad673c8392f47c3b02 (added)
-
.git/objects/26 (added)
-
.git/objects/26/400c4bde79aa21aa6e7c5e8490170b54366618 (added)
-
.git/objects/2f (added)
-
.git/objects/2f/132833bee4561db87ddbca8d676f666163682a (added)
-
.git/objects/2f/b4df53a44db279a785d46d7f7026709c33b202 (added)
-
.git/objects/30 (added)
-
.git/objects/30/b2c4b2633d8e935be48229833f1efa95771919 (added)
-
.git/objects/3a (added)
-
.git/objects/3a/301ff4d3aa1da8f37fe3ed9c669fea66b7a2a1 (added)
-
.git/objects/4f (added)
-
.git/objects/4f/295ebae2d106082e933878d8eed038f3479ac1 (added)
-
.git/objects/50 (added)
-
.git/objects/50/4d2c96cb8784ecb4545b9a2ee6e552233a91bf (added)
-
.git/objects/54 (added)
-
.git/objects/54/85bcde2331ea2d7b72e565bbac3379ec7b35dd (added)
-
.git/objects/60 (added)
-
.git/objects/60/121201ac2ade7f44bead99dfdba10947f677ab (added)
-
.git/objects/62 (added)
-
.git/objects/62/b05818a833ff93239ea66af6dd7403b3d7d6a9 (added)
-
.git/objects/6d (added)
-
.git/objects/6d/ce377a8be5535caeaebee3d42ded3d70e993c4 (added)
-
.git/objects/76 (added)
-
.git/objects/76/38e36b68530e82c586e84d5921f30852c6e46e (added)
-
.git/objects/79 (added)
-
.git/objects/79/313428642892b27455bbe079c7082bae089dac (added)
-
.git/objects/7c (added)
-
.git/objects/7c/22efbe79d5d918d37600aa43ab98bfe60095c4 (added)
-
.git/objects/87 (added)
-
.git/objects/87/30f6bdfb54d07105f209b750115a3c194d4bd6 (added)
-
.git/objects/94 (added)
-
.git/objects/94/3431060ec73e24297b8959634f5e987beb0452 (added)
-
.git/objects/9d (added)
-
.git/objects/9d/016a0ef8720c85b08a417fe6435692ee856fa3 (added)
-
.git/objects/9f (added)
-
.git/objects/9f/44d55ab6e61e7385eac8ef04825b0ef785742d (added)
-
.git/objects/a2 (added)
-
.git/objects/a2/c04667d797cf7f48126600d1ee67e56248ab10 (added)
-
.git/objects/ad (added)
-
.git/objects/ad/080e72ffba4a2305e53d82d449a6870bb11e2e (added)
-
.git/objects/b0 (added)
-
.git/objects/b0/d73c55795f9045d4c821106ca1edb07afe8f35 (added)
-
.git/objects/bc (added)
-
.git/objects/bc/fc3612bf1576c64c383efc396615c096c88538 (added)
-
.git/objects/ce (added)
-
.git/objects/ce/de61996ff3d845e0bf26bdab72d2f45841cea9 (added)
-
.git/objects/dd (added)
-
.git/objects/dd/ffce1e36fa9e76a35fc19b8284af7488674030 (added)
-
.git/objects/e5 (added)
-
.git/objects/e5/d8baf810d441e629e393eb4dd1db62b8a77db3 (added)
-
.git/objects/e8 (added)
-
.git/objects/e8/f8a342d12bdbb828ae1ca98ad3b0e80514c545 (added)
-
.git/objects/ec (added)
-
.git/objects/ec/34ded2d44ac253a80c8607be99bcacca56cc26 (added)
-
.git/objects/f4 (added)
-
.git/objects/f4/3004f6e278fedec59d47f8f15b33af2391a58a (added)
-
.git/objects/f9 (added)
-
.git/objects/f9/579aef3d1c0793350c7979e8869c1f64df6f18 (added)
-
.git/objects/fb (added)
-
.git/objects/fb/11346c87512a1ccbb5ec2ce6c680451eec6c7a (added)
-
.git/objects/info (added)
-
.git/objects/pack (added)
-
.git/packed-refs (added)
-
.git/refs (added)
-
.git/refs/heads (added)
-
.git/refs/heads/2020-023-23-general-upgrade (added)
-
.git/refs/heads/master (added)
-
.git/refs/remotes (added)
-
.git/refs/remotes/origin (added)
-
.git/refs/remotes/origin/2020-023-23-general-upgrade (added)
-
.git/refs/remotes/origin/HEAD (added)
-
.git/refs/remotes/origin/master (added)
-
.git/refs/tags (added)
-
README.md (modified) (2 diffs)
-
class.pe-category-filter.php (added)
-
composer.json (added)
-
pe-category-filter.php (added)
-
pecf_catfilter.php (deleted)
-
pecf_menu_form.php (modified) (1 diff)
-
phpcs.xml (added)
-
readme.txt (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
pe-category-filter/trunk/README.md
r1743524 r2268789 1 1 ## Synopsis 2 2 3 This is WordPress plugin that has been around for nearly 6 years now. It allows you to *exclude* posts that belong to certain categories of your *home page*, while they will still be reachable 4 from the inner sections of your site. 3 This is a WordPress plugin that has been around for nearly 9 years now. It allows you to *exclude* posts that belong to certain categories from your *home page*, while still being reachable from the inner sections of your site. 5 4 6 This is an ad-hoc solution that aims to do * one* thing, and do it *right*, with near the smallest footprint possible. So please note the following:5 This is an ad-hoc solution that aims to do **one** thing, and do it **right**, with the smallest footprint possible (hopefully). So please note the following: 7 6 8 * The functionality of this plugin can not be limited to a given widget on the home page. Example:7 * The functionality of this plugin can not be limited to a given widget on the home page. For example: 9 8 10 Given a the category "MyCategory" from which you want to exclude posts on the **home page**, and at the same time you want to display posts of "MyCategory" in a widget that is also located **in the home page**, will not be possible.9 Given a the category "MyCategory" from which you want to exclude posts on the **home page**, and at the same time you want to display posts of the same "MyCategory" in a widget that is also located **in the home page**, will not be possible. 11 10 12 Such a functionality, in my opinion, would be overkilling because what you are looking for is not to *exclude* everything and do one exception, instead you should *allow* everything and do one exception.11 Such a functionality, in my opinion, would be overkilling and does not represent the approach taken by this plugin. 13 12 14 13 * The focus of this plugin is simplicity, performance and correctness of the code. … … 20 19 * http://slackware-es.com - Spanish version of the Slackware Linux project's website. 21 20 22 ## Motivation21 ## Background story 23 22 24 I decided to maintain the code in Github in order to make it available to a bigger audience. 23 I decided to maintain the code in Github in order to make it available to a bigger audience. I'm not necessarily an SVN fan, and the WordPress SVN repositories are not intended for development. 25 24 26 25 ## Installation 27 26 28 1. Upload `pe cf_catfilter` to the`/wp-content/plugins/` directory27 1. Upload `pe-category-filter` directory to your `/wp-content/plugins/` directory 29 28 2. Activate the plugin through the 'Plugins' menu in WordPress 30 29 3. Go to 'Settings' and choose which categories' posts you want to _exclude_ from the Home Page 31 30 31 **If you manage your WordPress installation using composer, follow this instructions:** 32 33 1. Add the following in the `requirements` section of your `composer.json` file: 34 35 ``` 36 "require": { 37 "wpackagist-plugin/pe-category-filter":"^1.3" 38 }, 39 ``` 40 41 2. Add the following to the `repositories` section of your `composer.json` file: 42 43 ``` 44 "repositories" : [ 45 { 46 "type":"composer", 47 "url":"https://wpackagist.org" 48 } 49 ] 50 ``` 51 52 3. Run `composer install` 53 54 **A third installation method if you are using composer is to add the Github:** 55 56 1. Add the following in the `requirements` section of your `composer.json` file: 57 58 ``` 59 "require": { 60 "pavel_espinal/pe-category-filter":"^1.4.0" 61 }, 62 ``` 63 64 2. Add the following to the `repositories` section of your `composer.json` file: 65 66 ``` 67 "repositories" : [ 68 { 69 "type":"git", 70 "url":"https://github.com/jespinal/PE-Category-Filter.git" 71 } 72 ] 73 ``` 74 75 3. Run `composer install` 76 77 32 78 Note: the simplest way to install it is to search for it through the WordPress plugin search bar. -
pe-category-filter/trunk/pecf_menu_form.php
r513918 r2268789 1 1 <div class="wrap"> 2 2 <form method="post" action="options.php"> 3 <?php settings_fields( 'pecf_option-group'); ?>4 <?php do_settings_sections('pecf_categ-menu'); ?>3 <?php settings_fields('pecf_option-group'); ?> 4 <?php do_settings_sections('pecf-category-filter-page'); ?> 5 5 <p class="submit"> 6 6 <input type="submit" class="button-primary" value="<?php _e('Save Changes') ?>" /> -
pe-category-filter/trunk/readme.txt
r1743524 r2268789 2 2 Contributors: khratos 3 3 Tags: category, filter, category filter, exclude post, home page, exclude from home, pecf 4 Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=U8W8GKD6KM2G8 4 Donate link: https://www.patreon.com/pavel_espinal 5 Requires PHP: 5.6 5 6 Requires at least: 3.0 6 Tested up to: 4.8.27 Stable tag: 1. 37 Tested up to: 5.3.2 8 Stable tag: 1.4.0 8 9 9 10 This plugin allows you to exclude posts that belong to certain categories from your home page. … … 11 12 == Description == 12 13 13 This plugin allows you to **exclude** posts that belong to certain categories from your **home page**, while they will still be reachable 14 from the inner sections of your site. 14 This plugin allows you to **exclude** posts that belong to certain categories from your **home page**, while still being reachable from the inner sections of your site. 15 15 16 This is an ad-hoc solution that aims to do **one** thing, and do it **right**, with near the smallest footprint possible. So please note the following:16 This is an ad-hoc solution that aims to do **one** thing, and do it **right**, with the smallest footprint possible (hopefully). So please note the following: 17 17 18 * The functionality of this plugin can not be limited to a given widget on the home page. Example:18 * The functionality of this plugin can not be limited to a given widget on the home page. For example: 19 19 20 Given a the category "MyCategory" from which you want to exclude posts on the **home page**, and at the same time you want to display posts of "MyCategory" in a widget that is also located **in the home page**, will not be possible.20 Given a the category "MyCategory" from which you want to exclude posts on the **home page**, and at the same time you want to display posts of the same "MyCategory" in a widget that is also located **in the home page**, will not be possible. 21 21 22 Such a functionality, in my opinion, would be overkilling because what you are looking for is not to *exclude* everything and do one exception, instead you should *allow* everything and do one exception.22 Such a functionality, in my opinion, would be overkilling and does not represent the approach taken by this plugin. 23 23 24 24 * The focus of this plugin is simplicity, performance and correctness of the code. … … 30 30 * http://slackware-es.com - Spanish version of the Slackware Linux project's website (Spanish) 31 31 32 33 32 == Installation == 34 33 35 1. Upload `pe cf_catfilter` to the`/wp-content/plugins/` directory34 1. Upload `pe-category-filter` directory to your `/wp-content/plugins/` directory 36 35 2. Activate the plugin through the 'Plugins' menu in WordPress 37 36 3. Go to 'Settings' and choose which categories' posts you want to _exclude_ from the Home Page 37 38 If you manage your WordPress installation using composer, follow this instructions: 39 40 1. Add the following in the `requirements` section of your `composer.json` file: 41 42 ``` 43 "require": { 44 "wpackagist-plugin/pe-category-filter":"^1.3" 45 }, 46 ``` 47 48 2. Add the following to the `repositories` section of your `composer.json` file: 49 50 ``` 51 "repositories" : [ 52 { 53 "type":"composer", 54 "url":"https://wpackagist.org" 55 } 56 ] 57 ``` 58 59 3. Run `composer install` 60 61 A third installation method if you are using composer is to add the Github: 62 63 1. Add the following in the `requirements` section of your `composer.json` file: 64 65 ``` 66 "require": { 67 "pavel_espinal/pe-category-filter":"^1.4.0" 68 }, 69 ``` 70 71 2. Add the following to the `repositories` section of your `composer.json` file: 72 73 ``` 74 "repositories" : [ 75 { 76 "type":"git", 77 "url":"https://github.com/jespinal/PE-Category-Filter.git" 78 } 79 ] 80 ``` 81 82 3. Run `composer install` 38 83 39 84 == Frequently Asked Questions == … … 67 112 * Adding the GitHub README.md file (this plugin is now also hosted on github). 68 113 * Corrections to "readme" file/documentation. 114 115 = 1.4.0 = 116 * Global code refactoring in order to use classes, namespaces and to ensure compatibility with latest WordPress and PHP versions. 117 * Included a package definition using a `composer.json` file in order to allow installation from **Github**. 118 * Included a `phpcs.xml` configuration file for `phpcs`. 119 * Switched to semantic versioning system for releases. 120 121 == Upgrade Notice == 122 123 = 1.4.0 = 124 Global code assessment for compatibility with latest versions of WordPress and recent versions of PHP. Note: requires plugin reactivation.
Note: See TracChangeset
for help on using the changeset viewer.