Changeset 17108
- Timestamp:
- 2008/03/05 15:30:09 (15 years ago)
- Location:
- branches/feature-share-ssl
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/feature-share-ssl/data/Smarty/templates/default/site_main.tpl
r17049 r17108 42 42 <div id="container"> 43 43 44 <!--{if $tpl_column_num > 1}-->45 44 <!--{* ▼LEFT COLUMN *}--> 45 <!--{if $arrPageLayout.LeftNavi|@count > 0}--> 46 46 <div id="leftcolumn"> 47 48 47 <!--{* ▼左ナビ *}--> 49 <!--{if $arrPageLayout.LeftNavi|@count > 0}-->50 48 <!--{foreach key=LeftNaviKey item=LeftNaviItem from=$arrPageLayout.LeftNavi}--> 51 49 <!-- ▼<!--{$LeftNaviItem.bloc_name}--> ここから--> … … 57 55 <!-- ▲<!--{$LeftNaviItem.bloc_name}--> ここまで--> 58 56 <!--{/foreach}--> 59 <!--{/if}-->60 57 <!--{* ▲左ナビ *}--> 61 58 </div> 59 <!--{/if}--> 62 60 <!--{* ▲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"> 63 69 <!--{/if}--> 64 65 <!--{if $tpl_column_num == 3}-->66 <!--{* ▼CENTER COLUMN *}-->67 <div id="centercolumn">68 <!--{/if}-->69 70 70 <!--{* ▼メイン上部 *}--> 71 71 <!--{if $arrPageLayout.MainHead|@count > 0}--> … … 81 81 <!--{/if}--> 82 82 <!--{* ▲メイン上部 *}--> 83 84 <!--{if $tpl_column_num == 1}--> 85 <div id="one_column"> 86 <!--{/if}--> 83 84 <!--{* ▼メイン *}--> 87 85 <!--{include file=$tpl_mainpage}--> 88 <!--{if $tpl_column_num == 1}--> 89 </div> 90 <!--{/if}--> 91 86 <!--{* ▲メイン *}--> 87 92 88 <!--{* ▼メイン下部 *}--> 93 89 <!--{if $arrPageLayout.MainFoot|@count > 0}--> … … 103 99 <!--{/if}--> 104 100 <!--{* ▲メイン下部 *}--> 105 106 <!--{if $tpl_column_num == 3}-->107 101 </div> 108 102 <!--{* ▲CENTER COLUMN *}--> 109 103 110 104 <!--{* ▼RIGHT COLUMN *}--> 105 <!--{if $arrPageLayout.RightNavi|@count > 0}--> 111 106 <div id="rightcolumn"> 112 107 <!--{* ▼右ナビ *}--> 113 <!--{if $arrPageLayout.RightNavi|@count > 0}-->114 108 <!--{foreach key=RightNaviKey item=RightNaviItem from=$arrPageLayout.RightNavi}--> 115 109 <!-- ▼<!--{$RightNaviItem.bloc_name}--> ここから--> … … 121 115 <!-- ▲<!--{$RightNaviItem.bloc_name}--> ここまで--> 122 116 <!--{/foreach}--> 123 <!--{/if}-->124 117 <!--{* ▲右ナビ *}--> 125 118 </div> 119 <!--{/if}--> 126 120 <!--{* ▲RIGHT COLUMN *}--> 127 <!--{/if}-->128 121 129 122 </div> -
branches/feature-share-ssl/data/class/helper/SC_Helper_PageLayout.php
r16735 r17108 102 102 $arrPageLayout['RightNavi'] = $this->lfGetNavi($arrNavi,3); // RIGHT NAVI 103 103 $arrPageLayout['MainFoot'] = $this->lfGetNavi($arrNavi,4); // メイン下部 104 104 105 105 GC_Utils::gfDebugLog($arrPageLayout); 106 106 107 107 $objPage->arrPageLayout = $arrPageLayout; 108 108 109 // カラム数を取得する 110 $objPage->tpl_column_num = $this->lfGetColumnNum($arrPageLayout); 111 109 112 GC_Utils::gfDebugLog($debug_message); 110 113 } … … 233 236 234 237 /** 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 /** 235 255 * ページ情報を削除する. 236 256 * -
branches/feature-share-ssl/html/user_data/packages/default/css/main.css
r17040 r17108 171 171 } 172 172 173 div#centercolumn { 173 div#rightcolumn { 174 float: left; 175 width: 166px; 176 } 177 178 div#rightcolumn h2 { 179 padding: 15px 0 0 0; 180 } 181 182 /* メインコンテンツ 183 ----------------------------------------------- */ 184 /* 3カラム設定 */ 185 div#three_maincolumn { 174 186 float: left; 175 187 width: 432px; … … 177 189 } 178 190 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 { 191 div#three_maincolumn h2 { 192 padding: 15px 0 0 0; 193 } 194 195 /* 2カラム設定 */ 196 div#two_maincolumn { 197 float: left; 198 width: 598px; 199 padding: 15px 0 0 0; 200 } 201 202 div#two_maincolumn h2 { 203 padding: 15px 0 0 0; 204 } 205 206 /* 1カラム設定 */ 207 div#one_maincolumn { 195 208 padding: 10px 0 0 0; 196 209 } … … 217 230 text-align: center; 218 231 } 219 220 232 221 233 /* カテゴリー … … 259 271 a.onlink:hover { color: #ff0000; } 260 272 261 262 273 /* ガイドリンク 263 274 ----------------------------------------------- */ … … 293 304 } 294 305 295 296 306 /* 検索 297 307 ----------------------------------------------- */ … … 314 324 border: solid 1px #ccc; 315 325 } 316 317 326 318 327 /* バナー -
branches/feature-share-ssl/html/user_data/packages/default/css/under.css
r16807 r17108 5 5 ----------------------------------------------- */ 6 6 div#undercolumn { 7 float: right;8 7 width: 580px; 9 margin: 15px 0 0 0;8 margin: 15px auto 0 auto; 10 9 } 11 10
Note: See TracChangeset
for help on using the changeset viewer.