XPressME Integration Kit

Trac


Ignore:
Timestamp:
Jun 22, 2009, 10:17:18 AM (16 years ago)
Author:
toemon
Message:

設定の利便性を図るため、WordPress側のXPressME設定画面からXOOPS管理画面のXPressモジュール管理へのリンクを設ける fixes #164

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/xpressme_integration_kit/wp-content/plugins/xpressme/xpressme.php

    r281 r302  
    2323        require_once dirname( __FILE__ ).'/include/functions_for_wp20.php' ; 
    2424 
    25 add_action('admin_menu', array(&$xpress_config, 'add_option_page')); 
    26 add_action('admin_head', array(&$xpress_config, 'add_admin_head')); 
     25function my_plugin_menu() 
     26{ 
     27        global $xpress_config; 
     28        add_options_page('XPressME', __('XPressME Settings', 'xpressme'), 8, 'xpress_config', array(&$xpress_config, 'option_page')); 
     29// * Top Level Menu 
     30//      add_menu_page(__('XPressME Settings', 'xpressme'), __('XPressME Settings', 'xpressme'), 8, 'xpress_config', array(&$xpress_config, 'option_page')); 
     31//      add_submenu_page('xpress_config', __('XPressME Settings', 'xpressme'), __('XPressME Settings', 'xpressme'), 8, 'option_page', array(&$xpress_config, 'option_page')); 
     32//      add_submenu_page('xpress_config', 'Test Sublevel2', __('to XOOPS Admin', 'xpressme'), 8, 'to_xoops_admin', array(&$xpress_config, 'to_xoops_admin')); 
     33} 
     34add_action('admin_menu', 'my_plugin_menu'); 
     35 
    2736add_filter("upload_dir",array(&$xpress_config, 'xpress_upload_filter'), 1);             // Change wp-include/wp_upload_dir() 
    2837if (!$xpress_config->is_save_post_revision){ 
     
    97106add_action('wp_footer', array(&$xpress_config, 'displayDebugLog')); 
    98107 
     108 
    99109?> 
Note: See TracChangeset for help on using the changeset viewer.