Skip to content

Commit 81bb21d

Browse files
authored
Merge pull request #5276 from kenjis/fix-html_helper.rst
docs: fix html_helper.rst
2 parents fab038d + ab71b75 commit 81bb21d

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

user_guide_src/source/helpers/html_helper.rst

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,12 @@ The following functions are available:
2727
.. php:function:: img([$src = ''[, $indexPage = false[, $attributes = '']]])
2828
2929
: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
3131
:param mixed $attributes: Additional HTML attributes
3232
:returns: HTML image tag
3333
:rtype: string
3434

35-
Lets you create HTML <img /> tags. The first parameter contains the
35+
Lets you create HTML ``<img />`` tags. The first parameter contains the
3636
image source. Example::
3737

3838
echo img('images/picture.jpg');
@@ -79,11 +79,11 @@ The following functions are available:
7979
echo img($src);
8080

8181
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::
8383

8484
$src = img_data('path/img_without_extension', 'image/png'); // data:image/png;base64,HT5A822...
8585

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.
8787
This function is not recommended for very large files, but it provides a convenient way
8888
of serving images from your app that are not web-accessible (e.g., in **public/**).
8989

@@ -94,12 +94,12 @@ The following functions are available:
9494
:param string $type: Type of the related document
9595
:param string $title: Link title
9696
: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
9898
:param string $hreflang: Hreflang type
9999
:returns: HTML link tag
100100
:rtype: string
101101

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,
103103
as well as other links. The parameters are *href*, with optional *rel*,
104104
*type*, *title*, *media* and *indexPage*.
105105

@@ -135,11 +135,11 @@ The following functions are available:
135135
.. php:function:: script_tag([$src = ''[, $indexPage = false]])
136136
137137
: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
139139
:returns: HTML script tag
140140
:rtype: string
141141

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*.
143143

144144
*indexPage* is a boolean value that specifies if the *src* should have
145145
the page specified by ``$config['indexPage']`` added to the address it creates.
@@ -284,8 +284,8 @@ The following functions are available:
284284
:returns: HTML-formatted ordered list
285285
:rtype: string
286286

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>``.
289289

290290
.. php:function:: video($src[, $unsupportedMessage = ''[, $attributes = ''[, $tracks = [][, $indexPage = false]]]])
291291
@@ -359,7 +359,7 @@ The following functions are available:
359359
:returns: HTML-formatted audio element
360360
:rtype: string
361361

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>``.
363363

364364
.. php:function:: source($src = ''[, $type = false[, $attributes = '']])
365365
@@ -369,7 +369,7 @@ The following functions are available:
369369
:returns: HTML source tag
370370
:rtype: string
371371

372-
Lets you create HTML <source /> tags. The first parameter contains the
372+
Lets you create HTML ``<source />`` tags. The first parameter contains the
373373
source source. Example::
374374

375375
echo source('movie.mp4', 'video/mp4', 'class="test"');
@@ -384,7 +384,7 @@ The following functions are available:
384384
:returns: HTML embed tag
385385
:rtype: string
386386

387-
Lets you create HTML <embed /> tags. The first parameter contains the
387+
Lets you create HTML ``<embed />`` tags. The first parameter contains the
388388
embed source. Example::
389389

390390
echo embed('movie.mov', 'video/quicktime', 'class="test"');
@@ -399,7 +399,7 @@ The following functions are available:
399399
:returns: HTML object tag
400400
:rtype: string
401401

402-
Lets you create HTML <object /> tags. The first parameter contains the
402+
Lets you create HTML ``<object />`` tags. The first parameter contains the
403403
object data. Example::
404404

405405
echo object('movie.swf', 'application/x-shockwave-flash', 'class="test"');
@@ -433,7 +433,7 @@ The following functions are available:
433433
:returns: HTML param tag
434434
:rtype: string
435435

436-
Lets you create HTML <param /> tags. The first parameter contains the
436+
Lets you create HTML ``<param />`` tags. The first parameter contains the
437437
param source. Example::
438438

439439
echo param('movie.mov', 'video/quicktime', 'class="test"');
@@ -471,7 +471,7 @@ The following functions are available:
471471
// <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
472472

473473
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.
475475

476476
=============================== =================== ==================================================================================================================================================
477477
Document type Option Result

0 commit comments

Comments
 (0)