Archives mensuelles : mai 2009

Le General Purposes Plugin (JeePP)

Pour donner un coup de main à un utilsateur de wordpress français, j’ai bricolé un petit plugin que j’ai nommé pour le fun JeePP. Comme a priori il semble être utile pour plusieurs utilisateurs de wordpress, je vais lui accorder un article.
Un des utilisateurs m’a demandé si je pouvais en faire un widget et ma foi je trouve l’idée intéressante mais j’attendrai la prochaine version de wordpress qui doit simplifier l’API.le principe
ce plugin ne fait que permettre l’utilisation de la balise object dans les articles. Ce qui permet dans un article soit d’intégrer une applet, une animation flash soit une vue sur un site tiers (essayez vous devez pouvoir appeler la page d’accueil de google).

<?php
      /*
      Plugin Name: JeePP
      Description: General Purpose Plugin permet l'utilisation de la balise object dans les articles
      Plugin URI: http://bertrand.belguise.net/
      Author: Bertrand Belguise
      Version: 0.0.1
      Author URI: http://bertrand.belguise.net/blog/
      */
 
      #
      #  Copyright (c) 2008 Bertrand Belguise
      #
      #  JeePP 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.
      #
      #  JeePP 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 JeePP; if not, write to the Free Software Foundation, Inc., 59
      #  Temple Place, Suite 330, Boston, MA 02111-1307 USA
      #
      if (!CUSTOM_TAGS) {
        $allowedposttags['object'] = array(
          'data' => array(),
          'type' => array(),
          'classid' => array(),
          'height' => array(),
          'style' => array(),
          'width' => array()
        );         $allowedposttags['param'] = array(
           'name' => array(),
           'value' => array()
        );       };

en référence un article sur la balise object et la discussion originale sur wordpress français