golden hour
/var/www/html/wp-content/plugins/the-events-calendar/src/resources/js
⬆️ Go Up
Upload
File/Folder
Size
Actions
admin-ignored-events.js
2.76 KB
Del
OK
admin-ignored-events.min.js
1.53 KB
Del
OK
admin-upgrade-page.js
1.1 KB
Del
OK
admin-upgrade-page.min.js
868 B
Del
OK
aggregator-admin-legacy-settings.js
1.09 KB
Del
OK
aggregator-admin-legacy-settings.min.js
614 B
Del
OK
aggregator-fields.js
34.53 KB
Del
OK
aggregator-fields.min.js
18.82 KB
Del
OK
app
-
Del
OK
embedded-map.js
3.25 KB
Del
OK
embedded-map.min.js
874 B
Del
OK
event-editor.js
739 B
Del
OK
event-editor.min.js
361 B
Del
OK
events-admin-timezone-updater.js
1.24 KB
Del
OK
events-admin-timezone-updater.min.js
481 B
Del
OK
events-admin.js
25.9 KB
Del
OK
events-admin.min.js
12.47 KB
Del
OK
events-dynamic.js
5.24 KB
Del
OK
events-dynamic.min.js
2.88 KB
Del
OK
jquery-ecp-plugins.js
949 B
Del
OK
jquery-ecp-plugins.min.js
494 B
Del
OK
tribe-events-ajax-calendar.js
16.76 KB
Del
OK
tribe-events-ajax-calendar.min.js
8.18 KB
Del
OK
tribe-events-ajax-day.js
10.21 KB
Del
OK
tribe-events-ajax-day.min.js
5.36 KB
Del
OK
tribe-events-ajax-list.js
10.5 KB
Del
OK
tribe-events-ajax-list.min.js
5.55 KB
Del
OK
tribe-events-bar.js
18.97 KB
Del
OK
tribe-events-bar.min.js
9.57 KB
Del
OK
tribe-events.js
59.42 KB
Del
OK
tribe-events.min.js
20.89 KB
Del
OK
tribe-settings.js
1.43 KB
Del
OK
tribe-settings.min.js
626 B
Del
OK
views
-
Del
OK
Edit: embedded-map.js
/** * Sets up one or more embedded maps. */ if ( "function" === typeof jQuery ) jQuery( function( $ ) { var mapHolder, position, venueObject, venueAddress, venueCoords, venueTitle; // The tribeEventsSingleMap object must be accessible (as it contains the venue address data etc) if ( 'undefined' === typeof tribeEventsSingleMap ) { return; } /** * Determine whether to use long/lat coordinates (these are preferred) or the venue's street * address. */ function prepare() { if ( false !== venueCoords ) { useCoords(); } else { useAddress(); } } /** * Use long/lat coordinates to position the pin marker. */ function useCoords() { position = new google.maps.LatLng( venueCoords[0], venueCoords[1] ); initialize(); } /** * Use a street address and Google's geocoder to position the pin marker. */ function useAddress() { var geocoder = new google.maps.Geocoder(); geocoder.geocode( { "address": venueAddress }, function ( results, status ) { if ( status == google.maps.GeocoderStatus.OK ) { position = results[0].geometry.location; initialize(); } } ); } /** * Setup the map and apply a marker. * * Note that for each individual map, the actual map object can be accessed via the * tribeEventsSingleMap object. In simple cases (ie, where there is only one map on * the page) that means you can access it and change its properties via: * * tribeEventsSingleMap.addresses[0].map * * Where there are multiple maps - such as in a custom list view with a map per * event - tribeEventsSingleMap.addresses can be iterated through and changes made * on an map-by-map basis. */ function initialize() { var mapOptions = { zoom : parseInt( tribeEventsSingleMap.zoom ), center : position, mapTypeId: google.maps.MapTypeId.ROADMAP } venueObject.map = new google.maps.Map( mapHolder, mapOptions ); var marker = { map : venueObject.map, title : venueTitle, position: position }; /** * Trigger a new event when the Map is created in order to allow Users option to customize the map by listening * to the correct event and having an instance of the Map variable avialable to modify if required. * * @param {Object} map An instance of the Google Map. * @param {Element} el The DOM Element where the map is attached. * @param {Object} options The initial set of options for the map. * * @since 4.6.10 * */ $( 'body' ).trigger( 'map-created.tribe', [ venueObject.map, mapHolder, mapOptions ] ); // If we have a Map Pin set, we use it if ( 'undefined' !== tribeEventsSingleMap.pin_url && tribeEventsSingleMap.pin_url ) { marker.icon = tribeEventsSingleMap.pin_url; } new google.maps.Marker( marker ); } // Iterate through available addresses and set up the map for each $.each( tribeEventsSingleMap.addresses, function( index, venue ) { mapHolder = document.getElementById( "tribe-events-gmap-" + index ); if ( null !== mapHolder ) { venueObject = "undefined" !== typeof venue ? venue: {}; venueAddress = "undefined" !== typeof venue.address ? venue.address : false; venueCoords = "undefined" !== typeof venue.coords ? venue.coords : false; venueTitle = venue.title; prepare(); } }); });
Save