Minor changes

This commit is contained in:
Diego Najar 2017-08-07 20:30:14 +02:00
parent b4bf1d3023
commit d8f175907a
1 changed files with 31 additions and 42 deletions

View File

@ -4,29 +4,23 @@
<head profile="http://gmpg.org/xfn/11"> <head profile="http://gmpg.org/xfn/11">
<?php include(THEME_DIR_PHP.'head.php') ?> <?php include(THEME_DIR_PHP.'head.php') ?>
</head> </head>
<?php <?php
if( ($WHERE_AM_I == 'home') || ($WHERE_AM_I == 'tag') ) if($WHERE_AM_I == 'page') {
{ if( $Page->status() == "fixed" ) {
echo '<body class="header-image fullwidth">';
}
else
{
if( $Page->status() == "fixed" )
{
echo '<body class="page page-template-default">'; echo '<body class="page page-template-default">';
} }
elseif( $Page->status() == "published" ) elseif( $Page->status() == "published" ) {
{
echo '<body class="single single-post">'; echo '<body class="single single-post">';
} }
} else {
echo '<body class="header-image fullwidth">';
} }
?> ?>
<!-- Plugins Site Body Begin --> <!-- Plugins Site Body Begin -->
<?php Theme::plugins('siteBodyBegin') ?> <?php Theme::plugins('siteBodyBegin') ?>
<div class="navigation" > <div class="navigation" >
<div class="navigation-inner section-inner"> <div class="navigation-inner section-inner">
<ul class="blog-menu"> <ul class="blog-menu">
@ -34,64 +28,59 @@
$fixedPages = $dbPages->getFixedDB(); $fixedPages = $dbPages->getFixedDB();
$fpKeys = array_keys($fixedPages); $fpKeys = array_keys($fixedPages);
foreach($fpKeys as $pageKey) { foreach($fpKeys as $pageKey) {
$page = buildPage($pageKey); $fpage = buildPage($pageKey);
echo '<li class="menu-item menu-item-type-custom menu-item-object-custom"><a href="'.$page->permalink().'">'.$page->title().'</a></li> '; echo '<li class="menu-item menu-item-type-custom menu-item-object-custom"><a href="'.$fpage->permalink().'">'.$fpage->title().'</a></li> ';
} }
?> ?>
</ul> </ul>
<div class="clear"></div> <div class="clear"></div>
</div> <!-- /navigation-inner --> </div> <!-- /navigation-inner -->
</div> <!-- /navigation --> </div> <!-- /navigation -->
<div class="header section"> <div class="header section">
<div class="header-inner section-inner"> <div class="header-inner section-inner">
<a href="<?php echo $Site->url() ?>" rel="home" class="logo"><img src="<?php echo(HTML_PATH_UPLOADS_PROFILES.'/admin.png') ?>" alt="<?php echo $Site->title() ?>"></a> <a href="<?php echo $Site->url() ?>" rel="home" class="logo"><img src="<?php echo(HTML_PATH_UPLOADS_PROFILES.'admin.png') ?>" alt="<?php echo $Site->title() ?>"></a>
<h1 class="blog-title"> <h1 class="blog-title">
<a href="<?php echo $Site->url() ?>" rel="home"><?php echo $Site->title() ?></a> <a href="<?php echo $Site->url() ?>" rel="home"><?php echo $Site->title() ?></a>
</h1> </h1>
<div class="nav-toggle"> <div class="nav-toggle">
<div class="bar"></div> <div class="bar"></div>
<div class="bar"></div> <div class="bar"></div>
<div class="bar"></div> <div class="bar"></div>
<div class="clear"></div> <div class="clear"></div>
</div> </div>
<div class="clear"></div> <div class="clear"></div>
</div> <!-- /header section --> </div> <!-- /header section -->
</div> <!-- /header-inner section-inner --> </div> <!-- /header-inner section-inner -->
<?php <?php
if( ($WHERE_AM_I == 'home') || ($WHERE_AM_I == 'tag') ) if($WHERE_AM_I == 'page') {
{ if( $Page->status() == "fixed" ) {
include(THEME_DIR_PHP.'home.php');
}
else
{
if( $Page->status() == "fixed" )
{
include(THEME_DIR_PHP.'page.php'); include(THEME_DIR_PHP.'page.php');
} }
elseif( $Page->status() == "published" ) elseif( $Page->status() == "published" ) {
{
include(THEME_DIR_PHP.'post.php'); include(THEME_DIR_PHP.'post.php');
} }
} else {
include(THEME_DIR_PHP.'home.php');
} }
?> ?>
<!-- Footer --> <!-- Footer -->
<?php include(THEME_DIR_PHP.'sidebar.php') ?> <?php include(THEME_DIR_PHP.'sidebar.php') ?>
<div class="credits section"> <div class="credits section">
<div class="credits-inner section-inner"> <div class="credits-inner section-inner">
<p class="credits-left"> <p class="credits-left">
<span><?php echo $Site->footer() ?></span> <span><?php echo $Site->footer() ?></span>
</p> </p>
<p class="credits-right"> <p class="credits-right">
<span>Lingonberry by <a href="http://www.andersnoren.se">Anders Noren</a> Proudly Powered by <a href="https://www.bludit.com/">Bludit</a> </span><a class="tothetop">Up </a> <span>Lingonberry by <a href="http://www.andersnoren.se">Anders Noren</a> Proudly Powered by <a href="https://www.bludit.com/">Bludit</a> </span><a class="tothetop">Up </a>
</p> </p>
@ -99,15 +88,15 @@
<div class="clear"></div> <div class="clear"></div>
</div> <!-- /credits-inner --> </div> <!-- /credits-inner -->
</div> <!-- /credits --> </div> <!-- /credits -->
<!-- Plugins Site Body End --> <!-- Plugins Site Body End -->
<?php Theme::plugins('siteBodyEnd') ?> <?php Theme::plugins('siteBodyEnd') ?>
<!-- Javascript --> <!-- Javascript -->
<?php echo Theme::js(array( <?php echo Theme::js(array(
'js/flexslider.min.js', 'js/flexslider.min.js',
'js/global.js' 'js/global.js'
)); ?> )); ?>
</body> </body>
</html> </html>