Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @@ -171,33 +171,29 @@
- function lightbox_gallery_print_path_header() {
- $options = get_option('lightbox_gallery_data');
- if ( $options['global_settings']['lightbox_gallery_script_loading_point'] == 'footer' ) return;
- - if ( get_option('home') != get_option('siteurl') ) :
- - echo '<script type="text/javascript">'."\n";
- - echo '// <![CDATA['."\n";
- - if ( $options['global_settings']['lightbox_gallery_loading_type'] == 'highslide' ) :
- - echo 'var graphicsDir = "'.get_option('siteurl').'/wp-content/plugins/lightbox-gallery/graphics/";'."\n";
- - else :
- - echo 'var lightbox_path = "'.get_option('siteurl').'/wp-content/plugins/lightbox-gallery/";'."\n";
- - endif;
- - echo '// ]]>'."\n";
- - echo '</script>'."\n";
- + echo '<script type="text/javascript">'."\n";
- + echo '// <![CDATA['."\n";
- + if ( $options['global_settings']['lightbox_gallery_loading_type'] == 'highslide' ) :
- + echo 'var graphicsDir = "'.get_option('siteurl').'/wp-content/plugins/lightbox-gallery/graphics/";'."\n";
- + else :
- + echo 'var lightbox_path = "'.get_option('siteurl').'/wp-content/plugins/lightbox-gallery/";'."\n";
- endif;
- + echo '// ]]>'."\n";
- + echo '</script>'."\n";
- }
- function lightbox_gallery_print_path_footer() {
- $options = get_option('lightbox_gallery_data');
- if ( $options['global_settings']['lightbox_gallery_script_loading_point'] != 'footer' ) return;
- - if ( get_option('home') != get_option('siteurl') ) :
- - echo '<script type="text/javascript">'."\n";
- - echo '// <![CDATA['."\n";
- - if ( $options['global_settings']['lightbox_gallery_loading_type'] == 'highslide' ) :
- - echo 'var graphicsDir = "'.get_option('siteurl').'/wp-content/plugins/lightbox-gallery/graphics/";'."\n";
- - else :
- - echo 'var lightbox_path = "'.get_option('siteurl').'/wp-content/plugins/lightbox-gallery/";'."\n";
- - endif;
- - echo '// ]]>'."\n";
- - echo '</script>'."\n";
- + echo '<script type="text/javascript">'."\n";
- + echo '// <![CDATA['."\n";
- + if ( $options['global_settings']['lightbox_gallery_loading_type'] == 'highslide' ) :
- + echo 'var graphicsDir = "'.get_option('siteurl').'/wp-content/plugins/lightbox-gallery/graphics/";'."\n";
- + else :
- + echo 'var lightbox_path = "'.get_option('siteurl').'/wp-content/plugins/lightbox-gallery/";'."\n";
- endif;
- + echo '// ]]>'."\n";
- + echo '</script>'."\n";
- }
- function lightbox_gallery_plugin_action_links($links, $file){
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement