| 1 |
<?php |
| 2 |
/* |
| 3 |
Plugin Name: Front End PM |
| 4 |
Plugin URI: http://www.banglardokan.com/blog/recent/project/front-end-pm-2215/ |
| 5 |
Description: Front End PM is a Private Messaging system to your WordPress site.This is full functioning messaging system. The messaging is done entirely through the front-end of your site rather than the Dashboard. This is very helpful if you want to keep your users out of the Dashboard area. |
| 6 |
Version: 1.2 |
| 7 |
Author: Shamim |
| 8 |
Author URI: http://www.banglardokan.com/blog/recent/project/front-end-pm-2215/ |
| 9 |
Text Domain: fep |
| 10 |
License: GPLv2 |
| 11 |
*/ |
| 12 |
|
| 13 |
//INCLUDE THE CLASS FILE |
| 14 |
include_once("fep-class.php"); |
| 15 |
|
| 16 |
//DECLARE AN INSTANCE OF THE CLASS |
| 17 |
if(class_exists("clFEPm")) |
| 18 |
$FrontEndPM = new clFEPm(); |
| 19 |
|
| 20 |
//HOOKS |
| 21 |
if (isset($FrontEndPM)) |
| 22 |
{ |
| 23 |
//ACTIVATE PLUGIN |
| 24 |
register_activation_hook(__FILE__ , array(&$FrontEndPM, "fepActivate")); |
| 25 |
|
| 26 |
//ADD SHORTCODES |
| 27 |
add_shortcode('front-end-pm', array(&$FrontEndPM, "displayAll")); |
| 28 |
|
| 29 |
//ADD ACTIONS |
| 30 |
add_action('init', array(&$FrontEndPM, "session")); |
| 31 |
add_action('plugins_loaded', array(&$FrontEndPM, "translation")); |
| 32 |
add_action('init', array(&$FrontEndPM, "jsInit")); |
| 33 |
add_action('wp_enqueue_scripts', array(&$FrontEndPM, "fep_enqueue_scripts")); |
| 34 |
add_action('admin_menu', array(&$FrontEndPM, "addAdminPage")); |
| 35 |
|
| 36 |
|
| 37 |
//ADD WIDGET |
| 38 |
wp_register_sidebar_widget("fep-button-widget",__("FEP button widget", "fep"), array(&$FrontEndPM, "widget")); |
| 39 |
wp_register_sidebar_widget("fep-text-widget",__("FEP text widget", "fep"), array(&$FrontEndPM, "widget_text")); |
| 40 |
} |
| 41 |
|
| 42 |
?> |