if (!isset($websitesDenied[$id])) { $selectedWebsites[] = array($id, $website->getLabel()); } else { $availableWebsites[] = array($id, $website->getLabel()); } } $availableWebsites = sensitiveIO::jsonEncode($availableWebsites); $selectedWebsites = sensitiveIO::jsonEncode($selectedWebsites); //DEFINITION TAB $content = ' <textarea id="tpl-definition-' . $templateId . '" style="display:none;">' . htmlspecialchars($templateDefinition) . '</textarea>'; $view->setContent($content); $title = sensitiveIO::isPositiveInteger($templateId) ? $cms_language->getJSMessage(MESSAGE_PAGE_TEMPLATE) . ' ' . $label : $cms_language->getJSMessage(MESSAGE_PAGE_CREATE_TEMPLATE); $rowsURL = PATH_ADMIN_WR . '/templates-rows.php'; $printTab = ''; $cstags = $template->getClientSpacesTags(); if (!is_array($cstags)) { $cstags = array(); } $clientspaces = array(); $printableCS = array(); $print_clientspaces = $template->getPrintingClientSpaces(); foreach ($cstags as $tag) { $id = $tag->getAttribute("id"); //$module = $tag->getAttribute("module"); if (!in_array($id, $print_clientspaces)) { $clientspaces[] = array($id); } else { $printableCS[] = array($id); } }