Exemplo n.º 1
0
/**
 * CHANGE DOCUMENTATION! if you just want the url you should use shortcode events_rss_uri
 * @param array $atts
 * @return string
 */
function em_get_rss_link_shortcode($atts)
{
    $atts = shortcode_atts(array('justurl' => 0, 'text' => 'RSS'), $atts);
    if ($atts['justurl']) {
        return EM_RSS_URI;
    } else {
        return em_get_rss_link($atts['text']);
    }
}
Exemplo n.º 2
0
/**
 * Prints the result of em_get_rss_link()
 * @param string $text
 * @uses em_get_rss_link()
 */
function em_rss_link($text = "RSS")
{
    echo em_get_rss_link($text);
}