Difference between revisions of "Template:Toc"

From The Official Visionaire Studio: Adventure Game Engine Wiki
m
m
Line 39: Line 39:
  
 
</script>
 
</script>
</html>
+
<?php
{{i18n| <html><?php
 
  
 
$filtered_words = array(
 
$filtered_words = array(
Line 61: Line 60:
 
$url="http://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
 
$url="http://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
 
$filtered_text = str_replace($filtered_words, '', $url);
 
$filtered_text = str_replace($filtered_words, '', $url);
 
+
?>
echo $filtered_text;
+
</html>
?></html> }}
+
{{i18n| <html><?php echo $filtered_text; ?></html> }}
 
<div class="ftoc"><div class="ftoc_content">__TOC__</div></div>
 
<div class="ftoc"><div class="ftoc_content">__TOC__</div></div>
 
</includeonly>
 
</includeonly>

Revision as of 19:24, 30 October 2014

Generates a floating Table of contents menu in a fixed position on the left hand side of the screen.