Bontiv-Sourceer source code viewer
Root | Help
./wordpress-bontivCalendar/bontivCalendar.php
<?php
/**
 * @package bontiv_calendar
 * @author RĂ©mi Bonnet (bontiv)
 * @version 0.1.0
 */
/*
Plugin Name: Bontiv Calendar
Plugin URI: http://remi.bonnetchangai.free.fr/#
Description: Cet extention permet d'afficher un calendrier customisable.
Author: Remi Bonnet (Bontiv)
Version: 0.1.0
Author URI: http://remi.bonnetchangai.free.fr/
*/

//Register all actions
$MyDir = dirname(__FILE__);
include_once
"$MyDir/bontivAdmin.php";
include_once
"$MyDir/bontivInstall.php";
include_once
"$MyDir/calendarWidget.php";

register_activation_hook(__FILE__,'calendar_install');
register_deactivation_hook(__FILE__,'calendar_uninstall');
add_action('admin_menu', 'my_plugin_menu');
add_action('bontiv_getAdminList', 'admin_echo');
add_action('admin_head', 'bontiv_admin_head');
add_action('admin_init', 'test_ajax');

add_action('widgets_init', create_function('', 'return register_widget("bontivCalendar");'));

?>
Presented with Bontiv-Sourceer