More Lingonberry updates. Should be fully usable now.
Plugins not tested. Sitebar plugins will never work as before. (Not included in the theme.)
This commit is contained in:
parent
a8d701becb
commit
6b08a04a5c
|
@ -8,8 +8,10 @@
|
|||
font-size: 80%;
|
||||
}
|
||||
|
||||
|
||||
|
||||
.comment-respond {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.featured-media img {
|
||||
min-width: 100%;
|
||||
}
|
|
@ -6,13 +6,20 @@
|
|||
</head>
|
||||
|
||||
<?php
|
||||
if( $WHERE_AM_I=='home' )
|
||||
if( ($WHERE_AM_I == 'home') || ($WHERE_AM_I == 'tag') )
|
||||
{
|
||||
echo '<body class="header-image fullwidth">';
|
||||
}
|
||||
else
|
||||
{
|
||||
echo '<body class="page page-template-default">';
|
||||
if( $Page->status() == "fixed" )
|
||||
{
|
||||
echo '<body class="page page-template-default">';
|
||||
}
|
||||
elseif( $Page->status() == "published" )
|
||||
{
|
||||
echo '<body class="single single-post">';
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
|
@ -20,19 +27,21 @@
|
|||
<!-- Plugins Site Body Begin -->
|
||||
<?php Theme::plugins('siteBodyBegin') ?>
|
||||
|
||||
<!-- <div class="navigation" >
|
||||
<div class="navigation" >
|
||||
<div class="navigation-inner section-inner">
|
||||
<ul class="blog-menu">
|
||||
<?php
|
||||
/** $parents = $pagesParents[NO_PARENT_CHAR];
|
||||
foreach($parents as $Parent) {
|
||||
echo '<li class="menu-item menu-item-type-custom menu-item-object-custom"><a href="'.$Parent->permalink().'">'.$Parent->title().'</a></li> ';
|
||||
} */
|
||||
$fixedPages = $dbPages->getFixedDB();
|
||||
$fpKeys = array_keys($fixedPages);
|
||||
foreach($fpKeys as $pageKey) {
|
||||
$page = buildPage($pageKey);
|
||||
echo '<li class="menu-item menu-item-type-custom menu-item-object-custom"><a href="'.$page->permalink().'">'.$page->title().'</a></li> ';
|
||||
}
|
||||
?>
|
||||
</ul>
|
||||
<div class="clear"></div>
|
||||
</div> <!-- /navigation-inner -->
|
||||
<!-- </div> <!-- /navigation -->
|
||||
</div> <!-- /navigation -->
|
||||
|
||||
<div class="header section">
|
||||
<div class="header-inner section-inner">
|
||||
|
@ -43,26 +52,33 @@
|
|||
<a href="<?php echo $Site->url() ?>" rel="home"><?php echo $Site->title() ?></a>
|
||||
</h1>
|
||||
|
||||
<!-- <div class="nav-toggle">
|
||||
<div class="nav-toggle">
|
||||
<div class="bar"></div>
|
||||
<div class="bar"></div>
|
||||
<div class="bar"></div>
|
||||
|
||||
<div class="clear"></div>
|
||||
</div> -->
|
||||
</div>
|
||||
|
||||
<div class="clear"></div>
|
||||
</div> <!-- /header section -->
|
||||
</div> <!-- /header-inner section-inner -->
|
||||
|
||||
<?php
|
||||
if( $WHERE_AM_I=='home' )
|
||||
if( ($WHERE_AM_I == 'home') || ($WHERE_AM_I == 'tag') )
|
||||
{
|
||||
include(THEME_DIR_PHP.'home.php');
|
||||
}
|
||||
else
|
||||
{
|
||||
include(THEME_DIR_PHP.'page.php');
|
||||
if( $Page->status() == "fixed" )
|
||||
{
|
||||
include(THEME_DIR_PHP.'page.php');
|
||||
}
|
||||
elseif( $Page->status() == "published" )
|
||||
{
|
||||
include(THEME_DIR_PHP.'post.php');
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
|
@ -88,9 +104,9 @@
|
|||
<?php Theme::plugins('siteBodyEnd') ?>
|
||||
|
||||
<!-- Javascript -->
|
||||
<?php Theme::javascript(array(
|
||||
'flexslider.min.js',
|
||||
'global.js'
|
||||
<?php echo Theme::js(array(
|
||||
'js/flexslider.min.js',
|
||||
'js/global.js'
|
||||
)); ?>
|
||||
|
||||
</body>
|
||||
|
|
|
@ -10,12 +10,13 @@
|
|||
'css/bludit.css'
|
||||
));
|
||||
|
||||
// JQuery from Bludit
|
||||
echo Theme::jquery();
|
||||
echo Theme::js('js/jquery-migrate-1.2.1.min.js');
|
||||
echo Theme::js(array(
|
||||
'js/jquery-1.12.0.min.js',
|
||||
'js/jquery-migrate-1.2.1.min.js'
|
||||
));
|
||||
|
||||
echo '<link href="//fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic|Raleway:600,500,400" rel="stylesheet" type="text/css">';
|
||||
echo '<link href="https://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic|Raleway:600,500,400" rel="stylesheet" type="text/css">';
|
||||
|
||||
// Load plugins with the hook siteHead
|
||||
Theme::plugins('siteHead');
|
||||
// Load plugins with the hook siteHead
|
||||
Theme::plugins('siteHead');
|
||||
?>
|
|
@ -10,14 +10,14 @@
|
|||
|
||||
<?php if($Post->coverImage()) {
|
||||
echo '<div class="featured-media">';
|
||||
echo '<a href="'.$Post->permalink().'" rel="bookmark" title="'.$Post->title().'">';
|
||||
echo '<img class="attachment-post-image wp-post-image cover-image" src="'.$Post->coverImage().'" alt="Cover Image">';
|
||||
echo '<img class="attachment-post-image wp-post-image cover-image" src="'.$Post->coverImage().'" alt="Cover Image">';
|
||||
echo '<div class="media-caption-container">';
|
||||
echo '<p class="media-caption">'.$Post->description().'</p>';
|
||||
echo '<a href="'.$Post->permalink().'" rel="bookmark" title="'.$Post->title().'">';
|
||||
echo '<p class="media-caption">'.$Post->description().'</p>';
|
||||
echo '</a>';
|
||||
echo '</div>';
|
||||
echo '</a>';
|
||||
echo '</div> <!-- /featured-media -->';
|
||||
} ?>
|
||||
} ?>
|
||||
|
||||
<h2 class="post-title"><a href="<?php echo $Post->permalink() ?>" rel="bookmark" title="<?php echo $Post->title() ?>"><?php echo $Post->title() ?></a></h2>
|
||||
<div class="post-meta">
|
||||
|
|
|
@ -10,47 +10,21 @@
|
|||
|
||||
<?php if($Page->coverImage()) {
|
||||
echo '<div class="featured-media">';
|
||||
echo '<a href="'.$Page->permalink().'" rel="bookmark" title="'.$Page->title().'">';
|
||||
echo '<img class="attachment-post-image wp-post-image cover-image" src="'.$Page->coverImage().'" alt="Cover Image">';
|
||||
//echo '<div class="media-caption-container">';
|
||||
//echo '<p class="media-caption"></p>';
|
||||
//echo '</div>';
|
||||
echo '</a>';
|
||||
echo '<img class="attachment-post-image wp-post-image cover-image" src="'.$Page->coverImage().'" alt="Cover Image">';
|
||||
echo '<div class="media-caption-container">';
|
||||
echo '<a href="'.$Page->permalink().'" rel="bookmark" title="'.$Page->title().'">';
|
||||
echo '<p class="media-caption">'.$Page->description().'</p>';
|
||||
echo '</a>';
|
||||
echo '</div>';
|
||||
echo '</div> <!-- /featured-media -->';
|
||||
} ?>
|
||||
|
||||
<h2 class="post-title"><a href="<?php echo $Page->permalink() ?>" rel="bookmark" title="<?php echo $Page->title() ?>"><?php echo $Page->title() ?></a></h2>
|
||||
|
||||
<div class="post-meta">
|
||||
|
||||
<span class="post-date"><a href="<?php echo $Page->permalink() ?>" title="<?php echo $Page->date() ?>"><?php echo $Page->date() ?></a></span>
|
||||
<span class="date-sep"> / </span>
|
||||
<span class="post-author"><?php
|
||||
if( Text::isNotEmpty($Page->user('firstName')) || Text::isNotEmpty($Page->user('lastName')) ) {
|
||||
echo $Page->user('firstName').' '.$Page->user('lastName');
|
||||
}
|
||||
else {
|
||||
echo $Page->user('username');
|
||||
}
|
||||
?></span>
|
||||
|
||||
</div> <!-- /post-meta -->
|
||||
</div> <!-- /post-header -->
|
||||
|
||||
<div class="post-content">
|
||||
<?php echo $Page->content() ?>
|
||||
|
||||
<div class="post-cat-tags">
|
||||
<p class="post-tags">Tags:
|
||||
<?php
|
||||
$tags = $Page->tags(true);
|
||||
|
||||
foreach($tags as $tagKey=>$tagName) {
|
||||
echo '<a class="post-category" href="'.HTML_PATH_ROOT.$Url->filters('tag').'/'.$tagKey.'">'.$tagName.'</a>';
|
||||
}
|
||||
?>
|
||||
</p>
|
||||
</div>
|
||||
</div> <!-- /post-content -->
|
||||
</div> <!-- /post content-inner -->
|
||||
|
||||
|
|
|
@ -0,0 +1,67 @@
|
|||
<div class="content section-inner">
|
||||
<div class="posts">
|
||||
<div class="post">
|
||||
|
||||
<!-- Plugins Post Begin -->
|
||||
<?php Theme::plugins('pageBegin') ?>
|
||||
|
||||
<div class="content-inner comments-allowed">
|
||||
<div class="post-header">
|
||||
|
||||
<?php if($Page->coverImage()) {
|
||||
echo '<div class="featured-media">';
|
||||
echo '<img class="attachment-post-image wp-post-image cover-image" src="'.$Page->coverImage().'" alt="Cover Image">';
|
||||
echo '<div class="media-caption-container">';
|
||||
echo '<a href="'.$Page->permalink().'" rel="bookmark" title="'.$Page->title().'">';
|
||||
echo '<p class="media-caption">'.$Page->description().'</p>';
|
||||
echo '</a>';
|
||||
echo '</div>';
|
||||
echo '</div> <!-- /featured-media -->';
|
||||
} ?>
|
||||
|
||||
<h2 class="post-title"><a href="<?php echo $Page->permalink() ?>" rel="bookmark" title="<?php echo $Page->title() ?>"><?php echo $Page->title() ?></a></h2>
|
||||
|
||||
<div class="post-meta">
|
||||
|
||||
<span class="post-date"><a href="<?php echo $Page->permalink() ?>" title="<?php echo $Page->date() ?>"><?php echo $Page->date() ?></a></span>
|
||||
<span class="date-sep"> / </span>
|
||||
<span class="post-author"><?php
|
||||
if( Text::isNotEmpty($Page->user('firstName')) || Text::isNotEmpty($Page->user('lastName')) ) {
|
||||
echo $Page->user('firstName').' '.$Page->user('lastName');
|
||||
}
|
||||
else {
|
||||
echo $Page->user('username');
|
||||
}
|
||||
?></span>
|
||||
|
||||
</div> <!-- /post-meta -->
|
||||
</div> <!-- /post-header -->
|
||||
|
||||
<div class="post-content">
|
||||
<?php echo $Page->content() ?>
|
||||
|
||||
<div class="post-cat-tags">
|
||||
<p class="post-tags">Tags:
|
||||
<?php
|
||||
$tags = $Page->tags(true);
|
||||
|
||||
foreach($tags as $tagKey=>$tagName) {
|
||||
echo '<a class="post-category" href="'.HTML_PATH_ROOT.$Url->filters('tag').'/'.$tagKey.'">'.$tagName.'</a>';
|
||||
}
|
||||
?>
|
||||
</p>
|
||||
</div>
|
||||
</div> <!-- /post-content -->
|
||||
</div> <!-- /post content-inner -->
|
||||
|
||||
<div class="comments">
|
||||
<!-- Post plugins -->
|
||||
<?php Theme::plugins('pageEnd') ?>
|
||||
</div>
|
||||
|
||||
</div> <!-- /post -->
|
||||
|
||||
<div class="clear"></div>
|
||||
|
||||
</div> <!-- /posts -->
|
||||
</div> <!-- /content section-inner -->
|
|
@ -6,7 +6,7 @@
|
|||
<h3 class="widget-title">Recent Posts</h3>
|
||||
<ul>
|
||||
<?php
|
||||
$pages = $dbPages->getList(1, 5, true, false);
|
||||
$pages = $dbPages->getList(1, 5, true);
|
||||
$keys = array_keys($pages);
|
||||
|
||||
foreach($keys as $pageKey) {
|
||||
|
@ -27,10 +27,6 @@
|
|||
<h3 class="widget-title">Tags</h3>
|
||||
<ul>
|
||||
<?php
|
||||
global $Language;
|
||||
global $dbTags;
|
||||
global $Url;
|
||||
|
||||
$db = $dbTags->db;
|
||||
$filter = $Url->filters('tag');
|
||||
|
||||
|
|
Loading…
Reference in New Issue