{
return $this->isTemplatePart;
}
+ /**
+ * URLがホーム(コンテンツタイプが設定されているページ内でのトップページ)を指しているかどうか取得
+ *
+ * @return bool true=ホーム、false=ホーム以外
+ */
+ function isHomeUrl()
+ {
+ if (!empty($this->contentType) && empty($this->pageType)){
+ return true;
+ } else {
+ return false;
+ }
+ }
}
?>
*/
public function is_home() {
// return (bool) $this->is_home;
- return $this->is_front_page();
+// return $this->is_front_page();
+
+ global $gContentApi;
+ $isHome = $gContentApi->isHomeUrl();
+ return $isHome;
}
/**