Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function template_preprocess_image(&$vars) {
- if($vars['style_name'] == 'thumbnail'){
- $vars['attributes']['class'][]='';
- unset($vars['attributes']['class']);
- $vars['attributes']['class'][] = 'media-object';
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement