Fix select box static pages plugin

This commit is contained in:
Anaggh S 2018-01-15 18:32:39 +05:30
parent b740e660b8
commit f60e1bdac6

View File

@ -1,6 +1,7 @@
<?php
class pluginStaticPages extends Plugin {
class pluginStaticPages extends Plugin
{
public function init()
{
@ -25,8 +26,8 @@ class pluginStaticPages extends Plugin {
$html .= '<div>';
$html .= '<label>'.$Language->get('Home link').'</label>';
$html .= '<select name="homeLink">';
$html .= '<option value="true" '.($this->getValue('showCero')?'checked':'').'>Enabled</option>';
$html .= '<option value="false" '.($this->getValue('showCero')?'checked':'').'>Disabled</option>';
$html .= '<option value="true" '.($this->getValue('homeLink')?'selected':'').'>Enabled</option>';
$html .= '<option value="false" '.(!$this->getValue('homeLink')?'selected':'').'>Disabled</option>';
$html .= '</select>';
$html .= '<span class="tip">'.$Language->get('Show the home link on the sidebar').'</span>';
$html .= '</div>';