Index: /branches/version-2_5-dev/html/frontparts/bloc/login.php
===================================================================
--- /branches/version-2_5-dev/html/frontparts/bloc/login.php	(revision 18701)
+++ /branches/version-2_5-dev/html/frontparts/bloc/login.php	(revision 19726)
@@ -23,4 +23,5 @@
 
 // {{{ requires
+require_once(realpath(dirname(__FILE__)) . "/../../require.php");
 require_once(CLASS_EX_PATH . "page_extends/frontparts/bloc/LC_Page_FrontParts_Bloc_Login_Ex.php");
 
Index: /branches/version-2_5-dev/html/frontparts/bloc/search_products.php
===================================================================
--- /branches/version-2_5-dev/html/frontparts/bloc/search_products.php	(revision 18701)
+++ /branches/version-2_5-dev/html/frontparts/bloc/search_products.php	(revision 19726)
@@ -22,4 +22,5 @@
  */
 // {{{ requires
+require_once(realpath(dirname(__FILE__)) . "/../../require.php");
 require_once(CLASS_EX_PATH . "page_extends/frontparts/bloc/LC_Page_FrontParts_Bloc_SearchProducts_Ex.php");
 
Index: /branches/version-2_5-dev/html/frontparts/bloc/calendar.php
===================================================================
--- /branches/version-2_5-dev/html/frontparts/bloc/calendar.php	(revision 18701)
+++ /branches/version-2_5-dev/html/frontparts/bloc/calendar.php	(revision 19726)
@@ -23,4 +23,5 @@
 
 // {{{ requires
+require_once(realpath(dirname(__FILE__)) . "/../../require.php");
 require_once(CLASS_EX_PATH . "page_extends/frontparts/bloc/LC_Page_FrontParts_Bloc_Calendar_Ex.php");
 
Index: /branches/version-2_5-dev/html/frontparts/bloc/cart.php
===================================================================
--- /branches/version-2_5-dev/html/frontparts/bloc/cart.php	(revision 18701)
+++ /branches/version-2_5-dev/html/frontparts/bloc/cart.php	(revision 19726)
@@ -23,4 +23,5 @@
 
 // {{{ requires
+require_once(realpath(dirname(__FILE__)) . "/../../require.php");
 require_once(CLASS_EX_PATH . "page_extends/frontparts/bloc/LC_Page_FrontParts_Bloc_Cart_Ex.php");
 
Index: /branches/version-2_5-dev/html/frontparts/bloc/news.php
===================================================================
--- /branches/version-2_5-dev/html/frontparts/bloc/news.php	(revision 18701)
+++ /branches/version-2_5-dev/html/frontparts/bloc/news.php	(revision 19726)
@@ -22,4 +22,5 @@
  */
 // {{{ requires
+require_once(realpath(dirname(__FILE__)) . "/../../require.php");
 require_once(CLASS_EX_PATH . "page_extends/frontparts/bloc/LC_Page_FrontParts_Bloc_News_Ex.php");
 
Index: /branches/version-2_5-dev/html/frontparts/bloc/category.php
===================================================================
--- /branches/version-2_5-dev/html/frontparts/bloc/category.php	(revision 18701)
+++ /branches/version-2_5-dev/html/frontparts/bloc/category.php	(revision 19726)
@@ -23,4 +23,5 @@
 
 // {{{ requires
+require_once(realpath(dirname(__FILE__)) . "/../../require.php");
 require_once(CLASS_EX_PATH . "page_extends/frontparts/bloc/LC_Page_FrontParts_Bloc_Category_Ex.php");
 
Index: /branches/version-2_5-dev/html/frontparts/bloc/best5.php
===================================================================
--- /branches/version-2_5-dev/html/frontparts/bloc/best5.php	(revision 18701)
+++ /branches/version-2_5-dev/html/frontparts/bloc/best5.php	(revision 19726)
@@ -23,4 +23,5 @@
 
 // {{{ requires
+require_once(realpath(dirname(__FILE__)) . "/../../require.php");
 require_once(CLASS_EX_PATH . "page_extends/frontparts/bloc/LC_Page_FrontParts_Bloc_Best5_Ex.php");
 
Index: /branches/version-2_5-dev/data/class/pages/frontparts/bloc/LC_Page_FrontParts_Bloc.php
===================================================================
--- /branches/version-2_5-dev/data/class/pages/frontparts/bloc/LC_Page_FrontParts_Bloc.php	(revision 18701)
+++ /branches/version-2_5-dev/data/class/pages/frontparts/bloc/LC_Page_FrontParts_Bloc.php	(revision 19726)
@@ -33,4 +33,20 @@
  */
 class LC_Page_FrontParts_Bloc extends LC_Page {
+
+    // TODO
+    function init() {
+        // 開始時刻を設定する。
+        $this->timeStart = SC_Utils_Ex::sfMicrotimeFloat();
+
+        $this->tpl_authority = $_SESSION['authority'];
+
+        // ディスプレイクラス生成
+        $this->objDisplay = new SC_Display();
+
+        // プラグインクラス生成
+        $this->objPlugin = new SC_Helper_Plugin_Ex();
+        $this->objPlugin->preProcess($this);
+    }
+
     /**
      * ブロックファイルに応じて tpl_mainpage を設定する
@@ -44,11 +60,13 @@
             $this->tpl_mainpage = $bloc_file;
         } else {
-            $user_bloc_path = USER_TEMPLATE_PATH . TEMPLATE_NAME . "/" . BLOC_DIR . $bloc_file;
+            $user_bloc_path = SC_Helper_PageLayout_Ex::getTemplatePath($this->objDisplay->detectDevice(), true) . BLOC_DIR . $bloc_file;
             if (is_file($user_bloc_path)) {
                 $this->tpl_mainpage = $user_bloc_path;
             } else {
-                $this->tpl_mainpage = BLOC_PATH . $bloc_file;
+                $this->tpl_mainpage = SC_Helper_PageLayout_Ex::getTemplatePath($this->objDisplay->detectDevice()) . BLOC_DIR . $bloc_file;
             }
         }
+
+        $this->setTemplate($this->tpl_mainpage);
         $debug_message = "block：" . $this->tpl_mainpage . "\n";
         GC_Utils::gfDebugLog($debug_message);
Index: /branches/version-2_5-dev/data/class/pages/frontparts/bloc/LC_Page_FrontParts_Bloc_Best5.php
===================================================================
--- /branches/version-2_5-dev/data/class/pages/frontparts/bloc/LC_Page_FrontParts_Bloc_Best5.php	(revision 19711)
+++ /branches/version-2_5-dev/data/class/pages/frontparts/bloc/LC_Page_FrontParts_Bloc_Best5.php	(revision 19726)
@@ -44,6 +44,5 @@
     function init() {
         parent::init();
-        $bloc_file = 'best5.tpl';
-        $this->setTplMainpage($bloc_file);
+        $this->setTplMainpage('best5.tpl');
     }
 
@@ -54,6 +53,14 @@
      */
     function process() {
-        $objView = new SC_SiteView(false);
-        $objSiteInfo = $objView->objSiteInfo;
+        $this->action();
+        $this->sendResponse();
+    }
+
+    /**
+     * Page のアクション.
+     *
+     * @return void
+     */
+    function action() {
 
         // 基本情報を渡す
@@ -63,9 +70,4 @@
         //おすすめ商品表示
         $this->arrBestProducts = $this->lfGetRanking();
-
-        if (!empty($this->arrBestProducts)) {
-            $objView->assignobj($this);
-            $objView->display($this->tpl_mainpage);
-        }
     }
 
Index: /branches/version-2_5-dev/data/class/pages/frontparts/bloc/LC_Page_FrontParts_Bloc_Login.php
===================================================================
--- /branches/version-2_5-dev/data/class/pages/frontparts/bloc/LC_Page_FrontParts_Bloc_Login.php	(revision 19670)
+++ /branches/version-2_5-dev/data/class/pages/frontparts/bloc/LC_Page_FrontParts_Bloc_Login.php	(revision 19726)
@@ -44,6 +44,5 @@
     function init() {
         parent::init();
-        $bloc_file = 'login.tpl';
-        $this->setTplMainpage($bloc_file);
+        $this->setTplMainpage('login.tpl');
         $this->tpl_login = false;
         $this->tpl_disable_logout = false;
@@ -57,4 +56,14 @@
      */
     function process() {
+        $this->action();
+        $this->sendResponse();
+    }
+
+    /**
+     * Page のアクション.
+     *
+     * @return void
+     */
+    function action() {
         $objCustomer = new SC_Customer();
         // クッキー管理クラス
@@ -81,8 +90,5 @@
 
         $this->tpl_disable_logout = $this->lfCheckDisableLogout();
-        $objSubView = new SC_SiteView(false);
         $this->transactionid = SC_Helper_Session_Ex::getToken();
-        $objSubView->assignobj($this);
-        $objSubView->display($this->tpl_mainpage);
     }
 
Index: /branches/version-2_5-dev/data/class/pages/frontparts/bloc/LC_Page_FrontParts_Bloc_Calendar.php
===================================================================
--- /branches/version-2_5-dev/data/class/pages/frontparts/bloc/LC_Page_FrontParts_Bloc_Calendar.php	(revision 19711)
+++ /branches/version-2_5-dev/data/class/pages/frontparts/bloc/LC_Page_FrontParts_Bloc_Calendar.php	(revision 19726)
@@ -47,6 +47,5 @@
     function init() {
         parent::init();
-        $bloc_file = 'calendar.tpl';
-        $this->setTplMainpage($bloc_file);
+        $this->setTplMainpage('calendar.tpl');
     }
 
@@ -57,17 +56,20 @@
      */
     function process() {
-        $objView = new SC_SiteView(false);
+        $this->action();
+        $this->sendResponse();
+    }
 
+    /**
+     * Page のアクション.
+     *
+     * @return void
+     */
+    function action() {
         // 休日取得取得
         $this->arrHoliday = $this->lfGetHoliday();
-
         // 定休日取得取得
         $this->arrRegularHoliday = $this->lfGetRegularHoliday();
-
         // カレンダーデータ取得
         $this->arrCalendar = $this->lfGetCalendar(2);
-
-        $objView->assignobj($this);
-        $objView->display($this->tpl_mainpage);
     }
 
Index: /branches/version-2_5-dev/data/class/pages/frontparts/bloc/LC_Page_FrontParts_Bloc_Cart.php
===================================================================
--- /branches/version-2_5-dev/data/class/pages/frontparts/bloc/LC_Page_FrontParts_Bloc_Cart.php	(revision 18852)
+++ /branches/version-2_5-dev/data/class/pages/frontparts/bloc/LC_Page_FrontParts_Bloc_Cart.php	(revision 19726)
@@ -44,6 +44,5 @@
     function init() {
         parent::init();
-        $bloc_file = 'cart.tpl';
-        $this->setTplMainpage($bloc_file);
+        $this->setTplMainpage('cart.tpl');
     }
 
@@ -54,5 +53,14 @@
      */
     function process() {
-        $objSubView = new SC_SiteView(false);
+        $this->action();
+        $this->sendResponse();
+    }
+
+    /**
+     * Page のアクション.
+     *
+     * @return void
+     */
+    function action() {
         $objCart = new SC_CartSession();
         $objSiteInfo = new SC_SiteInfo;
@@ -90,7 +98,4 @@
             $this->arrCartList = $arrCartList;
         }
-
-        $objSubView->assignobj($this);
-        $objSubView->display($this->tpl_mainpage);
     }
 
Index: /branches/version-2_5-dev/data/class/pages/frontparts/bloc/LC_Page_FrontParts_Bloc_SearchProducts.php
===================================================================
--- /branches/version-2_5-dev/data/class/pages/frontparts/bloc/LC_Page_FrontParts_Bloc_SearchProducts.php	(revision 18701)
+++ /branches/version-2_5-dev/data/class/pages/frontparts/bloc/LC_Page_FrontParts_Bloc_SearchProducts.php	(revision 19726)
@@ -44,6 +44,5 @@
     function init() {
         parent::init();
-        $bloc_file = 'search_products.tpl';
-        $this->setTplMainpage($bloc_file);
+        $this->setTplMainpage('search_products.tpl');
     }
 
@@ -54,4 +53,14 @@
      */
     function process() {
+        $this->action();
+        $this->sendResponse();
+    }
+
+    /**
+     * Page のアクション.
+     *
+     * @return void
+     */
+    function action() {
         $arrSearch = array();	// 検索項目表示用
         $objDb = new SC_Helper_DB_Ex();
@@ -81,8 +90,4 @@
         }
         $this->arrMakerList = $arrRet;
-
-        $objSubView = new SC_SiteView(false);
-        $objSubView->assignobj($this);
-        $objSubView->display($this->tpl_mainpage);
     }
 
Index: /branches/version-2_5-dev/data/class/pages/frontparts/bloc/LC_Page_FrontParts_Bloc_News.php
===================================================================
--- /branches/version-2_5-dev/data/class/pages/frontparts/bloc/LC_Page_FrontParts_Bloc_News.php	(revision 19711)
+++ /branches/version-2_5-dev/data/class/pages/frontparts/bloc/LC_Page_FrontParts_Bloc_News.php	(revision 19726)
@@ -44,6 +44,5 @@
     function init() {
         parent::init();
-        $bloc_file = 'news.tpl';
-        $this->setTplMainpage($bloc_file);
+        $this->setTplMainpage('news.tpl');
     }
 
@@ -54,11 +53,15 @@
      */
     function process() {
-        $objSubView = new SC_SiteView(false);
+        $this->action();
+        $this->sendResponse();
+    }
 
-        //新着情報取得
+    /**
+     * Page のアクション.
+     *
+     * @return void
+     */
+    function action() {
         $this->arrNews = $this->lfGetNews();
-
-        $objSubView->assignobj($this);
-        $objSubView->display($this->tpl_mainpage);
     }
 
Index: /branches/version-2_5-dev/data/class/pages/frontparts/bloc/LC_Page_FrontParts_Bloc_Category.php
===================================================================
--- /branches/version-2_5-dev/data/class/pages/frontparts/bloc/LC_Page_FrontParts_Bloc_Category.php	(revision 18701)
+++ /branches/version-2_5-dev/data/class/pages/frontparts/bloc/LC_Page_FrontParts_Bloc_Category.php	(revision 19726)
@@ -44,6 +44,5 @@
     function init() {
         parent::init();
-        $bloc_file = 'category.tpl';
-        $this->setTplMainpage($bloc_file);
+        $this->setTplMainpage('category.tpl');
     }
 
@@ -54,5 +53,14 @@
      */
     function process() {
-        $objSubView = new SC_SiteView(false);
+        $this->action();
+        $this->sendResponse();
+    }
+
+    /**
+     * Page のアクション.
+     *
+     * @return void
+     */
+    function action() {
         $objDb = new SC_Helper_DB_Ex();
 
@@ -63,7 +71,4 @@
         $this->tpl_category_id = empty($arrCategory_id) ? array(0) : $arrCategory_id;;
         $this->lfGetCatTree($this->tpl_category_id, true, $this);
-
-        $objSubView->assignobj($this);
-        $objSubView->display($this->tpl_mainpage);
     }
 
