Beispiel #1
0
    <h1><?php 
echo documentation_type_name($type);
?>
</h1>
<?php 
documentation_list($type, 999);
Beispiel #2
0
    }
    Flight::render('article.php', array('article' => $article, 'articles' => get_article_data()));
});
/**
 * Support
 */
Flight::route('/documentation/(@type)(/@page)/', function ($type = '', $page = '') {
    $layout = '';
    site_breadcrumb_add('Support', 'documentation/');
    if ($type == '' && $page == '') {
        $layout = '_support/index.php';
    }
    if (documentation_type_exists($type)) {
        $layout = '_support/archive.php';
        site_breadcrumb_add(documentation_type_name($type), 'documentation/' . $type . '/');
        site_title(sprintf('%s Help - Pro Theme Design', documentation_type_name($type)));
        if (documentation_page_exists($page, $type)) {
            $layout = '_support/type-' . $type . '.php';
            $page_name = documentation_page_property($page, 'name');
            $page_description = documentation_page_property($page, 'description');
            site_breadcrumb_add($page_name, 'documentation/' . $type . '/' . $page . '/');
            site_title(sprintf('%s Help', $page_name));
            if (!empty($page_description)) {
                site_description('Documentation: ' . $page_description);
            }
        } else {
            if (!empty($page)) {
                $page = '';
                $layout = '';
            }
        }