50) $_POST['AWM_categories_subitems_no_'.$t]=50; } // AWM_menu_name $_POST["AWM_menu_name_".$t] = awm_fix_menu_name($_POST["AWM_menu_name_".$t]); } // 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(); $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 ($i=0; $i<$total_tabs; $i++) if (get_option('AWM_Related_'.$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($links) { $settings_link = 'Settings'; array_unshift($links, $settings_link); return $links; } $plugin = plugin_basename(__FILE__); add_filter("plugin_action_links_$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, $total_tabs, $is_yarpp_enabled; ?>
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 $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