source: branches/version-2_13-dev/data/Smarty/templates/sphone/abouts/index.tpl @ 23002

Revision 23002, 4.0 KB checked in by Yammy, 11 years ago (diff)

スマートフォンテンプレート下部にある検索エリアを
共通テンプレート化して、includeするように修正

refs #2257

  • Property svn:eol-style set to LF
  • Property svn:keywords set to Id
  • Property svn:mime-type set to text/x-smarty-template; charset=UTF-8
Line 
1<!--{*
2/*
3 * This file is part of EC-CUBE
4 *
5 * Copyright(c) 2000-2013 LOCKON CO.,LTD. All Rights Reserved.
6 *
7 * http://www.lockon.co.jp/
8 *
9 * This program is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU General Public License
11 * as published by the Free Software Foundation; either version 2
12 * of the License, or (at your option) any later version.
13 *
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17 * GNU General Public License for more details.
18 *
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, write to the Free Software
21 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
22 */
23*}-->
24
25<section id="undercolumn">
26    <!--☆当サイトについて -->
27    <h2 class="title"><!--{$tpl_title|h}--></h2>
28
29    <dl class="form_info">
30        <!--{if strlen($arrSiteInfo.shop_name)}-->
31            <dt>店名</dt>
32            <dd><!--{$arrSiteInfo.shop_name|h}--></dd>
33        <!--{/if}-->
34
35        <!--{if strlen($arrSiteInfo.company_name)}-->
36            <dt>会社名</dt>
37            <dd><!--{$arrSiteInfo.company_name|h}--></dd>
38        <!--{/if}-->
39
40        <!--{if strlen($arrSiteInfo.zip01)}-->
41            <dt>所在地</dt>
42            <dd>〒<!--{$arrSiteInfo.zip01|h}-->-<!--{$arrSiteInfo.zip02|h}--><br />
43                <!--{$arrPref[$arrSiteInfo.pref]|h}--><!--{$arrSiteInfo.addr01|h}--><!--{$arrSiteInfo.addr02|h}--></dd>
44        <!--{/if}-->
45
46        <!--{if strlen($arrSiteInfo.tel01)}-->
47            <dt>電話番号</dt>
48            <dd><!--{$arrSiteInfo.tel01|h}-->-<!--{$arrSiteInfo.tel02|h}-->-<!--{$arrSiteInfo.tel03|h}--></dd>
49        <!--{/if}-->
50
51        <!--{if strlen($arrSiteInfo.fax01)}-->
52            <dt>FAX番号</dt>
53            <dd><!--{$arrSiteInfo.fax01|h}-->-<!--{$arrSiteInfo.fax02|h}-->-<!--{$arrSiteInfo.fax03|h}--></dd>
54        <!--{/if}-->
55
56        <!--{if strlen($arrSiteInfo.email02)}-->
57            <dt>メールアドレス</dt>
58            <dd><a href="mailto:<!--{$arrSiteInfo.email02|escape:'hex'}-->" rel="external"><!--{$arrSiteInfo.email02|escape:'hexentity'}--></a></dd>
59        <!--{/if}-->
60
61        <!--{if strlen($arrSiteInfo.business_hour)}-->
62            <dt>営業時間</dt>
63            <dd><!--{$arrSiteInfo.business_hour|h}--></dd>
64        <!--{/if}-->
65
66        <!--{if strlen($arrSiteInfo.good_traded)}-->
67            <dt>取扱商品</dt>
68            <dd><!--{$arrSiteInfo.good_traded|h|nl2br}--></dd>
69        <!--{/if}-->
70
71        <!--{if strlen($arrSiteInfo.message)}-->
72            <dt>メッセージ</dt>
73            <dd><!--{$arrSiteInfo.message|h|nl2br}--></dd>
74        <!--{/if}-->
75    </dl>
76
77    <!--{if strlen($arrSiteInfo.latitude) >= 1 && strlen($arrSiteInfo.longitude) >= 1}-->
78        <script src="//maps.google.com/maps/api/js?sensor=false"></script>
79        <script type="text/javascript">//<![CDATA[
80            $(function() {
81                $("#maps").css({
82                    'margin-top': '15px',
83                    'margin-left': 'auto',
84                    'margin-right': 'auto',
85                    'width': '98%',
86                    'height': '300px'
87                });
88                var lat = "<!--{$arrSiteInfo.latitude|escape:'javascript'}-->";
89                var lng = "<!--{$arrSiteInfo.longitude|escape:'javascript'}-->";
90                var latlng = new google.maps.LatLng(lat, lng);
91                var mapOptions = {
92                    zoom: 15,
93                    center: latlng,
94                    mapTypeId: google.maps.MapTypeId.ROADMAP
95                };
96                var map = new google.maps.Map($("#maps").get(0), mapOptions);
97                var marker = new google.maps.Marker({map: map, position: latlng});
98            });
99        //]]></script>
100        <div id="maps"></div>
101    <!--{/if}-->
102</section>
103
104<!--{include file= 'frontparts/search_area.tpl'}-->
105
Note: See TracBrowser for help on using the repository browser.