@@ -27,12 +27,12 @@ The following functions are available:
27
27
.. php :function :: img([$src = ''[, $indexPage = false[, $attributes = '']]])
28
28
29
29
:param string|array $src: Image source URI, or array of attributes and values
30
- :param bool $indexPage: Whether to treat $src as a routed URI string
30
+ :param bool $indexPage: Whether to treat `` $src `` as a routed URI string
31
31
:param mixed $attributes: Additional HTML attributes
32
32
:returns: HTML image tag
33
33
:rtype: string
34
34
35
- Lets you create HTML <img /> tags. The first parameter contains the
35
+ Lets you create HTML `` <img /> `` tags. The first parameter contains the
36
36
image source. Example::
37
37
38
38
echo img('images/picture.jpg');
@@ -79,11 +79,11 @@ The following functions are available:
79
79
echo img($src);
80
80
81
81
There is an optional second parameter to specify the MIME type, otherwise the
82
- function will use your Mimes config to guess.
82
+ function will use your Mimes config to guess::
83
83
84
84
$src = img_data('path/img_without_extension', 'image/png'); // data:image/png;base64,HT5A822...
85
85
86
- Note that $path must exist and be a readable image format supported by the ``data: `` protocol.
86
+ Note that `` $path `` must exist and be a readable image format supported by the ``data: `` protocol.
87
87
This function is not recommended for very large files, but it provides a convenient way
88
88
of serving images from your app that are not web-accessible (e.g., in **public/ **).
89
89
@@ -94,12 +94,12 @@ The following functions are available:
94
94
:param string $type: Type of the related document
95
95
:param string $title: Link title
96
96
:param string $media: Media type
97
- :param bool $indexPage: Whether to treat $src as a routed URI string
97
+ :param bool $indexPage: Whether to treat `` $src `` as a routed URI string
98
98
:param string $hreflang: Hreflang type
99
99
:returns: HTML link tag
100
100
:rtype: string
101
101
102
- Lets you create HTML <link /> tags. This is useful for stylesheet links,
102
+ Lets you create HTML `` <link /> `` tags. This is useful for stylesheet links,
103
103
as well as other links. The parameters are *href *, with optional *rel *,
104
104
*type *, *title *, *media * and *indexPage *.
105
105
@@ -135,11 +135,11 @@ The following functions are available:
135
135
.. php :function :: script_tag([$src = ''[, $indexPage = false]])
136
136
137
137
:param mixed $src: The source name of a JavaScript file
138
- :param bool $indexPage: Whether to treat $src as a routed URI string
138
+ :param bool $indexPage: Whether to treat `` $src `` as a routed URI string
139
139
:returns: HTML script tag
140
140
:rtype: string
141
141
142
- Lets you create HTML <script></script> tags. The parameters is *src *, with optional *indexPage *.
142
+ Lets you create HTML `` <script></script> `` tags. The parameters is *src *, with optional *indexPage *.
143
143
144
144
*indexPage * is a boolean value that specifies if the *src * should have
145
145
the page specified by ``$config['indexPage'] `` added to the address it creates.
@@ -284,8 +284,8 @@ The following functions are available:
284
284
:returns: HTML-formatted ordered list
285
285
:rtype: string
286
286
287
- Identical to :php:func: `ul() `, only it produces the <ol> tag for
288
- ordered lists instead of <ul>.
287
+ Identical to :php:func: `ul() `, only it produces the `` <ol> `` tag for
288
+ ordered lists instead of `` <ul> `` .
289
289
290
290
.. php :function :: video($src[, $unsupportedMessage = ''[, $attributes = ''[, $tracks = [][, $indexPage = false]]]])
291
291
@@ -359,7 +359,7 @@ The following functions are available:
359
359
:returns: HTML-formatted audio element
360
360
:rtype: string
361
361
362
- Identical to :php:func: `video() `, only it produces the <audio> tag instead of <video>.
362
+ Identical to :php:func: `video() `, only it produces the `` <audio> `` tag instead of `` <video> `` .
363
363
364
364
.. php :function :: source($src = ''[, $type = false[, $attributes = '']])
365
365
@@ -369,7 +369,7 @@ The following functions are available:
369
369
:returns: HTML source tag
370
370
:rtype: string
371
371
372
- Lets you create HTML <source /> tags. The first parameter contains the
372
+ Lets you create HTML `` <source /> `` tags. The first parameter contains the
373
373
source source. Example::
374
374
375
375
echo source('movie.mp4', 'video/mp4', 'class="test"');
@@ -384,7 +384,7 @@ The following functions are available:
384
384
:returns: HTML embed tag
385
385
:rtype: string
386
386
387
- Lets you create HTML <embed /> tags. The first parameter contains the
387
+ Lets you create HTML `` <embed /> `` tags. The first parameter contains the
388
388
embed source. Example::
389
389
390
390
echo embed('movie.mov', 'video/quicktime', 'class="test"');
@@ -399,7 +399,7 @@ The following functions are available:
399
399
:returns: HTML object tag
400
400
:rtype: string
401
401
402
- Lets you create HTML <object /> tags. The first parameter contains the
402
+ Lets you create HTML `` <object /> `` tags. The first parameter contains the
403
403
object data. Example::
404
404
405
405
echo object('movie.swf', 'application/x-shockwave-flash', 'class="test"');
@@ -433,7 +433,7 @@ The following functions are available:
433
433
:returns: HTML param tag
434
434
:rtype: string
435
435
436
- Lets you create HTML <param /> tags. The first parameter contains the
436
+ Lets you create HTML `` <param /> `` tags. The first parameter contains the
437
437
param source. Example::
438
438
439
439
echo param('movie.mov', 'video/quicktime', 'class="test"');
@@ -471,7 +471,7 @@ The following functions are available:
471
471
// <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
472
472
473
473
The following is a list of the pre-defined doctype choices. These are configurable,
474
- pulled from ` application /Config/DocTypes.php` , or they could be over-ridden in your ` .env ` configuration.
474
+ pulled from ** app /Config/DocTypes.php** , or they could be over-ridden in your ** .env ** configuration.
475
475
476
476
=============================== =================== ==================================================================================================================================================
477
477
Document type Option Result
0 commit comments