- Timestamp:
- Jul 24, 2009, 3:28:01 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/xpressme_integration_kit/wp-content/plugins/xpressme/xpressme.php
r334 r349 35 35 add_submenu_page(__FILE__, __('Integration Settings', 'xpressme'), __('Integration Settings', 'xpressme'), 8, 'integration_option_page', 'integration_option_page'); 36 36 add_submenu_page(__FILE__, __('Other Settings', 'xpressme'), __('Other Settings', 'xpressme'), 8, 'other_option_page', 'other_option_page'); 37 // add_submenu_page(__FILE__, __('XPressME Settings', 'xpressme'), __('XPressME Settings', 'xpressme'), 8, 'option_page', 'option_page');37 add_submenu_page(__FILE__, __('to XOOPS Admin', 'xpressme'), __('to XOOPS Admin', 'xpressme'), 8, 'redirect_xoops_admin', 'redirect_xoops_admin'); 38 38 } 39 39 add_action('admin_menu', 'my_plugin_menu'); … … 111 111 add_action('wp_footer', array(&$xpress_config, 'displayDebugLog')); 112 112 113 function redirect_xoops_admin() 114 { 115 global $xoops_config,$xpress_config; 116 $xoops_admin_url = $xoops_config->module_url . '/admin/index.php'; 117 wp_redirect($xoops_admin_url); 118 } 113 119 114 120 function display_option_page() … … 130 136 echo '<div id="icon-options-general" class="icon32"><br /></div>'."\n"; 131 137 echo '<h2>' . __('XPressME Display Setting', 'xpressme') . "</h2><br>\n"; 132 echo '<div align="right"><a href="' . $xoops_admin_url . '"><h3>'. __('to XOOPS Modules Admin Page', 'xpressme') . '</h3></a></div>';138 // echo '<div align="right"><a href="' . $xoops_admin_url . '"><h3>'. __('to XOOPS Modules Admin Page', 'xpressme') . '</h3></a></div>'; 133 139 echo '<form method="post" action="' . $_SERVER["REQUEST_URI"] . '">'."\n" ; 134 140 echo '<table class="form-table">'."\n"; … … 179 185 echo '<div id="icon-options-general" class="icon32"><br /></div>'."\n"; 180 186 echo '<h2>' . __('XPressME Integration Setting', 'xpressme') . "</h2><br>\n"; 181 echo '<div align="right"><a href="' . $xoops_admin_url . '"><h3>'. __('to XOOPS Modules Admin Page', 'xpressme') . '</h3></a></div>';187 // echo '<div align="right"><a href="' . $xoops_admin_url . '"><h3>'. __('to XOOPS Modules Admin Page', 'xpressme') . '</h3></a></div>'; 182 188 echo '<form method="post" action="' . $_SERVER["REQUEST_URI"] . '">'."\n" ; 183 189 echo '<table class="form-table">'."\n"; … … 220 226 echo '<div id="icon-options-general" class="icon32"><br /></div>'."\n"; 221 227 echo '<h2>' . __('XPressME Other Setting', 'xpressme') . "</h2><br>\n"; 222 echo '<div align="right"><a href="' . $xoops_admin_url . '"><h3>'. __('to XOOPS Modules Admin Page', 'xpressme') . '</h3></a></div>';228 // echo '<div align="right"><a href="' . $xoops_admin_url . '"><h3>'. __('to XOOPS Modules Admin Page', 'xpressme') . '</h3></a></div>'; 223 229 echo '<form method="post" action="' . $_SERVER["REQUEST_URI"] . '">'."\n" ; 224 230 echo '<table class="form-table">'."\n";
Note: See TracChangeset
for help on using the changeset viewer.