Ignore:
Timestamp:
2011/01/13 14:46:07 (13 years ago)
Author:
kotani
Message:

#880(mobile/sphoneディレクトリを削除)に対応。まずmobileのみ意図通りの動作になるように一部コミット(frontpartsディレクトリ)

Location:
branches/version-2_5-dev/data
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_5-dev/data/Smarty/templates/mobile/frontparts/bloc/best5.tpl

    r19833 r19903  
    3434<!--{/foreach}--> 
    3535</center> 
     36<hr> 
     37<br> 
    3638<!--{/if}--> 
  • branches/version-2_5-dev/data/Smarty/templates/mobile/index.tpl

    r19853 r19903  
    3333 
    3434<br> 
     35<hr> 
    3536 
    3637<!-- ▼ピックアップ商品 ここから --> 
    37 <hr> 
    3838<!--{include_php file=`$smarty.const.MOBILE_HTML_REALDIR`frontparts/bloc/best5.php}--> 
    39 <hr> 
    4039<!-- ▲ピックアップ商品 ここまで --> 
    41  
    42 <br> 
    4340 
    4441<!-- ▼メニュー ここから --> 
  • branches/version-2_5-dev/data/class/pages/frontparts/bloc/LC_Page_FrontParts_Bloc_Best5.php

    r19805 r19903  
    3030 * @package Page 
    3131 * @author LOCKON CO.,LTD. 
    32  * @version $Id:LC_Page_FrontParts_Bloc_Best5.php 15532 2007-08-31 14:39:46Z nanasess $ 
     32 * @version $Id$ 
    3333 */ 
    3434class LC_Page_FrontParts_Bloc_Best5 extends LC_Page_FrontParts_Bloc { 
     
    7373 
    7474    /** 
    75      * モバイルページを初期化する. 
    76      * 
    77      * @return void 
    78      */ 
    79     function mobileInit() { 
    80         $this->init(); 
    81     } 
    82  
    83     /** 
    84      * Page のプロセス(モバイル). 
    85      * 
    86      * @return void 
    87      */ 
    88     function mobileProcess() { 
    89         $this->process(); 
    90     } 
    91  
    92     /** 
    9375     * デストラクタ. 
    9476     * 
  • branches/version-2_5-dev/data/class/pages/frontparts/bloc/LC_Page_FrontParts_Bloc_Category.php

    r19807 r19903  
    3030 * @package Page 
    3131 * @author LOCKON CO.,LTD. 
    32  * @version $Id:LC_Page_FrontParts_Bloc_Category.php 15532 2007-08-31 14:39:46Z nanasess $ 
     32 * @version $Id$ 
    3333 */ 
    3434class LC_Page_FrontParts_Bloc_Category extends LC_Page_FrontParts_Bloc { 
     
    6363     */ 
    6464    function action() { 
    65         $objDb = new SC_Helper_DB_Ex(); 
     65        if(Net_UserAgent_Mobile::isMobile() === true) { 
     66            $this->lfGetMainCat(true, $this); 
     67        } else { 
     68            $objDb = new SC_Helper_DB_Ex(); 
    6669 
    67         // 選択中のカテゴリIDを判定する 
    68         $arrCategory_id = $objDb->sfGetCategoryId($_GET['product_id'], $_GET['category_id']); 
     70            // 選択中のカテゴリIDを判定する 
     71            $arrCategory_id = $objDb->sfGetCategoryId($_GET['product_id'], $_GET['category_id']); 
    6972 
    70         // 選択中のカテゴリID 
    71         $this->tpl_category_id = empty($arrCategory_id) ? array(0) : $arrCategory_id;; 
    72         $this->lfGetCatTree($this->tpl_category_id, true, $this); 
    73     } 
    74  
    75     /** 
    76      * モバイルページを初期化する. 
    77      * 
    78      * @return void 
    79      */ 
    80     function mobileInit() { 
    81         $this->tpl_mainpage = MOBILE_TEMPLATE_REALDIR . "frontparts/" 
    82             . BLOC_DIR . 'category.tpl'; 
    83     } 
    84  
    85     /** 
    86      * Page のプロセス(モバイル). 
    87      * 
    88      * @return void 
    89      */ 
    90     function mobileProcess() { 
    91         $objSubView = new SC_MobileView(); 
    92  
    93        $this->lfGetMainCat(true, $this); 
    94  
    95         $objSubView->assignobj($this); 
    96         $objSubView->display($this->tpl_mainpage); 
     73            // 選択中のカテゴリID 
     74            $this->tpl_category_id = empty($arrCategory_id) ? array(0) : $arrCategory_id;; 
     75            $this->lfGetCatTree($this->tpl_category_id, true, $this); 
     76        } 
    9777    } 
    9878 
  • branches/version-2_5-dev/data/class/pages/frontparts/bloc/LC_Page_FrontParts_Bloc_News.php

    r19805 r19903  
    3030 * @package Page 
    3131 * @author LOCKON CO.,LTD. 
    32  * @version $Id:LC_Page_FrontParts_Bloc_News.php 15532 2007-08-31 14:39:46Z nanasess $ 
     32 * @version $Id$ 
    3333 */ 
    3434class LC_Page_FrontParts_Bloc_News extends LC_Page_FrontParts_Bloc { 
     
    6666    } 
    6767 
    68  
    69     /** 
    70      * モバイルページを初期化する. 
    71      * 
    72      * @return void 
    73      */ 
    74     function mobileInit() { 
    75         $this->init(); 
    76     } 
    77  
    78     /** 
    79      * Page のプロセス(モバイル). 
    80      * 
    81      * @return void 
    82      */ 
    83     function mobileProcess() { 
    84         $this->process(); 
    85     } 
    86  
    8768    /** 
    8869     * デストラクタ. 
Note: See TracChangeset for help on using the changeset viewer.