$html = '<ul class="nav social-icons clearfix">'; foreach ($social_icons_urls as $icon_url) { $icon_url_array = explode('|', $icon_url); $url = null; if (count($icon_url_array) == 1) { $icon = $icon_url_array[0]; } else { $icon = $icon_url_array[0]; $url = $icon_url_array[1]; } // end if/else // Build the line item if (isset($url) || '' != esc_url($icon)) { $html .= '<li>'; if (strpos($icon, 'rss.png') > 0) { $url = standard_get_rss_feed_url(); } // end if/else // if the image has a URL, setup the anchor... if ('' != $url) { $html .= '<a href="' . esc_url(str_replace('https://', 'http://', $url)) . '" class="fademe" target="_blank">'; } // end if // display the image $html .= '<img src="' . esc_url($icon) . '" alt="" />'; // ...and if the image has a URL, close the anchor if ('' != $url) { $html .= '</a>'; } // end if unset($url);
/** * If the user has set a FeedBurner URL in the Global Options, then we'll * redirect all traffic from the existing WordPress feed to FeedBurner. * * @since 3.0 * @version 3.0 */ function standard_redirect_rss_feeds() { global $feed; // If we're not on a feed or we're requesting feedburner then stop the redirect if (!is_feed() || preg_match('/feedburner/i', $_SERVER['HTTP_USER_AGENT']) || standard_is_offline()) { return; } // end if // Otherwise, get the RSS feed from the user's settings $rss_feed_url = standard_get_rss_feed_url(); // If they have setup feedburner, let's redirect them if (strpos($rss_feed_url, 'feedburner') > 0 && '' != $rss_feed_url) { switch ($feed) { case 'feed': case 'rdf': case 'rss': case 'rss2': case 'atom': if ('' != $rss_feed_url) { header("Location: " . $rss_feed_url); die; } // end if break; default: break; } // end switch/case } // end if }