<?php
// Copyright 1999-2021. Plesk International GmbH. All rights reserved.
?>
<div class="objects-details">
    <?php echo $this->appInfo; ?>
</div>

<script type="text/javascript">
//<![CDATA[
    // monkey-patch for install links
    var apsCatalog = {
        install: function(params) {
            <?php if ($this->hasAdminWebspaces): ?>
                Jsw.FormRedirect.redirect('/smb/app/download/catalogId/apscatalog?returnUrl=/admin/server/tools', 'post', params, '_top');
            <?php else: ?>
                Jsw.redirect('/subscription/create?reason=install-app');
            <?php endif; ?>
        }
    }
//]]>
</script>
