optionsMessage = ""; $this->wpdb = $wpdb; add_action( 'init', array($this,'AWM_init_hook' )); add_action( 'admin_init', array($this,'AWM_addmin_hook' )); add_action('admin_menu', array($this,'AWM_add_option_pages')); global $wp_version; if((float)$wp_version>=2.8){ include_once WP_PLUGIN_DIR.'/allwebmenus-wordpress-menu-plugin/widgetClass.php'; add_action('widgets_init', create_function('', 'return register_widget("Widget_AllWebMenus");')); } } /* * Initialization of plugin. */ function AWM_init_hook(){ global $dataArray,$awm_table_name, $awm_total_tabs, $AWM_ver, $dataArray, $awm_is_yarpp_enabled; /* * Load the include files */ include_once WP_PLUGIN_DIR.'/allwebmenus-wordpress-menu-plugin/menu_helper.php'; include_once WP_PLUGIN_DIR.'/allwebmenus-wordpress-menu-plugin/include.php'; $this->awm_table_name = $awm_table_name = $this->wpdb->prefix . "awm"; $this->dataArray = $dataArray = array(); $this->AWM_ver = $AWM_ver = '1.1.5'; $this->awm_total_tabs = $awm_total_tabs = get_option("AWM_total_menus",(int) 0); //if ($_POST["AWM_selected_tab"]=="") $_POST["AWM_selected_tab"]="1"; // set the first time options (if they do not already exist) awm_set_first_time_options(); // add linking code to header.php file if (isset($_GET['theaction']) && $_GET['theaction']=='show_addcode') { update_option("AWM_code_check", 1); } $check = get_option("AWM_code_check",1); if ($check && !awm_add_code()){ $this->optionsMessage = "
Linking code could not be added automatically. You have to add it by yourself. Open the \"header.php\" file (found at \"SITEROOT/wp-content/themes/YourSiteTheme\") and add this code
right after the <body> tag.
Menu Structure Code generated!
| Menu Structure Code |
|
- Press Ctrl+C to copy the above code
- Switch to the AllWebMenus desktop application - Open the "Add-ins -> WordPress Menu -> Import/Update Menu Structure from WordPress" form - Paste the above copied "Menu Structure Code" - Configure further your menu (styles, etc.) through the AllWebMenus properties - Compile your menu from "Add-ins -> WordPress Menu -> Compile WordPress Menu" - Make sure that you upload the compiled menu ZIP file on your server (Note: you need to have AllWebMenus version 5.3.862 or above to create a ZIP file for WordPress). To upload the ZIP file please use the related button below in this page. |
For information and updates, please visit: http://www.likno.com/addins/wordpress-menu.html