
<center><h2><strong>Ubuntu</strong></h2>
­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­
<!DOCTYPE html>
<html>
<?php
/**
 * add the dependency
 * $deps['wait-for-this-script'] = 'script-that-should-wait';
 */

function cmplz_multimarker_dependencies( $tags ) {
	$tags['maps.googleapis.com/maps/api/js'] = 'map-multi-marker/asset/js/';

	return $tags;
}
add_filter( 'cmplz_dependencies', 'cmplz_multimarker_dependencies' );

/**
 * Block the scripts.
 * initMap can also be something else. That's the problem with custom maps :)
 *
 * @param $tags
 *
 * @return array
 */
function cmplz_multimarker_script( $tags ) {
	$tags[] = 'maps.googleapis.com/maps/api/js';
	$tags[] = 'map-multi-marker/asset/js/';

	return $tags;
}
add_filter( 'cmplz_known_script_tags', 'cmplz_multimarker_script' );

/**
 * Add a placeholder to a div with class "my-maps-class"
 * @param $tags
 *
 * @return mixed
 */
function cmplz_multimarker_placeholder( $tags ) {
	$tags['google-maps'][] = "map-multi-marker";
	return $tags;
}
add_filter( 'cmplz_placeholder_markers', 'cmplz_multimarker_placeholder' );



/**
 * Add services to the list of detected items, so it will get set as default, and will be added to the notice about it
 *
 * @param $services
 *
 * @return array
 */
function cmplz_multimarker_detected_services( $services ) {

	if ( ! in_array( 'google-maps', $services ) ) {
		$services[] = 'google-maps';
	}

	return $services;
}

add_filter( 'cmplz_detected_services', 'cmplz_multimarker_detected_services' );


