Projet

Général

Profil

Révision db9ffd17

Ajouté par Assos Assos il y a presque 10 ans

Weekly update of contrib modules

Voir les différences:

drupal7/sites/all/modules/date/date.theme
219 219
 * Template preprocess function for displaying a single date.
220 220
 */
221 221
function template_preprocess_date_display_single(&$variables) {
222
  if ($variables['add_rdf'] || $variables['add_microdata']) {
222
  if ($variables['add_rdf'] || !empty($variables['add_microdata'])) {
223 223
    // Pass along the rdf mapping for this field, if any. Add some default rdf
224 224
    // attributes that will be used if not overridden by attributes passed in.
225 225
    $rdf_mapping = $variables['rdf_mapping'];
......
261 261
  // Wrap the result with the attributes.
262 262
  $output = '<span class="date-display-single"' . drupal_attributes($attributes) . '>' . $date . $timezone . '</span>';
263 263

  
264
  if ($variables['add_microdata']) {
264
  if (!empty($variables['add_microdata'])) {
265 265
    $output .= '<meta' . drupal_attributes($variables['microdata']['value']['#attributes']) . '/>';
266 266
  }
267 267

  
......
372 372

  
373 373
  // Group start/end items together in fieldset.
374 374
  $fieldset = array(
375
    '#title' => t($element['#title']) . ' ' . ($element['#delta'] > 0 ? intval($element['#delta'] + 1) : ''),
375
    '#title' => field_filter_xss(t($element['#title'])) . ' ' . ($element['#delta'] > 0 ? intval($element['#delta'] + 1) : ''),
376 376
    '#value' => '',
377 377
    '#description' => !empty($element['#fieldset_description']) ? $element['#fieldset_description'] : '',
378 378
    '#attributes' => array(),

Formats disponibles : Unified diff