post_password) || stripslashes($_COOKIE['wp-postpass_'.COOKIEHASH]) == $post->post_password) && ( strpos($post->post_content, '') != false || strpos($post->post_content, '') != false)){
add_filter('awp_options', array('AWP_PaginatedPages', 'get_custom'),99);
if(!is_numeric($awped_posts[$id]))
do_action('awp_paginate');
if(is_singular())
$page = get_query_var('page');
if($page==0)
$page = 1;
// Start the output.
$output = '
'.'
'."\n".chr(13)."\n".$pages[$page-1]."\n".chr(13)."\n".'
';
if(!$aWP[options]['awp_pages'])
$output .= apply_filters('awp_pages','');
$aWP[options]['inlinepaginatedposts'] = 'Disabled';
return $output;
}else{
return $default_content;
}
}
function get_custom($awpall){
global $id, $aWP;
$awpall['inlinepaginatedposts'] = 'Enabled';
$awpall['strip_excerpt'] = 0;
$awpall['beforepages']=$awpall['pp_beforepages'];
$awpall['pagelinks']=$awpall['pp_pagelinks'];
$awpall['afterpages']=$awpall['pp_afterpages'];
$awpall['beforepage']=$awpall['pp_beforepage'];
$awpall['afterpage']=$awpall['pp_afterpage'];
$awpall['page_sep']=$awpall['pp_page_sep'];
return $awpall;
}
function maybeeditoptions(){
global $awpall, $id, $pages, $post, $aWP;
if($post->post_type == 'page' && (empty($post->post_password) || stripslashes($_COOKIE['wp-postpass_'.COOKIEHASH]) != $post->post_password)&& ( strpos($post->post_content, '') != false || strpos($post->post_content, '') != false)){
add_filter('awp_options', array('AWP_PaginatedPages', 'get_custom'),99);
}
}
function admin(){
global $awpall, $aWP;
ob_start();
?>