<div class="m20 p20 box-purple">
    <h2>[{isys type="lang" ident="LC__SYNETICS_ADMIN__ADVERTISE_SUBSCRIPTION_AND_ADDONS"}]</h2>
    <a class="btn mt20" href="[{$g_link__administration}]">
        <img src="[{isys_application::instance()->www_path}]src/classes/modules/synetics_admin/templates/img/subscription-and-add-ons.svg" alt="" />
        <span>[{isys type="lang" ident="LC__SYNETICS_ADMIN"}]</span>
    </a>
</div>

<div id="download-center-list-table">
    [{$downloadList}]
</div>

<style>
    [{include file=$cssPath}]
</style>

<script type="text/javascript">
    function downloadPackage(productId) {
        $('downloadcenter_' + productId).simulate('click');
    }

    function showReleasenotes(releaseNotes) {
        const enc = decodeURIComponent(atob(releaseNotes));
        Modal.open(`
<div>
    <div class="modal-header">
        <h2>[{isys type="lang" ident="LC__DOWNLOAD_CENTER__RELEASE_NOTE"}]</h2>
    </div>
    <div class="modal-content p20">
        ${enc}
    </div>
    <div class="modal-footer">
        <a href="javascript:Modal.closeAll();" class="btn">
            [{isys type="lang" ident="LC__DOWNLOAD_CENTER__CLOSE_MODAL"}]
        </a>
    </div>
</div>
        `, {
            maxWidth: 500,
            maxHeight: 500,
});
    }
</script>
