Beispiel #1
0
 /**
  * Add gallery js and css to the <head> section of a page
  *
  */
 static function ShowingGallery()
 {
     global $page;
     static $showing = false;
     if ($showing) {
         return;
     }
     $showing = true;
     common::AddColorBox();
     $css = gpPlugin::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 . '" />';
 }