Add Troubleshooting section to README.
[viewgit.git] / plugins / tablesorter / main.php
blob76e9590155fd0d3e77d07dcce75fdd97dcac3977
1 <?php
3 class TablesorterPlugin extends VGPlugin
5 function __construct() {
6 global $conf;
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">
21 /* <![CDATA[ */
23 $(document).ready(function() {
24 $('table').tablesorter( { widgets: ['sortPersist'] });
25 });
27 /* ]]> */
28 </script>
29 <?php