3 class TablesorterPlugin
extends VGPlugin
5 function __construct() {
7 if (isset($conf['tablesorter'])) {
8 $this->register_hook('header');
12 function hook($type) {
13 if ($type == 'header') {
15 <script type
="text/javascript" src
="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script
>
16 <script type
="text/javascript" src
="plugins/tablesorter/js/jquery.tablesorter.min.js"></script
>
17 <script type
="text/javascript" src
="plugins/tablesorter/js/jquery.cookie.js"></script
>
18 <script type
="text/javascript" src
="plugins/tablesorter/js/jquery.tablesorter.cookie.js"></script
>
19 <link rel
="stylesheet" href
="plugins/tablesorter/css/tablesorter.css" type
="text/css" media
="screen" charset
="utf-8" />
20 <script type
="text/javascript" charset
="utf-8">
23 $
(document
).ready(function() {
24 $
('table').tablesorter( { widgets
: ['sortPersist'] });