diff options
| author | Carson Fleming <cflems@cflems.net> | 2017-07-08 16:05:25 -0700 |
|---|---|---|
| committer | Carson Fleming <cflems@cflems.net> | 2017-07-08 16:05:25 -0700 |
| commit | 2f14a6bc40fefc5ef573e45348050071708dff71 (patch) | |
| tree | 9687519c27e1063c888db35c0d0c8048cdee0fe5 /inc | |
| parent | ff73103903dd3417e1a4d2b180e6d652b548a9de (diff) | |
| download | bulletin-2f14a6bc40fefc5ef573e45348050071708dff71.tar.gz | |
Automated copyright notice update
Diffstat (limited to 'inc')
| -rw-r--r-- | inc/app_eml.tpl | 2 | ||||
| -rw-r--r-- | inc/changed.tpl | 2 | ||||
| -rw-r--r-- | inc/eml.tpl | 2 | ||||
| -rw-r--r-- | inc/fatal.tpl | 2 | ||||
| -rw-r--r-- | inc/forgot.tpl | 2 | ||||
| -rw-r--r-- | inc/functions.php | 4 | ||||
| -rw-r--r-- | inc/hire_eml.tpl | 2 |
7 files changed, 10 insertions, 6 deletions
diff --git a/inc/app_eml.tpl b/inc/app_eml.tpl index 779e242..c66caf2 100644 --- a/inc/app_eml.tpl +++ b/inc/app_eml.tpl @@ -17,6 +17,6 @@ </div> <div style="width: 450px; height: 1px; margin: auto; background: #dddddd;"></div> [config:eml_footer] - <p style="color: #dddddd; margin: 4em auto auto auto; text-align: center; font-size: x-small; font-family: sans-serif;">Copyright © 2016 Bulletin Team</p> + <p style="color: #dddddd; margin: 4em auto auto auto; text-align: center; font-size: x-small; font-family: sans-serif;">[copyright]</p> </body> </html> diff --git a/inc/changed.tpl b/inc/changed.tpl index 60c1cae..653a2f4 100644 --- a/inc/changed.tpl +++ b/inc/changed.tpl @@ -18,6 +18,6 @@ </div> <div style="width: 450px; height: 1px; margin: auto; background: #dddddd;"></div> [config:eml_footer] - <p style="color: #dddddd; margin: 4em auto auto auto; text-align: center; font-size: x-small; font-family: sans-serif;">Copyright © 2016 Bulletin Team</p> + <p style="color: #dddddd; margin: 4em auto auto auto; text-align: center; font-size: x-small; font-family: sans-serif;">[copyright]</p> </body> </html> diff --git a/inc/eml.tpl b/inc/eml.tpl index 49cd743..bdf64a2 100644 --- a/inc/eml.tpl +++ b/inc/eml.tpl @@ -18,6 +18,6 @@ </div> <div style="width: 450px; height: 1px; margin: auto; background: #dddddd;"></div> [config:eml_footer] - <p style="color: #dddddd; margin: 4em auto auto auto; text-align: center; font-size: x-small; font-family: sans-serif;">Copyright © 2016 Bulletin Team</p> + <p style="color: #dddddd; margin: 4em auto auto auto; text-align: center; font-size: x-small; font-family: sans-serif;">[copyright]</p> </body> </html> diff --git a/inc/fatal.tpl b/inc/fatal.tpl index 610b2b4..c8e9893 100644 --- a/inc/fatal.tpl +++ b/inc/fatal.tpl @@ -18,6 +18,6 @@ [tpl:label] </a> </p> - <p class="copy">Copyright © 2016 Bulletin Team</p> + <p class="copy">[copyright]</p> </body> </html> diff --git a/inc/forgot.tpl b/inc/forgot.tpl index 38e109f..96511da 100644 --- a/inc/forgot.tpl +++ b/inc/forgot.tpl @@ -19,6 +19,6 @@ <div style="width: 450px; height: 1px; margin: auto; background: #dddddd;"></div> <p style="margin-top: 2em; text-align: center; font-family: sans-serif; font-size: 12pt; color: #aaaaaa;">Welcome back to Bulletin!</p> [config:eml_footer] - <p style="color: #dddddd; margin: 4em auto auto auto; text-align: center; font-size: x-small; font-family: sans-serif;">Copyright © 2016 Bulletin Team</p> + <p style="color: #dddddd; margin: 4em auto auto auto; text-align: center; font-size: x-small; font-family: sans-serif;">[copyright]</p> </body> </html> diff --git a/inc/functions.php b/inc/functions.php index 430a6d6..34b74aa 100644 --- a/inc/functions.php +++ b/inc/functions.php @@ -1,9 +1,13 @@ <?php +function copy_notice () { + return 'Copyright © 2016-'.date('Y').' Bulletin Team'; +} function eml_tpl ($options) { return tpl($options, 'eml.tpl'); } function tpl ($options, $file) { $tpl_htm = file_get_contents(INCLUDE_PATH.$file); + $tpl_htm = str_replace('[copyright]', copy_notice(), $tpl_htm); $tpl_htm = preg_replace_callback('/\[tpl:([^\]]*)\]/i', function ($matches) use (&$options) { if (!isset($options[$matches[1]])) return ''; diff --git a/inc/hire_eml.tpl b/inc/hire_eml.tpl index 16b46ed..76b88e4 100644 --- a/inc/hire_eml.tpl +++ b/inc/hire_eml.tpl @@ -18,6 +18,6 @@ </div> <div style="width: 450px; height: 1px; margin: auto; background: #dddddd;"></div> [config:eml_footer] - <p style="color: #dddddd; margin: 4em auto auto auto; text-align: center; font-size: x-small; font-family: sans-serif;">Copyright © 2016 Bulletin Team</p> + <p style="color: #dddddd; margin: 4em auto auto auto; text-align: center; font-size: x-small; font-family: sans-serif;">[copyright]</p> </body> </html> |
