Sites Web : SPIP commits - by tech-nova

Publié le lundi 21 avril 2008

⇒ http://my.opera.com/tech-nova/blog/

Un site qui recense les astuces et évolutions des possibilités de SPIP.

Howto detect if a plugin is activated ?

Janvier 2008, par tech-nova

in PHP :
Each plugin defines a constant corresponding to it’s execution path
if (defined('_DIR_PLUGIN_XXX')){ ... }

inside a template :
#PLUGIN and conditionnal evaluation does your job !

[(#PLUGIN{XXX}) doSomething ]

→ Lire la suite sur le site d’origine…


Revenir en haut