Skip to content

Commit

Permalink
2.1.0: Fix default marker
Browse files Browse the repository at this point in the history
  • Loading branch information
eoxia-amandine committed Jul 26, 2018
1 parent e21e048 commit b69f83a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion modules/annonce/shortcode/annonce.shortcode.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,9 @@ public function annonces_display_shortcode( $atts ) {
$parent->list_tax_id = substr( $parent->list_tax_id, 0, -1 );

/** Pin color of the child */
$parent->marker = PLUGIN_ANNONCES_URL . 'modules/annonce/asset/img/pin-' . get_field( 'icon', $parent ) . '.png';
$parent_marker_data = get_field( 'icon', $parent );
$parent_marker_data = ( ! empty( $parent_marker_data ) ) ? $parent_marker_data : 'red';
$parent->marker = PLUGIN_ANNONCES_URL . 'modules/annonce/asset/img/pin-' . $parent_marker_data . '.png';
}

/** Title of filter bloc */
Expand Down

0 comments on commit b69f83a

Please sign in to comment.