$config['meta']['form_id'] = rgpost("form_id"); $config['meta']['name_form_field'] = rgpost("name_form_field"); $config['meta']['email_form_field'] = rgpost("email_form_field"); $config['meta']['setting_id'] = rgpost("setting_id"); $result = TemplateData::update_settings($config); if ($result) { ?> <div class="updated fade" style="padding:6px"><?php echo sprintf(__("Feed Updated.", "templatemerge")); ?> </div> <?php } } $count = 0; $settings = TemplateData::get_settings(); $count = count($settings); ?> <script type="text/javascript"> jQuery(document).ready(function() { var c = <?php echo $count; ?> ; var cloned; jQuery("#click").click(function(){ /*console.log(c);*/ cloned = jQuery( '#root_'+ c ); jQuery("#root_"+c).clone().attr('id', 'root_'+(++c) ).insertAfter( cloned );