Changeset 17510


Ignore:
Timestamp:
2008/08/08 06:51:57 (16 years ago)
Author:
Seasoft
Message:

<title> の表示ロジックを整理

Location:
branches/comu-ver2/data
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/comu-ver2/data/Smarty/templates/default/detail.tpl

    r17498 r17510  
    5353     
    5454    <!--★タイトル★--> 
    55     <h2 class="title"><!--{$tpl_subtitle|escape}--></h2> 
     55    <h2 class="title"><!--{$tpl_FirstCatName|escape}--></h2> 
    5656     
    5757    <!--★詳細メインコメント★--> 
  • branches/comu-ver2/data/Smarty/templates/default/site_frame.tpl

    r17112 r17510  
    3232<script type="text/javascript" src="<!--{$TPL_DIR}-->js/win_op.js"></script> 
    3333<script type="text/javascript" src="<!--{$TPL_DIR}-->js/site.js"></script> 
    34 <title><!--{$arrSiteInfo.shop_name|escape}-->/<!--{$tpl_title|escape}--></title> 
     34<title><!--{$arrSiteInfo.shop_name|escape}--> / <!--{if $tpl_subtitle|strlen >= 1}--><!--{$tpl_subtitle|escape}--><!--{else}--><!--{$tpl_title|escape}--><!--{/if}--></title> 
    3535<meta name="author" content="<!--{$arrPageLayout.author|escape}-->" /> 
    3636<meta name="description" content="<!--{$arrPageLayout.description|escape}-->" /> 
  • branches/comu-ver2/data/class/pages/products/LC_Page_Products_Detail.php

    r17455 r17510  
    220220          $this->tpl_sale_limit = $this->arrProduct['sale_limit']; 
    221221        } 
     222         
    222223        // サブタイトルを取得 
     224        $this->tpl_subtitle = $this->arrProduct['name']; 
     225         
     226        // 大カテゴリーを取得 
    223227        $arrCategory_id = $objDb->sfGetCategoryId($arrRet[0]['product_id'], $status); 
    224228        $arrFirstCat = $objDb->sfGetFirstCat($arrCategory_id[0]); 
    225         $this->tpl_subtitle = $arrFirstCat['name']; 
    226  
     229        $this->tpl_FirstCatName = $arrFirstCat['name']; 
     230         
    227231        // 関連カテゴリを取得 
    228232        $this->arrRelativeCat = $objDb->sfGetMultiCatTree($tmp_id); 
     
    245249        } 
    246250        $this->trackback_url = TRACKBACK_TO_URL . $tmp_id; 
    247         // タイトルに商品名を入れる 
    248         $this->tpl_title = "商品詳細 ". $this->arrProduct["name"]; 
    249251        //関連商品情報表示 
    250252        $this->arrRecommend = $this->lfPreGetRecommendProducts($tmp_id); 
Note: See TracChangeset for help on using the changeset viewer.