__( 'Admangler Widget', 'admangler_domain' )) ); } function widget( $args, $instance ) { // What the widget will output in the front-end extract( $args ); $title = $instance['title']; $width = $instance['width']; $height = $instance['height']; $position = $instance['position']; $options = new stdClass(); $options->width = $width; $options->height = $height; $options->position = $position; $options->ajaxAd = filter_var( get_option( "AdMangler_cache_buster" ), FILTER_VALIDATE_BOOLEAN ); global $adMangler; $content = $adMangler->get_ad( $options ); // Here we get the post's excerpt ?>