diff --git a/index.php b/index.php index 23138d1..415b310 100755 --- a/index.php +++ b/index.php @@ -355,44 +355,10 @@ function gmi2html($capsule, $body, $lang, $urlgem, $favicon) break; } } - $html = ' - - - - - '.htmlentities($title.' | '.$urlgem).' - - - - '; - if(count($tocs)>1) - { - $html.= ''; - } - $html.= ' - - - - - - - -
- '.implode("\n",$lines).' -
-
🔝
- - - '; + $style = file_get_contents(__DIR__.'/style.css'); + ob_start(); + include "template.php"; + $html = ob_get_contents(); + ob_end_clean(); return $html; } diff --git a/template.php b/template.php new file mode 100644 index 0000000..5e39089 --- /dev/null +++ b/template.php @@ -0,0 +1,41 @@ + + + + + + <?php echo $title; ?> + + + + + 1) + { + ?> + + + + + + + + + +
+ +
+
🔝
+ + +