/** * Izgūst lapas HTML * * @param Request $request GET pieprasījuma objekts * @param Array $page_row Lapas ierakts (rinda no tabulas dx_pages) * @return Response HTML lapa */ private function showPageById(Request $request, $page_row) { $page = new Page($page_row->id, $page_row->html); $background_file = $page_row->file_guid; $content_bg_color = $page_row->content_bg_color; if (!$background_file || !$content_bg_color) { $page_color = getDefaultPageBackground(); $background_file = $background_file ? $background_file : $page_color['file']; $content_bg_color = $content_bg_color ? $content_bg_color : $page_color['content_bg_color']; } return view('mindwo\\pages::page', ['page_title' => $page_row->title, 'page_html' => $page->getHTML(), 'page_js' => $page->getJS(), 'page_css' => $page->getCSS(), 'background_file' => $background_file, 'content_bg_color' => $content_bg_color]); }