This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="postEntry"> | |
<?php | |
if (class_exists("WelocallyPlaces")) { | |
$wl_plugin = new WelocallyPlaces(); | |
$wl_plugin->addPostPlaceInfo(); | |
} | |
?> | |
<?php the_content('Continue reading »'); ?> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.welocally.admin.mvc.view; | |
import java.util.Locale; | |
import org.apache.log4j.Logger; | |
import org.springframework.beans.BeansException; | |
import org.springframework.context.ApplicationContext; | |
import org.springframework.core.Ordered; | |
import org.springframework.web.servlet.View; | |
import org.springframework.web.servlet.ViewResolver; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//places are an array of JSON objects | |
var places = [ | |
{ | |
"properties": { | |
"phone": "+1 510 595 8000", | |
"classifiers": [ | |
{ | |
"category": "Restaurant", | |
"subcategory": "", | |
"type": "Food & Drink" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//config for the widget | |
var cfg = { imagePath: 'images/marker_all_base.png'}; | |
//instantiate it | |
var placeWidget = | |
new WELOCALLY_PlaceWidget(cfg) | |
.init(); | |
//load loacally with local place | |
placeWidget.load(places[0]); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//used for the pace display | |
var placeSelected = new WELOCALLY_PlaceWidget({}).init(); | |
//config the widget, use the places array | |
var cfg = { | |
id:'multi_trip_1', | |
zoom: 16, | |
imagePath: 'images/marker_all_base.png', | |
observers:[placeSelected], | |
places: places |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//used for the place display when selected | |
var placeSelected = new WELOCALLY_PlaceWidget({}).init(); | |
//config the widget, use the places array | |
var cfg = { | |
id:'multi_map_1', | |
imagePath: 'images/marker_all_base.png', | |
observers:[placeSelected], | |
places: places | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<head> | |
<!--scripts, google maps V3 (no key), jquery, jquery-ui, and welocally places --> | |
<script src="https://maps.google.com/maps/api/js?sensor=false" type="text/javascript"></script> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js" type="text/javascript"></script> | |
<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.18/jquery-ui.min.js" type="text/javascript"></script> | |
<script src="js/wl_base.js" type="text/javascript"></script> | |
<script src="js/wl_place_widget.js" type="text/javascript"></script> | |
<script src="js/wl_places_multi_widget.js" type="text/javascript"></script> | |
<script src="js/wl_infobox.js" type="text/javascript"></script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var cfg = { | |
id:'wl_multiplace_1', | |
showLetters: true, | |
overrideSelectableStyle: | |
'width:98%;', | |
imagePath: | |
'images/marker_all_base.png', | |
showSelection: true, | |
places: places, | |
observers:[placeSelected], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//config for the widget | |
var cfg = { | |
id: 'place-4627', | |
zoom: 16, | |
imagePath: 'images/marker_all_base.png' | |
styles: [ | |
{ | |
stylers: [ | |
{ saturation: -45 } | |
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* omitting styles that are not customized */ | |
/* overall style for place widget */ | |
.welocally_place_widget { | |
font-family: 'Oxygen', verdana, sans-serif; | |
font-size: 0.8em; | |
border:2px solid #aca; | |
background-color: #586B49; | |
padding:0px; } |
OlderNewer