Projet

Général

Profil

Révision a08833bd

Ajouté par Assos Assos il y a presque 8 ans

Weekly update of contrib modules

Voir les différences:

drupal7/sites/all/themes/adaptivetheme/at_core/inc/theme.inc
216 216

  
217 217
  // If a class exists use it on the wrapper, for Drupal core this mainly applies
218 218
  // to the pager, so you get the wrapper class .item-list-pager
219
  if (isset($attributes['class'])) {
219
  if (isset($attributes['class'][0])) {
220 220
    $output = '<div class="item-list item-list-' . $attributes['class'][0] . '">';
221 221
  }
222 222
  else {
......
591 591

  
592 592
  // Check if captions are enabled for full and/or teaser view modes
593 593
  if ($image_settings_enabled == TRUE) {
594
    $caption_full = at_get_setting('image_caption_full', $theme_name) === 1 ? TRUE : FALSE;
595
    $caption_teaser = at_get_setting('image_caption_teaser', $theme_name) === 1 ? TRUE : FALSE;
594
    $caption_full = at_get_setting('image_caption_full', $theme_name) == 1 ? TRUE : FALSE; // some users report the return value being a string: https://www.drupal.org/node/2331883
595
    $caption_teaser = at_get_setting('image_caption_teaser', $theme_name) == 1 ? TRUE : FALSE;
596 596
  }
597 597

  
598 598
  $output = '';
......
625 625

  
626 626
      if ($vars['field_view_mode'] == 'full') {
627 627
        if ($caption_full == TRUE) {
628
          $output .= '<figcaption class="caption full-caption"' . $styles .'>' . $item['#item']['title'] . '</figcaption>';
628
          $output .= '<figcaption class="caption full-caption" ' . $styles .'>' . $item['#item']['title'] . '</figcaption>';
629 629
        }
630 630
      }
631 631
      if ($vars['field_view_mode'] == 'teaser') {
632 632
        if ($caption_teaser == TRUE) {
633
          $output .= '<figcaption class="caption teaser-caption"' . $styles .'>' . $item['#item']['title'] . '</figcaption>';
633
          $output .= '<figcaption class="caption teaser-caption" ' . $styles .'>' . $item['#item']['title'] . '</figcaption>';
634 634
        }
635 635
      }
636 636
    }

Formats disponibles : Unified diff