/**
 * Get a link the the items RSS feed.
 *
 * @package Omeka\Function\View\Navigation
 * @uses items_output_url()
 * @param string $text The text of the link.
 * @param array $params A set of query string parameters to merge in to the href
 * of the link.  E.g., if this link was clicked on the items/browse?collection=1
 * page, and array('foo'=>'bar') was passed as this argument, the new URI would
 * be items/browse?collection=1&foo=bar.
 */
function link_to_items_rss($text = null, $params = array())
{
    if (!$text) {
        $text = __('RSS');
    }
    return '<a href="' . html_escape(items_output_url('rss2', $params)) . '" class="rss">' . $text . '</a>';
}
function mh_auto_discovery_link_tags()
{
    $html = '<link rel="alternate" type="application/rss+xml" title="' . __('New %s: RSS', mh_item_label('plural')) . '" href="' . html_escape(items_output_url('rss2')) . '&per_page=15" />';
    $html .= '<link rel="alternate" type="application/atom+xml" title="' . __('New %s: Atom', mh_item_label('plural')) . '" href="' . html_escape(items_output_url('atom')) . '&per_page=15" />';
    return $html;
}