User Tools

Site Tools


core_docs:template_functions

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

core_docs:template_functions [2020/05/03 06:44] (current)
drking created
Line 1: Line 1:
 +====== 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**
 +<​code>​get_template($name[,​ $title])</​code>​
 +
 +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**
 +<​code>​filename_id()</​code>​
 +
 +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**
 +<​code>​get_filename_id()</​code>​
 +
 +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**
 +<​code></​code>​
 +
 +
 +**//many more functions are yet to be documented//​**
  
core_docs/template_functions.txt ยท Last modified: 2020/05/03 06:44 by drking