diff options
author | Christian Cleberg <hello@cleberg.net> | 2023-05-31 21:36:23 -0500 |
---|---|---|
committer | Christian Cleberg <hello@cleberg.net> | 2023-05-31 21:36:23 -0500 |
commit | 6c65601cc4781a4fac00f4ae2a7a8def24c28e72 (patch) | |
tree | 873f6a066dcd47ce42c1370017792d2fdb0cdff7 /src/View/class-template.php | |
parent | cac7a38b16f0f6d08ba7176d52f475cb14036b0a (diff) | |
download | hn-6c65601cc4781a4fac00f4ae2a7a8def24c28e72.tar.gz hn-6c65601cc4781a4fac00f4ae2a7a8def24c28e72.tar.bz2 hn-6c65601cc4781a4fac00f4ae2a7a8def24c28e72.zip |
formatting
Diffstat (limited to 'src/View/class-template.php')
-rw-r--r-- | src/View/class-template.php | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/src/View/class-template.php b/src/View/class-template.php index ea75648..ddcb1fa 100644 --- a/src/View/class-template.php +++ b/src/View/class-template.php @@ -3,14 +3,13 @@ namespace HN\View; /** - * Template View - * - * @author cmc <hello@cleberg.net> - */ +* Template View +* +* @author cmc <hello@cleberg.net> +*/ class Template { - public function __construct(string $canonical_url, string $page_description, string $page_title, string $content_col) - { + public function __construct(string $canonical_url, string $page_description, string $page_title, string $content_col) { $this->canonical_url = $canonical_url; $this->description = $page_description; $this->title = $page_title; @@ -18,8 +17,7 @@ class Template $this->current_year = date("Y"); } - public function echo_template() - { + public function echo_template() { // Get the template file $template_file = 'templates/template.html'; $page = file_get_contents($template_file); @@ -37,3 +35,4 @@ class Template } // EOF + |