This repository has been archived on 2023-08-16. You can view files and clone it, but cannot push or open issues or pull requests.
Omphaloskepsis/plugins/infinite-scroll/templates/footer.php
2018-03-21 18:19:20 +00:00

12 lines
448 B
PHP

<?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>