Our themes have an extensive function list that developers and site owners can use to customize their GetSimple CMS themes. All these functions can be used anywhere in any theme file.
Extra: Developer tips for creating a theme
get_page_content()
<?php get_page_content(); ?>
Echos the page's content. No options.get_page_meta_keywords()
<?php get_page_meta_keywords(); ?>
Echos the page's keywords and/or tags. No options.get_page_title()
<?php get_page_title(); ?>
Echos the page's title. No options.return_page_title()
<?php return_page_title(); ?>
Returns the page's title. No options, since 2.0get_page_clean_title()
<?php get_page_clean_title(); ?>
Echos the page's title, stripped of all HTML. No options.get_page_slug()
<?php get_page_slug(); ?>
Echos the page's slug. No options. Example would be the word 'download' in the URL http://get-simple.info/download.return_page_slug()
<?php return_page_slug(); ?>
Same as get_page_slug, but it returns the slug. No options. Can be used to make page-specific IDs for CSS styling.get_page_url()
<?php get_page_url(); ?>
Echos the page's full URL. Options: TRUE for "return", FALSE or blank for "echo". Example would be http://get-simple.info/get_page_date()
<?php get_page_date(); ?>or<?php get_page_date('F jS, Y'); ?>
Echos the page's last saved date. Option is not needed, but can be used for formatting: use any string combination from PHP's date function. Default format is "l, F jS, Y - g:i A"get_header()
<?php get_header(); ?>
Echos the page's header. No options. This automatically creates the 4 meta tags ('descripion', 'keywords', 'canonical' and 'generated'). Place this code within your theme's<head></head>tags.get_footer()
<?php get_footer(); ?>
Echos the page's footer. No options. This mainly is used to introduce a plugin hook that can be called at the bottom of any template footer. Since 2.0get_site_url()
<?php get_site_url(); ?>
Echos the website's domain. No options. For example, this echos http://get-simple.info/ from any page on the GetSimple website.get_theme_url()
<?php get_theme_url(); ?>
Echos the website's theme directory URL. No options.get_site_name()
<?php get_site_name(); ?>
Echos the website's title. No options. Taken from the settings page.get_site_email()
<?php get_site_email(); ?>
Echos the administrator's email address as set in the settings page. No options.return_site_ver()
<?php return_site_ver(); ?>
Returns the version of SimpleManage you are running. No options.get_site_credits()
<?php get_site_credits(); ?>
Echos the string "Powered by GetSimple Version X.X". No options.get_component()
<?php get_component('component_slug'); ?>
Echos the component's contents. Required option is the component slug, which can be taken from the components page within the theme page.get_navigation()
<?php get_navigation(return_page_slug()); ?>
Returns a list of pages that are added to the main menu from each of their edit screens. Required option is what is shown above. This creates a class of 'current' on the<li>element that currently the active page. You need to supply the<ul>or<ol>set_contact_page()
<?php set_contact_page(); ?>
This creates the foundation of a 'contact' form that will accept any form field and then email it to the site's administrator - detailed instructions here.menu_data()
<?php menu_data(); ?>or<?php get_page_date('page-slug'); ?>
This function outputs an array of menu specific data for developers to create their own menus instead of using the GS defaultget_navigation()function. If you pass it a slug of a specific page, you will only get that page's menu data.
