This is a control module and may not be deactivated or activated. Author: Aaron Harun Version: 1.0 AWP Release: 1.0 Author URI: http://anthologyoi.com/ */ if(strpos($_SERVER['PHP_SELF'], 'wp-admin') !== false){ add_action('awp_admin_ajax',array('AWP_ajax','admin')); add_filter('awp_get_options',array('AWP_ajax','awp_get_options')); }else{ add_action('prototype_effects', array('AWP_ajax','prototype_effects')); add_action('jquery_effects', array('AWP_ajax','jquery_effects')); add_action('prototype_jslib', array('AWP_ajax','prototype_js_lib')); add_action('jquery_jslib', array('AWP_ajax','jquery_js_lib')); add_action('prototype_js', array('AWP_ajax','prototype_js'),10,2); add_action('jquery_js', array('AWP_ajax','jquery_js'),10,2); add_action('sack_js', array('AWP_ajax','sack_js'),10,2); add_action('aWP_JS',array('AWP_ajax','JS')); add_action('awp_effects', array('AWP_ajax','effects')); add_action('awp_get_library',array('AWP_ajax','get_library')); add_action('pick_ajax', array('AWP_ajax','pick_ajax')); } class AWP_ajax{ function get_library(){ global $awpall; $ajax = $awpall['js_library']; $a = apply_filters($ajax.'_js_lib',$ajax); $ajax = ($a)? $a : $ajax; wp_print_scripts($ajax); } function pick_ajax($type){ global $awpall,$home,$awpsuffix; static $aWP_ajax; if(!is_array($aWP_ajax)){ $aWP_ajax = AWP_ajax::get_ajax(); } echo $aWP_ajax[$type]; } function get_ajax(){ global $awpall; $ajax = $awpall['js_library']; return apply_filters($ajax.'_js',$aWP_ajax); } function JS(){ global $awpall; echo "\n"."\n".'/* start effects */'."\n"; include('effects.js'); } function effects(){ global $awpall; if($awpall['special_effects'] == 'Enabled'){ if($awpall[$awpall['js_library'].'_show'] && $awpall[$awpall['js_library'].'_hide']){ do_action($awpall['js_library'].'_effects'); }else{ if($awpall['effects'] == 'Fade'){ $extra = ", 'background': '$awpall[background_color]'"; } ?> AOI_eff.start(i, {'eff': ''}); if($(i).style.display === 'block'){ $(i).style.display= 'none'; }else { $(i).style.display = 'block'; } if($(i).style.display === 'block'){ Effect.(i); }else{ Effect.(i); } if($(i).style.display === 'block'){ jQuery('#'+i).(""); }else{ jQuery('#'+i).(""); } Select your JS Library and Special Effects Special Effects -- %s]]> You may select effects for JQuery and Scriptaculous underneath their respective libraries. Which built in Post effect do you want? Slide Up scrolls the container up and down, Scroll Left pushes all of the text to the left and pulls it back to the right, Expand stretches and shrinks the text (not the container) horizontally and also vertically (if no child element has a set line height) What is the background color of your posts? In hex format (#FFFFFF) Due to a bug in IE you must set a background color for your posts if you want to use the fade effect. This only needs to be set if your post backgrounds aren't white. What effect would you like to use for your non-post show/hides? Slide Up scrolls the container up and down, Scroll Left pushes all of the text to the left and pulls it back to the right, Expand stretches and shrinks the text (not the container) horizontally and also vertically (if no child element has a set line height) You may select a specific Javascript Library to use here. Any options, including effects, listed below the library are only used if that library is selected. Use TWSack Library This library is only 5KB and is the default. Use JQuery (19KB, includes effects) and hide effect Use Prototype.js (55KB, Not suggested, needs Scriptaculous for effects ) awp_admin_get_ajax menu; AWP_admin::admin_panel($ajaxmenu); } function awp_get_options($i){ $i[selects][] = 'special_effects'; $i[radios][] = array('js_library','sack'); $i[selects][] = 'effects'; return $i; } } ?>