mirror of
git://git.proxmox.com/git/pve-docs.git
synced 2025-03-19 18:50:06 +03: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");
|
||||
|
||||
$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
|
||||
$encHtml = encodeURI($content);
|
||||
$output .= "<div id='pve_embed_data'></div>";
|
||||
|
Loading…
x
Reference in New Issue
Block a user