Пример #1
0
 public function workspaceSkin()
 {
     $workspace = $this->workspaceSource->getWorkspace();
     if (null !== $workspace) {
         $workspaceInfo = Workspaces::get($workspace->getKey());
         return !empty($workspaceInfo['skin']) ? $workspaceInfo['skin'] : 'blue';
     }
     return 'blue';
 }
Пример #2
0
 public function showMenuAction()
 {
     $workspace = $this->workspaceSource->getWorkspace();
     if (null === $workspace) {
         return '';
     }
     $event = new WorkspaceEvent($workspace);
     $this->dispatcher->dispatch($workspace->getWorkspaceEvent(), $event);
     $this->dispatcher->dispatch(CantigaEvents::WORKSPACE_GENERAL, $event);
     return $this->tpl->render('CantigaCoreBundle:Components:workspace-menu.html.twig', array('workspace' => $workspace, 'workspaceInfo' => Workspaces::get($workspace->getKey()), 'currentWorkgroup' => $event->getCurrentWorkgroup(), 'currentPage' => $event->getCurrentPage()));
 }
Пример #3
0
 public function showBreadcrumbs(ShowBreadcrumbsEvent $event)
 {
     if (null !== $this->controller) {
         $event->setBreadcrumbs($this->controller->breadcrumbs()->fetch($this->workspaceSource->getWorkspace()));
     }
 }