Advertisement
RandallKent

Patch: Lightbox Gallery - lightbox_path

Jun 25th, 2011
346
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.36 KB | None | 0 0
  1. @@ -171,33 +171,29 @@
  2. function lightbox_gallery_print_path_header() {
  3. $options = get_option('lightbox_gallery_data');
  4. if ( $options['global_settings']['lightbox_gallery_script_loading_point'] == 'footer' ) return;
  5. - if ( get_option('home') != get_option('siteurl') ) :
  6. - echo '<script type="text/javascript">'."\n";
  7. - echo '// <![CDATA['."\n";
  8. - if ( $options['global_settings']['lightbox_gallery_loading_type'] == 'highslide' ) :
  9. - echo 'var graphicsDir = "'.get_option('siteurl').'/wp-content/plugins/lightbox-gallery/graphics/";'."\n";
  10. - else :
  11. - echo 'var lightbox_path = "'.get_option('siteurl').'/wp-content/plugins/lightbox-gallery/";'."\n";
  12. - endif;
  13. - echo '// ]]>'."\n";
  14. - echo '</script>'."\n";
  15. + echo '<script type="text/javascript">'."\n";
  16. + echo '// <![CDATA['."\n";
  17. + if ( $options['global_settings']['lightbox_gallery_loading_type'] == 'highslide' ) :
  18. + echo 'var graphicsDir = "'.get_option('siteurl').'/wp-content/plugins/lightbox-gallery/graphics/";'."\n";
  19. + else :
  20. + echo 'var lightbox_path = "'.get_option('siteurl').'/wp-content/plugins/lightbox-gallery/";'."\n";
  21. endif;
  22. + echo '// ]]>'."\n";
  23. + echo '</script>'."\n";
  24. }
  25.  
  26. function lightbox_gallery_print_path_footer() {
  27. $options = get_option('lightbox_gallery_data');
  28. if ( $options['global_settings']['lightbox_gallery_script_loading_point'] != 'footer' ) return;
  29. - if ( get_option('home') != get_option('siteurl') ) :
  30. - echo '<script type="text/javascript">'."\n";
  31. - echo '// <![CDATA['."\n";
  32. - if ( $options['global_settings']['lightbox_gallery_loading_type'] == 'highslide' ) :
  33. - echo 'var graphicsDir = "'.get_option('siteurl').'/wp-content/plugins/lightbox-gallery/graphics/";'."\n";
  34. - else :
  35. - echo 'var lightbox_path = "'.get_option('siteurl').'/wp-content/plugins/lightbox-gallery/";'."\n";
  36. - endif;
  37. - echo '// ]]>'."\n";
  38. - echo '</script>'."\n";
  39. + echo '<script type="text/javascript">'."\n";
  40. + echo '// <![CDATA['."\n";
  41. + if ( $options['global_settings']['lightbox_gallery_loading_type'] == 'highslide' ) :
  42. + echo 'var graphicsDir = "'.get_option('siteurl').'/wp-content/plugins/lightbox-gallery/graphics/";'."\n";
  43. + else :
  44. + echo 'var lightbox_path = "'.get_option('siteurl').'/wp-content/plugins/lightbox-gallery/";'."\n";
  45. endif;
  46. + echo '// ]]>'."\n";
  47. + echo '</script>'."\n";
  48. }
  49.  
  50. function lightbox_gallery_plugin_action_links($links, $file){
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement