function klikbayi_set_form_order($post, $arg = '')
{
    $a = klikbayi_do_your_settings($post, $arg);
    $post_id = null === $post->ID ? get_the_ID() : (int) $post->ID;
    remove_filter('the_content', 'klikbayi_filter_the_content');
    $result = klikbayi_create_html($a['type'], $a['form_title'], $a['button_text'], $a['size'], $a['style'], $a['post__in'], $a['post__not_in'], $a['editor']['content']);
    add_filter('the_content', 'klikbayi_filter_the_content', 10);
    if (!$result) {
        return;
    }
    return $result;
}
 function widget($args, $instance)
 {
     extract($args);
     $a = $this->validate->sanitize($instance);
     $title = apply_filters('widget_title', $instance['title']);
     $textarea = $instance['textarea'];
     $result = klikbayi_create_html($a['type'], $a['form_title'], $a['button_text'], "0,0,px", $a['style'], $a['post__in'], $a['post__not_in'], 'shortcode');
     echo $before_widget;
     echo '<div class="widget_form_klikbayi">';
     if ($title && '' != $result) {
         echo $before_title . $title . $after_title;
     }
     if ($textarea && '' != $result) {
         echo '<p class="klikbayi_textarea">' . $textarea . '</p>';
     }
     echo $result;
     echo '</div>';
     echo $after_widget;
 }
 function widget($args, $instance)
 {
     $a = $this->validate->sanitize($instance);
     $result = klikbayi_create_html($a['type'], $a['form_title'], $a['button_text'], $size = '0,0,px', $a['style'], $a['post__in'], $a['post__not_in'], $content = null, 'shortcode');
     if (!empty($result)) {
         $title = apply_filters('widget_title', empty($instance['title']) ? '' : $instance['title'], $instance, $this->id_base);
         echo $args['before_widget'];
         echo '<div class="widget_form_klikbayi">';
         if ($title) {
             echo $args['before_title'] . $title . $args['after_title'];
         }
         if ('' != $instance['textarea']) {
             printf('<p class="klikbayi_textarea">%1$s</p>', $instance['textarea']);
         }
         echo $result;
         echo '</div>';
         echo $args['after_widget'];
     }
 }