[44] | 1 | <?php
|
---|
| 2 | /*
|
---|
| 3 | Plugin Name: Simple Tags
|
---|
| 4 | Plugin URI: http://wordpress.org/extend/plugins/simple-tags
|
---|
| 5 | Description: 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 !
|
---|
| 6 | Version: 1.6.6
|
---|
| 7 | Author: Amaury BALMER
|
---|
| 8 | Author URI: http://www.herewithme.fr
|
---|
| 9 |
|
---|
| 10 | Copyright 2008 Amaury BALMER (balmer.amaury@gmail.com)
|
---|
| 11 |
|
---|
| 12 | This program is free software; you can redistribute it and/or modify
|
---|
| 13 | it under the terms of the GNU General Public License as published by
|
---|
| 14 | the Free Software Foundation; either version 2 of the License, or
|
---|
| 15 | (at your option) any later version.
|
---|
| 16 |
|
---|
| 17 | This program is distributed in the hope that it will be useful,
|
---|
| 18 | but WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
| 19 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
---|
| 20 | GNU General Public License for more details.
|
---|
| 21 |
|
---|
| 22 | Contributors:
|
---|
| 23 | - Kevin Drouvin (kevin.drouvin@gmail.com - http://inside-dev.net)
|
---|
| 24 | - Martin Modler (modler@webformatik.com - http://www.webformatik.com)
|
---|
| 25 |
|
---|
| 26 | Todo:
|
---|
| 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.
|
---|
| 34 | global $wp_version;
|
---|
| 35 | if ( 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 |
|
---|
| 47 | function 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 |
|
---|
| 51 | function 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 | ?> |
---|