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