Changeset 9813 for extensions/rv_tscroller/main.inc.php
- Timestamp:
- Mar 21, 2011, 8:51:25 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/rv_tscroller/main.inc.php
r8935 r9813 1 1 <?php /* 2 2 Plugin Name: RV Thumb Scroller 3 Version: 2.2. a3 Version: 2.2.b 4 4 Plugin URI: http://piwigo.org/ext/extension_view.php?eid=493 5 5 Description: Loads async using ajax thumbnails on index page as you scroll down the page … … 7 7 Author URI: http://www.modusoptimus.com 8 8 */ 9 define('RVTS_VERSION', '2.2. a');9 define('RVTS_VERSION', '2.2.b'); 10 10 11 11 class RVTS … … 65 65 $per_page = $page['nb_image_page']; 66 66 $url_model = str_replace('123456789', '%start%', duplicate_index_url( array('start'=>123456789) ) ); 67 $ajax_url_model = add_url_params($url_model, array( 'rvts'=>' ' ) );67 $ajax_url_model = add_url_params($url_model, array( 'rvts'=>'%per%' ) ); 68 68 69 69 $url_model = str_replace('&', '&', $url_model); … … 91 91 } 92 92 $repeat=false; 93 // the String.fromCharCode comes from google bot which somehow manage to get these urls 93 94 $template->block_footer_script(null, 94 95 "var RVTS = { 95 ajaxUrlModel: '$ajax_url_model'+'%per%',96 ajaxUrlModel: String.fromCharCode(".ord($ajax_url_model[0]).")+'".substr($ajax_url_model,1)."', 96 97 start: $per_page, 97 98 total: $total, 98 99 perPage: $per_page, 99 urlModel: '$url_model',100 moreUrlModel: String.fromCharCode(".ord($url_model[0]).")+'".substr($url_model,1)."', 100 101 moreMsg: '$moreMsg', 101 102 ajaxLoaderImage: '$ajax_loader_image'
Note: See TracChangeset
for help on using the changeset viewer.