settings['PerPostOrSite']) echo "

Preview Of Per Post Expiration

\r\n"; else echo "

Preview Of Post Deletion/Move/Add

\r\n"; $ids = $wpdb->get_results($this->gen_query()); if (!$ids) { echo "

No Posts Found

"; return; } // Figure out how many posts we have and only preview a few.. $postCount = count($ids); $index = 0; echo ''; echo ''; foreach($ids as $id) { if ('' == $id->ID) continue; // Once we show 50 posts, let's stop.. if ($index++ == 50) break; $query = "SELECT DISTINCT post_title FROM $wpdb->posts WHERE ID=". $id->ID; $title = $wpdb->get_var($query); $commentCount = get_comments_number($id->ID); $catnames = get_the_category($id->ID); $attachmentCount = count(get_children(array('post_parent' => $id->ID))); echo ""; echo ""; echo ""; if ($commentCount) echo ""; else echo ""; if ($attachmentCount) { echo ""; } else { echo ""; } } echo ""; if (($index + 10) < $postCount) { echo ""; echo ""; } ?>
Post IDPost TitlePost Category# Comments# Attachments
$id->ID $title"; $count = 0; foreach($catnames as $catname) { if ($count > 0) echo ", "; echo "$catname->cat_name"; $count++; } echo "$commentCount0$attachmentCount0
"; $remainder = $postCount - $index; echo "..and $remainder more posts"; echo "
settings['MoveCategory']; $adp_addcategoryid = $this->settings['AddCategory']; $adp_mvcategory = get_the_category_by_ID($adp_mvcategoryid); $adp_addcategory = get_the_category_by_ID($adp_addcategoryid); ?>
settings['PerPostOrSite']) && (DEL_PUB_POSTS == $this->settings['DelPostType'])) { $blog_version = get_bloginfo('version'); $major = (int) substr($blog_version, 0, 1); $minor = (int) substr($blog_version, 2, 3); if ((2 == $major) && ( 7 > $minor)) { if (!is_wp_error($adp_mvcategory) && ("" != $adp_mvcategory)) { echo "\r\n"; } if (!is_wp_error($adp_addcategory) && ("" != $adp_addcategory)) { echo "\r\n"; } } else { if (!is_wp_error($adp_mvcategory) ) { echo "\r\n"; } if (!is_wp_error($adp_addcategory)) { echo "\r\n"; } } } ?>