Projet

Général

Profil

Paste
Télécharger (582 octets) Statistiques
| Branche: | Révision:

root / drupal7 / sites / all / themes / bootstrap / templates / picture / image-srcset.vars.php @ eefc2ac0

1
<?php
2

    
3
/**
4
 * @file
5
 * Stub file for "image_srcset" theme hook [pre]process functions.
6
 */
7

    
8
/**
9
 * Pre-processes variables for the "image_srcset" theme hook.
10
 *
11
 * See theme function for list of available variables.
12
 *
13
 * @param array $variables
14
 *   An associative array of variables, passed by reference.
15
 *
16
 * @see theme_image_srcset()
17
 *
18
 * @ingroup theme_preprocess
19
 */
20
function bootstrap_preprocess_image_srcset(array &$variables) {
21
  // Add image shape, if necessary.
22
  if ($shape = bootstrap_setting('image_shape')) {
23
    $variables['attributes']['class'][] = $shape;
24
  }
25
}