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; ?>

AllWebMenus WordPress Menu Plugin v


|".$_POST['theaction']."|

"; if ($_POST['theaction']=="set_defaults") { // first update all values, then reset this tab to defaults awm_update_option_values(); awm_set_default_option_values(get_option('AWM_selected_tab')); echo '

Default Settings Loaded!

'; } elseif ($_POST['theaction']=="info_update") { // update all values awm_update_option_values(); echo '

Settings Updated!

'; } elseif ($_POST['theaction']=="generate_structure") { // first update all values, then generate the current tab's structure awm_update_option_values(); $awm_str_code = AWM_create_menu_structure(get_option('AWM_selected_tab')); $awm_up_path = get_bloginfo('url') . get_option('AWM_menu_path'); echo <<

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
STR; /* } elseif ($_POST['theaction']=='Activate') { echo '

'; 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 '

'; } elseif ($_POST['theaction']=='Deactivate') { update_option('AWM_YARPP', FALSE); echo '

YARPP Dectivated!

'; */ } elseif ($_POST['theaction']=='hide_msg') { update_option('AWM_Check_show', FALSE); } ?>

For information and updates, please visit: http://www.likno.com/addins/wordpress-menu.html



">
Online folder for menu files:   (relative to blog's root folder)
  Every time you compile your local AllWebMenus project you should upload the compiled menu files at this folder.

(note: you need to create this online folder yourself)
      
".get_option('AWM_menu_name_'.$awm_t)."
"; } ?>
/> Show "" in blog    Unchecked! (this menu will not appear in your blog)(this menu will appear in your blog)
Menu name:
Please make sure that the "Menu name" value matches the value in the "Compiled Menu Name" property of the AllWebMenus project file (Tools > Project Properties > Folders). show me

Menu Structure
 
/> Menu is populated from an existing "Wordpress menu" (check to choose menu, Wordpress 3+ only)
Which WordPress menu do you want to use?     Add/Edit WordPress menus
 
/> Menu is populated with specific "pages", "posts", "categories", etc. (check to choose items)

Please select the items you want to include/exclude in your menu structure:

 
/> "Home" A "Home" item that opens the blog's Home Page.
 
 
/> Pages: Show all Pages except the following:
  
  Page IDs, separated by commas (their sub-pages will also be excluded). Example: 34, 59, 140
 
   /> Show Pages as Main Menu items
   /> Show a Main Menu item named and show Pages as its submenu items
 
 
/> Posts: Show the following Posts:
  
  Post IDs, separated by commas. Example: 34, 59, 140
 
   /> Show Posts as Main Menu items
   /> Show a Main Menu item named and show Posts as its submenu items
 
 
/> Categories: Show all Categories except the following:
  
  Category IDs, separated by commas (their sub-categories will also be excluded). Example: 34, 59, 140
   /> Also show (up to) the newest posts of each Category as its submenu items
   Value must be between 1 and 50.
 
   /> Show Categories as Main Menu items
   /> Show a Main Menu item named and show Categories as its submenu items
 
 
Other: /> Hide future-dated posts       /> Hide password-protected items
 
 
Menu Type

Please select how you want your menu to behave:

 
 
/> "Dynamic" Menu Type
/> "Mixed" Menu Type
/> "Static" Menu Type
>

You have selected to create a menu structure of "Dynamic Type".

This means that the menu items in AllWebMenus will only be used for preview/styling purposes.

In your actual blog these items will be ignored and the menu will be populated "dynamically" based on the plugin settings.

The styles in AllWebMenus Style Editor will be used to form the actual menu items.

View short video explaining all your settings

>

You have selected to create a menu structure of "Mixed Type".

This means that your menu will contain both the items you create within AllWebMenus ("static") and the items you import from WordPress ("dynamic").

The imported Wordpress items will use the styles of the AllWebMenus Style Editor but their actual content will be populated "dynamically" based on the plugin settings.

The static items you create within AllWebMenus will be shown as is.

View short video explaining all your settings

>

You have selected to create a menu structure of "Static Type".

Your menu will be edited (addition/removal/customization of items) within AllWebMenus only.

Any changes on your online blog will not affect its items until you perform the "Save settings & Generate Menu Structure Code" action and re-import to AllWebMenus.

This allows for maximum customization, as your online menu will show all items and styles customized within AllWebMenus.

View short video explaining all your settings

 
 
Collaboration with external plugins
 
Related Posts (YARPP): Currently not installed and activated";?>
get it here
/> Show a "Related Posts" item when viewing a post
 

This feature uses the 3rd-party "Related Posts (YARPP)" plugin, which needs to be installed separately.

It dynamically adds a "Related Posts" item at the end of the Main Menu, with a submenu that contains posts related to the post you are currently viewing, regardless of the menu type you have selected.

The "Related Posts" item appears only when viewing a single post.

Note! It seems that the "Related Posts (YARPP)" Plugin is not installed and activated so this option is disabled.

This feature uses the 3rd-party "Related Posts (YARPP)" plugin, which needs to be installed separately.

It dynamically adds a "Related Posts" item at the end of the Main Menu, with a submenu that contains posts related to the post you are currently viewing, regardless of the menu type you have selected.

The "Related Posts" item appears only when viewing a single post.

 
 


Note: Always click the "Save settings" button below to apply your changes. If you leave this page without saving you will lose your unsaved changes.
      
\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n\n"; } } /* * Initialize query var for sitemap permalinks */ function AWM_query_vars ( $awm_vars ) { $awm_vars[] = "pg"; return $awm_vars; } //add_filter('query_vars', 'AWM_query_vars'); add_action('admin_menu', 'AWM_add_option_pages'); ?>