" />
$more_link_text", $more_link_text); if (isset($wp->query_vars['announce']) && $wp->query_vars['announce']) { if (preg_match('/<\/span>/', $content, $matches)) { $content = substr($content, 0, strpos($content, $matches[0], 1)); return $content . $more_link; } return $content; } $pos = strpos($content, "", 1); if ($pos !== false) { return substr($content, 0, $pos) . $more_link; } return $content; } /** * @param $link * @return string */ function link($args = array()) { if (!current_theme_supports('automatic-feed-links')) return; if (!get_option('rssopt_announce_rss_link') && !get_option('rssopt_full_rss_link')) return; $defaults = array( /* translators: Separator between blog name and feed type in feed links */ 'separator' => _x('»', 'feed link'), /* translators: 1: blog title, 2: separator (raquo) */ 'feedtitle' => get_option('rssopt_announce_feed_name'), ); $args = wp_parse_args($args, $defaults); $link = get_feed_link(); if (false != strpos($link, '?')) { $link .= '&announce=1'; } else { $link .= '?announce=1'; } echo '\n"; } /** * register query vars * * @param array $vars * @return array */ function query_vars($vars) { $vars[] = 'announce'; return $vars; } /** * noredirect * * @return array */ function noredirect() { global $wp; if (isset($wp->query_vars['announce']) && $wp->query_vars['announce']) { remove_action('template_redirect', 'ol_feed_redirect'); } } } aRssMore::init();