Skip to content

Instantly share code, notes, and snippets.

View 2Fwebd's full-sized avatar

2Fwebd

  • Alkaweb
View GitHub Profile
(function() {
Vue.component('woffice-members-map', {
template: '<div id="woffice-members-map__content"></div>',
props: ['url', 'height'],
data: function () {
return {
loaded: false,
mapObject: null,
center: {
lat: 50.629250,
mounted: function() {
this.createMap();
this.fetchLocations();
},
/**
* Fetch the Members locations using AJAX
*
* The action sent to the WordPress router is: woffice_map_members
*/
fetchLocations: function () {
var self = this;
$.ajax({
/**
* Draw the marker of the members on the map
*
* So we can see them
*/
drawMarkers: function() {
var self = this;
var infowindow = new google.maps.InfoWindow();
<?php
function remove_eonet_ui() {
wp_dequeue_style( 'eonet-ui-css' );
}
add_action( 'wp_print_styles', 'remove_eonet_ui', 100 );
@2Fwebd
2Fwebd / functions.php
Created April 24, 2019 22:43
Ticket #1978249
/**
* Woffice members filter query
* See bp_nouveau_ajax_querystring() for details
*
* @since 2.8.0
*
* @param $query_string
*
* @return string
*/