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 caf16a48 Assos Assos
<?php
2 eefc2ac0 Assos Assos
3 caf16a48 Assos Assos
/**
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 eefc2ac0 Assos Assos
 * @param array $variables
14
 *   An associative array of variables, passed by reference.
15
 *
16 caf16a48 Assos Assos
 * @see theme_image_srcset()
17
 *
18
 * @ingroup theme_preprocess
19
 */
20 eefc2ac0 Assos Assos
function bootstrap_preprocess_image_srcset(array &$variables) {
21 caf16a48 Assos Assos
  // Add image shape, if necessary.
22
  if ($shape = bootstrap_setting('image_shape')) {
23
    $variables['attributes']['class'][] = $shape;
24
  }
25
}