title = "Ürün Detay" url = "/urun/:slug" layout = "master" is_hidden = 0 contentType = "html" force_show = 0 [viewBag] localeUrl[en] = "/product/:slug" == param("slug"); $lang = LanguageController::GetLang(); $details = Db::table('flatart_products_')->where("status", 1)->where("lang", $lang)->where("slug", $slug)->first(); if(!$details){ return $this->controller->run('404'); } $this['details'] = $details; $this['hreflang'] = Db::table('flatart_products_')->where("status", 1)->where("hreflang", $details->hreflang)->get(); foreach($this['hreflang'] as $item){ if($item->lang == 'tr'){ $this->page->turkishlink = "/tr/urun/".$item->slug."/"; }elseif($item->lang == 'en'){ $this->page->englishlink = "/en/product/".$item->slug."/"; } } $this['categoryDetail'] = Db::table('flatart_products_categories')->where("id", $details->category)->where("status", 1)->where("lang", $lang)->first(); $this['getcategory'] = new class { public function get($value) { $get = Db::table('flatart_products_categories')->where("id", $value)->first(); return $get; } }; $this['spects'] = json_decode($details->spects, true); $this['gallery'] = json_decode($details->gallery, true); $this->page->meta_description = $details->meta_description; if($lang == 'tr'){ $this->page->meta_title = $this['details']->meta_title." - Villa Yapı Prefabrik"; $this->page->meta_description = $details->meta_description; $this->page->canonical = "https://villayapi.com/tr/urun/".$this['details']->slug."/"; }else{ $this->page->meta_title = $this['details']->meta_title." - Villa Yapı Prefabrik"; $this->page->meta_description = $details->meta_description; $this->page->canonical = "https://villayapi.com/en/product/".$this['details']->slug."/"; } } ?> == {% set breadcount = 1 %}
{{ details.name }}

{{ details.name }}

{{ details.content_mini|raw }}
{{ "Açıklama"|_ }}
{% for item in spects %} {% endfor %}
{{ item.spects }} {{ item.desc }}
{{ details.content|raw }}