/** * Parse the form */ protected function parse() { parent::parse(); // prevent XSS $filter = \SpoonFilter::arrayMapRecursive('htmlspecialchars', $this->filter); $this->tpl->assign($filter); }
public function parse() { parent::parse(); $url = BackendModel::getURLForBlock($this->URL->getModule(), 'Category'); $url404 = BackendModel::getURL(404); if ($url404 != $url) { $this->tpl->assign('detailURL', SITE_URL . $url); } }
/** * Parse the form * * @return void */ protected function parse() { // call parent parent::parse(); // assign the active record and additional variables $this->tpl->assign('item', $this->record); // assign image input fields $this->tpl->assign('imageInput', $this->ImageInput); }
/** * Parse the page */ protected function parse() { parent::parse(); // assign the url for the detail page $url = BackendModel::getURLForBlock($this->URL->getModule(), 'Group'); $url404 = BackendModel::getURL(404); if ($url404 != $url) { $this->tpl->assign('detailURL', SITE_URL . $url); } }
/** * Parse the page */ protected function parse() { parent::parse(); // get url $url = BackendModel::getURLForBlock($this->URL->getModule(), 'detail'); $url404 = BackendModel::getURL(404); // parse additional variables if ($url404 != $url) { $this->tpl->assign('detailURL', SITE_URL . $url); } }
/** * Parse the page */ protected function parse() { parent::parse(); $this->tpl->assign('meta', $this->selectedMeta !== false); if ($this->frm->isSubmitted() && $this->frm->getField('search')->isChecked()) { $this->tpl->assign('search', true); } else { $this->tpl->assign('search', $this->selectedSearch !== false); } }
protected function parse() { parent::parse(); $this->tpl->assign('fieldLanguages', $this->fieldLanguages); }
/** * Parses stuff into the template */ protected function parse() { parent::parse(); $this->tpl->assign('product', $this->product); }
/** * Parse the page */ protected function parse() { $this->tpl->assign('item', $this->record); parent::parse(); }
/** * Parse */ protected function parse() { parent::parse(); $this->tpl->assign('notifyProfile', $this->notifyProfile); }
/** * Parse the form */ protected function parse() { parent::parse(); // assign form errors $this->tpl->assign('formErrors', (string) $this->frm->getErrors()); }
/** * Parse the page */ protected function parse() { parent::parse(); }
/** * Parse the form * * @return void */ protected function parse() { // call parent parent::parse(); $url = BackendModel::getURLForBlock($this->URL->getModule(), 'Detail'); $url404 = BackendModel::getURL(404); // parse additional variables if ($url404 != $url) { $this->tpl->assign('detailURL', SITE_URL . $url); } // assign categories $this->tpl->assign('categories', $this->categories); }
/** * Parse the page */ protected function parse() { parent::parse(); // add css $this->header->addCSS('/src/Backend/Modules/' . $this->getModule() . '/Layout/Css/agenda.css', null, true); // get url $url = BackendModel::getURLForBlock($this->URL->getModule(), 'detail'); $url404 = BackendModel::getURL(404); // parse additional variables if ($url404 != $url) { $this->tpl->assign('detailURL', SITE_URL . $url); } $this->record['url'] = $this->meta->getURL(); }
/** * Parse */ protected function parse() { parent::parse(); // parse some variables $this->tpl->assign('templates', $this->templates); $this->tpl->assign('isGod', $this->isGod); $this->tpl->assign('positions', $this->positions); $this->tpl->assign('extrasData', json_encode(BackendExtensionsModel::getExtrasData())); $this->tpl->assign('extrasById', json_encode(BackendExtensionsModel::getExtras())); $this->tpl->assign('prefixURL', rtrim(BackendPagesModel::getFullURL(1), '/')); $this->tpl->assign('formErrors', (string) $this->frm->getErrors()); $this->tpl->assign('showTags', $this->showTags()); // get default template id $defaultTemplateId = $this->get('fork.settings')->get('Pages', 'default_template', 1); // assign template $this->tpl->assignArray($this->templates[$defaultTemplateId], 'template'); // parse the form $this->frm->parse($this->tpl); // parse the tree $this->tpl->assign('tree', BackendPagesModel::getTreeHTML()); }
/** * Parse the page */ protected function parse() { parent::parse(); $this->tpl->assign('datagrid', $this->datagrid->getNumResults() != 0 ? $this->datagrid->getContent() : false); $this->tpl->assign('varcharFound', $this->allowSave); }
/** * Parses stuff into the template */ protected function parse() { parent::parse(); $this->tpl->assign('item', $this->item); }