Skip to content

Commit

Permalink
Minified new version. Added debug switch between min and not min files.
Browse files Browse the repository at this point in the history
  • Loading branch information
samcleaver committed Jun 28, 2011
1 parent 163f28c commit 642a069
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions jquery.infinitescroll.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 5 additions & 2 deletions wp_infinite_scroll.php
Expand Up @@ -4,7 +4,7 @@
Version: 2.0b2.110628
Plugin URI: http://www.infinite-scroll.com
Description: Automatically loads the next page of posts into the bottom of the initial page.
Author: dirkhaim & Paul Irish & Beaver6813
Author: dirkhaim, Paul Irish, Beaver6813
Author URI: http://www.infinite-scroll.com
License : http://creativecommons.org/licenses/GPL/2.0/
Expand Down Expand Up @@ -206,7 +206,10 @@ function wp_inf_scroll_init()
{
/* I always hated the way the old plugin outputted... so did my IDE... */
echo "<script type=\"text/javascript\"> if (!(window.jQuery && jQuery.fn.jquery >= '1.5')){document.write(unescape(\"%3Cscript src='https://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js' type='text/javascript'%3E%3C/script%3E\"));}</script>";
echo "<script type=\"text/javascript\" src=\"$plugin_dir/jquery.infinitescroll.js\"></script>";
if($debug=="true")
echo "<script type=\"text/javascript\" src=\"$plugin_dir/jquery.infinitescroll.js\"></script>";
else
echo "<script type=\"text/javascript\" src=\"$plugin_dir/jquery.infinitescroll.min.js\"></script>";
echo " <script type=\"text/javascript\">
jQuery(document).ready(function($) {
// Infinite Scroll jQuery+Wordpress plugin
Expand Down

0 comments on commit 642a069

Please sign in to comment.