Changeset 22 for ATGoogleMaps


Ignore:
Timestamp:
06/18/06 00:51:37 (6 years ago)
Author:
takanori
Message:

modify gmarker_view.pt

Location:
ATGoogleMaps/trunk/skins/googlemaps
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • ATGoogleMaps/trunk/skins/googlemaps/gmap.dtml

    r20 r22  
    2424    // Create marker icon 
    2525    var icon = new GIcon(); 
    26     icon.image = "<dtml-var portal_url>/plone/gmap_marker.png"; 
    27     icon.shadow = "<dtml-var portal_url>/plone/gmap_shadow.png"; 
     26    icon.image = "<dtml-var portal_url>/gmap_marker.png"; 
     27    icon.shadow = "<dtml-var portal_url>/gmap_shadow.png"; 
    2828    icon.iconSize = new GSize(20, 34); 
    2929    icon.shadowSize = new GSize(37, 34); 
  • ATGoogleMaps/trunk/skins/googlemaps/gmap_view.pt

    r20 r22  
    99    </script> 
    1010     
    11     <span tal:condition="python: 1" tal:replace="structure here/gmap" /> 
     11    <span tal:replace="structure here/gmap" /> 
    1212  </metal:block> 
    1313</head> 
  • ATGoogleMaps/trunk/skins/googlemaps/gmarker_view.pt

    r5 r22  
    22      lang="en" 
    33      metal:use-macro="here/main_template/macros/master" 
    4       i18n:domain="plone"> 
     4      i18n:domain="googlemaps"> 
     5<head> 
     6  <metal:block fill-slot="javascript_head_slot"> 
     7    <script type="text/javascript" src="" 
     8            tal:attributes="src string:http://${here/server}/maps?file=api&v=2&key=${here/portal_properties/gmap_properties/api_key}"> 
     9    </script> 
     10 
     11    <span tal:replace="structure here/gmarker_map" /> 
     12  </metal:block> 
     13</head> 
     14 
    515<body> 
    616 
    7 <metal:javascriptslot fill-slot="javascript_head_slot"> 
    8 </metal:javascriptslot> 
     17<metal:main fill-slot="main"> 
     18  <tal:main-macro metal:define-macro="main"> 
    919 
    10 <metal:main fill-slot="main"> 
    11     <tal:main-macro metal:define-macro="main"> 
     20    <div metal:use-macro="here/document_actions/macros/document_actions"> 
     21      Document actions (print, sendto etc) 
     22    </div> 
    1223 
    13         <div metal:use-macro="here/document_actions/macros/document_actions"> 
    14             Document actions (print, sendto etc) 
    15         </div> 
     24    <h1 tal:content="here/pretty_title_or_id" class="documentFirstHeading"> 
     25      Title or id 
     26    </h1> 
    1627 
    17         <h1 tal:content="here/pretty_title_or_id" class="documentFirstHeading"> 
    18           Title or id 
    19         </h1> 
     28    <div metal:use-macro="here/document_byline/macros/byline"> 
     29      Get the byline - contains details about author and modification date. 
     30    </div> 
    2031 
    21         <div metal:use-macro="here/document_byline/macros/byline"> 
    22           Get the byline - contains details about author and modification date. 
    23         </div> 
     32    <div style="float: right; margin: 5px;"> 
     33      <div id="map" style="width: 300px; height: 150px;"></div> 
     34      <a href="" 
     35         tal:attributes="href string:http://${here/server}?ll=${here/latitude},${here/longitude}" 
     36         i18n:translate=""> 
     37        View larger map 
     38      </a> 
     39    </div> 
    2440 
    25         <p class="documentDescription" 
    26            tal:content="here/Description" 
    27            tal:condition="here/Description"> 
    28             Description 
    29         </p> 
     41    <img src="" 
     42         tal:condition="here/imageurl" 
     43         tal:attributes="src here/imageurl" /> 
     44     
     45    <div class="documentDescription" 
     46       tal:content="here/Description" 
     47       tal:condition="here/Description"> 
     48        Description 
     49    </div> 
    3050 
    31         <a href="" 
    32            tal:attributes="href string:http://maps.google.co.jp/maps?ll=${here/latitude},${here/longitude}&spn=0.003617,0.006727&hl=ja"> 
    33         (<span tal:replace="here/latitude" />, <span tal:replace="here/longitude" />) 
    34         </a> 
     51    <div class="address" 
     52      tal:condition="here/address"> 
     53      <label i18n:translate="label_address">Address</label> 
     54      <span tal:replace="here/address" /> 
     55    </div> 
    3556 
    36     </tal:main-macro> 
     57    <div class="phone" 
     58      tal:condition="here/phone"> 
     59      <label i18n:translate="label_phone">Phone</label> 
     60      <span tal:replace="here/phone" /> 
     61    </div> 
     62 
     63    <div class="url" 
     64      tal:condition="here/url"> 
     65      <a href="" 
     66         tal:attributes="href here/url" 
     67         i18n:domain="plone" i18n:translate="Link"> 
     68      Link 
     69      </a> 
     70    </div> 
     71 
     72    <br style="clear: both;"/> 
     73    <div tal:condition="here/getText" 
     74         tal:content="structure here/getText"> 
     75       Body Text 
     76    </div> 
     77     
     78     
     79  </tal:main-macro> 
    3780</metal:main> 
    3881 
Note: See TracChangeset for help on using the changeset viewer.