mirror of
https://git.proxmox.com/git/pve-docs
synced 2025-08-15 08:16:15 +00:00
pvedocs-include.php: add noscript tag
This commit is contained in:
parent
ad2bfc41ae
commit
d80b5cbdb5
@ -49,6 +49,12 @@ function efPvedocsParserFunction_Render($parser, $param1 = '', $param2 = '') {
|
|||||||
|
|
||||||
$content = file_get_contents("/usr/share/pve-docs/$param1");
|
$content = file_get_contents("/usr/share/pve-docs/$param1");
|
||||||
|
|
||||||
|
$output = "<noscript><div><p>" .
|
||||||
|
"This page requires java-script. To view " .
|
||||||
|
"this page without java-script goto " .
|
||||||
|
"<a href='/pve-docs/$param1'>$param1</a>" .
|
||||||
|
"</div></noscript>\n";
|
||||||
|
|
||||||
# hack to inject html without modifications my mediawiki parser
|
# hack to inject html without modifications my mediawiki parser
|
||||||
$encHtml = encodeURI($content);
|
$encHtml = encodeURI($content);
|
||||||
$output .= "<div id='pve_embed_data'></div>";
|
$output .= "<div id='pve_embed_data'></div>";
|
||||||
|
Loading…
Reference in New Issue
Block a user