Ignore:
Timestamp:
04/02/10 02:30:55 (3 years ago)
Author:
nick_ramsay
Message:

[Trunk] Hotaru 1.1.4 - Plugins

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/content/plugins/categories/categories.php

    r1201 r1449  
    33 * name: Categories 
    44 * description: Enables categories for posts 
    5  * version: 1.3 
     5 * version: 1.4 
    66 * folder: categories 
    77 * class: Categories 
     
    379379        } else {  
    380380            $link = $category->category_id;  
    381         }  
    382      
     381        } 
     382         
     383        $active = ''; 
     384        if (isset($h->vars['category_id']) && ($h->vars['category_id'] == $category->category_id)) { 
     385            $active = " class='active_cat'"; 
     386        } 
     387         
    383388        $category = stripslashes(html_entity_decode(urldecode($category->category_name), ENT_QUOTES,'UTF-8')); 
    384         $output .= '<li><a href="' . $h->url(array('category'=>$link)) .'">' . $category . "</a>\n"; 
     389        $output .= '<li' . $active . '><a href="' . $h->url(array('category'=>$link)) .'">' . $category . "</a>\n"; 
    385390         
    386391        return $output;  
Note: See TracChangeset for help on using the changeset viewer.