diff --git a/library/Director/Dashboard/Dashlet/ChoicesDashlet.php b/library/Director/Dashboard/Dashlet/ChoicesDashlet.php new file mode 100644 index 00000000..b4cd0a5f --- /dev/null +++ b/library/Director/Dashboard/Dashlet/ChoicesDashlet.php @@ -0,0 +1,41 @@ +translate('Choices'); + } + + public function getSummary() + { + return $this->translate( + 'Combine multiple templates into meaningful Choices, making live' + . ' easier for your users' + ); + } + + protected function getType() + { + return strtolower(substr( + substr(get_called_class(), strlen(__NAMESPACE__) + 1), + 0, + - strlen('ChoicesDashlet') + )); + } + + public function getUrl() + { + + return 'director/templatechoices/' . $this->getType(); + } + + public function listRequiredPermissions() + { + return array('director/admin'); + } +} diff --git a/library/Director/Dashboard/Dashlet/HostChoicesDashlet.php b/library/Director/Dashboard/Dashlet/HostChoicesDashlet.php new file mode 100644 index 00000000..98bfe32b --- /dev/null +++ b/library/Director/Dashboard/Dashlet/HostChoicesDashlet.php @@ -0,0 +1,7 @@ +