Last active
September 26, 2015 07:07
-
-
Save ravikiranj/1058793 to your computer and use it in GitHub Desktop.
infinite_scroll_final_touch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| function init(){ | |
| $offset = 0; | |
| $xhr = false; | |
| if(!empty($_GET['offset'])){ | |
| $offset = $_GET['offset']; | |
| $xhr = true; | |
| } | |
| $limit = 15; | |
| $data = getRSSFeedItems($limit, $offset); | |
| $markup = displayHTML($data, $xhr); | |
| echo $markup; | |
| } | |
| //Call init | |
| init(); | |
| ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment