Esempio n. 1
0
<?php

include '_partials/head.php';
?>
    <body class="page-home">

<?php 
include '_partials/header.php';
site_page_nav();
?>

        <div class="theme-wrapper block-wrapper wrapper">
<?php 
$template = site_view_path('_partials/theme-small.php');
foreach ($themes as $theme) {
    include $template;
}
?>
        </div>

<?php 
if ('wordpress.com' != $tag && !DISABLE_THEME_CLUB) {
    site_include_view('_partials/theme-club.php');
}
include '_partials/footer.php';
Esempio n. 2
0
/**
 * Check to see if a specific view file exists.
 *
 * @param  string  $path Path to check.
 * @return boolean true if exists, false otherwise.
 */
function site_include_exists($path)
{
    return file_exists(site_view_path($path));
}
Esempio n. 3
0
        Flight::notFound();
    }
    site_title($title);
    site_description('A selection of the <strong>thousands of awesome sites</strong> our customers have built!');
    site_enable_purchase();
    Flight::render('showcase.php', array('websites' => $websites, 'tag' => $tag));
});
/**
 * Feedback
 */
Flight::route('/feedback/(@type)/', function ($type = '') {
    site_title('Feedback');
    if (empty($type)) {
        $type = 'default';
    }
    $file = site_view_path('_feedback/' . $type . '.html');
    if (!file_exists($file)) {
        Flight::notFound();
    }
    Flight::render('feedback.php', array('questions' => $file));
});
/**
 * Search
 */
Flight::route('/search/', function () {
    site_title('Search');
    Flight::render('search.php');
});
/**
 * Articles Archive
 */
Esempio n. 4
0
File: index.php Progetto: cutout/ptd
                    <div class="colour grey-100"></div>
                    <div class="colour grey-90"></div>
                    <div class="colour grey-80"></div>
                    <div class="colour grey-70"></div>
                    <div class="colour grey-60"></div>
                    <div class="colour grey-50"></div>
                    <div class="colour grey-40"></div>
                    <div class="colour grey-30"></div>
                    <div class="colour grey-20"></div>
                    <div class="colour grey-10"></div>
                </div>
            </div>

            <h2>Pro Theme Design Pattern Library</h2>
<?php 
$path = site_view_path('_styleguide');
$files = array();
$handle = opendir($path);
while (false !== ($file = readdir($handle))) {
    if ('.html' === substr($file, -5)) {
        $files[] = $file;
    }
}
natsort($files);
foreach ($files as $file) {
    $name = $file;
    $name = str_replace('--', ' : ', $name);
    $name = str_replace('-', ' ', $name);
    $name = str_replace('.html', '', $name);
    $name = ucwords($name);
    ?>
Esempio n. 5
0
$doc = documentation_get($page);
?>
    <h1><?php 
echo documentation_page_name($page);
?>
</h1>

    <p class="intro"><?php 
echo $doc['description'];
?>
 <a href="<?php 
echo $doc['plugin-url'];
?>
" target="_blank" class="button">Details &amp; Download</a></p>

    <a href="<?php 
echo $doc['plugin-url'];
?>
" target="_blank">
        <img src="<?php 
echo $doc['image'];
?>
" alt="<?php 
echo documentation_page_name($page);
?>
 Cover Image">
    </a>

<?php 
$template = site_view_path('_support/_plugin/' . $page . '.php');
include $template;