static function get_galleria_theme_path($theme, $css = false) { if (empty($theme)) { $theme = 'classic'; } if ('classic' == $theme) { $themepath = SLICKR_FLICKR_PLUGIN_URL . '/galleria/themes/classic/galleria.classic'; } else { //premium themes are located outside the plugin folder $themepath = site_url(Slickr_Flickr_Options::get_option('galleria_themes_folder') . '/' . $theme . '/galleria.' . $theme); } return $themepath . ($css ? '.css' : '.min.js'); }
function set_options($options) { if (count($options) > 0) { $s = sprintf('jQuery("#%1$s").data("options",%2$s);', $this->id, json_encode($options)); if (Slickr_Flickr_Options::get_option('scripts_in_footer')) { Slickr_Flickr_Public::add_jquery($s); //save for later } else { return sprintf('<script type="text/javascript">%1$s</script>', $s); //output it now } } return ''; }