-
-
Notifications
You must be signed in to change notification settings - Fork 5
Template functions
risingisland edited this page Dec 1, 2024
·
1 revision
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($name[, $title])
Executes a template file and returns its output.
- $name, the name of the template file to execute.
- $title (optional), the title to place on page. This parameter has no effect
- the text outputted when the selected template file is executed
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\”
- none
- nothing
get_filename_id()
Returns the filename of the current file, minus .php
- none
- the basename of the current file; for example if the current file is ../mytheme/myfile.php, then the text returned is “myfile”.
many more functions are yet to be documented
🏠 Home
⚙️ Installation
👷 Admin Reference
📝 Adding and Editing Content
- WYSIWYG Editor
- Components
- Snippets
- Custom 404 Page
🎨 Themes
- Theme Installation
- Theme Creation
- Step-by-Step Tutorial
- Template functions
- Template Tags
- Template Code Snippets
- Partial Template Files
🔌 Plugins
- Plugin Installation
- Plugin Creation
- Plugin functions
- Plugin Hooks & Filters
- Using Tabs and Sidebar Menus
- Tips & Tricks
💪 Advanced