[ Index ]

PHP Cross Reference of MyBB 1.8.38

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.
return: string The template HTML.
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.

render($template, $eslashes=true, $htmlcomments=true)   X-Ref
Prepare a template for rendering to a variable.
return: string The eval()-ready PHP code for rendering the template
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.

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



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