Update the core
Update the composer, adding PHP Markdown Extra replacing dflydev markdown.
26
themes/dan/404-search.html.php
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link href='<?php echo site_url() ?>favicon.ico' rel='icon' type='image/x-icon'/>
|
||||
<meta charset="utf-8" />
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" user-scalable="no" />
|
||||
<title>Search results not found! - <?php echo config('blog.title') ?></title>
|
||||
<link href="<?php echo site_url() ?>themes/dan/css/style.css" rel="stylesheet" />
|
||||
<!-- Include the Open Sans font -->
|
||||
<link href="http://fonts.googleapis.com/css?family=Open+Sans+Condensed:700&subset=latin,cyrillic-ext" rel="stylesheet" />
|
||||
</head>
|
||||
<body>
|
||||
<div class="center message">
|
||||
<h1>Search results not found!</h1>
|
||||
<div class="search-404">
|
||||
<form id="search-form-404" method="get">
|
||||
<input type="text" class="search-input" name="search" value="Search..." onfocus="if (this.value == 'Search...') {this.value = '';}" onblur="if (this.value == '') {this.value = 'Search...';}">
|
||||
<input type="submit" value="Search" class="search-button">
|
||||
</form>
|
||||
<?php if(isset($_GET['search'])) {$url = site_url() . 'search/' . $_GET['search']; header ("Location: $url");} ?>
|
||||
</div>
|
||||
<p>Please search again, or would you like to try our <a href="<?php echo site_url() ?>">homepage</a> instead?</p>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
19
themes/dan/404.html.php
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link href='<?php echo site_url() ?>favicon.ico' rel='icon' type='image/x-icon'/>
|
||||
<meta charset="utf-8" />
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" user-scalable="no" />
|
||||
<title>404 Not Found - <?php echo config('blog.title') ?></title>
|
||||
<link href="<?php echo site_url() ?>themes/dan/css/style.css" rel="stylesheet" />
|
||||
<!-- Include the Open Sans font -->
|
||||
<link href="http://fonts.googleapis.com/css?family=Open+Sans+Condensed:700&subset=latin,cyrillic-ext" rel="stylesheet" />
|
||||
</head>
|
||||
<body>
|
||||
<div class="center message">
|
||||
<h1>This page doesn't exist!</h1>
|
||||
<p>Would you like to try our <a href="<?php echo site_url() ?>">homepage</a> instead?</p>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
674
themes/dan/css/style.css
Normal file
|
|
@ -0,0 +1,674 @@
|
|||
/*-------------------------
|
||||
Simple reset
|
||||
--------------------------*/
|
||||
|
||||
*{
|
||||
margin:0;
|
||||
padding:0;
|
||||
}
|
||||
|
||||
|
||||
body {
|
||||
font-family: Georgia, sans-serif, Arial;
|
||||
font-size: 16px;
|
||||
line-height: 1.6;
|
||||
color: #343A3F;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
font-weight:500;
|
||||
}
|
||||
|
||||
/*-------------------------
|
||||
Heading
|
||||
--------------------------*/
|
||||
|
||||
h1, h2, h3, h4, h5, h6 {
|
||||
font-family: 'Open Sans',sans-serif;
|
||||
line-height: 1.3;
|
||||
margin: 0.5em 0;
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 28px;
|
||||
}
|
||||
|
||||
h2 {
|
||||
font-size: 24px;
|
||||
}
|
||||
|
||||
h3 {
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
h4 {
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
h5 {
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
h6 {
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
/*-------------------------
|
||||
Layout
|
||||
--------------------------*/
|
||||
|
||||
#outer-wrapper {
|
||||
margin:0;
|
||||
padding:0;
|
||||
float:left;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#inner-wrapper {
|
||||
padding: 0 10px;
|
||||
}
|
||||
|
||||
.container {
|
||||
padding: 0 20px;
|
||||
}
|
||||
|
||||
#header-wrapper {
|
||||
background: #546673;
|
||||
position:relative;
|
||||
padding: 1em 0;
|
||||
float:left;
|
||||
width: 100%;
|
||||
color: #ffffff;
|
||||
font-family: Georgia, sans-serif;
|
||||
font-style:italic;
|
||||
}
|
||||
|
||||
#content-wrapper {
|
||||
float:left;
|
||||
width: 100%;
|
||||
padding: 3em 0;
|
||||
}
|
||||
|
||||
#menu, #header, #content, #footer {
|
||||
width: 700px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
#header {
|
||||
text-align:center;
|
||||
}
|
||||
|
||||
/*-------------------------
|
||||
Link
|
||||
--------------------------*/
|
||||
|
||||
a, a:visited {
|
||||
outline:none;
|
||||
color:#2E9FFF;
|
||||
text-decoration:none;
|
||||
}
|
||||
|
||||
a:hover{
|
||||
text-decoration:underline;
|
||||
}
|
||||
|
||||
/*-------------------------
|
||||
Text element
|
||||
--------------------------*/
|
||||
|
||||
blockquote:before {
|
||||
color: #BBBBBB;
|
||||
content: "“";
|
||||
font-size: 3em;
|
||||
line-height: 0.1em;
|
||||
margin-right: 0.2em;
|
||||
vertical-align: -0.4em;
|
||||
}
|
||||
|
||||
blockquote:after {
|
||||
color: #BBBBBB;
|
||||
content: "”";
|
||||
font-size: 3em;
|
||||
line-height: 0.1em;
|
||||
vertical-align: -0.45em;
|
||||
}
|
||||
|
||||
blockquote {
|
||||
font-style: italic;
|
||||
margin-left: 1em;
|
||||
}
|
||||
|
||||
pre {
|
||||
margin: 1em 0;
|
||||
overflow: auto;
|
||||
background: #F1F1FF;
|
||||
}
|
||||
|
||||
pre code {
|
||||
color: #333333;
|
||||
display: block;
|
||||
font-family: Consolas,Menlo,Monaco,Lucida Console,Liberation Mono,DejaVu Sans Mono,Bitstream Vera Sans Mono,Courier New,monospace,serif;
|
||||
font-size: 14px;
|
||||
padding: 5px 10px;
|
||||
}
|
||||
|
||||
.thumbnail {
|
||||
float: left;
|
||||
height: 80px;
|
||||
width: 80px;
|
||||
margin: 5px 15px 0 0;
|
||||
overflow: hidden;
|
||||
display: block;
|
||||
background-repeat: no-repeat;
|
||||
background-position: center;
|
||||
background-size: cover;
|
||||
}
|
||||
|
||||
ul, ol {
|
||||
padding-left: 30px;
|
||||
margin: 1em 0;
|
||||
}
|
||||
|
||||
ul li, ol li{
|
||||
margin: 0.25em 0;
|
||||
}
|
||||
|
||||
/*-------------------------
|
||||
Menu
|
||||
--------------------------*/
|
||||
|
||||
#menu-wrapper {
|
||||
font-weight:bold;
|
||||
font-family: 'Open Sans',sans-serif;
|
||||
color: #7E909D;
|
||||
padding: 10px 0;
|
||||
float:left;
|
||||
width:100%;
|
||||
}
|
||||
|
||||
#menu {
|
||||
font-weight:bold;
|
||||
font-family: 'Open Sans',sans-serif;
|
||||
color: #7E909D;
|
||||
}
|
||||
|
||||
#menu ul {
|
||||
margin:0;
|
||||
padding:0;
|
||||
}
|
||||
|
||||
#menu a {
|
||||
color: #7E909D;
|
||||
}
|
||||
|
||||
#menu ul li {
|
||||
float:left;
|
||||
margin:0 20px 0 0;
|
||||
list-style:none;
|
||||
padding-top:2px;
|
||||
}
|
||||
|
||||
/*----------------------------
|
||||
Search form
|
||||
-----------------------------*/
|
||||
|
||||
#search-form {
|
||||
position:relative;
|
||||
float:right;
|
||||
}
|
||||
|
||||
.search-input{
|
||||
margin: 0;
|
||||
padding: 4px 15px;
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
font-size:14px;
|
||||
border:1px solid #0076a3;
|
||||
border-top-left-radius: 5px 5px;
|
||||
border-bottom-left-radius: 5px 5px;
|
||||
width: 120px;
|
||||
color: #888888;
|
||||
}
|
||||
.search-button {
|
||||
margin: 0;
|
||||
padding: 4px;
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
font-size:14px;
|
||||
outline: none;
|
||||
cursor: pointer;
|
||||
text-align: center;
|
||||
text-decoration: none;
|
||||
color: #ffffff;
|
||||
border: solid 1px #546673;
|
||||
border-right:0px;
|
||||
background: #0095cd;
|
||||
background: -webkit-gradient(linear, left top, left bottom, from(#2E9FFF), to(#2E9CCC));
|
||||
background: -moz-linear-gradient(top, #2E9FFF, #2E9CCC);
|
||||
border-top-right-radius: 5px 5px;
|
||||
border-bottom-right-radius: 5px 5px;
|
||||
width: 60px;
|
||||
}
|
||||
.search-button:hover {
|
||||
text-decoration: none;
|
||||
background: #007ead;
|
||||
background: -webkit-gradient(linear, left top, left bottom, from(#0095cc), to(#00678e));
|
||||
background: -moz-linear-gradient(top, #0095cc, #00678e);
|
||||
}
|
||||
/* Fixes submit button height problem in Firefox */
|
||||
.search-button::-moz-focus-inner {
|
||||
border: 0;
|
||||
}
|
||||
|
||||
/*-------------------------
|
||||
Post
|
||||
--------------------------*/
|
||||
|
||||
.post {
|
||||
border-bottom: 1px solid #EBF2F6;
|
||||
padding: 1em 0;
|
||||
float: left;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.inpost .post {
|
||||
padding-bottom: 0;
|
||||
}
|
||||
|
||||
p, ul {
|
||||
margin :1em 0;
|
||||
}
|
||||
|
||||
.breadcrumb {
|
||||
font-family: 'Open Sans',sans-serif;
|
||||
font-size: 14px;
|
||||
font-weight:normal;
|
||||
}
|
||||
|
||||
.date {
|
||||
font-family: 'Open Sans',sans-serif;
|
||||
font-size: 14px;
|
||||
color: #A7A7A7;
|
||||
font-weight:normal;
|
||||
}
|
||||
|
||||
h1.blog-title {
|
||||
font-style:normal;
|
||||
}
|
||||
|
||||
h1.title-post a, h2.title-index a{
|
||||
color:#4f4f4f;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
h1.title-post a:hover, h2.title-index a:hover {
|
||||
color: #2E9FFF;
|
||||
}
|
||||
|
||||
.inpost .post {
|
||||
padding-top:0;
|
||||
border: none;
|
||||
}
|
||||
|
||||
.inpage .border {
|
||||
padding:0;
|
||||
margin:0;
|
||||
border:0;
|
||||
}
|
||||
|
||||
.inpage .post {
|
||||
padding-top:0;
|
||||
}
|
||||
|
||||
.infront .first, .inpost .post, .intag .first, .inarchive .first, .insearch .first {
|
||||
padding-top:0;
|
||||
}
|
||||
|
||||
.infront .first h2.title-index {
|
||||
margin-top:0;
|
||||
}
|
||||
|
||||
.post-list {
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
/*-------------------------
|
||||
Share box
|
||||
--------------------------*/
|
||||
|
||||
.share-box {
|
||||
font-size: 14px;
|
||||
float:left;
|
||||
}
|
||||
|
||||
.author-info {
|
||||
width: 540px;
|
||||
float:left;
|
||||
}
|
||||
|
||||
.share {
|
||||
width:140px;
|
||||
margin-right: 1em;
|
||||
}
|
||||
|
||||
.share a {
|
||||
display: inline-block;
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
margin: 0;
|
||||
padding: 0 5px;
|
||||
vertical-align: middle;
|
||||
-o-transition: all .3s;
|
||||
-moz-transition: all .3s;
|
||||
-webkit-transition: all .3s;
|
||||
-ms-transition: all .3s;
|
||||
text-indent: -9999em;
|
||||
}
|
||||
|
||||
.share a.twitter { background: url(../img/share-twitter.png) left top no-repeat; }
|
||||
.share a.facebook { background: url(../img/share-facebook.png) left top no-repeat; }
|
||||
.share a.googleplus { background: url(../img/share-googleplus.png) left top no-repeat; }
|
||||
|
||||
.share a:hover { background-position: left -26px; }
|
||||
|
||||
/*-------------------------
|
||||
Comments
|
||||
--------------------------*/
|
||||
|
||||
.comments {
|
||||
position:relative;
|
||||
display:block;
|
||||
font-size:16px;
|
||||
float:left;
|
||||
width:100%;
|
||||
}
|
||||
|
||||
.border {
|
||||
border-top: 1px solid #DFDFDF;
|
||||
margin-bottom: 15px;
|
||||
margin-top: 10px;
|
||||
padding-bottom: 15px;
|
||||
width: 100%;
|
||||
float:left;
|
||||
}
|
||||
|
||||
.border #disqus_thread {
|
||||
padding-top: 1.2em;
|
||||
}
|
||||
|
||||
#disqus_thread {
|
||||
font-family: Georgia, Times, Cambria, serif;
|
||||
float:left;
|
||||
width:100%;
|
||||
}
|
||||
|
||||
/*-------------------------
|
||||
Pagination + Postnav
|
||||
--------------------------*/
|
||||
|
||||
.postnav{
|
||||
width:100%;
|
||||
float:left;
|
||||
padding-bottom:1em;
|
||||
font-family: 'Open Sans',sans-serif;
|
||||
font-size: 12px;
|
||||
font-weight:bold;
|
||||
}
|
||||
|
||||
.postnav a {
|
||||
background: none repeat scroll 0 0 #E4E7EE;
|
||||
border-radius: 3px;
|
||||
color: #555555;
|
||||
line-height: 1;
|
||||
padding: 10px 20px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.postnav a:hover {
|
||||
text-decoration:none;
|
||||
color:#333333;
|
||||
}
|
||||
|
||||
.postnav .newer {
|
||||
float:left;
|
||||
}
|
||||
|
||||
.postnav .older {
|
||||
float:right;
|
||||
}
|
||||
|
||||
.pager {
|
||||
width:100%;
|
||||
float:left;
|
||||
padding: 30px 0 1em 0;
|
||||
font-family: 'Open Sans',sans-serif;
|
||||
font-size: 12px;
|
||||
font-weight:bold;
|
||||
}
|
||||
|
||||
.pager a {
|
||||
background: none repeat scroll 0 0 #E4E7EE;
|
||||
border-radius: 3px;
|
||||
color: #555555;
|
||||
line-height: 1;
|
||||
padding: 10px 20px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.pager .newer {
|
||||
float:left;
|
||||
}
|
||||
|
||||
.pager .older {
|
||||
float:right;
|
||||
}
|
||||
|
||||
.pager a:hover {
|
||||
text-decoration:none;
|
||||
color:#333333;
|
||||
}
|
||||
|
||||
/*-------------------------
|
||||
Footer
|
||||
--------------------------*/
|
||||
|
||||
#footer-wrapper {
|
||||
background: #546673;
|
||||
position:relative;
|
||||
padding: 20px 0;
|
||||
float:left;
|
||||
width: 100%;
|
||||
color: #ABB6C5;
|
||||
font-family: 'Open Sans', sans-serif;
|
||||
}
|
||||
|
||||
#footer {
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
#footer a {
|
||||
color: #CBD2DC;
|
||||
font-weight:bold;
|
||||
}
|
||||
|
||||
#footer ul {
|
||||
margin:0.5em 0;
|
||||
}
|
||||
|
||||
.footer-column {
|
||||
padding-bottom: 1.5em;
|
||||
float:left;
|
||||
width:100%;
|
||||
}
|
||||
|
||||
.column {
|
||||
float: left;
|
||||
width: 33%;
|
||||
}
|
||||
|
||||
.social {
|
||||
float:right;
|
||||
}
|
||||
|
||||
.social .inner {
|
||||
padding-left:30px;
|
||||
}
|
||||
|
||||
.tagcloud ul {
|
||||
padding:0;
|
||||
margin:0;
|
||||
}
|
||||
|
||||
.tagcloud ul li {
|
||||
float:left;
|
||||
list-style:none;
|
||||
margin-right: 10px;
|
||||
}
|
||||
|
||||
.copyright {
|
||||
font-size: 12px;
|
||||
float:left;
|
||||
width: 100%;
|
||||
border-top: 1px solid #ABB6C5;
|
||||
padding-top:1em;
|
||||
}
|
||||
|
||||
.copyright p {
|
||||
margin: 0.5em 0;
|
||||
line-height: 1.2;
|
||||
}
|
||||
|
||||
/*----------------------------
|
||||
The 404 page
|
||||
-----------------------------*/
|
||||
|
||||
.message{
|
||||
padding:50px 20px 20px 20px;
|
||||
}
|
||||
|
||||
.message h1{
|
||||
font-size:36px;
|
||||
margin-bottom: 18px;
|
||||
}
|
||||
|
||||
.message p{
|
||||
font-size:13px;
|
||||
}
|
||||
|
||||
.center{
|
||||
text-align:center;
|
||||
}
|
||||
|
||||
.search-404 {
|
||||
position:relative;
|
||||
float:left;
|
||||
width:100%;
|
||||
margin-bottom: 1.2em;
|
||||
}
|
||||
|
||||
#search-form-404 {
|
||||
float:none;
|
||||
}
|
||||
|
||||
/*----------------------------
|
||||
Media queries
|
||||
-----------------------------*/
|
||||
|
||||
@media all and (max-width: 700px) {
|
||||
|
||||
#menu, #header, #content, #footer {
|
||||
margin: 0 auto;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#menu-wrapper {
|
||||
text-align:center;
|
||||
}
|
||||
|
||||
#menu ul li {
|
||||
float:none;
|
||||
display:inline-block;
|
||||
}
|
||||
|
||||
#search-form {
|
||||
float:none;
|
||||
}
|
||||
|
||||
.author-info {
|
||||
width: 100%;
|
||||
float:left;
|
||||
}
|
||||
|
||||
.share {
|
||||
width:100%;
|
||||
margin-right: 0;
|
||||
padding-bottom: 1em;
|
||||
}
|
||||
|
||||
.column {
|
||||
float:left;
|
||||
width:100%;
|
||||
}
|
||||
|
||||
.postnav .newer {
|
||||
float:left;
|
||||
margin-bottom:1em;
|
||||
}
|
||||
|
||||
.postnav .older {
|
||||
float:left;
|
||||
}
|
||||
|
||||
.social .inner {
|
||||
padding-left:0px;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/*----------------------------
|
||||
Video
|
||||
-----------------------------*/
|
||||
|
||||
.video-wrapper {
|
||||
margin-bottom:1em;
|
||||
}
|
||||
|
||||
@media all and (min-width: 420px) {
|
||||
|
||||
.video-wrapper {
|
||||
padding-top:315px!important;
|
||||
position:relative;
|
||||
width:100%;
|
||||
max-width:420px!important;
|
||||
max-height:315px!important;
|
||||
}
|
||||
|
||||
.video-wrapper iframe, .video-wrapper object, .video-wrapper embed {
|
||||
height: 100%;
|
||||
left: 0;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
width: 100%;
|
||||
max-width:420px!important;
|
||||
max-height:315px!important;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@media all and (max-width: 420px) {
|
||||
|
||||
.video-wrapper {
|
||||
position: relative;
|
||||
padding-bottom: 56.25%;
|
||||
padding-top: 30px;
|
||||
height: 0;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.video-wrapper iframe, .video-wrapper object, .video-wrapper embed {
|
||||
height: 100%;
|
||||
left: 0;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
BIN
themes/dan/img/facebook.png
Normal file
|
After Width: | Height: | Size: 2.4 KiB |
BIN
themes/dan/img/googleplus.png
Normal file
|
After Width: | Height: | Size: 2.7 KiB |
BIN
themes/dan/img/rss.png
Normal file
|
After Width: | Height: | Size: 2.7 KiB |
BIN
themes/dan/img/share-facebook.png
Normal file
|
After Width: | Height: | Size: 582 B |
BIN
themes/dan/img/share-googleplus.png
Normal file
|
After Width: | Height: | Size: 836 B |
BIN
themes/dan/img/share-twitter.png
Normal file
|
After Width: | Height: | Size: 668 B |
BIN
themes/dan/img/tumblr.png
Normal file
|
After Width: | Height: | Size: 2.6 KiB |
BIN
themes/dan/img/twitter.png
Normal file
|
After Width: | Height: | Size: 2.7 KiB |
69
themes/dan/layout.html.php
Normal file
|
|
@ -0,0 +1,69 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title><?php echo isset($title) ? _h($title) : config('blog.title') ?></title>
|
||||
<link href='<?php echo site_url() ?>favicon.ico' rel='icon' type='image/x-icon'/>
|
||||
<meta charset="utf-8" />
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" user-scalable="no" />
|
||||
<meta name="description" content="<?php echo $description; ?>" />
|
||||
<link rel="canonical" href="<?php echo $canonical; ?>" />
|
||||
<link rel="alternate" type="application/rss+xml" title="<?php echo config('blog.title')?> Feed" href="<?php echo site_url()?>feed/rss" />
|
||||
<link href="<?php echo site_url() ?>themes/dan/css/style.css" rel="stylesheet" />
|
||||
<link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=Droid+Serif:400,700,400italic|Open+Sans:700,400"/>
|
||||
<?php if (publisher() == true):?><link href="<?php echo publisher() ?>" rel="publisher" /><?php endif;?>
|
||||
<!--[if lt IE 9]>
|
||||
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
|
||||
<![endif]-->
|
||||
</head>
|
||||
<body class="<?php echo $bodyclass; ?>">
|
||||
<div itemscope="itemscope" itemtype="http://schema.org/Blog" class="hide">
|
||||
<meta content="<?php echo config('blog.title') ?>" itemprop="name"/>
|
||||
<meta content="<?php echo config('blog.description')?>" itemprop="description"/>
|
||||
</div>
|
||||
<div id="outer-wrapper">
|
||||
<div id="menu-wrapper">
|
||||
<div class="container">
|
||||
<nav id="menu">
|
||||
<?php echo menu() ?>
|
||||
<form id="search-form" method="get">
|
||||
<input type="text" class="search-input" name="search" value="Search..." onfocus="if (this.value == 'Search...') {this.value = '';}" onblur="if (this.value == '') {this.value = 'Search...';}">
|
||||
<input type="submit" value="Search" class="search-button">
|
||||
</form>
|
||||
<?php if(isset($_GET['search'])) {$url = site_url() . 'search/' . $_GET['search']; header ("Location: $url");} ?>
|
||||
</nav>
|
||||
</div>
|
||||
</div>
|
||||
<div id="header-wrapper">
|
||||
<div class="container">
|
||||
<header id="header">
|
||||
<section id="branding">
|
||||
<h1 class="blog-title"><a href="<?php echo site_url() ?>"><?php echo config('blog.title') ?></a></h1>
|
||||
<div class="description"><p><?php echo config('blog.description')?></p></div>
|
||||
</section>
|
||||
</header>
|
||||
</div>
|
||||
</div>
|
||||
<div id="content-wrapper">
|
||||
<div class="container">
|
||||
<section id="content">
|
||||
<?php echo content()?>
|
||||
</section>
|
||||
</div>
|
||||
</div>
|
||||
<div id="footer-wrapper">
|
||||
<div class="container">
|
||||
<footer id="footer">
|
||||
<div class="footer-column">
|
||||
<div class="archive column"><div class="inner"><?php echo archive_list()?></div></div>
|
||||
<div class="tagcloud column"><div class="inner"><?php echo tag_cloud()?></div></div>
|
||||
<div class="social column"><div class="inner"><h3>Follow</h3><?php echo social()?></div></div>
|
||||
</div>
|
||||
<div class="copyright"><?php echo copyright() ?></div>
|
||||
</footer>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php if (analytics() == true):?><?php echo analytics() ?><?php endif;?>
|
||||
</body>
|
||||
</html>
|
||||
41
themes/dan/main.html.php
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
<?php if (!empty($breadcrumb)):?><div class="breadcrumb"><?php echo $breadcrumb ?></div><?php endif;?>
|
||||
<?php $i = 0; $len = count($posts);?>
|
||||
<?php foreach($posts as $p):?>
|
||||
<?php
|
||||
if ($i == 0) {
|
||||
$class = 'first';
|
||||
}
|
||||
elseif ($i == $len - 1) {
|
||||
$class = 'last';
|
||||
}
|
||||
else {
|
||||
$class = '';
|
||||
}
|
||||
$i++;
|
||||
?>
|
||||
<div class="post <?php echo $class ?>" itemprop="blogPost" itemscope="itemscope" itemtype="http://schema.org/BlogPosting">
|
||||
<div class="main">
|
||||
<h2 class="title-index" itemprop="name"><a href="<?php echo $p->url?>"><?php echo $p->title ?></a></h2>
|
||||
<div class="date"><span itemprop="datePublished"><?php echo date('d F Y', $p->date)?></span> - Posted in <span itemprop="articleSection"><a href="<?php echo $p->tagurl ?>"><?php echo $p->tag ?></a></span> by <span itemprop="author"><a href="<?php echo $p->authorurl ?>"><?php echo $p->author ?></a></span><?php if (disqus_count() == true):?> - <span><a href="<?php echo $p->url?>#disqus_thread">Comments</a></span><?php endif;?></div>
|
||||
<div class="teaser-body" itemprop="articleBody">
|
||||
<?php if (config('img.thumbnail') == 'true'):?>
|
||||
<?php echo get_thumbnail($p->body)?>
|
||||
<?php endif;?>
|
||||
<?php echo get_teaser($p->body, $p->url)?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php endforeach;?>
|
||||
<?php if (!empty($pagination['prev']) || !empty($pagination['next'])):?>
|
||||
<div class="pager">
|
||||
<?php if (!empty($pagination['prev'])):?>
|
||||
<span><a href="?page=<?php echo $page-1?>" class="pagination-arrow newer" rel="prev">Newer</a></span>
|
||||
<?php endif;?>
|
||||
<?php if (!empty($pagination['next'])):?>
|
||||
<span><a href="?page=<?php echo $page+1?>" class="pagination-arrow older" rel="next">Older</a></span>
|
||||
<?php endif;?>
|
||||
</div>
|
||||
<?php endif;?>
|
||||
<?php if (disqus_count() == true):?>
|
||||
<?php echo disqus_count() ?>
|
||||
<?php endif;?>
|
||||
53
themes/dan/post.html.php
Normal file
|
|
@ -0,0 +1,53 @@
|
|||
<?php if (!empty($breadcrumb)):?><div class="breadcrumb" xmlns:v="http://rdf.data-vocabulary.org/#"><?php echo $breadcrumb ?></div><?php endif;?>
|
||||
<div class="post" itemprop="blogPost" itemscope="itemscope" itemtype="http://schema.org/BlogPosting">
|
||||
<div class="main">
|
||||
<?php if ($type == 'blogpost'):?>
|
||||
<a name="more"></a>
|
||||
<?php endif;?>
|
||||
<h1 class="title-post" itemprop="name"><?php echo $p->title ?></h1>
|
||||
<?php if ($type == 'blogpost'):?>
|
||||
<div class="date"><span itemprop="datePublished"><a href="<?php echo $p->archive ?>" title="Show all posts made on this day"><?php echo date('d F Y', $p->date)?></a></span> - Posted in <span itemprop="articleSection"><a href="<?php echo $p->tagurl ?>"><?php echo $p->tag ?></a></span> by <span itemprop="author"><a href="<?php echo $p->authorurl ?>"><?php echo $p->author ?></a></span> - <span><a href="<?php echo $p->url ?>" rel="permalink">Permalink</a></span></div>
|
||||
<?php endif;?>
|
||||
<div class="post-body" itemprop="articleBody">
|
||||
<?php echo $p->body; ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php if ($type == 'blogpost'):?>
|
||||
<div class="separator">→</div>
|
||||
<div class="share-box">
|
||||
<?php if (config('author.info') == 'true'):?>
|
||||
<?php echo $authorinfo ?>
|
||||
<style>.share {float:right;}</style>
|
||||
<?php endif;?>
|
||||
<div class="share">
|
||||
<h4>Share this post</h4>
|
||||
<a class="twitter" target="_blank" href="https://twitter.com/share?url=<?php echo $p->url ?>&text=<?php echo $p->title?>">Twitter</a>
|
||||
<a class="facebook" target="_blank" href="https://www.facebook.com/sharer.php?u=<?php echo $p->url ?>&t=<?php echo $p->title?>">Facebook</a>
|
||||
<a class="googleplus" target="_blank" href="https://plus.google.com/share?url=<?php echo $p->url ?>">Google+</a>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif;?>
|
||||
<div class="comments border">
|
||||
<?php if ($type == 'blogpost'):?>
|
||||
<?php if (disqus(null, null) == true):?>
|
||||
<div id="disqus_thread"></div>
|
||||
<?php endif;?>
|
||||
<?php endif;?>
|
||||
</div>
|
||||
<?php if ($type == 'blogpost'):?>
|
||||
<div class="postnav">
|
||||
<?php if (!empty($next)):?>
|
||||
<span><a href="<?php echo ($next['url']);?>" class="pagination-arrow newer" rel="next"><?php echo ($next['title']);?></a></span>
|
||||
<?php endif;?>
|
||||
|
||||
<?php if (!empty($prev)):?>
|
||||
<span><a href="<?php echo ($prev['url']); ?>" class="pagination-arrow older" rel="prev"><?php echo ($prev['title']); ?></a></span>
|
||||
<?php endif;?>
|
||||
</div>
|
||||
<?php endif;?>
|
||||
<?php if ($type == 'blogpost'):?>
|
||||
<?php if (disqus(null, null) == true):?>
|
||||
<?php echo disqus($p->title, $p->url) ?>
|
||||
<?php endif;?>
|
||||
<?php endif;?>
|
||||
</div>
|
||||
36
themes/dan/profile.html.php
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
<?php if (!empty($breadcrumb)):?><div class="breadcrumb"><?php echo $breadcrumb ?></div><?php endif;?>
|
||||
<div class="profile" itemtype="http://schema.org/Person" itemscope="itemscope" itemprop="Person">
|
||||
<h1 class="title-post" itemprop="name"><?php echo $name ?></h1>
|
||||
<div class="bio" itemprop="description"><?php echo $bio ?></div>
|
||||
</div>
|
||||
<h2 class="post-index">Posts by this author</h2>
|
||||
<ul class="post-list">
|
||||
<?php $i = 0; $len = count($posts);?>
|
||||
<?php foreach($posts as $p):?>
|
||||
<?php
|
||||
if ($i == 0) {
|
||||
$class = 'first';
|
||||
}
|
||||
elseif ($i == $len - 1) {
|
||||
$class = 'last';
|
||||
}
|
||||
else {
|
||||
$class = '';
|
||||
}
|
||||
$i++;
|
||||
?>
|
||||
<li>
|
||||
<span><a href="<?php echo $p->url?>"><?php echo $p->title ?></a></span> on <span><?php echo date('d F Y', $p->date)?></span> - Posted in <span><a href="<?php echo $p->tagurl ?>"><?php echo $p->tag ?></a></span>
|
||||
</li>
|
||||
<?php endforeach;?>
|
||||
</ul>
|
||||
<?php if (!empty($pagination['prev']) || !empty($pagination['next'])):?>
|
||||
<div class="pager">
|
||||
<?php if (!empty($pagination['prev'])):?>
|
||||
<span><a href="?page=<?php echo $page-1?>" class="pagination-arrow newer" rel="prev">Newer</a></span>
|
||||
<?php endif;?>
|
||||
<?php if (!empty($pagination['next'])):?>
|
||||
<span><a href="?page=<?php echo $page+1?>" class="pagination-arrow older" rel="next">Older</a></span>
|
||||
<?php endif;?>
|
||||
</div>
|
||||
<?php endif;?>
|
||||