예제 #1
0
파일: posts.php 프로젝트: kek91/Scorpion
<div class="alert alert-info hidden" id="infobox_missingMetaData">
    <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button>
    <b>Information</b><br><br>
    Red cells indicates missing meta data.<br>
    You should correct the missing data to increase search engine optimization
    and improve your visitors experience.<br><br>
    <button class="btn btn-sm btn-info" onClick='dont_show_again_missingMetaData();'>Don't show again</button>
</div>
<script>
    if(localStorage.show_msg_missingMetaData !== "false") {
        document.getElementById('infobox_missingMetaData').className = 'alert alert-info';
    }
</script>

<?php 
$scorpion = new Scorpion();
$posts = $scorpion->get_pages('post');
?>

<div class="panel panel-primary">
    <div class="panel-heading">Posts - used for news or article system</div>
    <div class="panel-body">
        <table class="table table-striped table-hover" id="datatable">
            <thead>
                <tr>
                    <th>Filename</th>
                    <th>Title</th>
                    <th>Date</th>
                    <th>Author</th>
                    <th>Category</th>
                </tr>
예제 #2
0
파일: index.php 프로젝트: kek91/Scorpion
<?php

include_once "core/init.php";
/* 
 * Initiate Scorpion CMS 
 */
$scorpion = new Scorpion();
/* 
 * Configuration options 
 */
/*
 * Typically items you wish to output in your header
 * For example, put this in your theme index.html: {{ header_title }}
 */
$scorpion->set_config('header_title', 'Scorpion CMS');
$scorpion->set_config('header_slogan', 'Sure is');
$scorpion->set_config('header_logo', 'path/to/logo.png');
/*
 * If you specify a theme that doesnt exist 
 * it will revert back to default.
 * Your theme must be created as a folder in /scorpion/themes/<themename>
 * and it must have a index.html and a style.css
 */
$scorpion->set_config('theme', 'default');
/*
 * Create the navigation. Add them in the order you'd like them to show.
 * Please note that the links you add must also have a .md file in the /scorpion/content/ folder.
 * Scorpion will automatically find the corresponding filename so you don't have to enter filepaths or .md extension etc.
 * 
 * For the default links below, Scorpion will look for /scorpion/content/home.md, about.md, contact.md, references.md, source.md and contact.md
 *