function id($args) { list($id, $name) = $args; $bm = new BlogModel(); $bm->getByID(tin($id)); $this->isiMeta($bm); $pg = $bm; $json = ""; if ($pg->topic_attachments != "") { $json = json_decode(stripslashes($pg->topic_attachments)); } //pr($json); if ($pg->topic_attachment_order == "") { $pa = \Efiwebsetting::getData('PageAttachment'); } else { $pa = $pg->topic_attachment_order; } // $pa = \Efiwebsetting::getData('PageAttachment'); $exp = explode(",", $pa); $dimatikan_animasi_header = 1; foreach ($exp as $p) { if ($p == "Page") { $arr['blog'] = $bm; $arr['dimatikan_animasi_header'] = $dimatikan_animasi_header; // Mold::theme("Pages/Blog_post",$arr); $layout_id = "Blog_post"; $file = Layout::getFile($layout_id); // echo "Pages/".$layout_id."/".$file; Mold::theme("Pages/" . $layout_id . "/" . $file, $arr); // $arr['page'] = $page; // Mold::theme("Pages/Page",$arr); } else { if (array_key_exists($p, $json) && $json->{$p} > 0) { $paralax = new $p(); $paralax->viewme($json->{$p}, "BlogModel", $bm->topic_id); if (contains($p, array("Parallax", "Carousel"))) { $dimatikan_animasi_header = 0; } } } } }