I want to obtain the organic groups role-id of a node/comment-author in node.tpl.php and comment.tpl.php.
I can't find an array that provides this information.
I want to add a class based on the authors membership type.
<div id="header" class="<?php if ($author->rid == 7): print 'class-7'; endif; ?>">
How to do this for nodes and comments?
Note: for normal (non-organic-group) roles I use:
<?php if(in_array('administrator', $user->roles)): print 'admin-type'; endif; ?>
Which works ok, I want similar usage for organic group roles.