User Tools

Site Tools


core_docs:template_functions

Template functions

Template functions are used within the back-end of a GetSimple installation. The source code is in admin/inc/template_functions.php.

This page is in development

Get Template

Description

get_template($name[, $title])

Executes a template file and returns its output.

Parameters

  • $name, the name of the template file to execute.
  • $title (optional), the title to place on page. This parameter has no effect

Returns

  • the text outputted when the selected template file is executed

Filename ID

Description

filename_id()

Echoes a css id string with the basename of the current file.

Example: if the current file is ../mytheme/myfile.php, then the string echoed is
id=\“myfile\”

Parameters

  • none

Returns

  • nothing

Get Filename ID

Description

get_filename_id()

Returns the filename of the current file, minus .php

Parameters

  • none

Returns

  • the basename of the current file; for example if the current file is ../mytheme/myfile.php, then the text returned is “myfile”.

Description



many more functions are yet to be documented

core_docs/template_functions.txt · Last modified: 2020/05/03 06:44 by drking