|
JDWordpress
v.2014-02-11
Wordpress Plugin for CakePHP
|
This class implements the display helper for the JDWordpress plugin. More...
Public Member Functions | |
| __construct ($view, $settings=array()) | |
| Constructor creates a reference to the component. | |
| getOneRandomPost () | |
| Gets one random post. | |
| getSitemapBody () | |
| Returns the sitemap body (only) so that other controllers might compile the results into a full sitemap. | |
| tocArticlesWithDateHeaders ($slug= '') | |
Will return a toc of all articles (optionally for $slug only) divided into year and month. | |
| tocForTaxonomyType ($type= 'category') | |
Provides a list of all taxonomy types in a \<ul> toc format; for example can provide a list of each 'category'. | |
| tocRecent ($slug= '', $limit=5) | |
Returns the most recent 5 post titles in \<ul> format. More... | |
| tocRSSForTaxonomyType ($type= 'category') | |
Provides a list of all taxonomy types in a \<ul> toc format with RSS links; for example can provide a list of each 'category'. | |
| tocTaxonomyArticles ($type= 'category') | |
Provides a list of all terms for a specified taxonomy and its article titles in a \<ul> toc format; for example can provide a list of all 'category' and articles for each 'category. More... | |
This class implements the display helper for the JDWordpress plugin.
| tocRecent | ( | $slug = '', |
|
$limit = 5 |
|||
| ) |
Returns the most recent 5 post titles in \<ul> format.
If an optional |slug| is given then the most recent five posts from the slug will be returned, on order of preference for author, category, and post_tag.
| string | $slug | |
| integer | $limit |
| tocTaxonomyArticles | ( | $type = 'category' | ) |
Provides a list of all terms for a specified taxonomy and its article titles in a \<ul> toc format; for example can provide a list of all 'category' and articles for each 'category.
'
| mixed | $type |