XPressME Integration Kit

Trac

Changeset 311 for trunk


Ignore:
Timestamp:
Jul 1, 2009, 1:29:42 PM (15 years ago)
Author:
toemon
Message:

XPressME設定メニューをトップレベルに移動 fixes #168 bump Ver.2.1.0 Bata-6(R311)

Location:
trunk/xpressme_integration_kit
Files:
2 added
2 edited

Legend:

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

    r307 r311  
    2626{ 
    2727        global $xpress_config; 
    28         add_options_page('XPressME', __('XPressME Settings', 'xpressme'), 8, 'xpressme_config', array(&$xpress_config, 'option_page')); 
     28        $plugin_url = WP_PLUGIN_URL."/xpressme/"; 
     29 
     30//      add_options_page('XPressME', __('XPressME Settings', 'xpressme'), 8, 'xpressme_config', array(&$xpress_config, 'option_page')); 
    2931// * Top Level Menu 
    30 //      add_menu_page(__('XPressME Settings', 'xpressme'), __('XPressME Settings', 'xpressme'), 8, 'xpressme_config', array(&$xpress_config, 'option_page')); 
    31 //      add_submenu_page('xpressme_config', __('XPressME Settings', 'xpressme'), __('XPressME Settings', 'xpressme'), 8, 'option_page', array(&$xpress_config, 'option_page')); 
     32        add_menu_page(__('XPressME', 'xpressme'), __('XPressME', 'xpressme'), 8, 'xpressme_config', array(&$xpress_config, 'option_page'), $plugin_url.'/images/menu_icon.png'); 
     33        add_submenu_page('xpressme_config', __('XPressME Settings', 'xpressme'), __('XPressME Settings', 'xpressme'), 8, 'xpressme_config', array(&$xpress_config, 'option_page')); 
    3234//      add_submenu_page('xpressme_config', 'Test Sublevel2', __('to XOOPS Admin', 'xpressme'), 8, 'to_xoops_admin', array(&$xpress_config, 'to_xoops_admin')); 
    3335} 
     
    106108add_action('wp_footer', array(&$xpress_config, 'displayDebugLog')); 
    107109 
    108  
    109110?> 
  • trunk/xpressme_integration_kit/xoops_version.php

    r308 r311  
    4040 
    4141// status 
    42 $modversion['codename'] = "Bata-5(r306)"; 
     42$modversion['codename'] = "Bata-6(r311)"; 
    4343 
    4444// onInstall, onUpdate, onUninstall 
     
    9292        if (@$current_user->user_level > 9) { 
    9393        $modversion['sub'][4]['name'] = constant( '_MI_XP2_MENU_XPRESS'); 
    94         $modversion['sub'][4]['url'] = "wp-admin/options-general.php?page=xpressme_config"; 
     94//      $modversion['sub'][4]['url'] = "wp-admin/options-general.php?page=xpressme_config"; 
     95        $modversion['sub'][4]['url'] = "wp-admin/admin.php?page=xpressme_config"; 
    9596        } 
    9697} 
Note: See TracChangeset for help on using the changeset viewer.