diff --git a/kernel/boot/rules/80.plugins.php b/kernel/boot/rules/80.plugins.php
index 8677303c..1f7385cf 100644
--- a/kernel/boot/rules/80.plugins.php
+++ b/kernel/boot/rules/80.plugins.php
@@ -5,10 +5,12 @@
// ============================================================================
$plugins = array(
- 'siteHead'=>array(), //
HERE...
- 'siteBodyBegin'=>array(), // ...HERE...
- 'siteBodyEnd'=>array(), // ......HERE
- 'siteSidebar'=>array(), // ......HERE...
+ 'siteHead'=>array(),
+ 'siteBodyBegin'=>array(),
+ 'siteBodyEnd'=>array(),
+ 'siteSidebar'=>array(),
+ 'beforeSiteLoad'=>array(),
+ 'afterSiteLoad'=>array(),
'pageBegin'=>array(),
'pageEnd'=>array(),
@@ -24,12 +26,6 @@ $plugins = array(
'loginBodyBegin'=>array(),
'loginBodyEnd'=>array(),
- 'beforeSiteLoad'=>array(),
- 'afterSiteLoad'=>array(),
- 'beforePostsLoad'=>array(),
- 'afterPostsLoad'=>array(),
- 'beforePagesLoad'=>array(),
- 'afterPagesLoad'=>array(),
'all'=>array()
);
diff --git a/plugins/pages/plugin.php b/plugins/pages/plugin.php
index 257c8904..6c7b8157 100755
--- a/plugins/pages/plugin.php
+++ b/plugins/pages/plugin.php
@@ -47,21 +47,24 @@ class pluginPages extends Plugin {
foreach($parents as $parent)
{
- // Print the parent
- $html .= ''.$parent->title().'';
-
- // Check if the parent hash children
- if(isset($pagesParents[$parent->key()]))
+ if($Site->homepage()!==$parent->key())
{
- $children = $pagesParents[$parent->key()];
+ // Print the parent
+ $html .= ''.$parent->title().'';
- // Print the children
- $html .= '';
- foreach($children as $child)
+ // Check if the parent hash children
+ if(isset($pagesParents[$parent->key()]))
{
- $html .= '- — '.$child->title().'
';
+ $children = $pagesParents[$parent->key()];
+
+ // Print the children
+ $html .= '';
}
- $html .= '
';
}
}