src/Webtrees/Functions/FunctionsPrint.php
public static function htmlFactPlaceIcon(
			\Fisharebest\Webtrees\Fact $fact,
			\MyArtJaub\Webtrees\Map\MapProviderInterface $mapProvider
	) {
		$place = $fact->getPlace();
		if(!$place->isEmpty()) {
			$iconPlace= $mapProvider->getPlaceIcon($place);	
			if($iconPlace && strlen($iconPlace) > 0){
				return	'<div class="fact_flag">'. self::htmlPlaceIcon($place, $iconPlace, 50). '</div>';
			}
		}
		return '';
	}
public static function htmlFactPlaceIcon(
			\Fisharebest\Webtrees\Fact $fact,
			\MyArtJaub\Webtrees\Map\MapProviderInterface $mapProvider
	) {
		$place = $fact->getPlace();
		if(!$place->isEmpty()) {
			$iconPlace= $mapProvider->getPlaceIcon($place);	
			if($iconPlace && strlen($iconPlace) > 0){
				return	'<div class="fact_flag">'. self::htmlPlaceIcon($place, $iconPlace, 50). '</div>';
			}
		}
		return '';
	}
public static function htmlFactPlaceIcon ( \ Fisharebest \ Webtrees \ Fact $ fact , \ MyArtJaub \ Webtrees \ Map \ MapProviderInterface $ mapProvider ) { $ place = $ fact -> getPlace ( ) ; if ( ! $ place -> isEmpty ( ) ) { $ iconPlace = $ mapProvider -> getPlaceIcon ( $ place ) ; if ( $ iconPlace && strlen ( $ iconPlace ) > 0 ) { return '<div class="fact_flag">' . self :: htmlPlaceIcon ( $ place , $ iconPlace , 50 ) . '</div>' ; } } return '' ; }
Return HTML code to include a flag icon in facts description

@param \Fisharebest\Webtrees\Fact $fact Fact record
@param \MyArtJaub\Webtrees\Map\MapProviderInterface $mapProvider Map Provider
@return string HTML code of the inserted flag
Return HTML code to include a flag icon in facts description