<commit_before><{include file="header.tpl"}>

<style>
.btn-heading {
    margin-left: 4px;
    padding: 4px 8px;
    position: relative;
    top: -3px;
    text-decoration: none;
    border: none;
    background: #e0e0e0;
    text-shadow: none;
    font-size: 13px;
}

.use-browse, .install-upload {
    display: none;
}

.package {
    float: left;
    border: 1px solid #E2E2E2;
    padding: 10px;
    margin: 10px 20px 10px 0;
    min-height: 200px;
}

.package .image {
    float: left;
    margin-right: 10px;
}

.package .image img {
    width: 100%;
}

.package .info {
    float: left;
}

.package .name {
    font-size: 18px;
    color: #048497;
    font-family: Helvetica;
    padding-top: 5px;
}

.package .actions li {
    float: left;
    padding: 5px 10px;
    margin: 5px 10px 5px 0;
    border: 1px solid #E2E2E2;
}

.package .author {
    font-style: italic;
}

.package .version {
    float: right;
    font-style: italic;
}

@media only screen and (min-width : 768px) {
    .package {
        width: 47%;
    }

    .package .image {
        width: 30%;
    }

    .package .info {
        width: 65%;
    }
}
</style>

</head>
<body>

<{include file="top.tpl"}>

<{if $type == 'package'}>
    <{$title = 'package'}>
<{elseif $type == 'plugin'}>
    <{$title = 'plugin'}>
<{elseif $type == 'theme'}>
    <{$title = 'theme'}>
<{/if}>

<h1 class="heading">
    <span class="h">Install a <{ucfirst(_t($title))}></span>
    <a href="#" class="use-upload btn-heading">Upload</a>
    <a href="#" class="use-browse btn-heading">Browse</a>
    <a class="scope-main cachable btn-heading" style="background:none;" href="<{$smarty.const.APPLICATION_URL}>/installation/">Back</a>
</h1>

<{if $messages}>
    <ul class="message" style="margin:0 0 10px 0;padding:0">
        <{foreach from=$messages key=ignored item=message}>
            <li><{$message}></li>
        <{/foreach}>
    </ul>
<{/if}>

<div class="install-upload">
    <p>If you have a <{$title}> in a .zip format, you may install it by uploading it here.</p>

    <form id="installationform" class="scope-main" action="<{$smarty.const.APPLICATION_URL}>/installation/install" method="post" enctype="multipart/form-data">
        <input type="hidden" name="type" value="<{$type}>"/>

        <div class="form-row">
            <div class="form-field">
                <input type="file" name="installation_file">
            </div>
        </div>

        <div class="button-general button-save btn btn-success" style="margin: 3px;">
            <a class="button-install" onclick="$('#installationform').submit();return false;"><span class="button-face">Install</span></a>
        </div>
    </form>

    <div style="clear:both"></div>
</div>

<div class="install-browse">
    <ul>
        <li class="package">
            <div class="image"><img src="http://ps.w.org/jetpack/assets/icon.svg?rev=1173629"/></div>
            <div class="info">
                <div class="name">Extreme CMS</div>
                <ul class="actions" style="padding:0px"><commit_msg>dont use ajax for package installation<commit_after><{include file="header.tpl"}>

<style>
.btn-heading {
    margin-left: 4px;
    padding: 4px 8px;
    position: relative;
    top: -3px;
    text-decoration: none;
    border: none;
    background: #e0e0e0;
    text-shadow: none;
    font-size: 13px;
}

.use-browse, .install-upload {
    display: none;
}

.package {
    float: left;
    border: 1px solid #E2E2E2;
    padding: 10px;
    margin: 10px 20px 10px 0;
    min-height: 200px;
}

.package .image {
    float: left;
    margin-right: 10px;
}

.package .image img {
    width: 100%;
}

.package .info {
    float: left;
}

.package .name {
    font-size: 18px;
    color: #048497;
    font-family: Helvetica;
    padding-top: 5px;
}

.package .actions li {
    float: left;
    padding: 5px 10px;
    margin: 5px 10px 5px 0;
    border: 1px solid #E2E2E2;
}

.package .author {
    font-style: italic;
}

.package .version {
    float: right;
    font-style: italic;
}

@media only screen and (min-width : 768px) {
    .package {
        width: 47%;
    }

    .package .image {
        width: 30%;
    }

    .package .info {
        width: 65%;
    }
}
</style>

</head>
<body>

<{include file="top.tpl"}>

<{if $type == 'package'}>
    <{$title = 'package'}>
<{elseif $type == 'plugin'}>
    <{$title = 'plugin'}>
<{elseif $type == 'theme'}>
    <{$title = 'theme'}>
<{/if}>

<h1 class="heading">
    <span class="h">Install a <{ucfirst(_t($title))}></span>
    <a href="#" class="use-upload btn-heading">Upload</a>
    <a href="#" class="use-browse btn-heading">Browse</a>
    <a class="scope-main cachable btn-heading" style="background:none;" href="<{$smarty.const.APPLICATION_URL}>/installation/">Back</a>
</h1>

<{if $messages}>
    <ul class="message" style="margin:0 0 10px 0;padding:0">
        <{foreach from=$messages key=ignored item=message}>
            <li><{$message}></li>
        <{/foreach}>
    </ul>
<{/if}>

<div class="install-upload">
    <p>If you have a <{$title}> in a .zip format, you may install it by uploading it here.</p>

    <form id="installationform" action="<{$smarty.const.APPLICATION_URL}>/installation/install" method="post" enctype="multipart/form-data">
        <input type="hidden" name="type" value="<{$type}>"/>

        <div class="form-row">
            <div class="form-field">
                <input type="file" name="installation_file">
            </div>
        </div>

        <div class="button-general button-save btn btn-success" style="margin: 3px;">
            <a class="button-install" onclick="$('#installationform').submit();return false;"><span class="button-face">Install</span></a>
        </div>
    </form>

    <div style="clear:both"></div>
</div>

<div class="install-browse">
    <ul>
        <li class="package">
            <div class="image"><img src="http://ps.w.org/jetpack/assets/icon.svg?rev=1173629"/></div>
            <div class="info">
                <div class="name">Extreme CMS</div>
                <ul class="actions" style="padding:0px">
{'fraction_non_alphanumeric': 0.18774703557312253, 'fraction_numerical': 0.025362318840579712, 'mean_word_length': 2.7395320197044337, 'pattern_counts': {'":': 0, '<': 137, '<?xml version=': 0, '>': 137, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5043259', 'n_tokens_mistral': 2299, 'n_tokens_neox': 2149, 'n_words': 485}