名前空間 | |
XH | |
関数 | |
XH_renderPrevLink () | |
XH_renderNextLink () | |
head () | |
sitename () | |
pagename () | |
onload () | |
toc ($start=null, $end=null, $li='li') | |
li (array $ta, $st) | |
XH_buildHc () | |
searchbox () | |
sitemaplink () | |
printlink () | |
XH_printUrl () | |
mailformlink () | |
loginlink () | |
lastupdate ($br=null, $hour=null) | |
locator () | |
editmenu () | |
content () | |
submenu ($html='') | |
previouspage () | |
nextpage () | |
top ($id='TOP') | |
languagemenu () | |
XH_emergencyTemplate () | |
poweredByLink ($linktext='') | |
Template functions.
tplfuncs.php に定義があります。
content | ( | ) |
Returns the contents area.
int The index of the current page. string The output of the contents area. array The content of the pages. bool Whether edit mode is active.
tplfuncs.php の 464 行目に定義があります。
editmenu | ( | ) |
Returns the admin menu.
Returns an empty string since XH 1.5, as the admin menu is automatically inserted to the template.
tplfuncs.php の 447 行目に定義があります。
head | ( | ) |
Returns the complete HEAD element.
string The page title. array The configuration of the core. array The paths of system files and folders. array The localization of the core. string HTML to be inserted to the HEAD Element.
tplfuncs.php の 73 行目に定義があります。
languagemenu | ( | ) |
Returns the language menu.
array The paths of system files and folders. array The configuration of the core. string The current language.
tplfuncs.php の 597 行目に定義があります。
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. |
array The localization of the core. array The paths of system files and folders.
tplfuncs.php の 389 行目に定義があります。
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. |
tplfuncs.php の 217 行目に定義があります。
locator | ( | ) |
loginlink | ( | ) |
Returns the link to the login form.
int The index of the requested page. array The localization of the core.
tplfuncs.php の 367 行目に定義があります。
mailformlink | ( | ) |
Returns the link to the mail form.
array The configuration of the core.
tplfuncs.php の 350 行目に定義があります。
nextpage | ( | ) |
Returns a link to the next page
array The localization of the core.
tplfuncs.php の 559 行目に定義があります。
onload | ( | ) |
Returns the onload attribute for the body element.
string JavaScript for the onload attribute of the BODY element.
tplfuncs.php の 138 行目に定義があります。
pagename | ( | ) |
Returns the global site title.
array The configuration of the core.
tplfuncs.php の 123 行目に定義があります。
poweredByLink | ( | $linktext = '' | ) |
Creates the link to the generated page "Site/CMS Info".
One of the 3 functions to create "Site/CMS Info".
string | $linktext | The text to be displayed as the link in the template. |
string The site (script) name.
tplfuncs.php の 671 行目に定義があります。
previouspage | ( | ) |
Returns a link to the previous page.
array The localization of the core.
tplfuncs.php の 540 行目に定義があります。
printlink | ( | ) |
Returns the link for the print view.
array The localization of the core.
tplfuncs.php の 305 行目に定義があります。
searchbox | ( | ) |
Returns the search form.
string The script name. array The localization of the core.
tplfuncs.php の 272 行目に定義があります。
sitemaplink | ( | ) |
sitename | ( | ) |
Returns the language dependend site title.
array The localization of the core.
tplfuncs.php の 108 行目に定義があります。
submenu | ( | $html = '' | ) |
Returns the submenu of a page.
string | $html | Optional markup to wrap the heading. |
int The index of the current page. int The number of pages. array The menu levels of the pages. array The localization of the core. array The configuration of the core.
tplfuncs.php の 497 行目に定義があります。
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. |
int The number of pages. int The index of the current page. array The menu levels of the pages. array The configuration of the core.
tplfuncs.php の 160 行目に定義があります。
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. |
array The localization of the core.
tplfuncs.php の 580 行目に定義があります。
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.
int The number of pages. int The current page index. array The configuration of the core. int The index of the current page in $hc. array The page indexes of the visible menu items. int The length of $hc.
tplfuncs.php の 243 行目に定義があります。
XH_emergencyTemplate | ( | ) |
Provides a minimal template (in case template isn't found).
tplfuncs.php の 641 行目に定義があります。
XH_printUrl | ( | ) |
Returns the URL of the print view.
string The requested special function. string The current search string. string The requested special file. string The script name.
tplfuncs.php の 325 行目に定義があります。
XH_renderNextLink | ( | ) |
Renders the next link.
string The script name. array The page URLs.
tplfuncs.php の 50 行目に定義があります。
XH_renderPrevLink | ( | ) |
Renders the prev link.
string The script name. array The page URLs.
tplfuncs.php の 28 行目に定義があります。