source: trunk/www.guidonia.net/wp/wp-content/plugins/simple-tags/simple-tags.php@ 44

Last change on this file since 44 was 44, checked in by luciano, 14 years ago
File size: 2.4 KB
Line 
1<?php
2/*
3Plugin Name: Simple Tags
4Plugin URI: http://wordpress.org/extend/plugins/simple-tags
5Description: Simple Tags : Extended Tagging for WordPress 2.3, 2.5, 2.6 and 2.7 ! Autocompletion, Suggested Tags, Tag Cloud Widgets, Related Posts, Mass edit tags !
6Version: 1.6.6
7Author: Amaury BALMER
8Author URI: http://www.herewithme.fr
9
10Copyright 2008 Amaury BALMER (balmer.amaury@gmail.com)
11
12This program is free software; you can redistribute it and/or modify
13it under the terms of the GNU General Public License as published by
14the Free Software Foundation; either version 2 of the License, or
15(at your option) any later version.
16
17This program is distributed in the hope that it will be useful,
18but WITHOUT ANY WARRANTY; without even the implied warranty of
19MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20GNU General Public License for more details.
21
22Contributors:
23- Kevin Drouvin (kevin.drouvin@gmail.com - http://inside-dev.net)
24- Martin Modler (modler@webformatik.com - http://www.webformatik.com)
25
26Todo:
27 Admin
28 Client
29 - Test avec &$this, $this, et avec une fonction, test la conso memoire de wp_filter avant/apres
30 - Verifier la case du remplacement par les liens
31*/
32
33// Check version.
34global $wp_version;
35if ( strpos($wp_version, '2.7') !== false || strpos($wp_version, '2.8') !== false ) {
36 require(dirname(__FILE__).'/2.7/simple-tags.client.php');
37} elseif ( strpos($wp_version, '2.5') !== false || strpos($wp_version, '2.6') !== false ) {
38 require(dirname(__FILE__).'/2.5/simple-tags.client.php');
39} elseif ( strpos($wp_version, '2.3') !== false ) {
40 require(dirname(__FILE__).'/2.3/simple-tags.client.php');
41} elseif ( strpos($wp_version, '2.2') !== false || strpos($wp_version, '2.1') !== false || strpos($wp_version, '2.0') !== false ) {
42 add_action('admin_notices', 'simple_tagging_warning');
43} else {
44 add_action('admin_notices', 'simple_tags_warning');
45}
46
47function simple_tagging_warning() {
48 echo '<div class="updated fade"><p><strong>'.__('Simple Tags can\'t work with this WordPress version !', 'simpletags').'</strong> '.sprintf(__('You must use <a href="%1$s">Simple Tagging Plugin</a> for it to work.', 'simpletags'), 'http://wordpress.org/extend/plugins/simple-tagging-plugin/').'</p></div>';
49}
50
51function simple_tags_warning() {
52 echo '<div class="updated fade"><p><strong>'.__('Simple Tags can\'t work with this WordPress version !', 'simpletags').'</strong></p></div>';
53}
54?>
Note: See TracBrowser for help on using the repository browser.