Ignore:
Timestamp:
2012/02/18 20:49:30 (12 years ago)
Author:
Seasoft
Message:

#1613 (ソース整形・ソースコメントの改善)

  • スマートホンテンプレート(主にインデント 4TABを徹底)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_12-dev/data/Smarty/templates/sphone/site_main.tpl

    r21132 r21533  
    2323<div data-role="page" data-keep-native=".data-role-none" data-theme="f"> 
    2424 
    25 <!--{* ▼HeaderHeaderTop COLUMN*}--> 
     25    <!--{* ▼HeaderHeaderTop COLUMN*}--> 
    2626    <!--{if $arrPageLayout.HeaderTopNavi|@count > 0}--> 
    2727        <div class="header_utility"> 
     
    3939        </div> 
    4040    <!--{/if}--> 
    41 <!--{* ▲HeaderHeaderTop COLUMN*}--> 
    42 <!--{* ▼HEADER *}--> 
    43 <!--{if $arrPageLayout.header_chk != 2}--> 
     41    <!--{* ▲HeaderHeaderTop COLUMN*}--> 
     42 
     43    <!--{* ▼HEADER *}--> 
     44    <!--{if $arrPageLayout.header_chk != 2}--> 
    4445        <!--{include file= $header_tpl}--> 
    45 <!--{/if}--> 
    46 <!--{* ▲HEADER *}--> 
     46    <!--{/if}--> 
     47    <!--{* ▲HEADER *}--> 
    4748 
    4849 
    49 <!--{* ▼TOP COLUMN*}--> 
    50 <!--{if $arrPageLayout.TopNavi|@count > 0}--> 
    51 <div class="header_utility"> 
    52     <!--{* ▼上ナビ *}--> 
    53     <!--{foreach key=TopNaviKey item=TopNaviItem from=$arrPageLayout.TopNavi}--> 
    54         <!-- ▼<!--{$TopNaviItem.bloc_name}--> --> 
    55         <!--{if $TopNaviItem.php_path != ""}--> 
    56             <!--{include_php file=$TopNaviItem.php_path items=$TopNaviItem}--> 
    57         <!--{else}--> 
    58             <!--{include file=$TopNaviItem.tpl_path items=$TopNaviItem}--> 
     50    <!--{* ▼TOP COLUMN*}--> 
     51    <!--{if $arrPageLayout.TopNavi|@count > 0}--> 
     52        <div class="header_utility"> 
     53            <!--{* ▼上ナビ *}--> 
     54            <!--{foreach key=TopNaviKey item=TopNaviItem from=$arrPageLayout.TopNavi}--> 
     55                <!-- ▼<!--{$TopNaviItem.bloc_name}--> --> 
     56                <!--{if $TopNaviItem.php_path != ""}--> 
     57                    <!--{include_php file=$TopNaviItem.php_path items=$TopNaviItem}--> 
     58                <!--{else}--> 
     59                    <!--{include file=$TopNaviItem.tpl_path items=$TopNaviItem}--> 
     60                <!--{/if}--> 
     61                <!-- ▲<!--{$TopNaviItem.bloc_name}--> --> 
     62            <!--{/foreach}--> 
     63            <!--{* ▲上ナビ *}--> 
     64        </div> 
     65    <!--{/if}--> 
     66    <!--{* ▲TOP COLUMN*}--> 
     67 
     68    <!--{* ▼CENTER COLUMN *}--> 
     69    <div id="main-content"> 
     70        <!--{* ▼メイン上部 *}--> 
     71        <!--{if $arrPageLayout.MainHead|@count > 0}--> 
     72            <!--{foreach key=MainHeadKey item=MainHeadItem from=$arrPageLayout.MainHead}--> 
     73                <!-- ▼<!--{$MainHeadItem.bloc_name}--> --> 
     74                <!--{if $MainHeadItem.php_path != ""}--> 
     75                    <!--{include_php file=$MainHeadItem.php_path items=$MainHeadItem}--> 
     76                <!--{else}--> 
     77                    <!--{include file=$MainHeadItem.tpl_path items=$MainHeadItem}--> 
     78                <!--{/if}--> 
     79                <!-- ▲<!--{$MainHeadItem.bloc_name}--> --> 
     80            <!--{/foreach}--> 
    5981        <!--{/if}--> 
    60         <!-- ▲<!--{$TopNaviItem.bloc_name}--> --> 
    61     <!--{/foreach}--> 
    62     <!--{* ▲上ナビ *}--> 
    63 </div> 
    64 <!--{/if}--> 
    65 <!--{* ▲TOP COLUMN*}--> 
     82        <!--{* ▲メイン上部 *}--> 
    6683 
    67 <!--{* ▼CENTER COLUMN *}--> 
    68         <div id="main-content"> 
    69             <!--{* ▼メイン上部 *}--> 
    70             <!--{if $arrPageLayout.MainHead|@count > 0}--> 
    71                 <!--{foreach key=MainHeadKey item=MainHeadItem from=$arrPageLayout.MainHead}--> 
    72                     <!-- ▼<!--{$MainHeadItem.bloc_name}--> --> 
    73                     <!--{if $MainHeadItem.php_path != ""}--> 
    74                         <!--{include_php file=$MainHeadItem.php_path items=$MainHeadItem}--> 
    75                     <!--{else}--> 
    76                         <!--{include file=$MainHeadItem.tpl_path items=$MainHeadItem}--> 
    77                     <!--{/if}--> 
    78                     <!-- ▲<!--{$MainHeadItem.bloc_name}--> --> 
    79                 <!--{/foreach}--> 
    80             <!--{/if}--> 
    81             <!--{* ▲メイン上部 *}--> 
     84        <!--{* ▼メイン *}--> 
     85        <!--{include file=$tpl_mainpage}--> 
     86        <!--{* ▲メイン *}--> 
    8287 
    83             <!--{* ▼メイン *}--> 
    84             <!--{include file=$tpl_mainpage}--> 
    85             <!--{* ▲メイン *}--> 
     88        <!--{* ▼メイン下部 *}--> 
     89        <!--{if $arrPageLayout.MainFoot|@count > 0}--> 
     90            <!--{foreach key=MainFootKey item=MainFootItem from=$arrPageLayout.MainFoot}--> 
     91                <!-- ▼<!--{$MainFootItem.bloc_name}--> --> 
     92                <!--{if $MainFootItem.php_path != ""}--> 
     93                    <!--{include_php file=$MainFootItem.php_path items=$MainFootItem}--> 
     94                <!--{else}--> 
     95                    <!--{include file=$MainFootItem.tpl_path items=$MainFootItem}--> 
     96                <!--{/if}--> 
     97                <!-- ▲<!--{$MainFootItem.bloc_name}--> --> 
     98            <!--{/foreach}--> 
     99        <!--{/if}--> 
     100        <!--{* ▲メイン下部 *}--> 
     101    </div> 
     102    <!--{* ▲CENTER COLUMN *}--> 
    86103 
    87             <!--{* ▼メイン下部 *}--> 
    88             <!--{if $arrPageLayout.MainFoot|@count > 0}--> 
    89                 <!--{foreach key=MainFootKey item=MainFootItem from=$arrPageLayout.MainFoot}--> 
    90                     <!-- ▼<!--{$MainFootItem.bloc_name}--> --> 
    91                     <!--{if $MainFootItem.php_path != ""}--> 
    92                         <!--{include_php file=$MainFootItem.php_path items=$MainFootItem}--> 
    93                     <!--{else}--> 
    94                         <!--{include file=$MainFootItem.tpl_path items=$MainFootItem}--> 
    95                     <!--{/if}--> 
    96                     <!-- ▲<!--{$MainFootItem.bloc_name}--> --> 
    97                 <!--{/foreach}--> 
    98             <!--{/if}--> 
    99             <!--{* ▲メイン下部 *}--> 
     104    <!--{* ▼BOTTOM COLUMN*}--> 
     105    <!--{if $arrPageLayout.BottomNavi|@count > 0}--> 
     106        <div id="footer_utility"> 
     107            <!--{* ▼下ナビ *}--> 
     108            <!--{foreach key=BottomNaviKey item=BottomNaviItem from=$arrPageLayout.BottomNavi}--> 
     109                <!-- ▼<!--{$BottomNaviItem.bloc_name}--> --> 
     110                <!--{if $BottomNaviItem.php_path != ""}--> 
     111                    <!--{include_php file=$BottomNaviItem.php_path items=$BottomNaviItem}--> 
     112                <!--{else}--> 
     113                    <!--{include file=$BottomNaviItem.tpl_path items=$BottomNaviItem}--> 
     114                <!--{/if}--> 
     115                <!-- ▲<!--{$BottomNaviItem.bloc_name}--> --> 
     116            <!--{/foreach}--> 
     117            <!--{* ▲下ナビ *}--> 
    100118        </div> 
    101 <!--{* ▲CENTER COLUMN *}--> 
    102  
    103 <!--{* ▼BOTTOM COLUMN*}--> 
    104         <!--{if $arrPageLayout.BottomNavi|@count > 0}--> 
    105             <div id="footer_utility"> 
    106                 <!--{* ▼下ナビ *}--> 
    107                 <!--{foreach key=BottomNaviKey item=BottomNaviItem from=$arrPageLayout.BottomNavi}--> 
    108                     <!-- ▼<!--{$BottomNaviItem.bloc_name}--> --> 
    109                     <!--{if $BottomNaviItem.php_path != ""}--> 
    110                         <!--{include_php file=$BottomNaviItem.php_path items=$BottomNaviItem}--> 
    111                     <!--{else}--> 
    112                         <!--{include file=$BottomNaviItem.tpl_path items=$BottomNaviItem}--> 
    113                     <!--{/if}--> 
    114                     <!-- ▲<!--{$BottomNaviItem.bloc_name}--> --> 
    115                 <!--{/foreach}--> 
    116                 <!--{* ▲下ナビ *}--> 
    117             </div> 
    118         <!--{/if}--> 
    119 <!--{* ▲BOTTOM COLUMN*}--> 
     119    <!--{/if}--> 
     120    <!--{* ▲BOTTOM COLUMN*}--> 
    120121 
    121122 
    122 <!--{* ▼FOOTER *}--> 
    123 <!--{if $arrPageLayout.footer_chk != 2}--> 
    124 <!--{include file= './footer.tpl'}--> 
    125 <!--{/if}--> 
    126 <!--{* ▲FOOTER *}--> 
     123    <!--{* ▼FOOTER *}--> 
     124    <!--{if $arrPageLayout.footer_chk != 2}--> 
     125        <!--{include file= './footer.tpl'}--> 
     126    <!--{/if}--> 
     127    <!--{* ▲FOOTER *}--> 
    127128 
    128  <!--{* ▼FooterBottom COLUMN*}--> 
     129    <!--{* ▼FooterBottom COLUMN*}--> 
    129130    <!--{if $arrPageLayout.FooterBottomNavi|@count > 0}--> 
    130131        <div id="footerbottomcolumn"> 
     
    142143        </div> 
    143144    <!--{/if}--> 
    144 <!--{* ▲FooterBottom COLUMN*}--> 
     145    <!--{* ▲FooterBottom COLUMN*}--> 
    145146 
    146147</div> 
     
    148149<!-- ▼明細情報 --> 
    149150<div id="windowcolumn" data-role="dialog"> 
    150  <div data-role="header" data-backbtn="true" data-theme="f"> 
    151    <h2>新着情報</h2> 
    152  </div> 
     151    <div data-role="header" data-backbtn="true" data-theme="f"> 
     152        <h2>新着情報</h2> 
     153    </div> 
    153154 
    154  <div data-role="content" data-theme="d"> 
    155    <dl class="view_detail"> 
    156      <dt><a href="javascript:;" rel="external" target="_blank"></a></dt> 
    157        <dd id="newsComment"></dd> 
    158    </dl> 
    159      <p><a href="<!--{$smarty.const.HTTP_URL}-->" class="btn_more" data-rel="back">新着一覧にもどる</a></p> 
    160  </div> 
     155    <div data-role="content" data-theme="d"> 
     156        <dl class="view_detail"> 
     157            <dt><a href="javascript:;" rel="external" target="_blank"></a></dt> 
     158            <dd id="newsComment"></dd> 
     159        </dl> 
     160        <p><a href="<!--{$smarty.const.HTTP_URL}-->" class="btn_more" data-rel="back">新着一覧にもどる</a></p> 
     161    </div> 
    161162</div> 
    162163<!-- ▲明細情報 --> 
Note: See TracChangeset for help on using the changeset viewer.