Remove default homepage
This commit is contained in:
parent
d33ea370d0
commit
e76d9ff651
|
@ -5,10 +5,12 @@
|
||||||
// ============================================================================
|
// ============================================================================
|
||||||
|
|
||||||
$plugins = array(
|
$plugins = array(
|
||||||
'siteHead'=>array(), // <html><head>HERE</head><body>...</body></html>
|
'siteHead'=>array(),
|
||||||
'siteBodyBegin'=>array(), // <html><head>...</head><body>HERE...</body></html>
|
'siteBodyBegin'=>array(),
|
||||||
'siteBodyEnd'=>array(), // <html><head>...</head><body>...HERE</body></html>
|
'siteBodyEnd'=>array(),
|
||||||
'siteSidebar'=>array(), // <html><head>...</head><body>...<sidebar>HERE</sidebar>...</body></html>
|
'siteSidebar'=>array(),
|
||||||
|
'beforeSiteLoad'=>array(),
|
||||||
|
'afterSiteLoad'=>array(),
|
||||||
|
|
||||||
'pageBegin'=>array(),
|
'pageBegin'=>array(),
|
||||||
'pageEnd'=>array(),
|
'pageEnd'=>array(),
|
||||||
|
@ -24,12 +26,6 @@ $plugins = array(
|
||||||
'loginBodyBegin'=>array(),
|
'loginBodyBegin'=>array(),
|
||||||
'loginBodyEnd'=>array(),
|
'loginBodyEnd'=>array(),
|
||||||
|
|
||||||
'beforeSiteLoad'=>array(),
|
|
||||||
'afterSiteLoad'=>array(),
|
|
||||||
'beforePostsLoad'=>array(),
|
|
||||||
'afterPostsLoad'=>array(),
|
|
||||||
'beforePagesLoad'=>array(),
|
|
||||||
'afterPagesLoad'=>array(),
|
|
||||||
'all'=>array()
|
'all'=>array()
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
@ -47,21 +47,24 @@ class pluginPages extends Plugin {
|
||||||
|
|
||||||
foreach($parents as $parent)
|
foreach($parents as $parent)
|
||||||
{
|
{
|
||||||
// Print the parent
|
if($Site->homepage()!==$parent->key())
|
||||||
$html .= '<li><a class="parent" href="'.$parent->permalink().'">'.$parent->title().'</a></li>';
|
|
||||||
|
|
||||||
// Check if the parent hash children
|
|
||||||
if(isset($pagesParents[$parent->key()]))
|
|
||||||
{
|
{
|
||||||
$children = $pagesParents[$parent->key()];
|
// Print the parent
|
||||||
|
$html .= '<li><a class="parent" href="'.$parent->permalink().'">'.$parent->title().'</a></li>';
|
||||||
|
|
||||||
// Print the children
|
// Check if the parent hash children
|
||||||
$html .= '<li><ul>';
|
if(isset($pagesParents[$parent->key()]))
|
||||||
foreach($children as $child)
|
|
||||||
{
|
{
|
||||||
$html .= '<li><a class="children" href="'.$child->permalink().'">— '.$child->title().'</a></li>';
|
$children = $pagesParents[$parent->key()];
|
||||||
|
|
||||||
|
// Print the children
|
||||||
|
$html .= '<li><ul>';
|
||||||
|
foreach($children as $child)
|
||||||
|
{
|
||||||
|
$html .= '<li><a class="children" href="'.$child->permalink().'">— '.$child->title().'</a></li>';
|
||||||
|
}
|
||||||
|
$html .= '</ul></li>';
|
||||||
}
|
}
|
||||||
$html .= '</ul></li>';
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue