    <style>
    .bgheader{
            background-image: linear-gradient(150deg,darkgreen , #3daa33,#007bff);
    }
    </style>
    
    <div class="container">
        <div class="row">
            <div class="col-md-12">
                <!-- <h4>Email Templates </h4> -->
                               </div>
            <!-- Create Template Modal -->
                <div class="modal fade" id="templateModalLong" tabindex="-1" role="dialog" aria-labelledby="templateModalLong" aria-hidden="true">
                    <form id="email_template_form"  method="POST" data-url="https://economarketing.ca/wp-admin/admin-ajax.php" enctype="multipart/form-data">
                <div class="modal-dialog  modal-lg" role="document">
                    <div class="modal-content">
                    <div class="modal-header">
                        <h5 class="modal-title" id="templateModalLongTitle">Email Template</h5>
                        <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                        <span aria-hidden="true">&times;</span>
                        </button>
                    </div>
                    <div class="modal-body">
                        <div id="main_body">
                            <div id="already_stored_data" class="d-none"></div>
                            <input type="hidden" name="template_id" id="template_id"/>
                           
                            <div class="form-group">
                                <label for="email_template_title">Title</label>
                                <input type="text" class="form-control" name="email_template_title" id="email_template_title" aria-describedby="emailHelp" placeholder="Template title">
                            </div>
                            
                            <div class="form-group color_div">
                                <input type="checkbox" id="Headerid" name="Header">
                                <label for="email_template_title">Header</label>
                                <br>
                                <div class="row">
                                    <div class="col-md-4">
                                        Color1: <input type="color" id="favcolor1" name="favcolor1" value="">
                                        Color2: <input type="color" id="favcolor2" name="favcolor2" value="">
                                    </div>
                                    <div class="col-md-1">OR</div>
                                    <div class="col-md-7">
                                        <div class="">
                                            
                                            <input type="file" class="" id="header_bg" name="header_bg" style=" border: 1px solid #ddd;border: 1px solid #ced4da;  border-radius: 0.25rem;">
                                        </div><br>
                                    </div>
                                </div>
                                 

                                
                             </div>
                              <div class="displayheader staticheader mb-4 border">
                                <div id="logo_div" class="bgheader p-3 logo_div">  
                                 <img src="https://economarketing.ca/wp-content/uploads/2021/06/cropped-Skype_Picture_2021_06_01T05_28_58_521Z.png" alt="Économarketing">
                                 <span class="text-white">Économarketing</span>
                                
                                </div>
                                  <span class="tringleclass"></span>
                              </div>
                              <hr>
                              <div class="maintitle">
                              <div class="form-group">
                                <input type="checkbox" id="title_subtitle" name="title_subtitle">
                                <label for="title_subtitle">Title & Subtitle</label>
                                <br>
                                <div class="">
                                    
                                        <div class="">
                                            <label for="title_bg">Title Background </label><br>
                                            <input type="file" class="" id="title_bg" name="title_bg" style=" border: 1px solid #ddd;border: 1px solid #ced4da;  border-radius: 0.25rem;">
                                        </div><br>
                                    
                                </div>

                                <label for="title1">Title</label>
                                  <input type="text" id="titleid" name="title1" value="" class="form-control">
                                 </div>
                                  <div class="displaymaintitle">
                                     
                                  </div>
                                  
                                 
                                </div>
                                
                               
                               <div class="subtitleclass">
                                <div class="">
                                    
                                        <div class="">
                                            <label for="sub_title_bg">Sub Title Background </label><br>
                                            <input type="file" class="" id="sub_title_bg" name="sub_title_bg" style=" border: 1px solid #ddd;border: 1px solid #ced4da;  border-radius: 0.25rem;">
                                        </div><br>
                                </div>
                                <div class="form-group">
                                    <label for="subtitle">SubTitle</label>

                                    <input type="text" id="subtitleid" name="subtitle" value="" class="form-control">
                                    
                                </div>
                                  
                               </div>

                               <hr>
                              <div class="contentclass">
                                  <div class="form-group">
                                    <input type="checkbox" id="contentid" name="contentcheck">
                                    <label for="content">Contents</label>
                                    <div class="">
                                    
                                        <div class="">
                                            <label for="about_our_bg">Contents Background </label><br>
                                            <input type="file" class="" id="about_our_bg" name="about_our_bg" style=" border: 1px solid #ddd;border: 1px solid #ced4da;  border-radius: 0.25rem;">
                                        </div>
                                        <br>
                                    </div>
                                    
                                    <textarea id="content1" name="content1" value="" class="form-control mb-1"></textarea>
                                    <input type="text" id="contenttitle" name="contenttitle" value="" class="form-control mb-1">
                                    <textarea id="content2" name="content2" value="" class="form-control mb-1"></textarea>
                                    <textarea id="content3" name="content3" value="" class="form-control mb-1"></textarea>
                                  </div>
                              
                                  <div class="displaycontent">
                                      
                                  </div>
                              
                             </div>

                             <hr>
                              <div class="planclass">
                                  
                              </div>
                           
                            <div class="form-group">
                                <input type="checkbox" id="membership_plans_checkbox" name="membership_plans_checkbox">
                                <label for="membership_plans_checkbox">Membership Plans</label>
                                <br>
                            </div>
                            
                                                        <div id="membership_plan" class='d-none'>
                                <div class="mb-3 display_membership_plans">
                                    <div class="mb-3">
                                        <span>Our</span><br>
                                        <strong style="color: #015414;">THREE MEMBERSHIP PLANS</strong>
                                    </div>
                                    <div class="row">
                                                                                            <div class="card col-md-4" style="width: 18rem;">
                                                      <div class="card-body" style="background-color: #015414;">
                                                        <h6 class="card-subtitle mb-2 plan_name">Economy Member</h6>
                                                        <h2 class="card-title text-white plan_price">8.00</h2>
                                                      </div>
                                                    </div>
                                                                                            <div class="card col-md-4" style="width: 18rem;">
                                                      <div class="card-body" style="background-color: #015414;">
                                                        <h6 class="card-subtitle mb-2 plan_name">Premium Member</h6>
                                                        <h2 class="card-title text-white plan_price">10.00</h2>
                                                      </div>
                                                    </div>
                                                                                            <div class="card col-md-4" style="width: 18rem;">
                                                      <div class="card-body" style="background-color: #015414;">
                                                        <h6 class="card-subtitle mb-2 plan_name">Exclusive Member</h6>
                                                        <h2 class="card-title text-white plan_price">12.99</h2>
                                                      </div>
                                                    </div>
                                                                            </div>
                                </div>
                            </div>
                            
                            <div class="form-group">
                                <input type="checkbox" id="bar_chart" name="bar_chart">
                                <label for="bar_chart">Bar Chart</label>
                                <br>
                            </div>
                            
                            <!--<div class="planclass">-->
                            <!--    <div id="chartContainer" style="height: 300px; width: 100%;"></div>-->
                            <!--</div>-->
                            
                            <div class="form-group">
                                <input type="checkbox" id="growth_business_marketing" name="growth_business_marketing">
                                <label for="growth_business_marketing">Growth Business Marketing</label>
                                <br>
                            </div>

                            <div class="contactclass">
                              <div class="form-group">
                                    <input type="checkbox" id="contact_section" name="contact_section">
                                    <label for="contact_section">Footer Contact</label>
                                    <br>
                                    <input type="text" id="contact_text" name="contact_text" value="" class="form-control">
                              </div>
                              <div class="displaycontact mt-5">
                                    
                              </div>
                            </div>
                        </div>   
                        
                    </div>
                    <div class="modal-footer">
                        <div class="save_email_msg" id="save_email_msg">
                        
                        </div>
                        <input type="hidden" name="action" value="save_email_template_form">
                        <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
                        <button type="submit" class="btn btn-primary email_template_submit_btn"> Save Template </button>
                    </div>
                    </div>
                </div>
                </form>
                </div>
        </div>

    </div>
   
    

    <button  type="button" class="btn btn-primary" id="viewTemplateModal_btn" data-toggle="modal" data-target="#viewTemplateModal" style="display:none;">
        View Email Template
    </button>

    <!--view tamplate Modal -->
<div class="modal fade" id="viewTemplateModal" tabindex="-1" role="dialog" aria-labelledby="viewTemplateModal" aria-hidden="true">
    <div class="modal-dialog modal-lg" role="document" style="max-width: 1200px;">
        <div class="modal-content" >
        <div class="modal-header">
            <h5 class="modal-title" id="exampleModalLabel"></h5>
            <button type="button" class="close" data-dismiss="modal" aria-label="Close">
            <span aria-hidden="true">&times;</span>
            </button>
        </div>
        <div class="modal-body">
            
       </div>
        <div class="modal-footer">
            <button type="button" class="btn btn-primary send_template_email">Send mail</button>
            <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
        </div>
        </div>
    </div>
  
</div>
    <script>
        var email_data = [];
        var plan_name = [];
        var plan_price = [];

        function sendSelectedTemplateEmail(template_id=null){
            jQuery('.error_msg').remove();

            var hader_s = jQuery('.selection_div #Headerid').is(":checked");
            var title_s = jQuery('.selection_div #title_subtitle').is(":checked");
            var contentcheck_s = jQuery('.selection_div #contentcheck').is(":checked");
            var membership_plans_checkbox_s = jQuery('.selection_div #membership_plans_checkbox').is(":checked");
            var bar_chart_s = jQuery('.selection_div #bar_chart').is(":checked");
            var growth_business_marketing_s = jQuery('.selection_div #growth_business_marketing').is(":checked");
            var contact_section_s = jQuery('.selection_div #contact_section').is(":checked");
            var email_s = jQuery('.selection_div #email').val();
            if(email_s==""){
                jQuery('.selection_div #email').focus();
                return false;
            }

            var fd = new FormData(); 
            fd.append('id',template_id);
            fd.append('action','send_email_template');

            fd.append('hader_s',hader_s);
            fd.append('title_s',title_s);
            fd.append('contentcheck_s',contentcheck_s);
            fd.append('plan_s',membership_plans_checkbox_s);
            fd.append('bar_chart_s',bar_chart_s);
            fd.append('business_s',growth_business_marketing_s);
            fd.append('contact_s',contact_section_s);
            fd.append('email_s',email_s);
            jQuery.ajax({
                    type: "POST",
                    url: 'https://economarketing.ca/wp-admin/admin-ajax.php',
                    processData: false,
                    contentType: false,
                    catch:false,
                    data: fd,
                    error: function(error) {
                        console.error(error);
                    },
                    success: function(response) {
                        //const data = JSON.parse(response);
                        // if(data.status==1){
                             jQuery("<span class='text-success error_msg'>Email Send Successfully !</span>").insertBefore(".send_template_email");
                             jQuery('.send_template_email').html('Send mail');
                             setTimeout(function () {
                                        location.reload(true);
                                    }, 5000);
                        // }else{
                        //     jQuery("<span class='text-danger error_msg'>"+data.msg+"</span>").insertBefore(".send_template_email");
                        //      jQuery('.send_template_email').html('Send mail');
                        // }
                           
                    },
                    beforeSend: function() {

                        jQuery('.send_template_email').html('<i class="fa fa-spinner fa-spin "></i> Send mail');
                    },
                });
        }
        // Send email in action list 
        function sendSelectedTemplateEmailActionList(template_id=null){
            jQuery('.error_msg').remove();

            var hader_s = jQuery('.selection_div #Headerid').is(":checked");
            var title_s = jQuery('.selection_div #title_subtitle').is(":checked");
            var contentcheck_s = jQuery('.selection_div #contentcheck').is(":checked");
            var membership_plans_checkbox_s = jQuery('.selection_div #membership_plans_checkbox').is(":checked");
            var bar_chart_s = jQuery('.selection_div #bar_chart').is(":checked");
            var growth_business_marketing_s = jQuery('.selection_div #growth_business_marketing').is(":checked");
            var contact_section_s = jQuery('.selection_div #contact_section').is(":checked");
            var email_s = jQuery('.selection_div #email').val();
            if(email_s==""){
                jQuery('.selection_div #email').focus();
                return false;
            }

            var fd = new FormData(); 
            fd.append('id',template_id);
            fd.append('action','send_email_template');

            fd.append('hader_s',hader_s);
            fd.append('title_s',title_s);
            fd.append('contentcheck_s',contentcheck_s);
            fd.append('plan_s',membership_plans_checkbox_s);
            fd.append('bar_chart_s',bar_chart_s);
            fd.append('business_s',growth_business_marketing_s);
            fd.append('contact_s',contact_section_s);
            fd.append('email_s',email_s);
            jQuery.ajax({
                    type: "POST",
                    url: 'https://economarketing.ca/wp-admin/admin-ajax.php',
                    processData: false,
                    contentType: false,
                    catch:false,
                    data: fd,
                    error: function(error) {
                        console.error(error);
                    },
                    success: function(response) {
                        //const data = JSON.parse(response);
                        // if(data.status==1){
                            jQuery('#send_tempEm_'+template_id+'').html('<i class="fas fa-check"></i> Send mail');
                             setTimeout(function () {
                                        location.reload(true);
                                    }, 5000);
                        // }else{
                        //     jQuery("<span class='text-danger error_msg'>"+data.msg+"</span>").insertBefore(".send_template_email");
                        //      jQuery('.send_template_email').html('Send mail');
                        // }
                           
                    },
                    beforeSend: function() {
                        jQuery('#send_tempEm_'+template_id+'').html('<i class="fa fa-spinner fa-spin "></i> Send mail');
                    },
                });
        }
        jQuery(document).ready(function(){
            
            jQuery('#example').DataTable();

            
            jQuery('.copy_template').on('click',function(){
                var template_id = jQuery(this).attr('data-id');
                var fd = new FormData(); 
                fd.append('id',template_id);
                fd.append('action','copy_email_template');
                jQuery.ajax({
                    type: "POST",
                    url: 'https://economarketing.ca/wp-admin/admin-ajax.php',
                    processData: false,
                    contentType: false,
                    catch:false,
                    data: fd,
                    error: function(error) {
                        console.error(error);
                    },
                    success: function(response) {
                        jQuery('#copy_tempEm_'+template_id+'').html('<i class="fas fa-check"></i>');
                             setTimeout(function () {
                                        location.reload(true);
                                    }, 4000);
                    },
                    beforeSend: function() {
                        jQuery('#copy_tempEm_'+template_id+'').html('<i class="fa fa-spinner fa-spin "></i>');
                    },
                });
            });
            
            jQuery('.edit_template').on('click',function(){
               
                var template_id = jQuery(this).attr('data-id');
                var fd = new FormData(); 
                fd.append('id',template_id);
                fd.append('action','edit_email_template');
                
                jQuery.ajax({
                    type: "POST",
                    url: 'https://economarketing.ca/wp-admin/admin-ajax.php',
                    processData: false,
                    contentType: false,
                    catch:false,
                    data: fd,
                    error: function(error) {
                        console.error(error);
                    },
                    success: function(response) {
                        email_data = [];
                        plan_name = [];
                        plan_price = [];
                        
                        jQuery('#templateModalLong .modal-body .spinner_div').remove();
                        jQuery('#main_body').show();
                        const data = JSON.parse(response);
                        jQuery('#templateModalLong .modal-title').html(data.data.title);
                        jQuery('#templateModalLong #email_template_title').val(data.data.title);
                        jQuery('#templateModalLong #template_id').val(data.data.id);
                        
                        if(data.data.header_color=='1'){
                           jQuery('#templateModalLong #Headerid').prop('checked', true);
                        }
                        if(data.data.title_subtitle=='1'){
                            jQuery('#templateModalLong #title_subtitle').prop('checked', true);
                        }
                        if(data.data.contents=='1'){
                            jQuery('#templateModalLong #contentid').prop('checked', true);
                        }
                        if(data.data.membership_plan=='1'){
                            jQuery('#templateModalLong #membership_plans_checkbox').prop('checked', true);
                        }
                        if(data.data.chart=='1'){
                            jQuery('#templateModalLong #bar_chart').prop('checked', true);
                        }
                        if(data.data.b_marketing=='1'){
                            jQuery('#templateModalLong #growth_business_marketing').prop('checked', true);
                        }
                        if(data.data.footer_content=='1'){
                            jQuery('#templateModalLong #contact_section').prop('checked', true);
                        }
                        
                        // to fill input fields
                        var meta = data.meta;
                        meta.forEach(set_all_meta);

                        function set_all_meta(item) {
                            if(item.meta_key=='title'){
                                jQuery('#templateModalLong #titleid').val(item.meta_value); 
                            }

                            if(item.meta_key=='subtitle'){
                                jQuery('#templateModalLong #subtitleid').val(item.meta_value); 
                            }
                            if(item.meta_key=='content1'){
                                jQuery('#templateModalLong #content1').val(item.meta_value); 
                            }
                            if(item.meta_key=='contenttitle'){
                                jQuery('#templateModalLong #contenttitle').val(item.meta_value); 
                            }
                            if(item.meta_key=='content2'){
                                jQuery('#templateModalLong #content2').val(item.meta_value); 
                            }
                            if(item.meta_key=='content3'){
                                jQuery('#templateModalLong #content3').val(item.meta_value); 
                            }
                            if(item.meta_key=='footer'){
                                jQuery('#templateModalLong #contact_text').val(item.meta_value); 
                            }

                            var col1 = '#ffffff';
                            if(item.meta_key=='color1'){
                                var col1 = item.meta_value;
                                jQuery('#templateModalLong #favcolor1').val(item.meta_value); 
                               
                            }
                            var col2 = '#ffffff';
                            if(item.meta_key=='color2'){
                                var col2 = item.meta_value;
                                jQuery('#templateModalLong #favcolor2').val(item.meta_value); 
                                
                            }

                            if(item.meta_key=='header_bg_img'){
                                jQuery('#templateModalLong #logo_div').css('background-image', 'url(' + item.meta_value + ')');
                            }
                             
                            
                        }
                        
                        
                        
                        jQuery('#templateModalLong').modal('show');
                    },
                    beforeSend: function() {
                        jQuery('#main_body').hide();
                        jQuery('#templateModalLong').modal('show');
                        jQuery('#templateModalLong .modal-title').html("");
                        jQuery('#templateModalLong .modal-body').prepend('<div class="text-center spinner_div"><i class="fa fa-spinner fa-spin " style="font-size:48px"></i></div>');
                    },
                });
                
                
            });

            jQuery('.view_teplate').on('click',function(){
                jQuery('.error_msg').remove();
                var template_id = jQuery(this).data('id');
                var fd = new FormData(); 
                fd.append('id',template_id);
                fd.append('action','get_email_template');

                jQuery.ajax({
                    type: "POST",
                    url: 'https://economarketing.ca/wp-admin/admin-ajax.php',
                    processData: false,
                    contentType: false,
                    catch:false,
                    data: fd,
                    error: function(error) {
                        console.error(error);
                    },
                    success: function(response) {
                       
                        const data = JSON.parse(response);
                            jQuery('#viewTemplateModal .modal-title').html(data.title);
                            jQuery('#viewTemplateModal .modal-body').html(data.body);
                            jQuery('.send_template_email').attr('onClick','sendSelectedTemplateEmail('+template_id+')');  
                    },
                    beforeSend: function() {
                        jQuery('#viewTemplateModal_btn').click();
                        jQuery('#viewTemplateModal .modal-title').html("");
                        jQuery('#viewTemplateModal .modal-body').html('<div class="text-center"><i class="fa fa-spinner fa-spin " style="font-size:48px"></i></div>');
                    },
                });
                
            });
            
            jQuery('.delete_template').on('click',function(){
                if(confirm("Are you sure?")){
                    let template_id = jQuery(this).attr('data-id');
                    var fd = new FormData(); 
                    fd.append('delete_id',template_id);
                    fd.append('action','delete_email_template');
    
                    jQuery.ajax({
                        type: "POST",
                        url: 'https://economarketing.ca/wp-admin/admin-ajax.php',
                        processData: false,
                        contentType: false,
                        catch:false,
                        data: fd,
                        error: function(error) {
                            console.error(error);
                        },
                        success: function(response) {
                           if(response=='1'){
                               jQuery('#del_res').html("<div class='alert alert-success'>Delete Successful</div>");
                               setTimeout(function(){
                                   jQuery('#del_res').html("");
                               }, 5000);
                           }else{
                               jQuery('#del_res').html("<div class='alert alert-danger'>Delete Unsuccessful</div>");
                               setTimeout(function(){
                                   jQuery('#del_res').html("");
                               }, 5000);
                           }
                           location.reload();
                            
                        },
                        
                    });
                }
                
            });
            jQuery('.email_template_submit_btn').on('click',function(event){
                    event.preventDefault();
                    var form_url = jQuery( this ).closest( "form" ).data('url');
                    var form = jQuery('#email_template_form')[0];
                    var fd = new FormData(form);
                  
                        if(jQuery("#email_template_title").val() == "" ) {
                            jQuery("#email_template_title").focus();
                            return false;
                        } 
                        if(jQuery('#title_subtitle').is(':checked')){
                            
                            if(jQuery("#titleid").val()==""){
                                jQuery("#titleid").focus();
                                return false;
                            }       
                        }
                        if(jQuery('#contentid').is(':checked')){
                            
                            if(jQuery("#content1").val()==""){
                                jQuery("#content1").focus();
                                return false;
                            }       
                        }
                        if(jQuery('#contact_section').is(':checked')){
                            
                            if(jQuery("#contact_text").val()==""){
                                jQuery("#contact_text").focus();
                                return false;
                            }       
                        }
                        
                        jQuery.ajax({
                            type: "POST",
                            enctype: 'multipart/form-data',
                            url: form_url,
                            data: fd,
                            processData: false,
                            contentType: false,
                            cache: false,
                            timeout: 800000,
                            success: function (data) {
                                obj = JSON.parse(data);
                                if(obj.status==1){
                                    jQuery('#save_email_msg').html('<div class="text-success" role="alert">'+obj.msg+'</div>');
                                }else{
                                    jQuery('#save_email_msg').html('<div class="text-danger" role="alert">'+obj.msg+'</div>');
                                }
                                jQuery('.email_template_submit_btn').prop('disabled', false);
                                 jQuery('.email_template_submit_btn').html('Save Template ');
                                console.log("SUCCESS : ", data);
                                    setTimeout(function () {
                                        location.reload(true);
                                    }, 5000);

                
                            },
                            beforeSend:function(){
                                jQuery('.email_template_submit_btn').prop('disabled', true);
                                jQuery('.email_template_submit_btn').html('<i class="fa fa-spinner fa-spin" aria-hidden="true"></i> Save Template ');
                            },
                            error: function (e) {
                               
                                jQuery('#save_email_msg').html('<div class="text-danger" role="alert" > Something Wrong ! </div>');
                                console.log("ERROR : ", e);
                                setTimeout(function () {
                                    location.reload(true);
                                }, 5000);
        
                
                            }
                        });

            });
            
         
            
            // to change gradient background of header logo
            jQuery('#Headerid,#title_subtitle,#favcolor1,#favcolor2').on('change',function(){
                if(jQuery('#Headerid').is(':checked')){
                    if(jQuery("#favcolor1").val()!="#000000" || jQuery("#favcolor2").val()!="#000000"){
                        jQuery('.logo_div').attr('style','background-image:linear-gradient(150deg,darkgreen , '+jQuery("#favcolor1").val()+','+jQuery("#favcolor2").val()+')');
                    }else{
                        jQuery('.logo_div').attr('style','background-image:linear-gradient(150deg,darkgreen , #3daa33,#007bff)');
                    }
                }else{
                    jQuery('.logo_div').attr('style','background-image:linear-gradient(150deg,darkgreen , #3daa33,#007bff)');
                }
    
                if(jQuery('#title_subtitle').is(':checked')){
                    if(jQuery("#favcolor1").val()!="#000000" || jQuery("#favcolor2").val()!="#000000"){
                        jQuery('.displaysubtitle').attr('style','background-image:linear-gradient(150deg,darkgreen , '+jQuery("#favcolor1").val()+','+jQuery("#favcolor2").val()+')');
                    }else{
                        jQuery('.displaysubtitle').attr('style','background-image:linear-gradient(150deg,darkgreen , #3daa33,#007bff)');
                    }
                }else{
                    jQuery('.displaysubtitle').attr('style','background-image:linear-gradient(150deg,darkgreen , #3daa33,#007bff)');
                }
            });
            
            
            jQuery('.add_template').on('click',function(){
                jQuery('#templateModalLong .modal-title').text('Email Template');
                jQuery('#templateModalLong #already_stored_data').empty();
                jQuery('#templateModalLong input[type=text], #templateModalLong textarea,#templateModalLong input[type=color]').val('');
                jQuery('#templateModalLong input[type=checkbox]').prop('checked',false);
                jQuery('#templateModalLong #template_id').val('');
                jQuery('#templateModalLong .displayheader .logo_div').removeAttr('style');
            });
            
            
        });//document ready end
        
        
    </script>


    {"id":7372,"date":"2022-05-10T11:33:25","date_gmt":"2022-05-10T09:33:25","guid":{"rendered":"https:\/\/economarketing.ca\/?page_id=7372"},"modified":"2022-05-10T11:37:45","modified_gmt":"2022-05-10T09:37:45","slug":"ertete","status":"publish","type":"page","link":"https:\/\/economarketing.ca\/en\/ertete\/","title":{"rendered":"ertete"},"content":{"rendered":"\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":540,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"footnotes":""},"class_list":["post-7372","page","type-page","status-publish","hentry"],"translation":{"provider":"WPGlobus","version":"3.0.2","language":"en","enabled_languages":["fr","en"],"languages":{"fr":{"title":true,"content":true,"excerpt":false},"en":{"title":false,"content":false,"excerpt":false}}},"acf":[],"_links":{"self":[{"href":"https:\/\/economarketing.ca\/en\/wp-json\/wp\/v2\/pages\/7372","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/economarketing.ca\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/economarketing.ca\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/economarketing.ca\/en\/wp-json\/wp\/v2\/users\/540"}],"replies":[{"embeddable":true,"href":"https:\/\/economarketing.ca\/en\/wp-json\/wp\/v2\/comments?post=7372"}],"version-history":[{"count":0,"href":"https:\/\/economarketing.ca\/en\/wp-json\/wp\/v2\/pages\/7372\/revisions"}],"wp:attachment":[{"href":"https:\/\/economarketing.ca\/en\/wp-json\/wp\/v2\/media?parent=7372"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}