root / drupal7 / sites / all / themes / bootstrap / templates / picture / image-srcset.vars.php @ caf16a48
1 |
<?php
|
---|---|
2 |
/**
|
3 |
* @file
|
4 |
* Stub file for "image_srcset" theme hook [pre]process functions.
|
5 |
*/
|
6 |
|
7 |
/**
|
8 |
* Pre-processes variables for the "image_srcset" theme hook.
|
9 |
*
|
10 |
* See theme function for list of available variables.
|
11 |
*
|
12 |
* @see theme_image_srcset()
|
13 |
*
|
14 |
* @ingroup theme_preprocess
|
15 |
*/
|
16 |
function bootstrap_preprocess_image_srcset(&$variables) { |
17 |
// Add image shape, if necessary.
|
18 |
if ($shape = bootstrap_setting('image_shape')) { |
19 |
$variables['attributes']['class'][] = $shape; |
20 |
} |
21 |
} |