Esempio n. 1
0
 /**
  * produces css and js required for display. May be called multiple times, will only produce output once per
  * pageload or until `-` or `@` modifier is used
  *
  * @return string
  */
 protected static function _css()
 {
     if (!self::$_firstRun) {
         return '';
     }
     self::$_firstRun = false;
     $baseDir = KINT_DIR . 'view/inc/';
     if (!is_readable($cssFile = $baseDir . self::$theme . '.css')) {
         $cssFile = $baseDir . 'original.css';
     }
     return '<script>' . file_get_contents($baseDir . 'kint.js') . '</script>' . '<style>' . file_get_contents($cssFile) . "</style>\n";
 }