awp_live(); } add_action('awp_die',array(&$this,'awp_die')); add_action('awp_live',array(&$this,'awp_live')); /*Template Functions*/ add_action('awp_pages',array(&$this,'pages')); add_action('go_to_post',array(&$this,'go_to_post')); add_action('awp_post',array(&$this,'awp_posts')); add_action('awp_title', array(&$this,'title')); /*Internal Functions*/ add_action('awp_ajax_type_post', array(&$this, 'AJAX')); add_action('awp_filter_start', array('AWP', 'set_options')); add_action('awp_paginate_start', array('AWP', 'set_options')); add_action('awp_pages_start', array('AWP', 'set_options')); add_action('awp_post_start', array('AWP', 'set_options')); add_action('awp_paginate', array(&$this, 'paginate')); add_action('awp_js_start',array(&$this,'awp_js_start')); add_action('awp_js_toggle',array(&$this,'awp_js_toggle')); if($awpall['split_mode'] != 'more'){ add_filter('awp_posts_before_pagination', array(&$this,'findtags')); add_filter('awp_posts_after_pagination', array(&$this,'findblocks')); } } } function awp_die(){ global $awpall; if($awpall['simple_posts'] == 1){ remove_filter('the_content', array(&$this,'filter'),-10,1); remove_filter('the_excerpt', array(&$this,'filter'),-10,1); add_filter('get_the_excerpt', 'wp_trim_excerpt'); } } function awp_live(){ global $awpall,$aWP; static $started; if(!$started || $aWP['die']){ /* We do not want to do this several times.*/ if($awpall['simple_posts'] == 1){ add_filter('the_content', array(&$this,'filter'),-10,1); add_filter('the_excerpt', array(&$this,'filter'),-10,1); remove_filter('get_the_excerpt', 'wp_trim_excerpt'); } } $started = 1; } function awp_js_toggle(){ global $awpall; if($awpall['special_effects'] != 'Enabled'){ $awpall['do_effect'] ='';} if($awpall['do_effect'] == 'Fade'){ $extra = ", 'background': '$awpall[background_color]'"; } ?>//