} ?> </channel> </rss> <?php $xml = ob_get_contents(); ob_end_clean(); return $xml; } // set new filter to feed content add_filter('pre_option_rss_use_excerpt', '__return_zero'); // invalidate cache when necessary add_action('init', function () { $actions = array('publish_post', 'deleted_post', 'save_post', 'trashed_post', 'private_to_published', 'inpsmf_update_settings'); foreach ($actions as $action) { add_action($action, '\\Inpsyde\\MultisiteFeed\\invalidate_cache'); } }); // hijack feed into WordPress add_action('init', function () { $slug = Settings\get_site_option('url_slug'); if (!$slug) { return; } $end_of_request_uri = substr($_SERVER['REQUEST_URI'], strlen($slug) * -1); if ($slug === $end_of_request_uri) { display_feed(); exit; } });
<p>There are many more plugins that are not available on the Wordpress site. These can be updated through the Update plugin I've written. It will be available and ready through the addons page here.</p> </div> <div style="width:240px;float:right;"> Powered By <a href="http://www.siteground.com/recommended?referrer_id=6975888" target="_blank">SiteGround.com</a> <h4>Plugin Support Forum</h4> <ol> <?php display_feed('https://wordpress.org/support/rss/plugin/stop-spammer-registrations-plugin'); ?> </ol> <h4>Posts at BlogsEye.com</h4> <ol> <?php display_feed('http://www.blogseye.com/feed.xml'); ?> </ol> </div> </div> <?php function display_feed($url) { // quick and dirty get_rss replacement include_once ABSPATH . WPINC . '/feed.php'; // Get a SimplePie feed object from the specified feed source. $rss = fetch_feed($url); $maxitems = 0; if (!is_wp_error($rss)) { // Checks that the object is created correctly
/** * html_index() * Builds the site map index * @access private */ function html_index() { global $phpEx, $phpbb_root_path, $user, $template, $cache, $phpbb_seo; if ($this->actions['html_news_list']) { // Add index page in navigation links $template->assign_block_vars('navlinks', array('FORUM_NAME' => $user->lang['HTML_MAP'], 'U_VIEW_FORUM' => append_sid($this->html_config['html_url'] . $this->url_config['html_default']))); $this->url_config['current'] = $this->html_config['html_url'] . $this->url_config['html_news_default']; $this->actions['is_auth'] = true; $this->actions['is_active'] = !empty($this->gym_config['html_rss_news_url']); $params = array('url' => str_replace('&', '&', $this->gym_config['html_rss_news_url']), 'desc' => true, 'html' => true, 'limit' => (int) $this->gym_config['html_rss_news_limit']); display_feed($params); $template->assign_vars(array('GYM_RSS_SLIDE_SP' => false)); $template->set_filenames(array('index_data' => 'gym_sitemaps/gym_link_body.html')); } else { $cache_file = '_gym_html_map_' . $user->data['user_lang']; if (($this->output_data['module_data'] = $cache->get($cache_file)) === false) { $this->load_modules('html_index'); $cache->put($cache_file, $this->output_data['module_data']); } $this->output_data['page_title'] = sprintf($user->lang['HTML_MAP_OF'], $this->html_config['html_sitename']); $this->actions['is_active'] = $this->actions['is_auth'] = true; $this->url_config['current'] = $this->html_config['html_url'] . $this->url_config['html_default']; $template->set_filenames(array('index_data' => 'gym_sitemaps/index_list.html')); if (!empty($this->output_data['module_data'])) { foreach ($this->output_data['module_data'] as $module_name => $module_data) { // First modules $template->assign_block_vars('module', array('TITLE' => $module_data['title'], 'NEWS_TITLE' => sprintf($user->lang['HTML_NEWS_OF'], $module_data['title']), 'MAP_TITLE' => sprintf($user->lang['HTML_MAP_OF'], $module_data['title']), 'DESC' => $module_data['desc'], 'IMG' => $module_data['img'], 'MAP_URL' => append_sid($module_data['map_url']), 'NEWS_URL' => append_sid($module_data['news_url']))); // Then the module maps & news pages foreach ($module_data['links'] as $data) { $template->assign_block_vars('module.links', array('MAP_TITLE' => $data['map_title'], 'MAP_URL' => append_sid($data['map_url']), 'NEWS_TITLE' => $data['news_title'], 'NEWS_URL' => append_sid($data['news_url']))); } } } } $template->assign_vars(array('HTML_SITENAME' => $this->html_config['html_sitename'], 'HTML_SITEDESC' => $this->html_config['html_site_desc'], 'HTML_URL' => $this->html_config['html_allow_map'] ? append_sid($this->html_config['html_url'] . $this->url_config['html_default']) : '', 'HTML_NEWS_TITLE' => sprintf($user->lang['HTML_NEWS_OF'], $this->html_config['html_sitename']), 'HTML_NEWS_URL' => $this->html_config['html_allow_news'] ? append_sid($this->html_config['html_url'] . $this->url_config['html_news_default']) : '', 'NEWS_IMG_SRC' => $this->path_config['gym_img_url'] . 'html_news.gif', 'ROOT_PATH' => $phpbb_root_path)); $return = $template->assign_display('index_data', '', true); return $return; }