diff options
author | David Rothstein <drothstein@gmail.com> | 2015-10-12 21:29:08 -0400 |
---|---|---|
committer | David Rothstein <drothstein@gmail.com> | 2015-10-12 21:29:08 -0400 |
commit | ab86fe4810a2ec33386ec702e16f257feef3f45e (patch) | |
tree | ce45c6de389809aa4805646612be4e68a46a4583 | |
parent | 792aca6823966f0d464ed05388dbf813d103285d (diff) | |
download | brdo-ab86fe4810a2ec33386ec702e16f257feef3f45e.tar.gz brdo-ab86fe4810a2ec33386ec702e16f257feef3f45e.tar.bz2 |
Issue #2313085 by tkuldeep17: Can't add class to user picture by template_preprocess_user_picture as class attribute has hard coded in user picture tpl file
-rw-r--r-- | CHANGELOG.txt | 2 | ||||
-rw-r--r-- | modules/user/user-picture.tpl.php | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/CHANGELOG.txt b/CHANGELOG.txt index c2e0bf389..8602daa6f 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -1,6 +1,8 @@ Drupal 7.40, xxxx-xx-xx (development version) ----------------------- +- Allowed the user-picture.tpl.php theme template to have HTML classes besides + the default "user-picture" class printed in it (markup change). - Fixed the URL text filter to convert e-mail addresses with plus signs into mailto: links. - Added alternate text to file icons displayed by the File module, to improve diff --git a/modules/user/user-picture.tpl.php b/modules/user/user-picture.tpl.php index ee8218786..11d92cc51 100644 --- a/modules/user/user-picture.tpl.php +++ b/modules/user/user-picture.tpl.php @@ -17,7 +17,7 @@ */ ?> <?php if ($user_picture): ?> - <div class="user-picture"> + <div class="<?php print $classes; ?>"> <?php print $user_picture; ?> </div> <?php endif; ?> |