Changeset 5432 for sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/inc/breadcrumb-trail.php
- Timestamp:
- 04/29/2017 02:52:50 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/inc/breadcrumb-trail.php
r804 r5432 3 3 * Breadcrumb Trail - A breadcrumb menu script for WordPress. 4 4 * 5 * Breadcrumb Trail is a script for showing a breadcrumb trail for any type of page. It tries to 6 * anticipate any type of structure and display the best possible trail that matches your site's 7 * permalink structure. While not perfect, it attempts to fill in the gaps left by many other 5 * Breadcrumb Trail is a script for showing a breadcrumb trail for any type of page. It tries to 6 * anticipate any type of structure and display the best possible trail that matches your site's 7 * permalink structure. While not perfect, it attempts to fill in the gaps left by many other 8 8 * breadcrumb scripts. 9 9 * 10 * This program is free software; you can redistribute it and/or modify it under the terms of the GNU 11 * General Public License as published by the Free Software Foundation; either version 2 of the License, 10 * This program is free software; you can redistribute it and/or modify it under the terms of the GNU 11 * General Public License as published by the Free Software Foundation; either version 2 of the License, 12 12 * or (at your option) any later version. 13 13 * 14 * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without 14 * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without 15 15 * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 16 16 * … … 24 24 25 25 /** 26 * Shows a breadcrumb for all types of pages. This is a wrapper function for the Breadcrumb_Trail class, 26 * Shows a breadcrumb for all types of pages. This is a wrapper function for the Breadcrumb_Trail class, 27 27 * which should be used in theme templates. 28 28 * … … 207 207 208 208 /** 209 * Runs through the various WordPress conditional tags to check the current page being viewed. Once 209 * Runs through the various WordPress conditional tags to check the current page being viewed. Once 210 210 * a condition is met, a specific method is launched to add items to the $items array. 211 211 * … … 495 495 496 496 /** 497 * Adds a specific post's hierarchy to the items array. The hierarchy is determined by post type's 497 * Adds a specific post's hierarchy to the items array. The hierarchy is determined by post type's 498 498 * rewrite arguments and whether it has an archive page. 499 499 * … … 542 542 543 543 /** 544 * Gets post types by slug. This is needed because the get_post_types() function doesn't exactly 544 * Gets post types by slug. This is needed because the get_post_types() function doesn't exactly 545 545 * match the 'has_archive' argument when it's set as a string instead of a boolean. 546 546 * … … 596 596 597 597 /** 598 * Deals with the situation if the slug has a '/' between multiple strings. For 598 * Deals with the situation if the slug has a '/' between multiple strings. For 599 599 * example, "movies/genres" where "movies" is the post type archive. 600 600 */ … … 911 911 912 912 /** 913 * Get parent posts by path. Currently, this method only supports getting parents of the 'page' 914 * post type. The goal of this function is to create a clear path back to home given what would 913 * Get parent posts by path. Currently, this method only supports getting parents of the 'page' 914 * post type. The goal of this function is to create a clear path back to home given what would 915 915 * normally be a "ghost" directory. If any page matches the given path, it'll be added. 916 916 * … … 970 970 971 971 /** 972 * Searches for term parents of hierarchical taxonomies. This function is similar to the WordPress 972 * Searches for term parents of hierarchical taxonomies. This function is similar to the WordPress 973 973 * function get_category_parents() but handles any type of taxonomy. 974 974 * … … 1003 1003 /** 1004 1004 * Turns %tag% from permalink structures into usable links for the breadcrumb trail. This feels kind of 1005 * hackish for now because we're checking for specific %tag% examples and only doing it for the 'post' 1005 * hackish for now because we're checking for specific %tag% examples and only doing it for the 'post' 1006 1006 * post type. In the future, maybe it'll handle a wider variety of possibilities, especially for custom post 1007 1007 * types. … … 1084 1084 1085 1085 /** 1086 * Extends the Breadcrumb_Trail class for bbPress. Only use this if bbPress is in use. This should 1086 * Extends the Breadcrumb_Trail class for bbPress. Only use this if bbPress is in use. This should 1087 1087 * serve as an example for other plugin developers to build custom breadcrumb items. 1088 1088 * … … 1093 1093 1094 1094 /** 1095 * Runs through the various bbPress conditional tags to check the current page being viewed. Once 1095 * Runs through the various bbPress conditional tags to check the current page being viewed. Once 1096 1096 * a condition is met, add items to the $items array. 1097 1097 *
Note: See TracChangeset
for help on using the changeset viewer.