/** * Add gallery js and css to the <head> section of a page * */ public static function ShowingGallery() { global $page; static $showing = false; if ($showing) { return; } $showing = true; self::AddColorBox(); $css = \gp\tool\Plugins::OneFilter('Gallery_Style'); if ($css === false) { $page->css_user[] = '/include/css/default_gallery.css'; return; } $page->head .= "\n" . '<link type="text/css" media="screen" rel="stylesheet" href="' . $css . '" />'; }