OSDN Git Service

WordPressテンプレート機能更新。
authornaoki hirata <naoki@magic3.org>
Wed, 12 Jul 2017 07:40:21 +0000 (16:40 +0900)
committernaoki hirata <naoki@magic3.org>
Wed, 12 Jul 2017 07:40:21 +0000 (16:40 +0900)
include/container/baseFrameContainer.php

index 900e24c..82f052d 100644 (file)
@@ -382,6 +382,9 @@ class BaseFrameContainer extends Core
                                        $this->gCache->setPageCache($request, $pageData);               // キャッシュデータを設定
                                        echo $pageData;
                                } else {
+                                       // ***** WordPressテンプレートの場合は非共通のウィジェットが使用されていなくても表示可とする *****
+                                       if ($this->gEnv->getCurrentTemplateType() == 100) $nonSharedWidgetCount = 1;
+                                       
                                        if ($isSystemAdmin || $nonSharedWidgetCount > 0){
                                                $this->gCache->setPageCache($request, $pageData);               // キャッシュデータを設定
                                                echo $pageData;