<?php

$showform_ids = TemplateData::show_forms_id();
if (rgpost("tag_submit")) {
    //var_dump(rgpost("form_id"));//exit;
    $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;