picture.vars.php 483 B

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