From 165da619b64c6ade34366b99ef87758ef547dbdb Mon Sep 17 00:00:00 2001
From: Derek Allard Further examples:
-link('favicon.ico', 'shortcut icon', 'image/ico');
- // <link href="http://site.com/favicon.ico" rel="shortcut icon" type="image/ico" />
Additionally, an associative array can be passed to the link() function for complete control over all attributes and values.
+
+ $link = array(
+ // <link href="http://site.com/css/printer.css" rel="stylesheet" type="text/css" media="print" />
'href' => 'css/printer.css',
'rel' => 'stylesheet',
'type' => 'text/css',
@@ -105,8 +104,17 @@ $link = array(
);
link($link);
- // <link href="http://site.com/css/printer.css" rel="stylesheet" type="text/css" media="print" />
The stylesheet() function simplifies the linking of CSS into your document. The arguments are stylesheet(href, optional rel, optional title, optional media).
+For more complete control over the output of the tag, you may want to use the link() function.
+stylesheet('foo.css');
+ // <link href="http://site.com/foo.css" rel="stylesheet" type="text/css" media="screen" />
+
+stylesheet('foo.css', 'alternate stylesheet', 'black and white version', 'screen') .'<br>';
+ // <link href="http://site.com/foo.css" rel="alternate stylesheet" type="text/css" media="screen" title="black and white version" />
+
Generates non-breaking spaces ( ) based on the number you submit. Example:
echo nbs(3);
--
cgit v1.2.3-24-g4f1b