/**
 * get all galleries data
 * @return mixed
 */
function hw_gallery_get_galleries()
{
    // Load the metabox class.
    if (class_exists('HW_Gallery')) {
        $gallery = HW_Gallery::get_instance();
    } elseif (class_exists('HW__Gallery_Lite')) {
        $gallery = HW__Gallery_Lite::get_instance();
    }
    return !empty($gallery) ? $gallery->gallery->get_galleries() : null;
}
/**
 * Free Envira gallery
 */
include 'plugin/gallery/hw-gallery-lite.php';
/**
 * functions
 */
require 'includes/functions.php';
/**
 * core class
 */
require 'includes/envira-gallery.php';
/**
 * for admin
 */
if (is_admin()) {
    require 'includes/admin/gallery-settings.php';
} else {
    //frontend
    require 'includes/gallery-frontend.php';
}
/**
 * widget
 */
include_once 'includes/gallery-widget.php';
//init class instance
if (!is_admin()) {
    HW_Gallery::get_instance();
} else {
    HW__Gallery_Lite::get_instance();
}