Plugin Directory

Changeset 2633888


Ignore:
Timestamp:
11/23/2021 05:36:20 AM (4 years ago)
Author:
Philantro
Message:

Updated callback

Location:
philantro/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • philantro/trunk/philantro.php

    r2607977 r2633888  
    44     * Plugin URI: http://www.philantro.com
    55     * Description: Welcome to the better way of accepting donations. <strong>Official plugin for the Philantro&reg; platform.</strong><br/> To get started: Activate and then go to your Philantro&reg; settings page on the Wordpress dashboard to set up your Organization ID.
    6      * Version: 5.12
     6     * Version: 5.13
    77     * Author: Philantro Inc.
    88     * Author URI: http://www.philantro.com
     
    319319
    320320
    321                 var person = {
    322                     first_name:'<?php echo $current_user->user_firstname; ?>',
    323                     last_name:'<?php echo $current_user->user_lastname; ?>',
    324                     email:'<?php echo $current_user->user_email; ?>',
     321                var environment = {
    325322                    url: '<?php echo get_site_url(); ?>',
    326323                    plugin_version: '<?php echo $plugin_data['Version'] ?>'
     
    338335                        data: {
    339336                            EIN: <?php echo $OID ?>,
    340                             person: person
     337                            environment: environment
    341338                        }
    342339                    }).done(function(response){
    343340
    344                         jQuery('#org_website').html(response.website);
    345                        
    346                         <?php if($OID != '000000000'):?>
    347                         jQuery('#no-EIN-notice').css('background-color','#98B96B').html('Successfully Connected. We\'re here when you need us, thank you for using Philantro.').show();
    348                         <?php endif; ?>
    349 
    350                         /*
    351                             if(response.links != null){
    352                                 jQuery('#campaign_links').html('');
    353                                 jQuery.each(response.links, function(i, item) {
    354                                     jQuery('#campaign_links').append(
    355                                         '<div class="campaign-id"><b>'+ item['campaign_name']  +'</b>' +
    356                                             '<code>'+item['campaign_ID']+'</code>' +
    357                                             '</div>');
    358 
    359                                 });
    360                             }
    361                            
    362                          */
    363 
    364341                    }).fail(function(){
    365                         jQuery('#no-EIN-notice').css('background-color','#A73C3C').html('We apologize, this organization is not currently registered with Philantro.').show();
    366 
     342                   
    367343                    })
    368344                }
  • philantro/trunk/readme.txt

    r2607977 r2633888  
    77License: GPLv3
    88License URI: http://www.gnu.org/licenses/gpl-3.0.html
    9 Stable tag: 5.12
     9Stable tag: 5.13
    1010
    1111Securely accept one-time/recurring donations with automated donor records, analytics and more on the perfect dashboard.
Note: See TracChangeset for help on using the changeset viewer.