mirror of
https://github.com/gtbu/Typesetter-5.3-p8.git
synced 2024-11-11 01:44:02 +01:00
21 lines
543 B
PHP
21 lines
543 B
PHP
<?php
|
|
/**
|
|
* Customize content variables that are replaced at output. For Typesetter 5.1-b1 and newer
|
|
*/
|
|
|
|
defined('is_running') or die('Not an entry point...');
|
|
|
|
class ReplaceCVs {
|
|
|
|
static function ReplaceContentVars($vars) {
|
|
|
|
// input keys names without the leading $ but use them with it in the content
|
|
$vars['myNameIs'] = '<em>John Doe</em>'; // use $myNameIs in text content
|
|
|
|
// you may also unset or change preset variables
|
|
// $vars['fileModTime'] = '<strong>i won’t tell!</strong>';
|
|
|
|
return $vars;
|
|
}
|
|
|
|
}
|