Beispiel #1
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';