        )
    );
    return (!empty($popup)) ? $popup : false;
}

function get_gallery_by_url($url = "")
{
    $t = &get_instance();
    $gallery = $t->general_model->get(
        "galleries",
        null,