JDWordpress  v.2014-02-11
Wordpress Plugin for CakePHP
JDBlogPostHelper Class Reference

This class implements the display helper for the JDWordpress plugin. More...

Inheritance diagram for JDBlogPostHelper:

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...
 

Detailed Description

This class implements the display helper for the JDWordpress plugin.

Member Function Documentation

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.

Parameters
string$slug
integer$limit
Returns
mixed
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.

'

Parameters
mixed$type
Returns
mixed

The documentation for this class was generated from the following file: