dozent_tooltips( null $text = null, string $position = 'up', bool $echo = true )
Generate tooltips attribute at the HTML attr
Description
Example usage:
dozent_tooltips( 'text' );
Parameters
- $text
-
(null) (Optional) Toolptip Text
Default value: null
- $position
-
(string) (Optional) up|down|left|right
Default value: 'up'
- $echo
-
(bool) (Optional)
Default value: true
Return
(mixed|void)
Source
File: includes/template-functions.php
function dozent_tooltips( $text = null, $position = 'up', $echo = true ) { $attr = ""; if ( $text ) { $attr = ' dozent-tooltips-position="' . $position . '" dozent-tooltips="' . $text . '" '; } $attr_generated = apply_filters( 'dozent_tooltips', $attr, $text, $position ); if ( ! $echo ) { return $attr_generated; } echo $attr_generated; }
Changelog
Version | Description |
---|---|
DozentLMS 1.0.0 | Introduced. |