CMSimple_XH
|
Functions | |
XH_renderPrevLink () | |
Renders the prev link. More... | |
XH_renderNextLink () | |
Renders the next link. More... | |
head () | |
Returns the complete HEAD element. More... | |
sitename () | |
Returns the language dependend site title. More... | |
pagename () | |
Returns the global site title. More... | |
onload () | |
Returns the onload attribute for the body element. More... | |
toc ($start=null, $end=null, $li='li') | |
Returns the table of contents. More... | |
li (array $ta, $st) | |
Returns a menu structure of certain pages. More... | |
XH_buildHc () | |
Sets global variables for CSS/DHTML menus. More... | |
searchbox () | |
Returns the search form. More... | |
sitemaplink () | |
Returns the sitemap link. More... | |
printlink () | |
Returns the link for the print view. More... | |
XH_printUrl () | |
Returns the URL of the print view. More... | |
mailformlink () | |
Returns the link to the mail form. More... | |
loginlink () | |
Returns the link to the login form. More... | |
lastupdate ($br=null, $hour=null) | |
Returns the date of the last update of the site. More... | |
locator ($separator='>') | |
Returns the locator (breadcrumb navigation). More... | |
editmenu () | |
Returns the admin menu. More... | |
content () | |
Returns the contents area. More... | |
submenu ($html='') | |
Returns the submenu of a page. More... | |
previouspage () | |
Returns a link to the previous page. More... | |
nextpage () | |
Returns a link to the next page. More... | |
top ($id='TOP') | |
Returns a link to the top of the page. More... | |
languagemenu () | |
Returns the language menu. More... | |
XH_emergencyTemplate () | |
Provides a minimal template (in case template isn't found). More... | |
poweredByLink ($linktext='') | |
Returns a powered by CMSimple_XH link. More... | |
Template functions.
content | ( | ) |
Returns the contents area.
editmenu | ( | ) |
Returns the admin menu.
Returns an empty string since XH 1.5, as the admin menu is automatically inserted to the template.
head | ( | ) |
Returns the complete HEAD element.
languagemenu | ( | ) |
Returns the language menu.
lastupdate | ( | $br = null , |
|
$hour = null |
|||
) |
Returns the date of the last update of the site.
bool | $br | Whether to emit a br element between text and date. |
int | $hour | The time correction in hours. |
li | ( | array | $ta, |
$st | |||
) |
Returns a menu structure of certain pages.
array | $ta | The indexes of the pages. |
mixed | $st | The menu level to start with or the type of menu. |
locator | ( | $separator = '>' | ) |
Returns the locator (breadcrumb navigation).
string | $separator | The separator between the breadcrumb links. |
loginlink | ( | ) |
Returns the link to the login form.
mailformlink | ( | ) |
Returns the link to the mail form.
nextpage | ( | ) |
onload | ( | ) |
Returns the onload attribute for the body element.
pagename | ( | ) |
Returns the global site title.
poweredByLink | ( | $linktext = '' | ) |
Returns a powered by CMSimple_XH link.
string | $linktext |
previouspage | ( | ) |
printlink | ( | ) |
Returns the link for the print view.
searchbox | ( | ) |
Returns the search form.
sitemaplink | ( | ) |
Returns the sitemap link.
sitename | ( | ) |
Returns the language dependend site title.
submenu | ( | $html = '' | ) |
Returns the submenu of a page.
string | $html | Optional markup to wrap the heading. |
toc | ( | $start = null , |
|
$end = null , |
|||
$li = 'li' |
|||
) |
Returns the table of contents.
int | $start | The menu level to start with. |
int | $end | The menu level to end with. |
callable | $li | A callback that actually creates the view. |
top | ( | $id = 'TOP' | ) |
Returns a link to the top of the page.
To work, an appropriate ID has to be defined in the template.
string | $id | An (X)HTML ID. |
XH_buildHc | ( | ) |
Sets global variables for CSS/DHTML menus.
The most important variable is $hc, which is an array of page indexes of the pages of the menu. This is normally passed as first argument to li(), e.g. li($hc)
. $hl holds the number of these pages. $si holds the index of the current page within $hc; it might be useful for advanced menus.
XH_emergencyTemplate | ( | ) |
Provides a minimal template (in case template isn't found).
XH_printUrl | ( | ) |
Returns the URL of the print view.
XH_renderNextLink | ( | ) |
Renders the next link.
XH_renderPrevLink | ( | ) |
Renders the prev link.