public function render()
 {
     $template = parent::initTemplate(dirname(__FILE__) . '/virtualDriveFolderContextMenu.latte');
     $template->id = $this->treeNodeId;
     $template->clipboard = $this->getParent()->clipboard;
     $template->render();
 }
 public function render()
 {
     $template = parent::initTemplate(dirname(__FILE__) . '/structureManagerContextMenu.latte');
     $template->treeNodeId = $this->treeNodeId;
     $labels = $this->presenter->pageManagerService->getAllLabels($this->parent->getLanguage());
     if ($this->visible) {
         $params = array('treeNodeId' => $this->treeNodeId, 'lang' => $this->parent->getLanguage(), 'searchAllTimeZones' => TRUE);
         $page = $this->presenter->pageManagerService->getPage($params);
         if (!empty($page)) {
             //$assignedActiveLabels = $page->labels['active'];
             //$passiveLabels = $page->labels['passive']['all'];
             //$assignedPassiveLabels = $page->labels['passive']['assigned'];
             $parentPage = $page->parent;
             // TODO: pokud $parentPage je NULL,
             // pak $parentTreeNodeId nastavit podle jazykove verze...1 je root of default language
             //                $parentTreeNodeId = $parentPage->treeNodeId;
             $template->page = $page;
             //        if ($this->presenter['clipboard']->containsKey($this->treeNodeId) && $this->presenter['clipboard']->isInCutMode()) {
             //            $template->blockInsertSection = TRUE;
             //        } else {
             //            $template->blockInsertSection = FALSE;
             //        }
             $template->blockInsertSection = FALSE;
             //                $template->parentTreeNodeId = $parentTreeNodeId;
             $template->labels = $labels;
             //                $template->assignedActiveLabels = $assignedActiveLabels;
             //
             //                $template->passiveLabels = $passiveLabels;
             //                $template->assignedPassiveLabels = $assignedPassiveLabels;
             $template->labelAdminMode = $this->parent->sessionSection->labelMode == 'admin';
             $template->render();
         }
     }
 }
 public function render()
 {
     $template = parent::initTemplate(dirname(__FILE__) . '/optionsContextMenu.latte');
     $template->labelViewGlobal = $this->parent->sessionSection->labelViewGlobal;
     $template->labelViewLocal = $this->parent->sessionSection->labelViewLocal;
     $template->labelAdminMode = $this->parent->sessionSection->labelMode == 'admin';
     $template->render();
 }
 public function render()
 {
     $template = parent::initTemplate(dirname(__FILE__) . '/virtualDriveGalleryContextMenu.latte');
     $template->id = $this->treeNodeId;
     $template->render();
 }