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.17'; $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()) { $nonce= wp_create_nonce('my-nonce'); $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.
For information and updates, please visit: http://www.likno.com/addins/wordpress-menu.html
This plugin acts as a "bridge" between...
|
...the AllWebMenus Pro application...
|
& |
...your WordPress blog
|
How?
|
*Also add non-wordpress menu items (i.e. your own "external" items, not posts or pages), that use external or internal links, html-rich content, etc. |
![]() |
'.$myrows[$awm_t]->related_name.'