Changeset 427818
- Timestamp:
- 08/23/2011 07:55:58 PM (15 years ago)
- Location:
- infinite-scroll/branches/Beta
- Files:
-
- 4 edited
-
includes/infinite-scroll.class.php (modified) (2 diffs)
-
infinitescroll.init.js.php (modified) (2 diffs)
-
readme.txt (modified) (1 diff)
-
wp_infinite_scroll.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
infinite-scroll/branches/Beta/includes/infinite-scroll.class.php
r426703 r427818 6 6 public function __construct() 7 7 { 8 self::$Version = '2.0b2.11082 1';8 self::$Version = '2.0b2.110822'; 9 9 self::$PresetRepo = 'http://plugins.svn.wordpress.org/infinite-scroll/branches/PresetDB/PresetDB.csv.php'; 10 10 self::$PresetDB = WP_PLUGIN_DIR."/infinite-scroll/PresetDB.csv.php"; … … 160 160 if (($paged && $paged > 1) && !have_posts()) 161 161 { 162 header( "HTTP/1.1404 Not Found");162 header($_SERVER["SERVER_PROTOCOL"]." 404 Not Found"); 163 163 header("Status: 404 Not Found"); 164 164 } -
infinite-scroll/branches/Beta/infinitescroll.init.js.php
r426703 r427818 1 1 <?php 2 header('Content-Type: application/javascript');2 ob_start(); 3 3 require_once( '../../../wp-load.php' ); 4 4 wp(); 5 5 ob_clean(); 6 header($_SERVER["SERVER_PROTOCOL"]." 200 Ok"); 7 header("Status: 200"); 8 header('Content-Type: application/javascript'); 6 9 //Get pathParse and validate it. 7 10 $error = false; … … 102 105 echo file_get_contents("js/behaviors/manual-trigger.min.js"); 103 106 echo 'function infinite_scroll_callback(newElements,data){'.$js_calls.'} 104 jQuery(document).ready(function($){$("'.$content_selector.'").infinitescroll({debug:'.$debug.',loading:{img:"'.$loading_image.'",msgText:"'.$loading_text.'",finishedMsg:"'.$donetext.'"},state:{currPage:"'.$pathInfo[0][2].'"},behavior:"'.$behavior.'",nextSelector:"'.$next_selector.'",navSelector:"'.$navigation_selector.'",contentSelector:"'.$content_selector.'",itemSelector:"'.$post_selector.'",pathParse:["'.$pathInfo[0][0].'","'.$pathInfo[0][1].'"]},function( ){window.setTimeout(infinite_scroll_callback(newElements,data),1);});';107 jQuery(document).ready(function($){$("'.$content_selector.'").infinitescroll({debug:'.$debug.',loading:{img:"'.$loading_image.'",msgText:"'.$loading_text.'",finishedMsg:"'.$donetext.'"},state:{currPage:"'.$pathInfo[0][2].'"},behavior:"'.$behavior.'",nextSelector:"'.$next_selector.'",navSelector:"'.$navigation_selector.'",contentSelector:"'.$content_selector.'",itemSelector:"'.$post_selector.'",pathParse:["'.$pathInfo[0][0].'","'.$pathInfo[0][1].'"]},function(newElements,data){window.setTimeout(infinite_scroll_callback(newElements,data),1);});'; 105 108 if(isset($_GET['a']) && $_GET['a']==1) 106 109 echo '$("'.$content_selector.'").infinitescroll("pause");'; -
infinite-scroll/branches/Beta/readme.txt
r426703 r427818 49 49 50 50 == Changelog == 51 = 2.0b2.110822 = 52 * Removed registration/enqueuing script in favor of just enqueueing 53 * Fixed bug/typo in compressed init script 54 51 55 = 2.0b2.110821 = 52 56 * Converted options pages to use Settings API -
infinite-scroll/branches/Beta/wp_infinite_scroll.php
r426703 r427818 2 2 /* 3 3 Plugin Name: Infinite Scroll 4 Version: 2.0b2.11082 14 Version: 2.0b2.110822 5 5 Plugin URI: http://www.infinite-scroll.com 6 6 Description: Automatically loads the next page of posts into the bottom of the initial page.
Note: See TracChangeset
for help on using the changeset viewer.