The Admin panel is under presentation tab. Need Help? Visit the Official AWP support thread or try reading the full documentation.
Author: Aaron Harun
Version: 1.10
Author URI: http://anthologyoi.com/
* Copyrighted 2008 by:
* Aaron Harun http://anthologyoi.com
* The code is released under a Creative Commons Liscense
* (Attribution-NonCommercial-ShareAlike 2.0)
* TERMS: (Removal of this section indicates agreement with these Terms.)
* For Personal (non-distribution, non-commercial) use this notice must remain.
* For Distribution this notice must remain and attribution through
* a publicly accessible "followable" links on applicable
* information and download pages are required.
* No Commercial use without approval.
Web Designers: Considering using this plugin on a client website?
You may remove all commercial and distribution restrictions by sponsoring this plugin by
(a) Making a monetary donation commensurate with its worth in your project and/or
(b) Helping to improve this plugin by submitting code, modifications or bug fixes and/or
(c) Certifying this plugin is developer quality by publicly recognizing its contributions to your projects through publicly facing, followable links on your main developer website.
Theme Designers:
I will link back,on the main AWP page, to themes that are created with built-in AWP support and provide a followable link to the main AWP page.
*/
/*__/_______________________________/_____*/
/* Setup up everything. */
/* Globals first then Modules */
/*__/_______________________________/______*/
//Constants
define('AWP_BASE',AWP::get_base());
define('AWP_MODULES','/'.AWP_BASE.'/modules');
define('AWP_AJAX', get_settings('siteurl')."/wp-content/plugins/".AWP_BASE."/aWP-response.php$awpsuffix");
// Globals
$awpall = AWP::start_up(); /*Get all options*/
$awp_mods = get_option('awp_mods'); /*Get active Modules*/
add_action('init', array('AWP','init'));
if ( is_array($awp_mods) && $_POST["action"] != "restoredefaults") {
foreach ($awp_mods as $mod) {
if ('' != $mod && file_exists(ABSPATH . PLUGINDIR . AWP_MODULES. '/' . $mod))
include_once(ABSPATH . PLUGINDIR . AWP_MODULES . '/' . $mod);
}
}else{
$awp_mods = array();
}
include_once(ABSPATH . PLUGINDIR . '/'.AWP_BASE . '/control/aWP-ajax.php');
register_activation_hook(__file__,array('AWP','set_defaults'));
//register_deactivation_hook(__file__,array('AWP','rm_options'));
class AWP{
function start_up(){
$options = array();
if($_GET['awp'] == 'test'){
$options = get_option('awp_test');
}else{
$options = get_option('awp');
}
if(!$options){
AWP::set_defaults();
}
if(isset($options['scriptaculous_hide'])){
$options['prototype_hide'] = $options['scriptaculous_hide'];
$options['prototype_show'] = $options['scriptaculous_show'];
unset($options['scriptaculous_hide']);
unset($options['scriptaculous_show']);
}
return $options;
}
function init() {
global $awpall;
$currentLocale = get_locale();
if(!empty($currentLocale)) {
$moFile = dirname(__FILE__) . "/tranlsations/awp-" . $currentLocale . ".mo";
if(@file_exists($moFile) && is_readable($moFile)) load_textdomain('awp', $moFile);
}
if(strpos($_GET['page'],'aWP-admin_panel.php') == true){
include_once(ABSPATH . PLUGINDIR . '/'.AWP_BASE . '/control/aWP-admin.php');
add_action('admin_head',array('AWP_admin','admin_js'));
if($_REQUEST['action'])
AWP_admin::process_admin();
}
add_action('admin_menu', array('AWP','menu'));
add_action('wp_head', array('AWP','print_header'));
if($awpall['give_credit'])
add_action('wp_footer',array('AWP','give_credit'));
}
function give_credit(){
echo 'AJAXed with AWP';
}
function get_base(){
return end(explode('/', str_replace(array('\\','/aWP.php'),array('/',''),__FILE__)));
}
function print_header(){
global $awpall,$wp_version;
$home = get_settings('siteurl');
do_action('awp_get_library');
if($_GET['awp'] == 'test'){
wp_register_script('awp-core', $home.'/wp-content/plugins/'.AWP_BASE.'/js/core-test.js.php', false, $awpall[last_modified]);
}else{
wp_register_script('awp-core', $home.'/wp-content/plugins/'.AWP_BASE.'/js/core.js.php', false, $awpall[last_modified]);
}
wp_print_scripts('awp-core');
do_action('aWP_header');
?>
'."\n";
?>
'; print_r($data); echo ''; return $data; } } if (!function_exists("htmlspecialchars_decode")) { /* PHP 4 support. I like this function.*/ function htmlspecialchars_decode($string, $quote_style = ENT_COMPAT) { return strtr($string, array_flip(get_html_translation_table(HTML_SPECIALCHARS, $quote_style))); } } ?>