예제 #1
0
파일: templates.php 프로젝트: vazahat/dudex
 private function getTplInfo(UHEADER_BOL_Template $template)
 {
     $canvas = $template->getCanvas();
     $previewCanvas = $template->getCanvas(self::ITEM_WIDTH);
     $css = $template->getCss();
     $cssStr = $template->getCssString();
     $roles = $this->service->getRoleIdsForTemplateId($template->id);
     return array("id" => $template->id, "default" => (bool) $template->default, "src" => $this->service->getTemplateUrl($template), "data" => $template->getSettings(), "css" => $css, "cssStr" => $cssStr, "canvas" => $canvas, "previewCss" => $css, "previewCssStr" => $cssStr, "previewCanvas" => $previewCanvas, "users" => $this->service->findTemplateUsageCount($template->id), "roles" => $roles, "url" => OW::getRouter()->urlForRoute("uheader-settings-gallery-item", array("tplId" => $template->id)));
 }