Exemplo n.º 1
0
 public static function getInstance()
 {
     if (!self::$instance instanceof self) {
         self::$instance = new self();
     }
     return self::$instance;
 }
Exemplo n.º 2
0
function ActivePlugin_changyan()
{
    global $changyanPlugin, $zbp;
    $changyanPlugin = Changyan_Handler::getInstance();
    //add_action('init', 'changyan_init');
    Add_Filter_Plugin('Filter_Plugin_Zbp_Load', 'changyan_init');
    Add_Filter_Plugin('Filter_Plugin_Admin_LeftMenu', 'changyan_AddMenu');
    Add_Filter_Plugin('Filter_Plugin_ViewPost_Template', 'changyan_socialcomment');
    Add_Filter_Plugin('Filter_Plugin_ViewPost_Template', 'changyan_view_post_template');
    Add_Filter_Plugin('Filter_Plugin_ViewList_Template', 'changyan_view_list_template');
    Add_Filter_Plugin('Filter_Plugin_Html_Js_Add', 'changyan_html_js_add');
}