'; echo '

Split Testing

'; if ($requiresConfirm == true) { echo '
'; echo '
'; echo "

Confirmation Required

"; echo "$confirmMessage
"; echo ''; echo ''; echo ''; echo ''; echo ''; echo '

'; } if (isset($feedback)) { echo '
'; echo '

'.$feedback.'

'; } $posts = aw_get_all_posts(-1); echo '
'; echo '
'; echo ''; foreach ($posts as $post) { $postMaster = aw_get_metadata('post',$post->ID,'aw_affiliatewire_quick_ignition_split_Master',true); if ($postMaster == $post->ID) { $splitTestData = aw_get_metadata('post',$postMaster, 'aw_affiliatewire_quick_ignition_split_Children',true); $allpublished = true; foreach ($splitTestData as $splitItem) { if (get_post_status($splitItem) != 'publish') { $allpublished = false; } } $splitTestData = array_diff($splitTestData, array($postMaster)); $splitTestName = aw_get_metadata('post',$postMaster, 'aw_affiliatewire_quick_ignition_split_TestName',true); $splitTestHits = (int)aw_get_metadata('post',$postMaster, 'aw_affiliatewire_quick_ignition_split_Hits',true); $splitStart = (int)aw_get_metadata('post',$postMaster, 'aw_affiliatewire_quick_ignition_split_Start',true); $splitEnd = (int)aw_get_metadata('post',$postMaster, 'aw_affiliatewire_quick_ignition_split_End',true); $splitClosed = (int)aw_get_metadata('post',$postMaster, 'aw_affiliatewire_quick_ignition_split_Closed',true); $splitTestTotalHits = (int)aw_get_metadata('post',$postMaster, 'aw_affiliatewire_quick_ignition_split_Total_Hits',true); $running = $splitMaster = aw_get_metadata('post',$postMaster,'aw_affiliatewire_quick_ignition_split_Running',true); echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; $splitTestLinks = aw_get_metadata('post',$post->ID,'aw_affiliatewire_quick_ignition_split_Links',true); if (is_array($splitTestLinks) && count($splitTestLinks)>0) { echo ''; foreach ($splitTestLinks as $link => $linkCount) { echo ''; echo ''; echo ''; echo ''; } } foreach ($splitTestData as $splitID) { $splitPost = get_post($splitID); $splitTestHits = aw_get_metadata('post',$splitPost->ID, 'aw_affiliatewire_quick_ignition_split_Hits',true); echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; $splitTestLinks = aw_get_metadata('post',$splitPost->ID,'aw_affiliatewire_quick_ignition_split_Links',true); if (is_array($splitTestLinks) && count($splitTestLinks)>0) { echo ''; foreach ($splitTestLinks as $link => $linkCount) { echo ''; echo ''; echo ''; echo ''; } } } if (!$splitClosed) { echo ''; echo ''; echo ''; echo ''; } if (!$splitClosed) { echo ''; } else { echo ''; } echo '
'.base64_decode($splitTestName).''; // if ($running == 'true') { echo '     Start Date: '.date('M d, Y', $splitStart); if ($splitEnd > 0) { echo '     End Date:'.date('m d, Y', $splitEnd); } // } else { // echo '     Start Date: Not Running'; // if ($splitEnd == 0) { // echo '   
'; // echo ''; // echo ''; // echo '
'; // } // } echo '
'; if ($allpublished != true) { echo '
'; echo ''; echo ''; echo '
'; echo '     '; } echo '
'; echo ''; echo ''; echo '
'; echo '
Post TypePost TitleStatus# of HitsActions
Master Post'; echo ''; echo ''; echo 'Preview'; echo '
['.str_pad($post->ID,3," ",STR_PAD_LEFT)."]  
".$post->post_title; echo '
'.aw_get_post_status($post->post_status); echo ''.$splitTestHits.' ('.@number_format(($splitTestHits/$splitTestTotalHits*100),0).'%) '; echo '
Outbound Links'.$link.''.$linkCount.' 
Child Post'; if ($splitID == $splitClosed) { echo ' Chosen'; } echo ''; echo ''; echo 'Preview'; echo '
['.str_pad($splitPost->ID,3," ",STR_PAD_LEFT)."]  
".$splitPost->post_title; echo '
'.aw_get_post_status($splitPost->post_status); echo ''.$splitTestHits.' ('.@number_format(($splitTestHits/$splitTestTotalHits*100),0).'%) '; if (!$splitClosed) { echo '
'; echo ''; echo ''; echo ''; echo '
'; } echo '
Outbound Links'.$link.''.$linkCount.' 
Add Post'; echo ''; echo ''; echo '
End Split Test   '; echo '
'; echo ''; echo ''; echo ''; echo '
'; echo '
Split Test Ended
'; echo '
'; } } ?>