/** * Include style and javascript files */ public static function SetLibraries() { if (!Modules::IsModuleInstalled('gallery')) { return false; } $output = ''; $nl = "\n"; $image_gallery_type = ModulesSettings::Get('gallery', 'image_gallery_type'); $video_gallery_type = ModulesSettings::Get('gallery', 'video_gallery_type'); $output = ''; if ($image_gallery_type == 'lytebox') { $output .= '<!-- LyteBox v3.22 Author: Markus F. Hay Website: http://www.dolem.com/lytebox -->' . $nl; $output .= '<link rel="stylesheet" href="' . APPHP_BASE . 'modules/lytebox/css/lytebox.css" type="text/css" media="screen" />' . $nl; $output .= '<script type="text/javascript" src="' . APPHP_BASE . 'modules/lytebox/js/lytebox.js"></script>' . $nl; Application::Set('js_included', 'lytebox'); } if ($image_gallery_type == 'rokbox' || $video_gallery_type == 'rokbox' || $video_gallery_type == 'videobox') { $output .= '<script type="text/javascript" src="' . APPHP_BASE . 'js/mootools.js"></script>' . $nl; Application::Set('js_included', 'mootools'); } if ($image_gallery_type == 'rokbox' || $video_gallery_type == 'rokbox') { $output .= '<!-- RokBox -->' . $nl; $output .= '<link rel="stylesheet" href="' . APPHP_BASE . 'modules/rokbox/themes/dark/rokbox-style.css" type="text/css" />' . $nl; $output .= '<link rel="stylesheet" href="' . APPHP_BASE . 'modules/rokbox/themes/dark/rokbox-style-ie8.css" type="text/css" />' . $nl; $output .= '<script type="text/javascript" src="' . APPHP_BASE . 'modules/rokbox/rokbox.js"></script>' . $nl; $output .= '<script type="text/javascript" src="' . APPHP_BASE . 'modules/rokbox/rokbox-config.js"></script>' . $nl; Application::Set('js_included', 'rokbox'); } if ($video_gallery_type == 'videobox') { $output .= '<!-- VideoBox -->' . $nl; $output .= '<link rel="stylesheet" href="' . APPHP_BASE . 'modules/videobox/css/videobox.css" type="text/css" />' . $nl; $output .= '<script type="text/javascript" src="' . APPHP_BASE . 'modules/videobox/js/swfobject.js"></script>' . $nl; $output .= '<script type="text/javascript" src="' . APPHP_BASE . 'modules/videobox/js/videobox.js"></script>' . $nl; Application::Set('js_included', 'videobox'); } return $output; }
/** * Include style and javascript files */ public static function SetLibraries() { $nl = "\n"; $output = '<script type="text/javascript" src="' . APPHP_BASE . 'js/jquery-1.6.3.min.js"></script>' . $nl; $output .= GalleryAlbums::SetLibraries(); if (!self::Get('js_included', 'lytebox')) { $output .= '<link rel="stylesheet" href="' . APPHP_BASE . 'modules/lytebox/css/lytebox.css" type="text/css" media="screen" />' . $nl; $output .= '<script type="text/javascript" src="' . APPHP_BASE . 'modules/lytebox/js/lytebox.js"></script>' . $nl; Application::Set('js_included', 'lytebox'); } return $output; }