This module works better then the AJAX Nav module. Author: Aaron Harun Version: 1.0 AWP Release: 1.0 Author URI: http://anthologyoi.com/ */ $awp_init[] = 'AWP_ajaxnavigator'; register_activation_hook(__file__,array('AWP_ajaxnavigator','set_defaults')); Class AWP_ajaxnavigator{ function init(){ global $awpall; if(strpos($_SERVER['PHP_SELF'], 'wp-admin') !== false){ add_action('awp_admin_more_menus',array(&$this,'admin')); add_action('awp_admin_more_menu_links',array(&$this,'admin_link')); add_filter('awp_get_options',array(&$this,'awp_get_options')); }elseif($awpall['ajaxnavigator'] == 'Enabled'){ $this->awp_live(); add_action('awp_die',array(&$this,'awp_die')); add_action('awp_live',array(&$this,'awp_live')); add_action('init', array(&$this, 'maybe_AJAX'),99); add_action('awp_js_start',array(&$this,'awp_js_start')); add_filter('aWP_JS', array(&$this,'addJS')); } } function awp_die(){ global $awpall; if($awpall['simple_posts'] == 1){ remove_action('loop_end', array(&$this, 'loop_end'),5); remove_action('loop_start', array(&$this, 'loop_start'),5); } } function awp_live(){ global $awpall,$aWP; static $started; if(!$started || $aWP['die']){ /* We do not want to do this several times.*/ add_action('loop_end', array(&$this, 'loop_end'),5); add_action('loop_start', array(&$this, 'loop_start'),5); } $started = 1; } function addJS(){ echo "\n"."\n".'/* start AJAX nav UnFocus */'."\n var historyKeeper; \n var unFocus;"; include(ABSPATH . PLUGINDIR . AWP_MODULES . '/ajaxnavigator/unFocus-History-p.js'); $this->unfocus(); } function unfocus(){ global $awpall; ?> //