adelObj->text_domain ) ?>

adelObj = new active_directory_employee_list_output; add_action( 'admin_print_styles-widgets.php', array( &$this, 'enqueue_admin_styles' ) ); parent::WP_Widget( 'adel_list_widget', 'Active Directory Employee Widget', array( 'description' => __( 'This widget has been deprecated. Two new widgets, the "AD List Widget" and the "AD Employee Widget" have been provided, instead.', $this->adelObj->text_domain ) ), array( 'width' => 450 ) ); } function enqueue_admin_styles() { add_action( 'admin_notices', array( &$this, 'deprecated_notice' ) ); wp_enqueue_style( 'ad-employee-list-admin-style' ); } function form( $instance ) { /** * Fields are: * + title * + username * + group * + fields * + output_builder */ $instance = array_merge( array( 'title'=>null, 'username'=>null, 'group'=>null, 'fields'=>array(), 'output_builder'=>null ), $instance ); ?>


adelObj->output_built = null; $this->adelObj->employee_list = null; $_REQUEST['widget_adeq'] = isset( $_REQUEST['widget_adeq'] ) ? $_REQUEST['widget_adeq'] : ''; $_REQUEST['widget_adep'] = isset( $_REQUEST['widget_adep'] ) ? $_REQUEST['widget_adep'] : ''; if( isset( $_REQUEST['widget_adeq'] ) ) { $tmp['adeq'] = isset( $_REQUEST['adeq'] ) ? $_REQUEST['adeq'] : null; $_REQUEST['adeq'] = $_REQUEST['widget_adeq']; } if( isset( $_REQUEST['widget_adep'] ) ) { $tmp['adep'] = isset( $_REQUEST['adep'] ) ? $_REQUEST['adep'] : null; $_REQUEST['adep'] = $_REQUEST['widget_adep']; } extract( $args ); $title = apply_filters( 'widget_title', $instance['title'] ); echo $before_widget; if( $title ) echo $before_title . $title . $after_title; unset( $instance['title'] ); /*$this->adelObj->_log( "\n\n" );*/ echo str_replace( array( 'adep=', 'name="adeq"', 'id="adeq"' ), array( 'widget_adep=', 'name="widget_adeq"', 'id="widget_adeq"' ), $this->adelObj->render_shortcode( $instance ) ); echo $after_widget; foreach( $tmp as $k=>$v ) { $_REQUEST[$k] = $v; } return; } } } ?>