Definition at line 59 of file class.ilMWParserAdapter.php.
◆ addExternalLink()
ilMWFakery::addExternalLink |
( |
| ) |
|
◆ getNamespace()
ilMWFakery::getNamespace |
( |
| ) |
|
◆ getSkin()
◆ makeExternalLink()
ilMWFakery::makeExternalLink |
( |
|
$url, |
|
|
|
$text, |
|
|
|
$escape = true , |
|
|
|
$linktype = '' , |
|
|
|
$ns = null |
|
) |
| |
Definition at line 64 of file class.ilMWParserAdapter.php.
References $text, $url, and array.
77 $urlpath = parse_url(
$url, PHP_URL_PATH);
78 $pi = pathinfo($urlpath);
79 if (in_array(strtolower($pi[
"extension"]),
array(
"jpg",
"jpeg",
"gif",
"png")))
81 return '<img src="'.$url.
'" border="0" />';
85 return '<a href="'.$url.
'" target="_blank" rel="noopener">'.
$text.
'</a>';
Create styles array
The data for the language used.
◆ markNoConversion()
ilMWFakery::markNoConversion |
( |
|
$text, |
|
|
|
$noParse = false |
|
) |
| |
The documentation for this class was generated from the following file: