Skip to content

Template

Keramat Jokar edited this page May 13, 2024 · 1 revision

How to access the template object

$this->template->method();

setTitle($title)

Add an extra page title

String $title

view($content [, $css, $js])

Loads the template

String $content page content

(Optional) String $css path to your css file

(Optional) String $js path to your js file

loadSideboxes()

[String] loadPage($page [, $data, $json])

Load a page template

String $page

(Optional) Array $data of additional template data

(Optional) $json

[String] box($title, $body [, $full, $css, $js])

Shorthand for loading a content box

String $title

String $body

(Optional) Boolean $full

(Optional) $css

(Optional) $js

getMenu([$side])

Get the menu links

(Optional) Int $side of the specific menu

getSlider()

Load the image slider

[String] format($text [, $nl2br, $smileys, $xss, $break])

Format time as "XX days/hours/minutes/seconds"

String $text

(Optional) Boolean $nl2br

(Optional) Boolean $smileys

(Optional) Boolean $xss

(Optional) Mixed $break

[String] formatTime($time)

Format time as "XX days/hours/minutes/seconds"

Int $time

getDomainName()

getTitle()