How to highlight active teaser in Views? Using Views and Panels, I have an unordered list of node teasers that appears on every page. When viewing a node, I would like to highlight that node's teaser in the list.

Class .active gets applied to the teaser link, but I'd like to apply it to the whole list item. Is this possible?
The following does the work for me:

function YOUR_THEME_preprocess_views_view_unformatted(&amp;$vars) {

  if (arg(0) != 'node') return; // no active node

  $index = 0;
  foreach($vars['view']-&gt;result as $node) {
    if (arg(1) == $node-&gt;nid) {
      $vars['classes_array'][$index] .= ' active';
    }
    $index++;
  }

}