Exemple #1
0
 /**
  * {@inheritDoc}
  */
 public function renderHeader($doctype, $headline, $cssJs)
 {
     $template = parent::renderHeader($doctype, $headline, $cssJs);
     // Doing special stuff for smokygrey:
     // We hide the debug-tab when we are displaying the config-only and switch
     // to the config as the current payload.
     if ($headline == 'Edit local settings') {
         $template = str_replace('{kdebug-classes}', 'khidden', $template);
         $template = str_replace('{kconfiguration-classes}', 'kactive', $template);
         $template = str_replace('{klinks-classes}', '', $template);
     } else {
         $template = str_replace('{kdebug-classes}', 'kactive', $template);
         $template = str_replace('{kconfiguration-classes}', '', $template);
         $template = str_replace('{klinks-classes}', '', $template);
     }
     return $template;
 }