Deprecated: Assigning the return value of new by reference is deprecated in /home/bluestat/public_html/source/index.php on line 477
From e449e59be1473f76a845aa439d963f72f919bedb Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sat, 18 Sep 2010 11:09:45 -0400 Subject: [PATCH] * Add a struct that stores the version information. * Include the version in footer.tpl. --- css/master.css | 6 ++++++ includes/version.php | 36 ++++++++++++++++++++++++++++++++++++ templates/footer.tpl | 5 +++++ templates/header.tpl | 2 +- 4 files changed, 48 insertions(+), 1 deletion(-) create mode 100644 includes/version.php diff --git a/css/master.css b/css/master.css index 9c3aa24..8511838 100644 --- a/css/master.css +++ b/css/master.css @@ -8,6 +8,12 @@ body { margin-bottom: 10px; } +#footer { + font-size: 9pt; + text-align: center; + margin-top: 20px; +} + #userinfo { float: right; } diff --git a/includes/version.php b/includes/version.php new file mode 100644 index 0000000..198f650 --- /dev/null +++ b/includes/version.php @@ -0,0 +1,36 @@ +. + +namespace bugdar; + +class Version +{ + const Major = 2; + const Minor = 0; + const PatchLevel = 0; + + const Stage = 'alpha'; + const StageVersion = 1; + + static public function PresentationString() + { + $string = sprintf('%d.%d.%d', self::Major, self::Minor, self::PatchLevel); + if (self::Stage) { + return sprintf('%s %s %d', $string, self::Stage, self::StageVersion); + } + return $string; + } +} diff --git a/templates/footer.tpl b/templates/footer.tpl index a57a3db..e291df0 100644 --- a/templates/footer.tpl +++ b/templates/footer.tpl @@ -1,3 +1,8 @@ + + \ No newline at end of file diff --git a/templates/header.tpl b/templates/header.tpl index e69c401..2640f49 100644 --- a/templates/header.tpl +++ b/templates/header.tpl @@ -6,7 +6,7 @@ title - Used as the title of the web page. - $[title] - Bugdar 2.0b1 + $[title] - Bugdar2 -- 1.7.11.3