From c568683152aeb44fe46ca73f1ea9686f680f5eb2 Mon Sep 17 00:00:00 2001 From: Sebastian Grewe Date: Thu, 8 Aug 2013 09:59:38 +0200 Subject: [PATCH] Adding empty example for round stat integration Addresses #543 --- public/include/pages/statistics/round.inc.php | 19 +++++++++++++++++++ .../mmcFE/statistics/round/default.tpl | 1 + 2 files changed, 20 insertions(+) create mode 100644 public/include/pages/statistics/round.inc.php create mode 100644 public/templates/mmcFE/statistics/round/default.tpl diff --git a/public/include/pages/statistics/round.inc.php b/public/include/pages/statistics/round.inc.php new file mode 100644 index 00000000..ac0adf66 --- /dev/null +++ b/public/include/pages/statistics/round.inc.php @@ -0,0 +1,19 @@ +isAuthenticated()) { + // Check if we want a specific round or general stats + if (!empty($_REQUEST['round'])) $round = $_REQUEST['round']; + + // Cache detection and content generation + if (!$smarty->isCached('master.tpl', $smarty_cache_key)) { + $debug->append('No cached version available, fetching from backend', 3); + + } else { + $debug->append('Using cached page', 3); + } + $smarty->assign("CONTENT", "default.tpl"); +} +?> diff --git a/public/templates/mmcFE/statistics/round/default.tpl b/public/templates/mmcFE/statistics/round/default.tpl new file mode 100644 index 00000000..271b7a25 --- /dev/null +++ b/public/templates/mmcFE/statistics/round/default.tpl @@ -0,0 +1 @@ +Need content for me