Fix on Static pages plugin

This commit is contained in:
Diego Najar 2018-03-07 18:53:40 +01:00
parent 639ecca509
commit 3a568b711d
1 changed files with 5 additions and 7 deletions

View File

@ -61,14 +61,12 @@ class pluginStaticPages extends Plugin {
} }
// Show static pages // Show static pages
if ($this->getValue('staticPages')) {
$staticPages = buildStaticPages(); $staticPages = buildStaticPages();
foreach ($staticPages as $page) { foreach ($staticPages as $page) {
$html .= '<li>'; $html .= '<li>';
$html .= '<a href="' . $page->permalink() . '">' . $page->title() . '</a>'; $html .= '<a href="' . $page->permalink() . '">' . $page->title() . '</a>';
$html .= '</li>'; $html .= '</li>';
} }
}
$html .= '</ul>'; $html .= '</ul>';
$html .= '</div>'; $html .= '</div>';