示例#1
0
/**
 * Create an AnewtXHTMLLink element for RSS feeds.
 * \param $href The link target used for the href attribute
 * \param $title The value for the title attribute
 * \param $attributes Additional element attributes (optional)
 */
function ax_link_rss($href, $title, $attributes = null)
{
    $element = new AnewtXHTMLLink($attributes);
    $element->set_attribute('href', $href);
    $element->set_attribute('title', $title);
    $element->set_attribute('rel', 'alternate');
    $element->set_attribute('type', 'application/rss+xml');
    return $element;
}
示例#2
0
/**
 * Create an AnewtXHTMLLink element for favicons.
 * \param $href The link target used for the \c href attribute
 * \param $attributes Additional element attributes (optional)
 */
function ax_link_favicon($href, $attributes = null)
{
    $element = new AnewtXHTMLLink($attributes);
    $element->set_attribute('rel', 'icon');
    $element->set_attribute('type', 'image/vnd.microsoft.icon');
    $element->set_attribute('href', $href);
    return $element;
}