File: //home/madepabj/www/wp-content/themes/rehub-theme/shortcodes/tinyMCE/includes/postimagesslider.php
<?php if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly ?>
<script data-cfasync="false">
// executes this when the DOM is ready
jQuery(document).ready(function() {
// handles the click event of the submit button
jQuery('#submit').click(function(){
// defines the options and their default values
// again, this is not the most elegant way to do this
// but well, this gets the job done nonetheless
var shortcode = '[wpsm_post_images_slider]';
window.send_to_editor(shortcode);
// closes Thickbox
tb_remove();
});
});
</script>
<form action="/" method="get" id="form" name="form" accept-charset="utf-8">
<p>
<?php esc_html_e('This shortcode makes slider from all images that attached to post', 'rehub-theme') ;?>
</p>
<p>
<label> </label>
<input type="button" id="submit" class="button" value="<?php esc_html_e('Insert', 'rehub-theme') ;?>" name="submit" />
</p>
</form>