Project

General

Profile

Revision 09e628ea

ID09e628ea8e2c8c2dac8e2b9d6e7d532b1974e020
Parent 67a5cafa
Child 19994453

Added by Andreas Kohlbecker over 2 years ago

fix #6349 media description separate from title

View differences:

modules/cdm_dataportal/includes/media.inc
168 168
    $metadata['title'] = $media->titleCache;
169 169
  }
170 170

  
171
  // Append description to title.
172
  if (!empty($media->description_L10n)) {
173
    $metadata['title'] .= '<span class="media-description">' . $media->description_L10n . '<span>';
174
  }
171
  $metadata['description'] = $media->description_L10n;
175 172

  
176 173
  // Artist.
177 174
  if (!empty($media_metadata->Artist)) {
modules/cdm_dataportal/theme/cdm_dataportal.media.theme
245 245
      $title_string = $media_metadata['filename'];
246 246
    }
247 247
    $out .= '<div class="title">' . $title_string . '</div>';
248
    $descriptionPrefix = "- ";
249 248
  }
250 249

  
251
  $groups = array();
252

  
253
  $out .= '<dl class="media-caption">';
254 250
  // Description.
255 251
  if ($media_metadata['description'] && $doDescription) {
256
    _description_list_group_add($groups, t('Description') . ':', $descriptionPrefix . $media_metadata['description'] );
252
    $out .= '<p class="description">' . $media_metadata['description'] . '</p>';
257 253
  }
254

  
255
  $groups = array();
256

  
257
  $out .= '<dl class="media-caption">';
258 258
  // Artist.
259 259
  if ($media_metadata['artist'] && $doArtist) {
260 260
    _description_list_group_add($groups, t('Artist') . ':', $media_metadata['artist'] );

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)