HTML
in package
HTML helper
Table of Contents
- addDatetime() : string
- Given a file, i.e. /css/base.css, replaces it with a string containing the file's mtime, i.e. /css/base.1221534296.css.
- getAjaxLink() : string
- Creates an ajax-more-link
- getAjaxMoreBox() : array<string|int, mixed>
- Returns the ajax-more link with data-goabase-ajax* Used for embedded lists on/off
- getAjaxMoreBoxVals() : array<string|int, mixed>
- getChangeTimeTag() : string
- Returns a complete string of <span class="{css}" title="{date_time}">{lngBasicChanged}</span>
- getMetaTag() : string
- Erzeuge Metatag wie <meta name="robots" content="index,follow" />
- getNewIcon() : string
- Gibt New-Icon zurueck
- getNewsMetaTags() : array<string|int, mixed>
- getOnOffLink() : array<string|int, mixed>
- Erzeugt den JS-On/Off-Link für einen Container Greift auf JsonCookie 'show_content-'.$strContainerIdPart zu
- includeCss() : string
- isColorCss() : bool
- loadApp() : string
- sanitize() : string
- opens the class
- sortApp() : string
- loadAppAlt() : string
Methods
addDatetime()
Given a file, i.e. /css/base.css, replaces it with a string containing the file's mtime, i.e. /css/base.1221534296.css.
public
static addDatetime(string $strFile) : string
Parameters
- $strFile : string
-
The file to be loaded. Must be an absolute path (i.e. starting with slash).
Return values
string —The pseudo file name
needs mod_rewrite rule: RewriteRule ^(.*).[\d]{10}.(css|js)$ $1.$2 [L]
Source: http://stackoverflow.com/questions/118884/what-is-an-elegant-way-to-force-browsers-to-reload-cached-css-js-files
getAjaxLink()
Creates an ajax-more-link
public
static getAjaxLink( $id[, string $action = 'faq' ][, array<string|int, mixed> $arr = [] ][, string $css = '' ]) : string
Parameters
- $id :
-
- for data-goabase-id
- $action : string = 'faq'
-
- for data-goabase-action
- $arr : array<string|int, mixed> = []
-
- for jsData
- $css : string = ''
Tags
Return values
string —getAjaxMoreBox()
Returns the ajax-more link with data-goabase-ajax* Used for embedded lists on/off
public
static getAjaxMoreBox( $aID[, string $strAction = 'showmore' ][, array<string|int, mixed> $saJson = [] ][, string $strNavTitle = '' ]) : array<string|int, mixed>
Parameters
- $aID :
-
- data-goabase-id
- $strAction : string = 'showmore'
-
- data-goabase-action
- $saJson : array<string|int, mixed> = []
-
- data-goabase-json
- $strNavTitle : string = ''
-
- if empty use getLng('More')
Tags
Return values
array<string|int, mixed> —- LinkOpen, AjaxBox
getAjaxMoreBoxVals()
public
static getAjaxMoreBoxVals(int $nPos) : array<string|int, mixed>
Parameters
- $nPos : int
-
func_get_args: int $nMaxRows int $intAnzRow int $bPast array $saAtt string $file
Return values
array<string|int, mixed> —saJsData, strNavTitle
getChangeTimeTag()
Returns a complete string of <span class="{css}" title="{date_time}">{lngBasicChanged}</span>
public
static getChangeTimeTag( $date_time) : string
Parameters
Return values
string —getMetaTag()
Erzeuge Metatag wie <meta name="robots" content="index,follow" />
public
static getMetaTag(string $strName, string $strContent) : string
Parameters
- $strName : string
- $strContent : string
Return values
string —getNewIcon()
Gibt New-Icon zurueck
public
static getNewIcon(string $strDateStart, string $strDateStop) : string
Parameters
- $strDateStart : string
-
- YYYYMMDD
- $strDateStop : string
-
- YYYYMMDD
Return values
string —image-tag
getNewsMetaTags()
public
static getNewsMetaTags([array<string|int, mixed> $saNews = [] ]) : array<string|int, mixed>
Parameters
- $saNews : array<string|int, mixed> = []
Return values
array<string|int, mixed> —getOnOffLink()
Erzeugt den JS-On/Off-Link für einen Container Greift auf JsonCookie 'show_content-'.$strContainerIdPart zu
public
static getOnOffLink(string $strContainerIdPart[, string $strText = '' ][, string $strTextTitle = '' ][, bool|int $bPerm = 1 ], bool|int $bOpen) : array<string|int, mixed>
Parameters
- $strContainerIdPart : string
-
- der spezifische container
- $strText : string = ''
- $strTextTitle : string = ''
- $bPerm : bool|int = 1
-
- 1 = wird permanent im cookie, 0 = nur für ein klick
- $bOpen : bool|int
Return values
array<string|int, mixed> —includeCss()
public
static includeCss( $strFile) : string
Parameters
Return values
string —isColorCss()
public
static isColorCss(string $strFile) : bool
Parameters
- $strFile : string
Return values
bool —loadApp()
public
static loadApp( $strFile) : string
Parameters
Return values
string —sanitize()
opens the class
public
static sanitize( $str) : string
Parameters
Return values
string —sortApp()
public
static sortApp(array<string|int, mixed> $pageJS) : string
Parameters
- $pageJS : array<string|int, mixed>
Return values
string —loadAppAlt()
protected
static loadAppAlt( $strFile) : string