retrieve("rss", "rss_path,rss_url", " rss_path = '".e_CURRENT_PLUGIN."' LIMIT 1")) { $caption = e107::getParser()->lanVars(LAN_PLUGIN_RSS_SUBSCRIBE_TO, deftrue('LAN_PLUGIN_'.strtoupper(e_CURRENT_PLUGIN).'_NAME')); $type = $res['rss_url']; $plug = $res['rss_path']; } elseif($sql->select("rss", "rss_path", " rss_path = 'news' LIMIT 1")) // Fall back to news, if available. { $caption = LAN_PLUGIN_RSS_SUBSCRIBE; $type = 'news'; $plug = 'news'; } if(!empty($type)) { $arr = array('rss_topicid'=> $topic, 'rss_url'=>$type); if(deftrue('BOOTSTRAP')) // v2.x { $text = "
"; } else // v1.x { $path = e_PLUGIN_ABS."rss_menu/"; $description = array( 'chatbox' => RSS_MENU_L7, 'download' => RSS_MENU_L9, 'bugtracker' => RSS_MENU_L8, 'forumtopic' => RSS_MENU_L6, 'forumname' => RSS_MENU_L5, 'forumposts' => '', 'comments' => RSS_MENU_L4, 5 => RSS_MENU_L4, 6 => RSS_MENU_L5, 7 => RSS_MENU_L6, 9 => RSS_MENU_L7, 10 => RSS_MENU_L8, 12 => RSS_MENU_L9, ); $text = " "; $caption = RSS_MENU_L2; } e107::getRender()->tablerender($caption, $text, 'rss_menu'); }