$DW_Page->admin();
$DW_Author = new DW_Author();
$DW_Author->admin();
$DW_Category = new DW_Category();
$DW_Category->admin();
$DW_Tag = new DW_Tag();
$DW_Tag->admin();
$DW_Archive = new DW_Archive();
$DW_Archive->admin();
$DW_E404 = new DW_E404();
$DW_E404->admin();
$DW_Search = new DW_Search();
$DW_Search->admin();
$DW_CustomPost = new DW_CustomPost();
$DW_CustomPost->admin();
$DW_WPSC = new DW_WPSC();
$DW_WPSC->admin();
$DW_BP = new DW_BP();
$DW_BP->admin();
$DW_bbPress = new DW_bbPress();
$DW_bbPress->admin();
$DW_Pods = new DW_Pods();
$DW_Pods->admin();
// For JS exclOff
$excl = array();
foreach ($DW->overrule_maintype as $m) {
    $excl[] = "'" . $m . "'";
}
?>

</div><!-- end dynwid -->
Example #2
0
         } else {
             $post_type = get_query_var('post_type');
             if (in_array($post_type, $act)) {
                 $is_cpa = TRUE;
             }
         }
         if ($is_cpa) {
             $display = $other;
             $DW->message('Exception triggered for ' . $widget_id . ' sets display to ' . $e . ' (rule ECPA1)');
         }
     }
     break;
 case 'wpsc':
     if (count($act) > 0) {
         include_once DW_MODULES . 'wpec_module.php';
         if (DW_WPSC::is_dw_wpsc_category($act)) {
             $display = $other;
             $DW->message('Exception triggered for ' . $widget_id . ' sets display to ' . $e . ' (rule ESC1)');
         }
     }
     break;
 case 'bp':
     // We have to split out the conditions as we don't want the bp-groups to interfere
     $act = array();
     foreach ($opt as $condition) {
         if ($condition->name != 'default' && $condition->maintype == 'bp') {
             $act[] = $condition->name;
         }
     }
     if (count($act) > 0) {
         include_once DW_MODULES . 'bp_module.php';
    $post = $GLOBALS['post'];
    $DW->message('post_id = ' . $post->ID);
    $post_type = get_post_type($post);
    $DW->message('Post Type = ' . $post_type);
    if ($post_type != 'post') {
        $DW->custom_post_type = TRUE;
        $DW->whereami = $post_type;
        $DW->message('Custom Post Type detected, page changed to ' . $DW->whereami);
    }
}
if ($DW->whereami == 'page') {
    // WPSC/WPEC Plugin Support
    include_once DW_MODULES . 'wpec_module.php';
    include_once DW_MODULES . 'bp_module.php';
    if (DW_WPSC::detect(FALSE)) {
        DW_WPSC::detectCategory();
    } else {
        if (DW_BP::detect(FALSE)) {
            // BuddyPress Plugin Support -- else if needed, otherwise WPEC pages are detected as BP
            DW_BP::detectComponent();
        }
    }
}
if ($DW->whereami == 'tax_archive') {
    $wp_query = $GLOBALS['wp_query'];
    $taxonomy = $wp_query->get('taxonomy');
    $DW->custom_taxonomy = TRUE;
    $DW->whereami = 'tax_' . $taxonomy;
    $DW->message('Page changed to tax_' . $taxonomy . ' (term: ' . $wp_query->get_queried_object_id() . ')');
}
$DW->dwList($DW->whereami);