[ Index ]

PHP Cross Reference of MyBB 1.8.27

title

Body

[close]

/inc/ -> class_templates.php (summary)

(no description)

File Size: 163 lines (4 kb)
Included or required: 2 times
Referenced: 1 time
Includes or requires: 0 files

Defines 1 class

templates:: (4 methods):
  cache()
  get()
  render()
  dev_get()


Class: templates  - X-Ref

MyBB 1.8
Copyright 2014 MyBB Group, All Rights Reserved

Website: http://www.mybb.com
License: http://www.mybb.com/about/license
cache($templates)   X-Ref
Cache the templates.
param: string $templates A list of templates to cache.

get($title, $eslashes=1, $htmlcomments=1)   X-Ref
Gets templates.
param: string $title The title of the template to get.
param: boolean|int $eslashes True if template contents must be escaped, false if not.
param: boolean|int $htmlcomments True to output HTML comments, false to not output.
return: string The template HTML.

render($template, $eslashes=true, $htmlcomments=true)   X-Ref
Prepare a template for rendering to a variable.
param: string $template The name of the template to get.
param: boolean $eslashes True if template contents must be escaped, false if not.
param: boolean $htmlcomments True to output HTML comments, false to not output.
return: string The eval()-ready PHP code for rendering the template

dev_get($title)   X-Ref
Fetch a template directly from the install/resources/mybb_theme.xml directory if it exists (DEVELOPMENT MODE)
param: string $title
return: string|bool



2005 - 2021 © MyBB.de | Alle Rechte vorbehalten! | Sponsor: netcup Cross-referenced by PHPXref