image.vars.php 599 B

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