I created a template file with following codes:
<?php
global $elp_altmsg;
global $elp_includes;
global $arr;
$elp_name = trim($arr['elp_name']);
$elp_desc = trim($arr['elp_desc']);
$elp_group = trim($arr['elp_group']);
$url = home_url();
global $elp_includes;
if (!isset($elp_includes) || $elp_includes !== true)
{
$elp_includes = true;
?>
<script language="javascript" type="text/javascript" src="<?php bloginfo('template_directory'); ?>/templates/subscribe/subscribe.js"></script>
<?php
}
?>
<div id="awpt-subscribe-form">
<?php if( $elp_desc <> "" ) { ?>
<p class="form_title elp_msg"><?php echo $elp_desc; ?></p>
<?php } ?>
<p class="form_title elp_msg"><span id="elp_msg"></span></p>
<?php if( $elp_name == "YES" ) { ?>
<input type="text" autocomplete="off" placeholder="<?php echo _e('Your Name', 'tubemobile'); ?>" class="input elp_txt_name" name="elp_txt_name" id="elp_txt_name">
<?php } ?>
<input type="email" autocomplete="off" placeholder="<?php echo _e('E-mail', 'tubemobile'); ?>" class="input elp_txt_email" name="elp_txt_email" id="elp_txt_email">
<div class="btn_block">
<input type="submit" value="<?php echo _e('Subscribe Now!', 'tubemobile'); ?>" name="elp_txt_button" class="elp_txt_button" id="elp_txt_button" >
<input name="elp_txt_group" class="elp_txt_group" id="elp_txt_group" value="<?php echo $elp_group; ?>" type="hidden">
<?php if( $elp_name != "YES" ) { ?>
<input name="elp_txt_name" class="elp_txt_group" id="elp_txt_name" value="" type="hidden">
<?php } ?>
</div>
</div>
No Errors but there is something wrong with the js I cannot get the status alert on submit click.
Im using your widget.js and the above file in theme.