5,7 → 5,6 |
// taking the template and inserting following data: |
// - Replace %%CONTENT%% with content |
// - Replace %%TITLE%% with the title |
// - Replace %%MODIFICATION_DATE%% with the modification date of the raw content file |
|
// ----------------------------------------------------------------------------- |
|
93,7 → 92,6 |
// Replace template strings |
$cont = str_replace('%%CONTENT%%', file_get_contents($input_file), $cont); |
$cont = str_replace('%%TITLE%%', $title, $cont); |
$cont = str_replace('%%MODIFICATION_DATE%%', date('d M Y', filemtime($input_file)), $cont); |
if ($output_file == __DIR__ . '/../' . 'index.htm') { |
$cont = str_replace('%%FOOTER_TEXT%%', ' '/*'This site is sponsored by <a href="https://www.orange.com">Orange S.A.</a>'*/, $cont); |
} else { |