Skip to content

Commit

Permalink
docs: Fix $indexPage param explanations in helpers/html_helper.rst
Browse files Browse the repository at this point in the history
Fix $indexPage parameter explanations in helpers/html_helper.rst
  • Loading branch information
obozdag authored Sep 2, 2024
1 parent c326cd1 commit e0e7702
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions user_guide_src/source/helpers/html_helper.rst
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ The following functions are available:
.. php:function:: img([$src = ''[, $indexPage = false[, $attributes = '']]])
:param string|array $src: Image source URI, or array of attributes and values
:param bool $indexPage: Whether to treat ``$src`` as a routed URI string
:param bool $indexPage: Should indexPage be added to the source path
:param mixed $attributes: Additional HTML attributes
:returns: HTML image element
:returns: An HTML image element
:rtype: string

Lets you create HTML ``<img>`` elements. The first parameter contains the
Expand Down Expand Up @@ -81,14 +81,14 @@ The following functions are available:
:param string $type: Type of the related document
:param string $title: Link title
:param string $media: Media type
:param bool $indexPage: Whether to treat ``$src`` as a routed URI string
:param bool $indexPage: Should indexPage be added to the link path
:param string $hreflang: Hreflang type
:returns: An HTML link element
:rtype: string

Lets you create HTML ``<link>`` elements. This is useful for stylesheet links,
as well as other links. The parameters are *href*, with optional *rel*,
*type*, *title*, *media* and *indexPage*.
*type*, *title*, *media*, *indexPage* and *hreflang*.

*indexPage* is a boolean value that specifies if the *href* should have
the page specified by ``$config['indexPage']`` added to the address it creates.
Expand Down Expand Up @@ -216,7 +216,7 @@ The following functions are available:
:param string $unsupportedMessage: The message to display if the video element is not supported by the browser
:param string $attributes: HTML attributes
:param array $tracks: Use the track function inside an array. See :php:func:`track()` function
:param bool $indexPage:
:param bool $indexPage: Should indexPage be added to the video source path
:returns: An HTML video element
:rtype: string

Expand Down Expand Up @@ -255,7 +255,7 @@ The following functions are available:
:param string $unsupportedMessage: The message to display if the audio element is not supported by the browser
:param string $attributes:
:param array $tracks: Use the track function inside an array. See :php:func:`track()` function
:param bool $indexPage:
:param bool $indexPage: Should indexPage be added to the audio source path
:returns: An HTML audio element
:rtype: string

Expand All @@ -279,7 +279,7 @@ The following functions are available:
:param string $src: The path of the resource to embed
:param bool $type: MIME-type
:param array $attributes: HTML attributes
:param bool $indexPage:
:param bool $indexPage: Should indexPage be added to the source path
:returns: An HTML embed element
:rtype: string

Expand All @@ -293,6 +293,7 @@ The following functions are available:
:param string $data: A resource URL
:param bool $type: Content-type of the resource
:param array $attributes: HTML attributes
:param bool $indexPage: Should indexPage be added to the resource URL
:param array $params: Use the param function inside an array. See :php:func:`param()` function
:returns: An HTML object element
:rtype: string
Expand Down

0 comments on commit e0e7702

Please sign in to comment.