Initial commit

Experimental new template for GetSimple CMS
This commit is contained in:
kjodle 2015-10-18 12:17:12 -04:00
parent 1e4ed4cf77
commit 434afb89a4
8 changed files with 654 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 173 B

BIN
css/header.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 49 KiB

81
css/print.css Normal file
View File

@ -0,0 +1,81 @@
/*
ReferenceWizard theme for the GetSimple CMS
Designed by Kenneth John odle
http://d12webdesign.com/
*/
/* Print stylesheet */
#sa_toolbar,
#sidebar,
#sidebar2,
#share-bottom,
#share-top,
#nav,
#footer,
.noprint,
#child_menu,
.breadcrumb
{
display: none;
}
* {
font-family: Tahoma,sans-serif;
color: #000;
}
a,
a:link,
a:visited,
a:hover,
a:active {border: none; text-decoration: none;}
p, ul, ol, li, a, dt, dd, pre, input, label {font-size: 10pt;}
h1 {font-size: 18pt; border-bottom: double 3pt #bbb;}
h2 {font-size: 15pt; border-bottom: single 2pt #ccc;}
h3 {border-bottom: single 1pt #ddd;}
h1,h1 a,h2,h3,h4,h5,h6 {font-family: serif;}
dt {font-weight: bold;}
pre {
font-family: monospace;
margin: 6pt 0;
padding: 6pt 0;
border-top: dotted 2px #ccc;
border-bottom: dotted 2px #ccc;
}
#content {
width: 100%;
margin: 0;
padding: 0;
}
table {border: none;}
td {
border: none;
padding: 6pt 0;
margin: 6pt 0;
border-bottom: solid 1pt #000;
}
blockquote {
border: groove 2pt #000;
padding: 3pt;
font-size: 10pt;
}
.nodisplaybox {
border: dotted 2pt #ccc;
padding: 6pt;
margin-bottom: 6pt;
}
.nodisplaybox p {
margin: 2pt 0 0 0;
font-size: 8pt;
}

345
css/style.css Normal file
View File

@ -0,0 +1,345 @@
/*
NeonFossa theme for the GetSimple CMS
Designed by Kenneth John odle
http://d12webdesign.com/
*/
/* Resets and clearfixes */
* {
margin: 0px;
padding: 0px;
color: #000;
}
.clear {
clear:both;
}
/* HTML Components */
body {
background: #eee;
color: #000;
font: 13px/18px tahoma,sans-serif;
}
h1, h2, h3, h4, h5, h6 {
color: #000;
margin: 15px 0 10px 0;
font-family: Galdeano,sans-serif;
border-bottom: solid 1px #ccc;
padding: 0 0 0 3px;
}
h1 {padding-bottom: 6px;}
h2 {padding-bottom: 5px;}
h3 {padding-bottom: 2px;}
h4 {padding-bottom: 1px;}
h5 {padding-bottom: 0;}
h6 {padding-bottom: 0;}
h1#page-title {
background: #eee;
border-bottom: double 3px #ddd;
padding: 9px 0 6px 3px;
}
ol, ul {
margin-left: 18px;
}
p {
margin-top: 10px;
}
p.meta {
text-align: right;
}
a {
color: #444;
text-decoration: none;
}
blockquote {
background: #ddd;
padding: 12px;
margin: 18px;
box-shadow: 5px 5px 5px #bbd;
font-style: italic;
min-height: 35px;
}
blockquote::first-letter {
display: block;
float: left;
font-family: serif;
font-size: 3em;
font-weight: bold;
font-style: italic;
}
pre {
margin: 12px 0;
background: #eee;
border: dotted 1px #ddd;
padding: 12px;
}
dt {
font-weight: bold;
margin: 6px 0 0 0;
}
dd {
margin-left: 20px;
border-left: solid 3px #ddd;
padding-left: 6px;
}
/* Tables */
td {
padding: 12px;
font-size: 18px;
}
/***************************/
/* Theme Components */
/* Container */
#container {
width: 1000px;
margin: 0px auto;
background: #fff url(container-background.png);
box-shadow: 0 0 15px #222;
}
/* Header */
#header {
padding: 20px;
border: solid 5px #eee;
height: 110px;
background: #fff;
background-image: url('../images/background.png');
}
#header a {color: #000;}
#header h1,
#header h2 {
color: #222;
background: none;
margin-top: 0;
border: none;
padding-left: 24px;
}
#header h1 {
font-size: 40px;
line-height: 38px;
}
#header h2 {
font-size: 30px;
line-height: 20px;
}
/* Navigation Bar */
#nav {
background: #08b2f5; /* Support older browsers */
border-top: solid 2px #0F709E;
border-bottom: solid 2px #0F709E;
padding: 2px 0;
font-size: 1.1em;
font-weight: bold;
/* Background image code from the CSS Gradient Generator @ http://www.css3factory.com/linear-gradients/ */
background-image: -webkit-gradient(
linear,
left top,
left bottom,
color-stop(0, #04A6C7),
color-stop(0.24, #08B2F5),
color-stop(1, #00344A)
);
background-image: -o-linear-gradient(bottom, #04A6C7 0%, #08B2F5 24%, #00344A 100%);
background-image: -moz-linear-gradient(bottom, #04A6C7 0%, #08B2F5 24%, #00344A 100%);
background-image: -webkit-linear-gradient(bottom, #04A6C7 0%, #08B2F5 24%, #00344A 100%);
background-image: -ms-linear-gradient(bottom, #04A6C7 0%, #08B2F5 24%, #00344A 100%);
background-image: linear-gradient(to bottom, #04A6C7 0%, #08B2F5 24%, #00344A 100%);
}
#nav ul {
margin-left: 0px;
}
#nav li {
display: block;
float: left;
margin: -2px 0px;
padding: 5px;
line-height: 24px;
border-right: solid 1px #04a6c7;
}
#nav li:first-child {
border-left: solid 1px #04a6c7;
}
#nav li:hover {
background: #78d5fa; /* Support older browsers */
/* Background image code from the CSS Gradient Generator @ http://www.css3factory.com/linear-gradients/ */
background-image: -webkit-gradient(
linear,
left top,
left bottom,
color-stop(0, #76cee0),
color-stop(0.24, #78d5fa),
color-stop(1, #74909c)
);
background-image: -o-linear-gradient(bottom, #76cee0 0%, #78d5fa 24%, #74909c 100%);
background-image: -moz-linear-gradient(bottom, #76cee0 0%, #78d5fa 24%, #74909c 100%);
background-image: -webkit-linear-gradient(bottom, #76cee0 0%, #78d5fa 24%, #74909c 100%);
background-image: -ms-linear-gradient(bottom, #76cee0 0%, #78d5fa 24%, #74909c 100%);
background-image: linear-gradient(to bottom, #76cee0 0%, #78d5fa 24%, #74909c 100%);
}
#nav li:active {
box-shadow: 0px 0px 3px #fff inset,0px 0px 3px #fff inset,0px 0px 3px #fff inset;
}
#nav li.current {
background: #00344a;
}
#nav a,
#nav li a {
display: block;
border: none;
width: 100%;
height: 100%;
}
#nav li a:link,
#nav li a:visited {
color: #ccc;
text-decoration: none;
}
#nav li a:hover {
color: #fff;
}
#nav li.current a {
color: #ddd;
}
/* Content Area */
#content {
margin-top: 3px;
float: left;
width: 600px;
padding: 10px;
}
#content a {
border-bottom: solid 1px #777;
}
/* Sidebars */
#sidebar,
#sidebar2 {
padding: 8px;
}
#sidebar *:first-child,
#sidebar2 *:first-child {
margin-top: 0;
}
#sidebar a,
#sidebar2 a {
border-bottom: solid 1px #777;
}
#sidebar {
background: #cddaee; /* Set using Faux Columns; keep in case background image fails to load */
float: left;
width: 178px;
}
#sidebar2 {
background: #e7edf7; /* Set using Faux Columns; keep in case background image fails to load */
float: left;
width: 170px;
}
.sidebarads {
margin: 10px auto 0 auto;
}
#sidebar h1, #sidebar2 h1,
#sidebar h2, #sidebar2 h2,
#sidebar h3, #sidebar2 h3,
#sidebar h4, #sidebar2 h4,
#sidebar h5, #sidebar2 h5,
#sidebar h6, #sidebar2 h6 {
line-height: 1;
}
/* Footer */
#footer {
padding: 10px;
background: #ccc;
font-size: 11px;
}
/* Sitemap (Provided by plugin @ http://get-simple.info/extend/plugin/sitemap/182/ */
div#sitemap {
font: 12px/16px tahoma,sans-serif;
}
div#sitemap li {
list-style: circle;
color: #009;
}
/* Sharing */
#share-bottom , #share-top {float: right;}
#share-top a,
#share-bottom a {border: none;}
/* Forms */
form {
margin-top: 12px;
}
fieldset {
border: solid 1px #cddaee;
border-radius: 2px;
padding: 6px;
background: #F6F8FC;
margin-bottom: 12px;
}
legend {
padding: 6px;
border: solid 1px #cddaee;
border-radius: 2px;
font-family: sans-serif;
background: #EDF2F9;
font-size: 140%;
font-weight: bold;
color: #131425;
}
/* Special areas */
.left {float: left;}
.right {float: right;}
.top {vertical-align: middle;}
.nodisplay {display: none;}
.breadcrumb {
text-align: right;
border: solid 1px #cddaee;
border-radius: 2px;
box-shadow: 3px 3px 6px #e7edf7;
padding: 2px 4px;
font-size: 11px;
}
#index .breadcrumb {
display: none;
}
#refwiz_child_menu {
margin: 6px 0;
padding: 0 12px 12px 12px;
border: solid 1px #cddaee;
border-radius: 2px;
box-shadow: 3px 3px 6px #e7edf7;
}
p#parent {display: none;}

94
functions.php Normal file
View File

@ -0,0 +1,94 @@
<?php
if(!defined('IN_GS')){ die('you cannot load this page directly.'); }
function fossa_display_sitemap() {
$sitemaploc = get_site_url();
$sitemap = $sitemaploc . 'sitemap.xml';
include $sitemap;
}
function fossa_hier_menu() {
echo "<div class=\"breadcrumb\"><b>You are here:</b>&nbsp;&nbsp;&nbsp;";
get_breadcrumb_navigation(get_page_slug(false), '•', true);
echo "</div>";
}
function fossa_child_menu() {
echo "<div id=\"fossa_child_menu\"><p><b>Other pages in this category:</b></p>";
go_child_menu();
echo "</div>";
// Edited lines 117, 121, 128, 132 in original plugin file. Need to figure out action to swipe old values for those in this functions file.
}
// Check for components:
// From http://www.cyberiada.org/cnb/log/check-if-a-component-exists-in-getsimple/
if (!function_exists('component_exists')) {
function component_exists($id) {
global $components;
if (!$components) {
if (file_exists(GSDATAOTHERPATH.'components.xml')) {
$data = getXML(GSDATAOTHERPATH.'components.xml');
$components = $data->item;
} else {
$components = array();
}
}
$exists = FALSE;
if (count($components) > 0) {
foreach ($components as $component) {
if ($id == $component->slug) {
$exists = TRUE;
break;
}
}
}
return $exists;
}
}
function fossa_sharetop() {
if (component_exists('share-top')) {
echo "<div id=\"share-top\">";
get_component('share-top');
echo "</div><div class=\"clear\"></div>";
}
else {
return;
}
}
function fossa_sharebottom() {
if (component_exists('share-bottom')) {
echo "<div id=\"share-bottom\">";
get_component('share-bottom');
echo "</div><div class=\"clear\"></div>";
}
else {
return;
}
}
function fossa_sidebar1_ads() {
if (component_exists('sidebar1-ads')) {
echo "<div class=\"sidebarads\">";
get_component('sidebar1-ads');
echo "</div><div class=\"clear\"></div>";
}
else {
return;
}
}
function fossa_sidebar2_ads() {
if (component_exists('sidebar2-ads')) {
echo "<div class=\"sidebarads\">";
get_component('sidebar2-ads');
echo "</div><div class=\"clear\"></div>";
}
else {
return;
}
}
?>

BIN
images/screenshot.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 54 KiB

8
rss.php Normal file
View File

@ -0,0 +1,8 @@
<?php
if(!defined("IN_GS")){ die("you cannot load this page directly."); }
header("Content-Type: application/rss+xml");
header("Content-Type: application/xhtml+xml");
header("Content-Type: application/rss+xml");
header("Content-Type: text/xml");
tide_rss_feed($_GET["page"]);

126
template.php Normal file
View File

@ -0,0 +1,126 @@
<?php if(!defined('IN_GS')){ die('you cannot load this page directly.'); }
/****************************************************
*
* @File: template.php
* @Package: GetSimple
* @Action: Fossa theme for the GetSimple CMS
*
* Version 1.2 2014.08.15
*
*****************************************************/
?>
<!doctype html>
<html lang=en>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php get_page_clean_title(); ?> - <?php get_site_name(); ?></title>
<meta name="robots" content="index, follow" />
<link rel="icon" href="<?php get_site_url(); ?>favicon.ico" type="image/x-icon" />
<link rel="shortcut icon" href="<?php get_site_url(); ?>favicon.ico" type="image/x-icon" />
<link rel="stylesheet" type="text/css" media="screen" href="<?php get_theme_url(); ?>/css/style.css" />
<link rel="stylesheet" type="text/css" media="print" href="<?php get_theme_url(); ?>/css/print.css" />
<link href='http://fonts.googleapis.com/css?family=Galdeano' rel='stylesheet' type='text/css'>
<!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<?php get_header(); ?>
<!-- Required for some plugins to work; triggers theme header hooks as of GS 3.0. -->
</head>
<body id="<?php get_page_slug(); ?>">
<!-- container -->
<div id="container">
<!-- header -->
<div id="header">
<h1 class="noprint"><a href="<?php get_site_url(); ?>"><?php get_site_name(); ?></a></h1>
<h2 class="noprint"><?php get_component('tagline'); ?></h2>
</div>
<!-- end header -->
<!--main menu -->
<div id="nav">
<ul>
<?php get_navigation(return_page_slug()); ?>
</ul>
<div class="clear"></div>
</div>
<!--end main menu -->
<!--content -->
<div id="content">
<!-- Add support for Hierarchical Menus plugin @ http://get-simple.info/extend/plugin/hierarchical-menus/528/ -->
<?php
if (function_exists('get_breadcrumb_navigation')) {
fossa_hier_menu();
}
?>
<!-- Add page title -->
<h1 id="page-title"><?php get_page_title(); ?></h1>
<!-- Add sharing buttons at top of page if "Share Top" component exists -->
<?php fossa_sharetop(); ?>
<!-- Fetch the page content -->
<?php get_page_content(); ?>
<!-- Add support for Child Menu plugin @ http://get-simple.info/extend/plugin/child-menu/40/ -->
<?php /*
if (function_exists('go_child_menu')) {
fossa_child_menu();
}
*/ ?>
<!-- Add page publishing data -->
<p class="meta" > Last edited on&nbsp;<?php get_page_date('d M Y'); ?></p>
<!-- Add sharing buttons at bottom of page if "Share Bottom" component exists -->
<?php fossa_sharebottom(); ?>
<!-- Print page title, tagline, and copyright nicely, but does not display on screen -->
<div class="nodisplaybox nodisplay">
<p><b>Page URL:</b> <?php get_page_url(); ?></p>
<p>&copy;<?php echo date('Y'); ?> <?php get_site_name(); ?></a></p>
</div><!-- End "nodisplay" area -->
</div><!--end content -->
<!--sidebar -->
<div id="sidebar">
<?php get_component('sidebar'); ?>
<!-- Adds adspace under sidebar 1 if "Sidebar1 Ads" component exists -->
<?php fossa_sidebar1_ads(); ?>
</div>
<!--end sidebar -->
<!--sidebar2 -->
<div id="sidebar2">
<?php get_component('sidebar2'); ?>
<!-- Adds adspace under sidebar 1 if "Sidebar1 Ads" component exists -->
<?php fossa_sidebar2_ads(); ?>
</div>
<!--end sidebar2 -->
<div class="clear"></div>
<!--footer -->
<div id="footer">
<!-- Add copyright information -->
"<?php get_page_title(); ?>" &copy; <?php echo date('Y'); ?> <i><a href="<?php get_site_url(); ?>" title="Home"><?php get_site_name(); ?></a></i>
<div class="right" >
<?php get_site_credits(); ?> &bull; Fossa Theme by <a href="http://kjodle.net/">Kenneth John Odle</a>
</div>
</div>
<!--end footer -->
<?php get_footer(); ?>
<!-- Required for some plugins to work; triggers theme footer hooks as of GS 3.0. -->
</div>
<!-- end container -->
</body>
</html>