Minor changes
This commit is contained in:
parent
b4bf1d3023
commit
d8f175907a
|
@ -6,24 +6,18 @@
|
|||
</head>
|
||||
|
||||
<?php
|
||||
if( ($WHERE_AM_I == 'home') || ($WHERE_AM_I == 'tag') )
|
||||
{
|
||||
echo '<body class="header-image fullwidth">';
|
||||
}
|
||||
else
|
||||
{
|
||||
if( $Page->status() == "fixed" )
|
||||
{
|
||||
if($WHERE_AM_I == 'page') {
|
||||
if( $Page->status() == "fixed" ) {
|
||||
echo '<body class="page page-template-default">';
|
||||
}
|
||||
elseif( $Page->status() == "published" )
|
||||
{
|
||||
elseif( $Page->status() == "published" ) {
|
||||
echo '<body class="single single-post">';
|
||||
}
|
||||
} else {
|
||||
echo '<body class="header-image fullwidth">';
|
||||
}
|
||||
?>
|
||||
|
||||
|
||||
<!-- Plugins Site Body Begin -->
|
||||
<?php Theme::plugins('siteBodyBegin') ?>
|
||||
|
||||
|
@ -34,8 +28,8 @@
|
|||
$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> ';
|
||||
$fpage = buildPage($pageKey);
|
||||
echo '<li class="menu-item menu-item-type-custom menu-item-object-custom"><a href="'.$fpage->permalink().'">'.$fpage->title().'</a></li> ';
|
||||
}
|
||||
?>
|
||||
</ul>
|
||||
|
@ -46,7 +40,7 @@
|
|||
<div class="header section">
|
||||
<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">
|
||||
<a href="<?php echo $Site->url() ?>" rel="home"><?php echo $Site->title() ?></a>
|
||||
|
@ -65,20 +59,15 @@
|
|||
</div> <!-- /header-inner section-inner -->
|
||||
|
||||
<?php
|
||||
if( ($WHERE_AM_I == 'home') || ($WHERE_AM_I == 'tag') )
|
||||
{
|
||||
include(THEME_DIR_PHP.'home.php');
|
||||
}
|
||||
else
|
||||
{
|
||||
if( $Page->status() == "fixed" )
|
||||
{
|
||||
if($WHERE_AM_I == 'page') {
|
||||
if( $Page->status() == "fixed" ) {
|
||||
include(THEME_DIR_PHP.'page.php');
|
||||
}
|
||||
elseif( $Page->status() == "published" )
|
||||
{
|
||||
elseif( $Page->status() == "published" ) {
|
||||
include(THEME_DIR_PHP.'post.php');
|
||||
}
|
||||
} else {
|
||||
include(THEME_DIR_PHP.'home.php');
|
||||
}
|
||||
?>
|
||||
|
||||
|
|
Loading…
Reference in New Issue