Skip to content

Instantly share code, notes, and snippets.

@dannyconnolly
dannyconnolly / modal.js
Last active February 4, 2021 19:19
Vanilla JS Modal
(function() {
// Define constructor
this.Modal = function() {
// Create global element references
this.closeButton = null;
this.modal = null;
this.overlay = null;
// Determine proper prefix
/**
* Get information about available image sizes
*/
function get_image_sizes($size = '')
{
global $_wp_additional_image_sizes;
$sizes = array();
$get_intermediate_image_sizes = get_intermediate_image_sizes();