1. Go to this page and download the library: Download wpbp/backbone-modal-view 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/ */
wpbp / backbone-modal-view example snippets
new BB_Modal_View( array(
'id' => 'test', // ID of the modal view
'hook' => 'admin_notices', // Where return or print the button
'input' => 'checkbox', // Or radio
'label' => __( 'Open Modal' ), // Button text
'data' => array( 'rand' => rand() ), // Array of custom datas
'ajax' => array( $this, 'ajax_posts' ), // Ajax function for the list to show on the modal
'ajax_on_select' => array( $this, 'ajax_posts_selected' ), // Ajax function to execute on Select button
'echo_button' => true // Do you want echo the button in the hook chosen or only return?
));
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.