Beispiel #1
0
 if (Surfer::is_associate()) {
     $inbound = '';
     // list existing feeders
     include_once $context['path_to_root'] . 'servers/servers.php';
     if ($items = Servers::list_for_feed(0, COMPACT_LIST_SIZE, 'full')) {
         // link to the index of server profiles
         $inbound .= '<p>' . sprintf(i18n::s('To extend the list of feeders add adequate %s.'), Skin::build_link('servers/', i18n::s('server profiles'), 'shortcut')) . "</p>\n";
         // list of profiles used as news feeders
         $inbound .= Skin::build_list($items, 'decorated');
         // no feeder defined
     } else {
         $inbound .= sprintf(i18n::s('No feeder has been defined. If you need to integrate some external RSS %s.'), Skin::build_link('servers/edit.php', i18n::s('add a server profile')));
     }
     // get news from remote feeders
     include_once 'feeds.php';
     $news = Feeds::get_remote_news();
     if (is_array($news)) {
         $inbound .= Skin::build_block(i18n::s('Most recent external news'), 'title');
         // list of profiles used as news feeders
         $inbound .= Skin::build_list($news, 'compact');
     }
     // display in a separate panel
     if (trim($inbound)) {
         $panels[] = array('inbound', i18n::s('Inbound feeds'), 'inbound_panel', $inbound);
     }
 }
 // assemble all tabs
 //
 $text .= Skin::build_tabs($panels);
 // cache, whatever change, for 5 minutes
 Cache::put($cache_id, $text, 'stable', 300);