예제 #1
0
    <!-- Quote -->
    <?php 
printQuotes("Design is not just what it looks like and feels like. Design is how it works.", "-Steve Jobs", "quote1");
?>
<!-- Page Content -->

    <div class="container" id="projects">
        <!-- Project Row 1 -->

        <div class="row">
            <div class="col-lg-12 text-center">
                <h2 class="page-header">Projects</h2>
            </div>
            <?php 
printProjects();
?>
        </div><!-- /.row -->
        <hr>
    </div><!-- /.container -->
    

    <!-- Quote -->
    <?php 
printQuotes("Good design is as little design as possible", "-Deiter Rams", "quote3");
?>

    <!-- Call to Action
    <aside class="call-to-action bg-primary">
        <div class="container">
            <div class="row">
예제 #2
0
파일: index.php 프로젝트: nicolasH/nnmc
function parseRequest($request, $category)
{
    global $categoriesRegexp, $dateRegexp, $specialPages, $title;
    //getFileFromRequest($request);
    $html = "";
    if ($request == '') {
        $title = "Home";
        $html = printSpecialPage($specialPages['home'], BASE_URI);
        return $html;
    }
    foreach ($specialPages as $page => $file) {
        if ($request == $page || $request == $page . "/") {
            // last case is for colophon page
            $title = ucfirst($page);
            $html = printSpecialPage($file, $request . "/");
            return $html;
        }
    }
    if ($category == "notes/") {
        $html .= printNotes($request);
        return $html;
    }
    if ($category == "projects/") {
        $html .= printProjects(BASE_PATH . $request, $request, "projects/");
        return $html;
    }
    if ($category == "blog/") {
        $html .= printBlogPosts($request);
        return $html;
    }
    //error 404
    $html .= printErrorText();
    return $html;
}