Exemplo n.º 1
0
<?php

if (!site_popover()) {
    return;
}
?>

    <section class="popover">

        <header>Feedback</header>

        <button class="close-button" rel="nofollow">
            <i class="fa fa-times" aria-hidden="true"></i>
            <span class="screen-reader-text">Close Feedback Panel</span>
        </button>

        <div class="body">
            <p>We'd love to get some feedback to help us create the things you want.</p>
            <p><a href="<?php 
echo path('feedback/');
?>
" class="button greedy">Give Feedback</a></p>
        </div>

    </section>
Exemplo n.º 2
0
            }
        } else {
            if (!empty($page)) {
                $page = '';
                $layout = '';
            }
        }
    } else {
        // reset just in case
        $type = '';
        $page = '';
    }
    if (empty($layout)) {
        Flight::notFound();
    }
    site_popover(true);
    Flight::render('documentation.php', array('title' => 'Theme Documentation', 'layout' => $layout, 'type' => $type, 'page' => $page));
});
/**
 * theme preview
 */
Flight::route('/theme-preview/(@theme)/', function ($theme_slug = '') {
    $template = 'theme-preview.php';
    $theme = array();
    if (!($theme = themes_get($theme_slug))) {
        Flight::notFound();
    }
    site_title($theme['name'] . ' Theme Preview');
    site_enable_purchase();
    Flight::render($template, array('theme_slug' => $theme_slug, 'theme' => $theme));
});