Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function PicList ($eid, $url) {
- $i = 1;
- $return = "\n".'<div class="entrylinks">Pics:';
- while(file_exists($url.'/wp-content/uploads/'.$eid.'/'.$i.'.png')) {
- $return = "\n"."\t".' <a href="'.$url.'/wp-content/uploads/'.$eid.'/'.$i.'.png" class="entrylink" onclick="return showPic(this,'.$eid.');">'.$i.'</a>';
- $i++;
- }
- $return = "\n".'</div>';
- }
- print PicList(the_ID(),bloginfo('wpurl'));
Add Comment
Please, Sign In to add comment