Beispiel #1
0
 public function getPortalTemplate()
 {
     // include and show votes and tests
     if (get_config('VOTE_ENABLE')) {
         $controller = new PluginController(new StudipDispatcher());
         $response = $controller->relay('questionnaire/widget/start')->body;
         $template = $GLOBALS['template_factory']->open('shared/string');
         $template->content = $response;
         if ($GLOBALS['perm']->have_perm('root')) {
             $navigation = new Navigation('', 'admin_vote.php', array('page' => 'overview', 'showrangeID' => 'studip'));
             $navigation->setImage(Icon::create('admin', 'clickable', ["title" => _('Umfragen bearbeiten')]));
             $template->icons = array($navigation);
         }
         return $template;
     }
 }