Moving assets and resources to the public folder
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
|
||||
<f:render section="main" />
|
||||
@@ -0,0 +1,116 @@
|
||||
{namespace gomapsext=Clickstorm\GoMapsExt\ViewHelpers}
|
||||
|
||||
<gomapsext:script>
|
||||
(function ($, window, document, undefined) {
|
||||
$(function () {
|
||||
var gme = new Object();
|
||||
|
||||
gme.zoomTypes = new Array(google.maps.ZoomControlStyle.DEFAULT,
|
||||
google.maps.ZoomControlStyle.SMALL,
|
||||
google.maps.ZoomControlStyle.LARGE);
|
||||
gme.defaultMapTypes = new Array(google.maps.MapTypeId.ROADMAP,
|
||||
google.maps.MapTypeId.SATELLITE,
|
||||
google.maps.MapTypeId.HYBRID,
|
||||
google.maps.MapTypeId.TERRAIN,
|
||||
"{map.styledMapName}");
|
||||
|
||||
gme.mapSettings = <![CDATA[{]]>
|
||||
title: '<gomapsext:escape>{map.title}</gomapsext:escape>',
|
||||
tooltipTitle: '<gomapsext:escape>{map.tooltipTitle}</gomapsext:escape>',
|
||||
CSSClass: '{map.class}',
|
||||
width: '{map.width}',
|
||||
height: '{map.height}',
|
||||
zoom: {f:if(condition:"{map.zoom}", then:"{map.zoom}", else:"0")},
|
||||
kmlUrl: '{map.kmlUrl}',
|
||||
kmlPreserveViewport: {f:if(condition:"{map.kmlPreserveViewport}", then:"true", else:"false")},
|
||||
kmlLocal: {f:if(condition:"{map.kmlLocal}", then:"1", else:"0")},
|
||||
scrollZoom: {f:if(condition:"{map.scrollZoom}", then:"1", else:"0")},
|
||||
draggable: {f:if(condition:"{map.draggable}", then:"1", else:"0")},
|
||||
doubleClickZoom: {f:if(condition:"{map.doubleClickZoom}", then:"0", else:"1")},
|
||||
markerCluster: {f:if(condition:"{map.markerCluster}", then:"1", else:"0")},
|
||||
markerClusterZoom: {f:if(condition:"{map.markerClusterZoom} > 0", then:"{map.markerClusterZoom}", else:"null")},
|
||||
markerClusterSize: {f:if(condition:"{map.markerClusterSize} > 0", then:"{map.markerClusterSize}", else:"null")},
|
||||
markerSearch: {f:if(condition:"{map.markerSearch}", then:"1", else:"0")},
|
||||
defaultType: {map.defaultType},
|
||||
panControl: {f:if(condition:"{map.panControl}", then:"1", else:"0")},
|
||||
scaleControl: {f:if(condition:"{map.scaleControl}", then:"1", else:"0")},
|
||||
streetviewControl: {f:if(condition:"{map.streetviewControl}", then:"1", else:"0")},
|
||||
zoomControl: {f:if(condition:"{map.zoomControl}", then:"1", else:"0")},
|
||||
zoomControlType: {map.zoomControlType},
|
||||
mapTypeControl: {f:if(condition:"{map.mapTypeControl}", then:"1", else:"0")},
|
||||
showRoute: {f:if(condition:"{map.showRoute}", then:"1", else:"0")},
|
||||
calcRoute: {f:if(condition:"{map.calcRoute}", then:"1", else:"0")},
|
||||
travelMode: {map.travelMode},
|
||||
unitSystem: {map.unitSystem},
|
||||
showForm: {f:if(condition:"{map.showForm}", then:"1", else:"0")},
|
||||
showCategories: {f:if(condition:"{map.showCategories}", then:"1", else:"0")},
|
||||
styledMapName: '{map.styledMapName}',
|
||||
<f:if condition="{map.styledMapCode}">
|
||||
<f:then>
|
||||
styledMapCode: <f:format.html parseFuncTSPath="">{map.styledMapCode}</f:format.html>,
|
||||
</f:then>
|
||||
<f:else>
|
||||
styledMapCode: '',
|
||||
</f:else>
|
||||
</f:if>
|
||||
defaultZoom: 11
|
||||
<![CDATA[}]]>
|
||||
|
||||
gme.mapSettings.mapTypes = new Array();
|
||||
<f:for each="{map.mapTypes}" as="type" iteration="i">
|
||||
gme.mapSettings.mapTypes[{i.index}] = gme.defaultMapTypes[{type}];
|
||||
</f:for>
|
||||
|
||||
gme.request = new Array();
|
||||
|
||||
<f:for each="{request}" as="item" iteration="i" key="k">
|
||||
gme.request['{k}'] = '{item}';
|
||||
</f:for>
|
||||
|
||||
gme.addresses = new Array();
|
||||
<f:for each="{addresses}" as="address" iteration="i">
|
||||
gme.addresses[{i.index}] = <![CDATA[{]]>
|
||||
title: '<gomapsext:escape>{address.title}</gomapsext:escape>',
|
||||
latitude: {address.latitude},
|
||||
longitude: {address.longitude},
|
||||
address: '{address.address}',
|
||||
marker: '{f:if(condition:"{address.marker}" then:"uploads/tx_gomapsext/{address.marker}")}',
|
||||
imageSize: {f:if(condition:"{address.imageSize}", then:"1", else:"0")},
|
||||
imageWidth: {address.imageWidth},
|
||||
imageHeight: {address.imageHeight},
|
||||
shadow: '{f:if(condition:"{address.shadow}" then:"uploads/tx_gomapsext/{address.shadow}")}',
|
||||
shadowSize: {f:if(condition:"{address.shadowSize}", then:"1", else:"0")},
|
||||
shadowWidth: {address.shadowWidth},
|
||||
shadowHeight: {address.shadowHeight},
|
||||
infoWindowContent: '<gomapsext:escape><f:format.html>{address.infoWindowContent}</f:format.html></gomapsext:escape>',
|
||||
infoWindowLink: {address.infoWindowLink},
|
||||
<f:if condition="{settings.openByClick}">
|
||||
<f:then>
|
||||
openByClick: 1,
|
||||
</f:then>
|
||||
<f:else>
|
||||
openByClick: {f:if(condition:"{address.openByClick}", then:"1", else:"0")},
|
||||
</f:else>
|
||||
</f:if>
|
||||
<f:if condition="{settings.closeByClick}">
|
||||
<f:then>
|
||||
closeByClick: 1,
|
||||
</f:then>
|
||||
<f:else>
|
||||
closeByClick: {f:if(condition:"{address.closeByClick}", then:"1", else:"0")},
|
||||
</f:else>
|
||||
</f:if>
|
||||
opened: {f:if(condition:"{address.opened}", then:"1", else:"0")},
|
||||
categories: '<f:for each="{address.categories}" as="category" iteration="icat">{category.uid}{f:if(condition:icat.isLast,then:'',else:',')}</f:for>'
|
||||
<![CDATA[}]]>
|
||||
</f:for>
|
||||
|
||||
gme.ll = {};
|
||||
gme.ll.alert = "<f:translate key="LLL:EXT:go_maps_ext/Resources/Private/Language/locallang.xlf:tx_gomapsext_partials_map_assign.alert" />";
|
||||
gme.ll.submit = "<f:translate key="LLL:EXT:go_maps_ext/Resources/Private/Language/locallang.xlf:tx_gomapsext_partials_map_assign.submit" />";
|
||||
gme.ll.noSearchResults = "<f:translate key="LLL:EXT:go_maps_ext/Resources/Private/Language/locallang.xlf:tx_gomapsext_partials_map_assign.noSearchResults" />";
|
||||
gme.ll.infoWindowLinkText = "<f:translate key="LLL:EXT:go_maps_ext/Resources/Private/Language/locallang.xlf:tx_gomapsext_partials_map_assign.infoWindowLinkText" />";
|
||||
jQuery("#{map.title}").gomapsext(gme);
|
||||
}); // end of closure
|
||||
})(jQuery, window, document);
|
||||
</gomapsext:script>
|
||||
@@ -0,0 +1,8 @@
|
||||
<ul class="gomapsext-cats">
|
||||
<f:for each="{categories}" as="name" key="uid">
|
||||
<li>
|
||||
<f:form.checkbox id="gomapsext-cat-{uid}" name="tx_csgomapsext_show[cat]" value="{uid}" title="{name}" />
|
||||
<label for="gomapsext-cat-{uid}">{name}</label>
|
||||
</li>
|
||||
</f:for>
|
||||
</ul>
|
||||
@@ -0,0 +1,42 @@
|
||||
{namespace gomapsext=Clickstorm\GoMapsExt\ViewHelpers}
|
||||
<f:if condition="{map.markerSearch}">
|
||||
<form id="{map.title}-search" method="post">
|
||||
<input type="text" name="sword" class="gme-sword" value="{request.sword}" />
|
||||
<input type="submit" class="gme-submit" name="submitSearch" value="{f:translate(key:'tx_gomapsext_partials_map_assign.submitSearch')}" />
|
||||
</form>
|
||||
</f:if>
|
||||
<f:form id="{map.title}-form" method="post">
|
||||
<f:if condition="{map.calcRoute}">
|
||||
<f:form.textfield name="saddress" class="gme-saddress" value="{request.saddress}" />
|
||||
<f:if condition="{f:count(subject:addresses)} > 1">
|
||||
<select name="eaddress" class="gme-eaddress" value="{request.eaddress}">
|
||||
<f:for each="{addresses}" as="address" iteration="i">
|
||||
<option value="{i.index}">{address.title}</option>
|
||||
</f:for>
|
||||
</select>
|
||||
</f:if>
|
||||
</f:if>
|
||||
<f:if condition="{map.travelMode} == 1">
|
||||
<gomapsext:hideInFrontend>
|
||||
<!--
|
||||
Possible options for the Travel Mode are
|
||||
0:map.travelModes.0 == Driving
|
||||
2:map.travelModes.2 == Bicycling
|
||||
3:map.travelModes.3 == Transit
|
||||
4:map.travelModes.4 == Walking
|
||||
-->
|
||||
</gomapsext:hideInFrontend>
|
||||
<f:form.select name="travelmode" value="{f:if(condition:request.travelmode,then:request.travelmode,else:2)}" class="gme-travelmode" options="{0:map.travelModes.0, 3:map.travelModes.3, 4:map.travelModes.4}" size="1" />
|
||||
</f:if>
|
||||
<f:if condition="{map.unitSystem} == 1">
|
||||
<gomapsext:hideInFrontend>
|
||||
<!--
|
||||
Possible options for the Unit System are
|
||||
1:map.unitSystems.2 == Metric (km)
|
||||
2:map.unitSystems.3 == Imperial (mil)
|
||||
-->
|
||||
</gomapsext:hideInFrontend>
|
||||
<f:form.select name="unitsystem" value="{f:if(condition:request.unitsystem,then:request.unitsystem,else:2)}" class="gme-unitsystem" options="{map.unitSystems}" size="1" />
|
||||
</f:if>
|
||||
<f:form.submit class="gme-submit" name="submit" value="{f:translate(key:'tx_gomapsext_partials_map_assign.submit')}" />
|
||||
</f:form>
|
||||
@@ -0,0 +1,12 @@
|
||||
<f:layout name="Default" />
|
||||
|
||||
<f:section name="main">
|
||||
<f:if condition="{map.showForm}">
|
||||
<f:render partial="Map/Form" arguments="{map:map, request:request, addresses: addresses}"/>
|
||||
</f:if>
|
||||
<div id="{map.title}" class="map-wrapper"> </div>
|
||||
<f:render partial="Map/Assign" arguments="{request:request, map:map, settings:settings, addresses:addresses}" />
|
||||
<f:if condition="{map.showCategories}">
|
||||
<f:render partial="Map/Categories" arguments="{map:map, addresses:addresses, request:request, categories: categories}" />
|
||||
</f:if>
|
||||
</f:section>
|
||||
Reference in New Issue
Block a user