public function index() { // auth Auth::isAdminAuthorized($this->signedUser, 'admin.user', true, '/'); // view $this->setTpl(); // layout $this->tplLayout->set('column1', Template::loading()); // master $this->tplMaster->set('layout', $this->tplLayout->render('layout-1-col')); $this->tplMaster->set('jsLauncher', 'userView'); return $this->tplMaster->render('tpl-default'); }
public function index() { // auth Auth::isAdminAuthorized($this->signedUser, 'admin.media', true, '/'); // view $this->setTpl(); // nav // nav $tplTree = new Template(Template::SITE, ['admin', 'media']); $tree = \Rebond\Core\Folder\Data::buildTree(); $tplTree->set('tree', $tree); // layout $this->tplLayout->set('column1', Template::loading()); // master $this->tplMaster->set('navSide', $tplTree->render('tree')); $this->tplMaster->set('layout', $this->tplLayout->render('layout-1-col')); $this->tplMaster->set('jsLauncher', 'mediaView'); return $this->tplMaster->render('tpl-default'); }
public function component() { // auth Auth::isAdminAuthorized($this->signedUser, 'admin.cms.component', true, '/cms'); // view $this->setTpl(); if (Auth::isAdminAuthorized($this->signedUser, 'admin.cms.component.edit', false)) { // layout $this->tplLayout->set('column1', Template::loading()); // master $this->tplMaster->set('layout', $this->tplLayout->render('layout-1-col')); $this->tplMaster->set('jsLauncher', 'cmsComponent'); return $this->tplMaster->render('tpl-default'); } $options = []; $options['where'][] = 'component.status IN (0,1)'; $components = \Rebond\Cms\Component\Data::loadAll($options); // filter $tplFilter = new Template(Template::MODULE, ['cms', 'component']); $tplFilter->set('count', count($components)); // main $tplMain = new Template(Template::MODULE, ['cms', 'component']); $tplMain->set('items', $components); // layout $this->tplLayout->set('column1', $tplFilter->render('filter-config')); $this->tplLayout->set('column2', $tplMain->render('listing-config')); // master $this->tplMaster->set('layout', $this->tplLayout->render('layout-2-row')); return $this->tplMaster->render('tpl-default'); }
public function quickview() { // auth Auth::isAdminAuthorized($this->signedUser, 'admin.tools', true, '/'); // view $this->setTpl(); // nav $entities = \Rebond\Util\File::getFolders('Rebond/Bus/'); $tplNav = new Template(Template::SITE, ['admin', 'tools']); $tplNav->set('entities', $entities); // main // layout $this->tplLayout->set('column1', Template::loading()); // master $this->tplMaster->set('layout', $this->tplLayout->render('layout-1-col')); // master $this->tplMaster->set('navSide', $tplNav->render('nav')); $this->tplMaster->set('page', 'tools'); $this->tplMaster->set('jsLauncher', 'toolsQuickView'); return $this->tplMaster->render('tpl-default'); }