Plugin Directory

Changeset 2974836


Ignore:
Timestamp:
10/04/2023 03:25:49 PM (2 years ago)
Author:
managedorg
Message:

bootstrap.min.js loaded with condition

Location:
managedorg-product-driver
Files:
59 added
3 edited

Legend:

Unmodified
Added
Removed
  • managedorg-product-driver/trunk/donative.php

    r2974378 r2974836  
    44Plugin URI: https://wordpress.org/plugins/managedorg-product-driver/
    55Description: Managedorg Product Driver for Amazon Business Integration.
    6 Version: 1.0.7.6.5
     6Version: 1.0.7.6.6
    77Author: Managedorg
    88Author URI: https://managedorg.io/
     
    1111   
    1212if (!class_exists('MODD_Donation')) :
    13 define('MODD_VERSION', '1.0.7.6.5');
     13define('MODD_VERSION', '1.0.7.6.6');
    1414define('MODD_PLUGIN_URL', plugin_dir_url(__FILE__));
    1515define('MODD_PLUGIN_MAIN_PATH', plugin_dir_path(__FILE__));
     
    9393        wp_enqueue_script('modd_toastr', plugins_url('/js/toastr.min.js', __FILE__), array(), MODD_VERSION, true);
    9494        wp_enqueue_script('modd_main_payment_internal', plugins_url('/js/payment-internal.js', __FILE__), array(), MODD_VERSION, true);
     95       
     96        if (strpos($_SERVER['HTTP_HOST'], 'catholiccharities') !== false) {
     97            wp_enqueue_script('modd_bootstrap-1', 'https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js', array(), MODD_VERSION, true);
     98        }
     99       
    95100        wp_enqueue_script('modd_main_payment', plugins_url('/js/payments-donative.js', __FILE__), array(), MODD_VERSION, true);
    96101        //wp_enqueue_script('modd_main_payment', 'https://admin.managedorg.io/assets/js/payments-donative.js', array(), MODD_VERSION, true);
  • managedorg-product-driver/trunk/js/payments-donative.js

    r2974378 r2974836  
    2020            entryId = '';
    2121        }
    22        
    23         if (typeof jQuery('.modal').modal === 'function') {
    24             jQuery('.modal').modal('hide');
    25         } else {
    26             jQuery.getScript('https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js', function() {
    27                 jQuery('.modal').modal('hide');
    28             });
    29         }
    30        
    31         if( jQuery('#instantPaymentModalDiv').length == 0 ){
     22        jQuery('.modal').modal('hide');
     23        if( jQuery('#instantPaymentModalDiv').length == 0 ){
    3224            jQuery('body').append('<div id="instantPaymentModalDiv"></div>');
    3325        } else{
  • managedorg-product-driver/trunk/readme.txt

    r2974378 r2974836  
    44Requires at least: 4.7
    55Tested up to: 6.2
    6 Stable tag: 1.0.7.6.5
     6Stable tag: 1.0.7.6.6
    77Requires PHP: 7.0
    88License: GPLv2 or later
     
    144144* Pricing format modified.
    145145
    146 = 1.0.7.6.5=
     146= 1.0.7.6.6=
    147147* New design
    148148* New shortcode attributes products_per_page, campaigns_per_page, cart_checkbox
Note: See TracChangeset for help on using the changeset viewer.