Changeset 17116


Ignore:
Timestamp:
2008/03/11 11:08:47 (16 years ago)
Author:
pineray
Message:

merge r17096 17104

Location:
branches/comu-ver2
Files:
7 edited

Legend:

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

    r17094 r17116  
    4242<div id="container"> 
    4343 
    44   <!--{if $tpl_column_num > 1}--> 
    4544  <!--{* ▼LEFT COLUMN *}--> 
     45  <!--{if $arrPageLayout.LeftNavi|@count > 0}--> 
    4646  <div id="leftcolumn"> 
    47  
    4847    <!--{* ▼左ナビ *}--> 
    49     <!--{if $arrPageLayout.LeftNavi|@count > 0}--> 
    5048      <!--{foreach key=LeftNaviKey item=LeftNaviItem from=$arrPageLayout.LeftNavi}--> 
    5149        <!-- ▼<!--{$LeftNaviItem.bloc_name}--> ここから--> 
     
    5755        <!-- ▲<!--{$LeftNaviItem.bloc_name}--> ここまで--> 
    5856      <!--{/foreach}--> 
    59     <!--{/if}--> 
    6057    <!--{* ▲左ナビ *}--> 
    6158  </div> 
     59  <!--{/if}--> 
    6260  <!--{* ▲LEFT COLUMN *}--> 
     61 
     62  <!--{* ▼CENTER COLUMN *}--> 
     63  <!--{if $tpl_column_num == 3}--> 
     64  <div id="three_maincolumn"> 
     65  <!--{elseif $tpl_column_num == 2}--> 
     66  <div id="two_maincolumn"> 
     67  <!--{elseif $tpl_column_num == 1}--> 
     68  <div id="one_maincolumn"> 
    6369  <!--{/if}--> 
    64  
    65   <!--{if $tpl_column_num == 3}--> 
    66   <!--{* ▼CENTER COLUMN *}--> 
    67   <div id="centercolumn"> 
    68   <!--{/if}--> 
    69  
    7070    <!--{* ▼メイン上部 *}--> 
    7171    <!--{if $arrPageLayout.MainHead|@count > 0}--> 
     
    8181    <!--{/if}--> 
    8282    <!--{* ▲メイン上部 *}--> 
    83  
    84     <!--{if $tpl_column_num == 1}--> 
    85     <div id="one_column"> 
    86     <!--{/if}--> 
     83     
     84    <!--{* ▼メイン *}--> 
    8785    <!--{include file=$tpl_mainpage}--> 
    88     <!--{if $tpl_column_num == 1}--> 
    89     </div> 
    90     <!--{/if}--> 
    91  
     86    <!--{* ▲メイン *}--> 
     87     
    9288    <!--{* ▼メイン下部 *}--> 
    9389    <!--{if $arrPageLayout.MainFoot|@count > 0}--> 
     
    10399    <!--{/if}--> 
    104100    <!--{* ▲メイン下部 *}--> 
    105  
    106   <!--{if $tpl_column_num == 3}--> 
    107101  </div> 
    108102  <!--{* ▲CENTER COLUMN *}--> 
    109103 
    110104  <!--{* ▼RIGHT COLUMN *}--> 
     105  <!--{if $arrPageLayout.RightNavi|@count > 0}--> 
    111106  <div id="rightcolumn"> 
    112107    <!--{* ▼右ナビ *}--> 
    113     <!--{if $arrPageLayout.RightNavi|@count > 0}--> 
    114108      <!--{foreach key=RightNaviKey item=RightNaviItem from=$arrPageLayout.RightNavi}--> 
    115109        <!-- ▼<!--{$RightNaviItem.bloc_name}--> ここから--> 
     
    121115        <!-- ▲<!--{$RightNaviItem.bloc_name}--> ここまで--> 
    122116      <!--{/foreach}--> 
    123     <!--{/if}--> 
    124117    <!--{* ▲右ナビ *}--> 
    125118  </div> 
     119  <!--{/if}--> 
    126120  <!--{* ▲RIGHT COLUMN *}--> 
    127   <!--{/if}--> 
    128121 
    129122</div> 
  • branches/comu-ver2/data/class/helper/SC_Helper_PageLayout.php

    r16735 r17116  
    102102        $arrPageLayout['RightNavi'] = $this->lfGetNavi($arrNavi,3); // RIGHT NAVI 
    103103        $arrPageLayout['MainFoot']  = $this->lfGetNavi($arrNavi,4); // メイン下部 
    104          
     104 
    105105        GC_Utils::gfDebugLog($arrPageLayout); 
    106                  
     106         
    107107        $objPage->arrPageLayout = $arrPageLayout; 
    108108         
     109        // カラム数を取得する 
     110        $objPage->tpl_column_num = $this->lfGetColumnNum($arrPageLayout); 
     111 
    109112        GC_Utils::gfDebugLog($debug_message); 
    110113    } 
     
    233236 
    234237    /** 
     238     * カラム数を取得する. 
     239     *  
     240     * @param array $arrPageLayout レイアウト情報の配列 
     241     * @return integer $col_num カラム数 
     242     */ 
     243    function lfGetColumnNum($arrPageLayout) { 
     244        // メインは確定 
     245        $col_num = 1; 
     246        // LEFT NAVI 
     247        if (count($arrPageLayout['LeftNavi']) > 0) $col_num++; 
     248        // RIGHT NAVI 
     249        if (count($arrPageLayout['RightNavi']) > 0) $col_num++; 
     250         
     251        return $col_num; 
     252    } 
     253 
     254    /** 
    235255     * ページ情報を削除する. 
    236256     * 
  • branches/comu-ver2/data/class_extends/page_extends/guide/LC_Page_Guide_Charge_Ex.php

    r16582 r17116  
    1 ]<?php 
     1<?php 
    22/* 
    33 * This file is part of EC-CUBE 
  • branches/comu-ver2/data/class_extends/page_extends/guide/LC_Page_Guide_Kiyaku_Ex.php

    r16582 r17116  
    1 ]<?php 
     1<?php 
    22/* 
    33 * This file is part of EC-CUBE 
  • branches/comu-ver2/data/class_extends/page_extends/guide/LC_Page_Guide_Privacy_Ex.php

    r16582 r17116  
    1 ]<?php 
     1<?php 
    22/* 
    33 * This file is part of EC-CUBE 
  • branches/comu-ver2/html/user_data/packages/default/css/main.css

    r17095 r17116  
    171171} 
    172172 
    173 div#centercolumn { 
     173div#rightcolumn { 
     174    float: left; 
     175    width: 166px; 
     176} 
     177 
     178div#rightcolumn h2 { 
     179    padding: 15px 0 0 0; 
     180} 
     181 
     182/* メインコンテンツ 
     183----------------------------------------------- */ 
     184/* 3カラム設定 */ 
     185div#three_maincolumn { 
    174186    float: left; 
    175187    width: 432px; 
     
    177189} 
    178190 
    179 div#centercolumn h2 { 
    180     padding: 15px 0 0 0; 
    181 } 
    182  
    183 div#rightcolumn { 
    184     float: left; 
    185     width: 166px; 
    186 } 
    187  
    188 div#rightcolumn h2 { 
    189     padding: 15px 0 0 0; 
    190 } 
    191  
    192 /* 1カラム設定 
    193 ----------------------------------------------- */ 
    194 div#one_column { 
     191div#three_maincolumn h2 { 
     192    padding: 15px 0 0 0; 
     193} 
     194 
     195/* 2カラム設定 */ 
     196div#two_maincolumn { 
     197    float: left; 
     198    width: 598px; 
     199    padding: 15px 0 0 0; 
     200} 
     201 
     202div#two_maincolumn h2 { 
     203    padding: 15px 0 0 0; 
     204} 
     205 
     206/* 1カラム設定 */ 
     207div#one_maincolumn { 
    195208    padding: 10px 0 0 0; 
    196209} 
  • branches/comu-ver2/html/user_data/packages/default/css/under.css

    r16807 r17116  
    55----------------------------------------------- */ 
    66div#undercolumn { 
    7     float: right; 
    87    width: 580px; 
    9     margin: 15px 0 0 0; 
     8    margin: 15px auto 0 auto; 
    109} 
    1110 
Note: See TracChangeset for help on using the changeset viewer.