anewt-developers team mailing list archive
-
anewt-developers team
-
Mailing list archive
-
Message #00066
[Branch ~uws/anewt/anewt.uws] Rev 1687: [xhtml] Add ax_link_favicon()
------------------------------------------------------------
revno: 1687
committer: Wouter Bolsterlee <uws@xxxxxxxxx>
branch nick: anewt.uws
timestamp: Sun 2009-07-19 21:43:40 +0200
message:
[xhtml] Add ax_link_favicon()
modified:
xhtml/api.lib.php
=== modified file 'xhtml/api.lib.php'
--- xhtml/api.lib.php 2009-03-26 16:29:27 +0000
+++ xhtml/api.lib.php 2009-07-19 19:43:40 +0000
@@ -735,6 +735,20 @@
}
/**
+ * Create an AnewtXHTMLLink element for favicons.
+ * \param $href The link target used for the 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;
+}
+
+/**
* Create an AnewtXHTMLBase element.
* \param $attributes Additional element attributes (optional)
*/
--
lp:anewt
https://code.launchpad.net/~uws/anewt/anewt.uws
Your team Anewt developers is subscribed to branch lp:anewt.
To unsubscribe from this branch go to https://code.launchpad.net/~uws/anewt/anewt.uws/+edit-subscription.