VihvLCC  3.0.0
WordpressWrapper Class Reference
Inheritance diagram for WordpressWrapper:
Collaboration diagram for WordpressWrapper:

Public Member Functions

 getLogo ($size= 'small')
 
 getFavicon ()
 
 getSiteUrl ()
 
 getSiteSlogan ()
 
 getSiteTitle ()
 
 getThemeUrl ()
 
 getParentThemeUrl ()
 
 getThemeFolder ()
 
 getHtmlHead ()
 
 isFrontPage ()
 
 getPosts ()
 
 getPost ()
 
 getPageTitle ()
 
 addJs ($url, $footer=false, $dependancy=array())
 
 isSingle ()
 
 isCategory ()
 
 isLogged ()
 
 getFooter ()
 
 getMenuHtml ($location)
 
 getImageUrlById ($attachment_id, $size=null)
 
 getMenuTitle ($location)
 
 getSidebarHtml ($sidebar)
 
 getPager ()
 
 createPost ($post)
 
- Public Member Functions inherited from ICms
 getLogo ()
 

Member Function Documentation

addJs (   $url,
  $footer = false,
  $dependancy = array() 
)

register javascript to be loaded by getHtmlHead or getFooter

Parameters
string$url- full url of javascript file
bool$footer- if true script will be loaded in footer
array$dependancy- list of dependant scrips that should be loaded befor this one

Implements ICms.

createPost (   $post)
getFavicon ( )
getFooter ( )

should be used in TFooterControl

Returns
cms specipc tags that should be loaded in the bottom on the page, before </body>

Implements ICms.

getHtmlHead ( )

should be used in THeadControl

Returns
cms specific html for <head> tag

Implements ICms.

getImageUrlById (   $attachment_id,
  $size = null 
)

magic

getLogo (   $size = 'small')
Parameters
$sizewordpress image size
Returns
site logo url
getMenuHtml (   $location)
Returns
html code rendered by cms core for menu

Implements ICms.

getMenuTitle (   $location)
Returns
human readable menu title
getPager ( )
Returns
html code for default pager

Implements ICms.

getPageTitle ( )
Returns
current page title

Implements ICms.

getParentThemeUrl ( )
getPost ( )
Returns
ICmsPost object for current post

Implements ICms.

getPosts ( )
Returns
list of ICmsPost objects

Implements ICms.

getSidebarHtml (   $sidebar)
Returns
html code for theme sidebar

Implements ICms.

getSiteSlogan ( )
Returns
site slogan (description)

Implements ICms.

getSiteTitle ( )
Returns
site title

Implements ICms.

getSiteUrl ( )
Returns
site base url

Implements ICms.

getThemeFolder ( )
getThemeUrl ( )
Returns
url of current theme, needed for linking css, js and images

Implements ICms.

isCategory ( )
Returns
true if current page should display a list of posts by category

Implements ICms.

isFrontPage ( )
Returns
true if cuttent page is front page

Implements ICms.

isLogged ( )
isSingle ( )
Returns
true if current page is single page or post

Implements ICms.


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