root / drupal7 / sites / all / themes / bootstrap / templates / system / image.vars.php @ 7547bb19
1 |
<?php
|
---|---|
2 |
/**
|
3 |
* @file
|
4 |
* Stub file for "image" theme hook [pre]process functions.
|
5 |
*/
|
6 |
|
7 |
/**
|
8 |
* Pre-processes variables for the "image" theme hook.
|
9 |
*
|
10 |
* See theme function for list of available variables.
|
11 |
*
|
12 |
* @see theme_image()
|
13 |
*
|
14 |
* @ingroup theme_preprocess
|
15 |
*/
|
16 |
function bootstrap_preprocess_image(&$variables) { |
17 |
// Add image shape, if necessary.
|
18 |
if ($shape = bootstrap_setting('image_shape')) { |
19 |
_bootstrap_add_class($shape, $variables); |
20 |
} |
21 |
|
22 |
// Add responsiveness, if necessary.
|
23 |
if (bootstrap_setting('image_responsive')) { |
24 |
_bootstrap_add_class('img-responsive', $variables); |
25 |
} |
26 |
} |