This repository has been archived on 2022-08-01. You can view files and clone it, but cannot push or open issues or pull requests.
Oldphaloskepsis/plugins/infinite-scroll/templates/footer.php

13 lines
448 B
PHP
Raw Normal View History

2017-01-12 23:10:07 +00:00
<?php
/**
* Template to include on wp_footer front-end; passes plugin options to javascript function
* @package Infinite_Scroll
*/
?>
<script type="text/javascript">
// Because the `wp_localize_script` method makes everything a string
infinite_scroll = jQuery.parseJSON(infinite_scroll);
jQuery( infinite_scroll.contentSelector ).infinitescroll( infinite_scroll, function(newElements, data, url) { eval(infinite_scroll.callback); });
</script>