static function init()
 {
     self::$galleria_themes = array();
     //initialize galleria themes
     self::$jquery_data = array();
     //initialize jquery config
     $path = SLICKR_FLICKR_PLUGIN_URL;
     $options = SlickrFlickrUtils::get_options();
     $footer_scripts = SlickrFlickrUtils::scripts_in_footer();
     $deps = array('jquery');
     switch ($options['lightbox']) {
         case 'sf-lbox-manual':
         case 'sf-lbox-auto':
             wp_enqueue_style('slickr-flickr-lightbox', $path . "/lightbox/lightbox.css", array(), "0.5");
             wp_enqueue_script('slickr-flickr-lightbox', $path . "/lightbox/jquery.lightbox.js", array('jquery'), "0.5", $footer_scripts);
             $deps[] = 'slickr-flickr-lightbox';
         case 'thickbox':
             //preinstalled by wordpress but needs to be activated
             wp_enqueue_style('thickbox');
             wp_enqueue_script('thickbox');
             $deps[] = 'thickbox';
             break;
         default:
             break;
             //use another lightbox plugin
     }
     $gname = 'galleria';
     $galleria = array_key_exists('galleria', $options) ? $options['galleria'] : 'galleria-latest';
     $gfolder = $path . "/galleria/";
     switch ($galleria) {
         case 'galleria-none':
             break;
         case 'galleria-original':
         case 'galleria-1.0':
             wp_enqueue_style($gname, $gfolder . 'galleria-1.0.css', array(), '1.0');
             wp_enqueue_script($gname, $gfolder . 'galleria-1.0.noconflict.js', array('jquery'), SLICKR_FLICKR_VERSION, $footer_scripts);
             break;
         default:
             $gversion = '1.2.8';
             $gscript = $gfolder . 'galleria-' . $gversion . '.min.js';
             wp_enqueue_script($gname, $gscript, array('jquery'), $gversion, $footer_scripts);
             //enqueue loading of core galleria script
             break;
     }
     wp_enqueue_style('slickr-flickr', $path . '/slickr-flickr.css', array(), SLICKR_FLICKR_VERSION);
     wp_enqueue_script('slickr-flickr', $path . '/slickr-flickr.js', $deps, SLICKR_FLICKR_VERSION, $footer_scripts);
     add_filter($footer_scripts ? 'print_footer_scripts' : 'print_head_scripts', array('slickr_flickr_public', 'start_show'), 100);
     //start slickr flickr last
     if ($footer_scripts) {
         add_action('wp_footer', array('slickr_flickr_public', 'dequeue_redundant_scripts'), 1);
     }
 }
 static function get_options($cache = true)
 {
     if ($cache && count(self::$standard_options) > 0) {
         return self::$standard_options;
     }
     $flickr_options = array();
     $options = get_option(self::$standard_options_name);
     if (empty($options)) {
         self::$standard_options = self::$defaults;
     } else {
         foreach ($options as $key => $option) {
             if (isset($options[$key]) && strpos($key, self::$standard_options_prefix) == 0) {
                 $flickr_options[substr($key, 7)] = $option;
             }
         }
         self::$standard_options = shortcode_atts(self::$defaults, $flickr_options);
     }
     return self::$standard_options;
 }
 function set_options($unique_id, $options)
 {
     if (count($options) > 0) {
         $s = 'jQuery("#' . $unique_id . '").data("options",' . json_encode($options) . ');';
         if (SlickrFlickrUtils::scripts_in_footer()) {
             SLICKR_FLICKR_PUBLIC::add_jquery($s);
             //save for later
         } else {
             return '<script type="text/javascript">' . $s . '</script>';
             //output it now
         }
     }
     return '';
 }
    function lightboxes_panel($post, $metabox)
    {
        $options = SlickrFlickrUtils::get_options();
        print <<<COMPAT_LIGHTBOX_PANEL
<ul>
<li><a href="http://wordpress.org/extend/plugins/fancybox-for-wordpress/" rel="external">FancyBox Lightbox for WordPress</a></li>
<li><a href="http://wordpress.org/extend/plugins/highslide-4-wordpress-reloaded/" rel="external">Highslide for WordPress Reloaded</a></li>
<li><a href="http://s3.envato.com/files/1099520/index.html" rel="external">Lightbox Evolution</a></li>
<li><a href="http://wordpress.org/extend/plugins/lightbox-plus/" rel="external">Lightbox Plus (ColorBox) for WordPress</a></li>
<li><a href="http://wordpress.org/extend/plugins/shadowbox-js/" rel="external">ShadowBox JS</a></li>
<li><a href="http://wordpress.org/extend/plugins/shutter-reloaded/" rel="external">Shutter Lightbox for WordPress</a></li>
<li><a href="http://wordpress.org/extend/plugins/slimbox-plugin/" rel="external">SlimBox for WordPress</a></li>
<li><a href="http://wordpress.org/extend/plugins/wp-prettyphoto/" rel="external">WP Pretty Photo</a></li>
</ul>
COMPAT_LIGHTBOX_PANEL;
    }