fmsystem-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Fmsystem-commits] [14340] google maps styles


From: Saul
Subject: [Fmsystem-commits] [14340] google maps styles
Date: Thu, 12 Nov 2015 23:54:54 +0000

Revision: 14340
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=14340
Author:   psaul
Date:     2015-11-12 23:54:54 +0000 (Thu, 12 Nov 2015)
Log Message:
-----------
google maps styles

Modified Paths:
--------------
    branches/dev-syncromind/bookingfrontend/css/bookingfrontend.css
    branches/dev-syncromind/bookingfrontend/templates/base/building.xsl
    branches/dev-syncromind/bookingfrontend/templates/base/resource.xsl

Modified: branches/dev-syncromind/bookingfrontend/css/bookingfrontend.css
===================================================================
--- branches/dev-syncromind/bookingfrontend/css/bookingfrontend.css     
2015-11-12 14:30:38 UTC (rev 14339)
+++ branches/dev-syncromind/bookingfrontend/css/bookingfrontend.css     
2015-11-12 23:54:54 UTC (rev 14340)
@@ -719,4 +719,7 @@
 #frontend .pure-g dl.proplist-col main {width: 100%;}
 #frontend .pure-g dl.proplist-col.main {width: 100%;}
 #frontend .pure-g dl.proplist-col.images {margin: 0 auto;max-width: 
300px;width: 90%;clear: none;float: none;}
+#frontend .pure-g dl.proplist-col.images.map {max-width: 500px;width: 
100%;max-height: 300px;}
+    .gmap-container {position: relative;padding-bottom: 60%;height: 
0;overflow: hidden;}
+    .gmap-container iframe {position: absolute;top: 0;left: 0;width: 100% 
!important;height: 100% !important;}
 #frontend .pure-g dl.proplist.images dd img {width: 100%;}
\ No newline at end of file

Modified: branches/dev-syncromind/bookingfrontend/templates/base/building.xsl
===================================================================
--- branches/dev-syncromind/bookingfrontend/templates/base/building.xsl 
2015-11-12 14:30:38 UTC (rev 14339)
+++ branches/dev-syncromind/bookingfrontend/templates/base/building.xsl 
2015-11-12 23:54:54 UTC (rev 14340)
@@ -79,15 +79,22 @@
                     <dl class="proplist-col images">
                         <div id="images_container"></div>
                     </dl>
-                                       <dl class="proplist-col images">
-                                               <div 
id="images_container"></div>
-                                               <xsl:if test="street and 
normalize-space(street)">
-                                                       <iframe width="500" 
height="300" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" 
id="googlemapiframe" src=""></iframe><br />
-                                                       <small><a href="" 
id="googlemaplink" style="color:#0000FF;text-align:left" target="_new">Vis 
større kart</a></small>
-                                               </xsl:if>
-                                       </dl>
                </div>
             </div>
+            <div class="pure-g">
+                <div class="pure-u-1 pure-u-lg-1-2"></div>
+                <div class="pure-u-1 pure-u-lg-1-2">
+                    <dl class="proplist-col images map">
+                        <!--div id="images_container"></div-->
+                        <xsl:if test="street and normalize-space(street)">
+                            <div class="gmap-container">
+                                <iframe width="500" height="300" 
frameborder="0" scrolling="no" marginheight="0" marginwidth="0" 
id="googlemapiframe" src=""></iframe>
+                            </div>
+                            <small><a href="" id="googlemaplink" 
style="color:#0000FF;text-align:left" target="_new">Vis større kart</a></small>
+                        </xsl:if>
+                    </dl>
+                </div>
+            </div>
 
             <script type="text/javascript">
                 var building_id = <xsl:value-of select="id"/>;

Modified: branches/dev-syncromind/bookingfrontend/templates/base/resource.xsl
===================================================================
--- branches/dev-syncromind/bookingfrontend/templates/base/resource.xsl 
2015-11-12 14:30:38 UTC (rev 14339)
+++ branches/dev-syncromind/bookingfrontend/templates/base/resource.xsl 
2015-11-12 23:54:54 UTC (rev 14340)
@@ -42,17 +42,24 @@
                     <div id="images_container">
                     </div>
                 </dl>
-                                       <dl class="proplist-col images">
-                                               <div 
id="images_container"></div>
-                                                       <xsl:if 
test="resource/building/street and normalize-space(resource/building/street)">
-                                                               <iframe 
width="500" height="300" frameborder="0" scrolling="no" marginheight="0" 
marginwidth="0" id="googlemapiframe" src=""></iframe><br />
-                                                               <small><a 
href="" id="googlemaplink" style="color:#0000FF;text-align:left" 
target="_new">Vis større kart</a></small>
-                                                       </xsl:if>
-                                       </dl>
            </div>
-        </div>
+        </div>        
+        <div class="pure-g">
+            <div class="pure-u-1 pure-u-lg-1-2"></div>
+            <div class="pure-u-1 pure-u-lg-1-2">
+                <dl class="proplist-col images map">
+                    <!--div id="images_container"></div-->
+                    <xsl:if test="resource/building/street and 
normalize-space(resource/building/street)">
+                        <div class="gmap-container">
+                            <iframe width="500" height="300" frameborder="0" 
scrolling="no" marginheight="0" marginwidth="0" id="googlemapiframe" 
src=""></iframe>
+                        </div>
+                        <small><a href="" id="googlemaplink" 
style="color:#0000FF;text-align:left" target="_new">Vis større kart</a></small>
+                    </xsl:if>
+                </dl>
+            </div>
+        </div>        
        </div>
-       <script type="text/javascript">
+       <script type="text/javascript">        
                var resource_id = <xsl:value-of select="resource/id"/>;
                var lang = <xsl:value-of select="php:function('js_lang', 
'Name', 'category', 'Activity')"/>;
                var address = '<xsl:value-of 
select="resource/building/street"/>, <xsl:value-of 
select="resource/building/zip_code"/>, <xsl:value-of 
select="resource/building/city"/>';
@@ -76,7 +83,7 @@
                                $("#googlemaplink").attr("href", linkurl);
                        }
 
-               });
+        });
 
     /*
     <![CDATA[




reply via email to

[Prev in Thread] Current Thread [Next in Thread]