Created
November 7, 2011 19:44
-
-
Save sguzik/1345934 to your computer and use it in GitHub Desktop.
Psudo Code Description
This file contains 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
//Psudo Code Description | |
$url = LOAD Tumblr Posts from API | |
$xml = CREATE ARRAY from $url | |
$i = 0 //create a counter | |
foreach( $xml->ONEPOST as $post ){ //create loop to process individual posts | |
if ( $i LESS THAN 1 ) { | |
if ( POST_TYPE is 'regular') { | |
ALL THE THINGS YOU NEED TO DO TO DISPLAY TEXTPOSTS | |
} elseif ( POST_TYPE is 'photo' ) { | |
ALL THE THINGS YOU NEED TO DO TO DISPLAY TEXTPOSTS | |
} elseif ( ETC ) { | |
ETC | |
} else { | |
say YOU MESSED UP! | |
} | |
$i++; //or, make i bigger | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment