Example #1
0
 /**
  * Get the XML <rss> node corresponding to the last pictures registered
  *
  * @param int $page The current page (defaults to 0)
  * @param int $show The number of pictures to include in one field (default 30)
  * @return string
  */
 function get_last_pictures_mrss($page = 0, $show = 30)
 {
     $images = flagdb::find_last_images($page, $show);
     $title = stripslashes(get_option('blogname'));
     $description = stripslashes(get_option('blogdescription'));
     $link = get_option('siteurl');
     $prev_link = $page > 0 ? flagMediaRss::get_last_pictures_mrss_url($page - 1, $show) : '';
     $next_link = count($images) != 0 ? flagMediaRss::get_last_pictures_mrss_url($page + 1, $show) : '';
     return flagMediaRss::get_mrss_root_node($title, $description, $link, $prev_link, $next_link, $images);
 }