set( 'tabs', $tabs ); $actions = array ( '' => __('Site options','loco-translate'), 'user' => __('User options','loco-translate'), 'version' => __('Version','loco-translate'), ); if( loco_debugging() ){ $actions['debug'] = __('Debug','loco-translate'); } $suffix = (string) $this->get('action'); foreach( $actions as $action => $name ){ $href = Loco_mvc_AdminRouter::generate( 'config-'.$action, $_GET ); $tabs->add( $name, $href, $action === $suffix ); } } } /** * {@inheritdoc} */ public function getHelpTabs(){ return array ( __('Overview','default') => $this->viewSnippet('tab-settings'), ); } }