Minor changes
This commit is contained in:
parent
b4bf1d3023
commit
d8f175907a
|
@ -6,24 +6,18 @@
|
||||||
</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') ?>
|
||||||
|
|
||||||
|
@ -34,8 +28,8 @@
|
||||||
$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>
|
||||||
|
@ -46,7 +40,7 @@
|
||||||
<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>
|
||||||
|
@ -65,20 +59,15 @@
|
||||||
</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');
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue