Initial version */ /* 0.0.2 --> Correction isset */ /* 0.0.3 --> Correction style des boutons (merci mistic100) */ /* Mise à jour nouvelle version AddThis */ /* Correction affichage miniature uniquement (désactivé sur les images car ne fonctionne pas) */ /********* TODO *********/ //- if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); define('ADDTHIS_NAME', 'AddThis'); define('ADDTHIS_ROOT', dirname(__FILE__)); define('ADDTHIS_DIR' , basename(dirname(__FILE__))); define('ADDTHIS_CFG_FILE' , ADDTHIS_ROOT.'/'.ADDTHIS_DIR.'.dat'); define('ADDTHIS_PATH' , PHPWG_PLUGINS_PATH . ADDTHIS_DIR . '/'); define('ADDTHIS_INC_PATH' , PHPWG_PLUGINS_PATH . ADDTHIS_DIR . '/include/'); define('ADDTHIS_JS_PATH' , PHPWG_PLUGINS_PATH . ADDTHIS_DIR . '/js/'); define('ADDTHIS_IMG_PATH' , PHPWG_PLUGINS_PATH . ADDTHIS_DIR . '/img/'); define('ADDTHIS_ADMIN_PATH' , PHPWG_PLUGINS_PATH . ADDTHIS_DIR . '/admin/'); include_once ADDTHIS_INC_PATH.'constants.inc.php'; include_once ADDTHIS_INC_PATH.'AddThis.class.php'; $obj = new AddThis(); $obj->load_config(); // Affichage du lien Addthis sous les vignettes add_event_handler('loc_end_page_header', array(&$obj, 'AddThis_link' )); // Affichage du lien Addthis sous les vignettes add_event_handler('loc_end_index', array(&$obj, 'add_AddThis_icon')); add_event_handler('loc_begin_picture', array(&$obj, 'add_AddThis_icon')); add_event_handler('get_admin_plugin_menu_links', array(&$obj, 'addthis_admin_menu') ); set_plugin_data($plugin['id'], $obj) ?>