Admin template tags

From Open-Realty Wiki

Jump to: navigation, search

Each tag in the template system looks like this {tag_name}. The Following tags are available from the admin templates.

Tag Description
license_tag This places the required html comments into the template. Not including this tag is a violation of the license agreement.
addon_links This tag parses all of your addons, triggers the installation functions and displays the admin icons from the addon. If you remove this tag, addon installation functions can not be triggered and addons may not work properly.
select_language Shows the language selection drop down.
version Shows "Version: 2.0.X". Pulls the currently installed version number and uses the $lang['version'] variable to show the word version in the correct language.
lang_index_home Shows the word "Home" from $lang['index_home'] variable.
lang_index_admin Shows the word "Admin" from $lang['index_admin'] variable.
lang_index_logout Shows the word "Logout" from $lang['index_logout'] variable.
baseurl Places the correct baseurl into the template.
template_url Places the correct admin template url into the template.
load_js_body This should be the last tag called in the head section of the template. It places all JavaScript required by open-realty into the template as well as the <body> tag and calls any onload functions needed for the page editor. This must be in all main.html admin template files.
load_js Loads the javascript from addons into the admin template
load_js_last Loads the javascript from addons into the admin template
content This places the actual content generated by open-realty from specific GET['action'] calls.
site_title This places the site title set in the open-realty site configuration.
company_name This places the company name from the site configuration onto the page.
company_location This places the company location from the site configuration onto the page.
company_logo This places the url for the company logo from the site configuration onto the page.
openrealty_links Places links to Open-Realty related resources
general_info Places a general info block on the admin page providing details about your Open-Realty installation.
charset Adds the charset selected in site config to your template.
user_id Displays the current user ID
Personal tools