PHP code example of tombroucke / otomaties-bootstrap-popup

1. Go to this page and download the library: Download tombroucke/otomaties-bootstrap-popup library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

tombroucke / otomaties-bootstrap-popup example snippets


$dependencies = wp_script_is('otomaties-bootstrap-popup', 'enqueued') ? ['otomaties-bootstrap-popup'] : [];
bundle('app')->enqueueCss()->enqueueJs(true, $dependencies);

add_filter('otomaties_bootstrap_popup_load_bootstrap', '__return_false');

add_filter('otomaties_bootstrap_popup_bootstrap_version', function() {
    return '4.x';
});

add_filter('otomaties_bootstrap_popup_modal_dialog_classes', function ($classes) {
    $classes .= ' modal-dialog-centered';
    return $classes;
});