You are here

function theme_openlayers_views_group_display_item in Openlayers 6.2

Same name and namespace in other branches
  1. 7.2 modules/openlayers_views/includes/openlayers_views.theme.inc \theme_openlayers_views_group_display_item()

Theme function for openlayers_views_group_display_item

Output of OpenLayers View diplay plugin for grouped items.

1 theme call to theme_openlayers_views_group_display_item()
openlayers_views_style_data::map_features in modules/openlayers_views/views/openlayers_views_style_data.inc
Map features

File

modules/openlayers_views/includes/openlayers_views.theme.inc, line 15
This file holds the theme functions for openlayers_views module

Code

function theme_openlayers_views_group_display_item($name = '', $description = '') {
  $output = '';

  // Build output
  if (!empty($name)) {
    $output .= '<h2 class="point-title openlayers-views-group-feature-name">' . $name . '</h2>';
  }
  if (!empty($description)) {
    $output .= '<div class="point-content openlayers-views-group-feature-description">' . $description . '</div>';
  }
  return $output;
}