50) $_POST['AWM_categories_subitems_no_'.$awm_t]=50; } // AWM_menu_name if (isset($_POST["AWM_menu_name_".$awm_t])) $_POST["AWM_menu_name_".$awm_t] = awm_fix_menu_name($_POST["AWM_menu_name_".$awm_t]); } // AWM_menu_path if (isset($_POST["AWM_menu_path"])) { $awm_path = (string) $_POST["AWM_menu_path"]; if ((strpos($awm_path, "/") != 0) || (strpos($awm_path, "/") === FALSE)) $awm_path = "/" . $awm_path; if (substr($awm_path, strlen($awm_path)-1,1) != "/") $awm_path = $awm_path . "/"; $_POST["AWM_menu_path"] = $awm_path; } //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(); // Check if already had the plugin when it was single-tab and convert values awm_convert_from_single_to_multi_tab(); $awm_is_yarpp_enabled = in_array('yet-another-related-posts-plugin/yarpp.php', get_option('active_plugins')); // If neede, update YARPP's auto_display option //for ($awm_i=0; $awm_i<$awm_total_tabs; $awm_i++) if (get_option('AWM_Related_'.$awm_i)) update_option('yarpp_auto_display', 0); /* * Add options page */ function AWM_add_option_pages() { if (function_exists('add_options_page')) { add_options_page('AllWebMenus WordPress Menu Plugin', 'AllWebMenus-WP-Menu', 8, __FILE__, 'AWM_options_page'); } } function awm_wp_settings_link($awm_links) { $awm_settings_link = 'Settings'; array_unshift($awm_links, $awm_settings_link); return $awm_links; } $awm_plugin = plugin_basename(__FILE__); add_filter("plugin_action_links_$awm_plugin", 'awm_wp_settings_link' ); // Check if you need to check for updates if ((get_option('AWM_Checked_Date') <= (date(d) - 15)) || (get_option('AWM_Checked_Date') === '00')) { update_option('AWM_Check_Show', TRUE); } /* * Generate options page */ function AWM_options_page() { global $AWM_ver, $awm_total_tabs, $awm_is_yarpp_enabled, $wpdb; ?>
Default Settings Loaded!
Settings Updated!
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 all compiled files in the $awm_up_path directory on your server |
'; if (!in_array('yet-another-related-posts-plugin/yarpp.php', get_option('active_plugins'))) { include_once('yet-another-related-posts-plugin/yarpp.php'); update_option('AWM_YARPP', TRUE); echo "YARPP Activated!"; } else { update_option('AWM_YARPP', TRUE); echo "YARPP Activated!"; } echo '
YARPP Dectivated!
For information and updates, please visit: http://www.likno.com/addins/wordpress-menu.html