';
$style= false; $required = false;
if($options['required'] != 'no') { $required = true;}
echo '
'."\n";
echo $after_widget;
}
// VR Plugin OPTIONS
function widget_vr_options() {
$options = get_option('widget_vr');
if (!is_array($options)) {
$options = array('title' => __('Vertical Response', 'vertical-response'), 'code' => 'ab1c2def3g', 'button' => 'Subscribe', 'wrap' => 'p');
}
if ($_POST['vr_form_submit']) {
$options['title']=strip_tags(stripslashes($_POST["vr_form_title"]));
$options['code']=strip_tags(stripslashes($_POST["vr_form_code"]));
// $options['legend']=strip_tags(stripslashes($_POST["vr_form_legend"]));
$options['showlegend']=strip_tags(stripslashes($_POST["vr_display_legend"]));
$options['preface']=strip_tags(stripslashes($_POST["vr_form_preface"]));
$options['button']=strip_tags(stripslashes($_POST["vr_form_button"]));
$options['wrap']=strip_tags(stripslashes($_POST["vr_form_wrap"]));
$options['defaultstyle'] = strip_tags(stripslashes($_POST["vr_defaultstyle"]));
$options['showname'] = strip_tags(stripslashes($_POST["vr_showname"]));
$options['required'] = strip_tags(stripslashes($_POST["vr_required"]));
$options['show_vr_code'] = strip_tags(stripslashes($_POST["vr_show_vr_code"]));
update_option('widget_vr', $options);
}
?>
Displayed below the Title
By default, the text will be wrapped in a paragraph (<p>). Note: Do not include brackets .
The default style is a gray box. If you want to customize using your own CSS, choose Off.
Yes
/>
No
/>
/>
Full Optin (will display First Name, Last Name, Email, and subscribe button)
/>
Only Email (will show Email & subscribe button)
/>
Only Subscribe (will only show the subscribe button)
*":'); ?>
Let users know the email is required. Even if the email input is empty, they'll be able to enter it after submitting the form.
Yes
/>
No
/>
Yes
/>
No
/>
Get your code here: Lists > Opt-In Forms and create a form.
When on the "Publish!" tab, the Form ID Code can be found by looking for <form method="post" action="http://oi.vresp.com?fid=ab1c2def3g "…, where ab1c2def3g is the code you want to enter below.
}
register_sidebar_widget(array('Vertical Response', 'vertical-response'), 'widget_vr');
register_widget_control(array('Vertical Response', 'vertical-response'), 'widget_vr_options');
}
add_action('widgets_init', 'vr_widget_init');
?>