widget_extended_categories.php 1.62 KB
Newer Older
root's avatar
root committed
1
2
3
4
5
<?php
/*
Plugin Name: AVH Extended Categories Widgets
Plugin URI: http://blog.avirtualhome.com/wordpress-plugins
Description: Replacement of the category widget to allow for greater customization of the category widget.
6
Version: 3.4.2
root's avatar
root committed
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
Author: Peter van der Does
Author URI: http://blog.avirtualhome.com/

Copyright 2008  Peter van der Does  (email : peter@avirtualhome.com)

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
*/

// Include WordPress version
require (ABSPATH . WPINC . '/version.php');

$_basename = plugin_basename(__FILE__);
$dir = current(explode('/', $_basename));


define('AVHEC_PLUGIN_DIR', WP_PLUGIN_DIR . '/' . $dir);
define('AVHEC_PLUGIN_NAME', $_basename);

if ((float) $wp_version >= 2.8) {
	define('AVHEC_PLUGIN_URL', WP_PLUGIN_URL . '/' . $dir . '/2.8');
	define('AVHEC_ABSOLUTE_WORKING_DIR', AVHEC_PLUGIN_DIR . '/2.8');
	define('AVHEC_RELATIVE_WORKING_DIR', $dir . '/2.8');
	unset($dir);
	require (AVHEC_ABSOLUTE_WORKING_DIR . '/avh-ec.client.php');
} else {
	require_once 'widget-pre2.8.php';
}
?>