예제 #1
0
         }
     }
     break;
 case 'author':
     if (count($act) > 0 && is_author($act)) {
         $display = $other;
         $DW->message('Exception triggered for ' . $widget_id . ' sets display to ' . $e . ' (rule EA1)');
     }
     break;
 case 'category':
     if (count($act) > 0) {
         $act_cat = array();
         $act_childs = array();
         $id = get_query_var('cat');
         $DW->message('CatID: ' . $id);
         if (DW_WPML::detect(FALSE)) {
             $id = DW_WPML::getID($id, 'tax_category');
             $DW->message('WPML ObjectID: ' . $id);
         }
         foreach ($opt as $condition) {
             if ($condition->name != 'default') {
                 switch ($condition->maintype) {
                     case 'category':
                         $act_cat[] = $condition->name;
                         break;
                     case 'category-childs':
                         $act_childs[] = $condition->name;
                         break;
                 }
             }
         }
<?php

/**
 * dynwid_admin_edit.php - Options settings
 *
 * @version $Id: dynwid_admin_edit.php 532982 2012-04-18 17:35:12Z qurl $
 * @copyright 2011 Jacco Drabbe
 */
// Plugins support
DW_BP::detect();
DW_QT::detect();
DW_WPSC::detect();
DW_WPML::detect();
// Sanitizing some stuff
$widget_id = isset($_GET['id']) && !empty($_GET['id']) ? esc_attr($_GET['id']) : '';
$return_url = isset($_GET['returnurl']) && !empty($_GET['returnurl']) ? esc_url($_GET['returnurl']) : '';
if (!array_key_exists($widget_id, $DW->registered_widgets)) {
    wp_die('WidgetID is not valid');
}
?>

<style type="text/css">
label {
  cursor : default;
}

.condition-select {
  width : 300px;
  -moz-border-radius-topleft : 6px;
  -moz-border-radius-topright : 6px;
  -moz-border-radius-bottomleft : 6px;