The functions

There are quite a few functions you can use when building your site or creating a new theme.

To display the results, any function can be called with:

<?php function_name(); ?>


  • $fms->categories($options)

    Used to show your categories, with a variety of options. See Displaying categories.

  • $fms->content($options, $keywords), $fms->retrieve($options, $keywords)

    Used to show your graphics and layouts. See Displaying content.

  • fms_header()

    This should be placed between the <head></head> tags in your site template. It allows you to take full advantage of everything FMS has to offer, including using Fancybox to show full-size graphics and preview layouts.

  • search_results($options)

    Displays the results of a search query.

  • title($divider, $position)

    Displays the page title at the top. See Titles function.

  • page_title()

    Displays the current page title in the document itself.

  • pages()

    Adds a complete list of your pages. See Pages function.

  • get_page()

    Gets a page from your /content/pages directory, based on the URI of the current page.

  • get_header()

    Gets the current theme's header file.

  • get_sidebar()

    Gets the current theme's sidebar file, if it exists.

  • get_footer()

    Gets the current theme's footer file.

  • get_style()

    Gets the URL to the current theme's stylesheet.

  • theme_script($script)

    Gets the URLs to any scripts that are in your theme's folder.