Lines Matching defs:model

66     private array $model;
108 public function setModel(array $model): TemplateForWebPage
110 $this->model = $model;
158 * Get model should came after template validation
162 $model = $this->getModel();
165 return self::DOCTYPE . $pageTemplateEngine->renderWebPage($template, $model);
476 $model =
485 if (isset($this->model)) {
486 return array_merge($model, $this->model);
494 $model["layout-container-class"] = $containerClass;
501 $model["rem-size"] = $executionConfig->getRemFontSize();
523 $model['body-classes'] = "$bodyDokuwikiClass position-relative $bodyTemplateIdentifierClass";
536 $model = array_merge($metadata, $model);
546 $model["railbar-html"] = FetcherRailBar::createRailBar()
560 $model[BrandingColors::PRIMARY_COLOR_TEMPLATE_ATTRIBUTE] = $primaryColor->toCssValue();
561 $model[BrandingColors::PRIMARY_COLOR_TEXT_ATTRIBUTE] = ColorSystem::toTextColor($primaryColor);
562 $model[BrandingColors::PRIMARY_COLOR_TEXT_HOVER_ATTRIBUTE] = ColorSystem::toTextHoverColor($primaryColor);
565 $model[BrandingColors::PRIMARY_COLOR_TEMPLATE_ATTRIBUTE] = null;
569 $model[BrandingColors::SECONDARY_COLOR_TEMPLATE_ATTRIBUTE] = $secondaryColor->toCssValue();
579 $model["main-content-html"] = $this->mainContent;
593 $model["main-content-html"] = FetcherMarkup::confRoot()
601 $model["main-content-html"] = "An error has occured. " . $e->getMessage();
608 $model['toc-class'] = Toc::getClass();
609 $model['toc-html'] = $this->getTocOrDefault()->toXhtml();
618 $model["$elementId-html"] = $slot->getMarkupFetcher()->getFetchString();
623 $model["$elementId-html"] = LogUtility::wrapInRedForHtml("Error: " . $e->getMessage());
637 $model["main-content-afterbegin-html"] = $tplActRenderOutput;
644 $model["main-content-html"] = $this->mainContent;
656 $model['head-html'] = $this->getHeadHtml();
665 $model['preloaded-stylesheet-html'] = $this->getHtmlForPreloadedStyleSheets();
673 $model['powered-by'] = self::getPoweredBy();
682 $model['messages-html'] = $this->getMessages();
688 $model['head-html'] .= Snippet::getOrCreateFromComponentId("toast", Snippet::EXTENSION_JS)->toXhtml();
699 $model['task-runner-html'] = $this->getTaskRunnerImg();
702 return $model;