Exemplo n.º 1
0
 private function renderPage()
 {
     $this->displayPageTitle();
     //if is collection check if isn't shop and go to adequate rutine, which will detect level access and will render according with this
     if ($this->collection) {
         !$this->isShop ? Collect::renderCollection() : shop::renderCollection();
     } else {
         if (!$this->levelAccess) {
             if ($this->emptyContent()) {
                 return;
             }
             $this->conf->itemsOnPaginate ? $this->paginateGallery() : $this->fullGallery();
         }
     }
     //if not simple visitor, we add cpanel for editor
     if ($this->levelAccess) {
         count($this->imgsOrder) ? $this->fullGallery() : $this->emptyContent();
         $this->renderEditorPanel();
     }
 }