dbFields = array( 'label'=>'Pages', 'homeLink'=>true, 'pageAboutLabel'=>'About', 'pageAbout'=>'' ); } public function post() { } // Method called on the settings of the plugin on the admin area public function form() { global $Language; global $dbPages; $html = '
'; $html .= ''; $html .= ''; $html .= '
'; $html .= '
'; $html .= ''; $html .= 'getValue('homeLink')?'checked':'').'>'; $html .= ''; $html .= '
'; $options = array(); foreach($dbPages->db as $key=>$fields) { $page = buildPage($key); $options[$key] = $page->title(); } HTML::formOpen(array('class'=>'uk-form-horizontal')); HTML::legend(array('value'=>$Language->g('About page'))); HTML::formInputText(array( 'name'=>'title', 'label'=>$Language->g('Site title'), 'value'=>'test', 'class'=>'uk-width-1-2 uk-form-medium', 'tip'=>$Language->g('use-this-field-to-name-your-site') )); HTML::formClose(); $html .= 'About page'; $html .= '
'; $html .= ''; $html .= ''; $html .= '
'; $html .= '
'; $html .= ''; $html .= ''; $html .= '
'; $html .= '
'; $html .= ''; $html .= 'getValue('homeLink')?'checked':'').'>'; $html .= ''; $html .= '
'; $html .= 'Contact page'; $html .= '
'; $html .= ''; $html .= ''; $html .= '
'; $html .= '
'; $html .= ''; $html .= ''; $html .= '
'; return $html; } // Method called on the sidebar of the website public function siteSidebar() { global $Language; // HTML for sidebar $html = '
'; $html .= '

'.$this->getValue('label').'

'; $html .= '
'; $html .= ''; $html .= '
'; $html .= '
'; return $html; } }