Ignore:
Timestamp:
2013/07/01 11:45:09 (11 years ago)
Author:
Seasoft
Message:

#2291 (利用ガイドブロック selected クラスの指定に誤り)
#2140 (標準テンプレートのカスタマイズ性を高める)
#2043 (typo修正・ソース整形・ソースコメントの改善 for 2.13.0)

  • html ヘッダーを「charset -> title -> meta -> link -> script」の順に整えた。ただし、スマートフォンは定義が複雑なので、link, script の混在は残した。

#2044 (無駄な処理を改善する for 2.13.0)

  • ヘッダー部の h1 マークアップは、古の SEO 手法だと思いますので削除します。
File:
1 edited

Legend:

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

    r22825 r22931  
    2727        <meta http-equiv="Content-Type" content="text/html; charset=<!--{$smarty.const.CHAR_CODE}-->" /> 
    2828 
     29        <title><!--{$arrSiteInfo.shop_name|h}--><!--{if $tpl_subtitle|strlen >= 1}--> / <!--{$tpl_subtitle|h}--><!--{elseif $tpl_title|strlen >= 1}--> / <!--{$tpl_title|h}--><!--{/if}--></title> 
     30 
    2931        <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1, user-scalable=0" /> 
    3032        <meta name="format-detection" content="telephone=no"> 
     33        <!--{if $arrPageLayout.author|strlen >= 1}--> 
     34            <meta name="author" content="<!--{$arrPageLayout.author|h}-->" /> 
     35        <!--{/if}--> 
     36        <!--{if $arrPageLayout.description|strlen >= 1}--> 
     37            <meta name="description" content="<!--{$arrPageLayout.description|h}-->" /> 
     38        <!--{/if}--> 
     39        <!--{if $arrPageLayout.keyword|strlen >= 1}--> 
     40            <meta name="keywords" content="<!--{$arrPageLayout.keyword|h}-->" /> 
     41        <!--{/if}--> 
     42        <!--{if $arrPageLayout.meta_robots|strlen >= 1}--> 
     43            <meta name="robots" content="<!--{$arrPageLayout.meta_robots|h}-->" /> 
     44        <!--{/if}--> 
     45 
     46        <link rel="shortcut icon" href="<!--{$TPL_URLPATH}-->img/common/favicon.ico" /> 
     47        <link rel="icon" type="image/vnd.microsoft.icon" href="<!--{$TPL_URLPATH}-->img/common/favicon.ico" /> 
    3148        <!--{* 共通CSS *}--> 
    3249        <link rel="stylesheet" media="only screen" href="<!--{$TPL_URLPATH}-->css/import.css" /> 
     
    5875        <script src="<!--{$TPL_URLPATH}-->js/favorite.js"></script> 
    5976 
    60         <title><!--{$arrSiteInfo.shop_name|h}--><!--{if $tpl_subtitle|strlen >= 1}--> / <!--{$tpl_subtitle|h}--><!--{elseif $tpl_title|strlen >= 1}--> / <!--{$tpl_title|h}--><!--{/if}--></title> 
    61         <!--{if $arrPageLayout.author|strlen >= 1}--> 
    62             <meta name="author" content="<!--{$arrPageLayout.author|h}-->" /> 
    63         <!--{/if}--> 
    64         <!--{if $arrPageLayout.description|strlen >= 1}--> 
    65             <meta name="description" content="<!--{$arrPageLayout.description|h}-->" /> 
    66         <!--{/if}--> 
    67         <!--{if $arrPageLayout.keyword|strlen >= 1}--> 
    68             <meta name="keywords" content="<!--{$arrPageLayout.keyword|h}-->" /> 
    69         <!--{/if}--> 
    70         <!--{if $arrPageLayout.meta_robots|strlen >= 1}--> 
    71             <meta name="robots" content="<!--{$arrPageLayout.meta_robots|h}-->" /> 
    72         <!--{/if}--> 
    73         <link rel="shortcut icon" href="<!--{$TPL_URLPATH}-->img/common/favicon.ico" /> 
    74         <link rel="icon" type="image/vnd.microsoft.icon" href="<!--{$TPL_URLPATH}-->img/common/favicon.ico" /> 
    7577        <!--{* iPhone用アイコン画像 *}--> 
    7678        <link rel="apple-touch-icon" href="<!--{$TPL_URLPATH}-->img/common/apple-touch-icon.png" /> 
     
    8385        //]]></script> 
    8486 
    85         <!--{* ▼Head COLUMN*}--> 
     87        <!--{* ▼Head COLUMN *}--> 
    8688            <!--{if $arrPageLayout.HeadNavi|@count > 0}--> 
    87                 <!--{* ▼上ナビ *}--> 
    88                     <!--{foreach key=HeadNaviKey item=HeadNaviItem from=$arrPageLayout.HeadNavi}--> 
    89                         <!--{* ▼<!--{$HeadNaviItem.bloc_name}--> ここから*}--> 
    90                             <!--{if $HeadNaviItem.php_path != ""}--> 
    91                                 <!--{include_php file=$HeadNaviItem.php_path items=$HeadNaviItem}--> 
    92                             <!--{else}--> 
    93                                 <!--{include file=$HeadNaviItem.tpl_path items=$HeadNaviItem}--> 
    94                             <!--{/if}--> 
    95                         <!--{* ▲<!--{$HeadNaviItem.bloc_name}--> ここまで*}--> 
    96                     <!--{/foreach}--> 
    97                 <!--{* ▲上ナビ *}--> 
     89                <!--{foreach key=HeadNaviKey item=HeadNaviItem from=$arrPageLayout.HeadNavi}--> 
     90                    <!--{* ▼<!--{$HeadNaviItem.bloc_name}--> *}--> 
     91                        <!--{if $HeadNaviItem.php_path != ""}--> 
     92                            <!--{include_php file=$HeadNaviItem.php_path items=$HeadNaviItem}--> 
     93                        <!--{else}--> 
     94                            <!--{include file=$HeadNaviItem.tpl_path items=$HeadNaviItem}--> 
     95                        <!--{/if}--> 
     96                    <!--{* ▲<!--{$HeadNaviItem.bloc_name}--> *}--> 
     97                <!--{/foreach}--> 
    9898            <!--{/if}--> 
    99         <!--{* ▲Head COLUMN*}--> 
     99        <!--{* ▲Head COLUMN *}--> 
    100100    </head> 
    101101 
    102     <!-- ▼BODY部 スタート --> 
     102    <!-- ▼BODY部 --> 
    103103    <!--{include file='./site_main.tpl'}--> 
    104     <!-- ▲BODY部 エンド --> 
     104    <!-- ▲BODY部 --> 
    105105 
    106106</html> 
Note: See TracChangeset for help on using the changeset viewer.