function () { $(this).addClass($(this).attr('rel')); }, function () { $(this).removeClass($(this).attr('rel')); } ); }); </script> <h3 class="title">actividad reciente</h3> Ver Feeds por: <p class="categories"> <?php foreach (Feed::_admin_types() as $id => $cat) { ?> <a href="/admin/recent/?feed=<?php echo $id; ?> " <?php echo $feed == $id ? 'class="' . $cat['color'] . '"' : 'class="hov" rel="' . $cat['color'] . '"'; ?> ><?php echo $cat['label']; ?> </a> <?php } ?> </p>