<?php only_admin_access();

if (!isset($params['popup'])) {
return;
}

if(isset($_COOKIE['mw-update-popup-closed'])){
    return;
}

?>

<script>
    $( document ).ready(function() {
        mw.modalFrame({
            url:'<?php print $params["popup"] ?>',
            onremove:function(){

                mw.cookie.set('mw-update-popup-closed',true,1);
            }
        });
    });

</script>
