Changeset 1482808
- Timestamp:
- 08/24/2016 07:13:50 PM (10 years ago)
- Location:
- dmg-related-pages-widget/trunk
- Files:
-
- 22 added
- 2 edited
-
LICENSE.txt (added)
-
README.md (added)
-
dmg-related-pages-widget.php (added)
-
readme.txt (modified) (3 diffs)
-
screenshot-1.jpg (modified) (previous)
-
src (added)
-
src/WP_Related_Pages_Widget.php (added)
-
vendor (added)
-
vendor/DMG (added)
-
vendor/DMG/WP_Widget_Base (added)
-
vendor/DMG/WP_Widget_Base/README.md (added)
-
vendor/DMG/WP_Widget_Base/composer.json (added)
-
vendor/DMG/WP_Widget_Base/src (added)
-
vendor/DMG/WP_Widget_Base/src/WP_Widget_Base.php (added)
-
vendor/autoload.php (added)
-
vendor/composer (added)
-
vendor/composer/ClassLoader.php (added)
-
vendor/composer/LICENSE (added)
-
vendor/composer/autoload_classmap.php (added)
-
vendor/composer/autoload_namespaces.php (added)
-
vendor/composer/autoload_psr4.php (added)
-
vendor/composer/autoload_real.php (added)
-
vendor/composer/autoload_static.php (added)
-
vendor/composer/installed.json (added)
Legend:
- Unmodified
- Added
- Removed
-
dmg-related-pages-widget/trunk/readme.txt
r1468706 r1482808 1 1 === DMG Related Pages Widget === 2 2 Contributors: dancoded 3 Tags: page widget, menu, css, list pages 3 Tags: page widget, menu, css, list pages, related pages 4 4 Donate link: http://dancoded.com/wordpress-plugins/ 5 5 Requires at least: 3.1 6 Tested up to: 4. 5.37 Stable tag: 1. 0.28 License: GPLv 2or later9 License URI: http://www.gnu.org/licenses/ gpl-2.0.html6 Tested up to: 4.6 7 Stable tag: 1.1 8 License: GPLv3 or later 9 License URI: http://www.gnu.org/licenses/ 10 10 11 Widget that displays a list of pages related to the current page with advanced options to control which pages are shown and add CSS classes.11 Widget that displays a list of pages related to the current page in your sidebar. Advanced options allow you to control which pages are shown, add CSS classes & make the title link. 12 12 13 13 == Description == … … 18 18 You can also enter class(es) to be applied to the widget wrapper or the list (ul element). 19 19 20 If the widget is on a page that is not hierarchical, nothing is displayed. 20 If the widget is on a page that is not hierarchical, or if there are no related pages, nothing is displayed. 21 22 Two hooks are available to filter the title and text; `dmg_related_pages_widget_title` for the title and `dmg_related_pages_widget_text` for the text. 23 24 For example, to change the title on a single page or post, you could add this to your functions.php file: 25 26 27 `function myTitleFilter( $title ) 28 { 29 if( is_singular() ) 30 { 31 return "<strong>$title</strong>"; 32 } 33 else 34 { 35 return $title; 36 } 37 } 38 add_filter( 'dmg_related_pages_widget_title' , 'myTitleFilter');` 39 40 More information about this plugin can be found at <http://dancoded.com/wordpress-plugins/related-pages-widget/>. 21 41 22 42 == Adding CSS Class(es) == … … 24 44 Enter strings, either space or comma seperated, which will be applied as CSS classes to the widget wrapper and/or the list wrapper. These classes are sanitized using the `sanitize_html_class()` function built in to Wordpress. 25 45 46 == Make the Title a link == 47 48 Enter a valid URL to make the title a link. 49 26 50 == Installation == 27 51 1. Upload the plugin files to the `/wp-content/plugins/dmg-related-pages-widget` directory, or install the plugin through the WordPress plugins screen directly. 28 1. Activate the plugin through the \'Plugins\' page in the WordPress admin area29 1. Drag onto any active sidebar on the \'Appearance > Widgets\' page52 1. Activate the plugin through the 'Plugins' page in the WordPress admin area 53 1. Drag onto any active sidebar on the 'Appearance > Widgets' page 30 54 31 55 == Changelog == 32 = 1.0.1 = 56 = 1.1 = 57 Added Title URL field to make title a link 58 Tidied up readme 59 Tested in WP 4.6 60 = 1.0.2 = 33 61 Corrected Title! 34 62 = 1.0.1 =
Note: See TracChangeset
for help on using the changeset viewer.