image-srcset.vars.php 484 B

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