/** * Display Shortcode * * @since 0.0.1 * @access public * * @param $atts array */ public function shortcode($atts) { dfp_ad_position($atts['id']); }
/** * Outputs the content of the widget. * * @since 0.0.1 * @access public * * @param array $args The array of form elements * @param array $instance The current instance of the widget */ public function widget($args, $instance) { echo $args['before_widget']; dfp_ad_position($instance['position_title']); echo $args['after_widget']; }