Jcorp CMS

Themes
Themes can be installed to Jcorp CMS. A theme may only store files it uses in the appropiate JS, CSS, or files directory. An unlimited number of themes may reside in the templates directory, however only the theme current.php will be used. A theme may only consist of one file.

 How to make a theme

Themes are designed to be easy to use and make. A theme consists of setting 8 simple variables. The variables and descriptions are displayed below.

$themename - The theme name as it will appear to the user.
$head - any content that should appear in the "head" tag
$prebody - any content that should appear before the page body tag
$beforecontent - any content that should appear before the page content
$aftercontent - any content that should appear after the page content
$prefooter - any content that should appear before the page footer
$postfooter - any content that should appear after the page footer
$last - any content that should appear immediately before the closing body tag

Styling Notes

In most cases the classes and ids are left to the theme developer, however, the navigation bar is automatically composed by Jcorp CMS and, thus, classes are pre-composed.
Here are the classes used:
the div enclosing the header has a class of "header-container"
the header tag has a class of "wrapper clearfix"
the title has a class of "title"
no other classes are used.

Example

The default HTML5 Boilerplate template is provided here for example purposes.

<?php $themename = 'HTML5 Boilerplate (Default)'; $head = ' <link rel="stylesheet" href="css/normalize.min.css"> <link rel="stylesheet" href="css/main.css"> <script src="js/vendor/modernizr-2.8.3.min.js"></script> '; $prebody = ' <!--[if lt IE 8]> <p class="browserupgrade">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.</p> <![endif]--> '; $beforecontent = ' <div class="main-container"> <div class="main wrapper clearfix"> '; $aftercontent = ' </div> </div> '; $prefooter = ' <div class="footer-container"> <footer class="wrapper"> '; $postfooter = ' </footer> </div> '; $last = ' <script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script> <script>window.jQuery || document.write(\'<script src="js/vendor/jquery-1.11.2.min.js"><\/script>\')</script> <script src="js/main.js"></script> ';NOTE:The php tag was intentionally not closed