-
-
Notifications
You must be signed in to change notification settings - Fork 197
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
21,625 additions
and
213 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
123 changes: 6 additions & 117 deletions
123
modules/system/controllers/updates/_install_plugins.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,119 +1,8 @@ | ||
<div> | ||
|
||
<!-- Search --> | ||
<div class="row"> | ||
<div class="col-md-9"> | ||
<form | ||
role="form" | ||
id="installPluginsForm" | ||
data-handler="onInstallPlugin" | ||
onsubmit="$.wn.installProcess.searchSubmit(this); return false"> | ||
<div class="product-search"> | ||
<input | ||
name="code" | ||
id="pluginSearchInput" | ||
class="product-search-input search-input-lg typeahead" | ||
placeholder="<?= e(trans('system::lang.plugins.search')) ?>" | ||
data-search-type="plugins" | ||
/> | ||
<i class="icon icon-search"></i> | ||
<i class="icon loading" style="display: none"></i> | ||
</div> | ||
</form> | ||
</div> | ||
<div class="col-md-3"> | ||
<button | ||
type="button" | ||
data-control="popup" | ||
data-handler="onLoadPluginUploader" | ||
tabindex="-1" | ||
class="btn btn-success wn-icon-file-arrow-up" | ||
> | ||
<?= e(trans('system::lang.plugins.upload')) ?> | ||
</a> | ||
</div> | ||
</div> | ||
|
||
<div class="row"> | ||
|
||
<div class="col-md-7"> | ||
|
||
<!-- Installed plugins --> | ||
<div id="pluginList" | ||
class="product-list-manager"> | ||
|
||
<h4 class="section-header"> | ||
<a href="<?= Backend::url('system/updates') ?>"><?= e(trans('system::lang.plugins.installed')) ?></a> | ||
<small>(<span class="product-counter"><?= count($installedPlugins) ?></span>)</small> | ||
</h4> | ||
|
||
<?php if (!count($installedPlugins)): ?> | ||
<div class="product-list-empty"> | ||
<p><?= e(trans('system::lang.plugins.no_plugins')) ?></p> | ||
</div> | ||
<?php else: ?> | ||
<ul class="product-list plugin-list"> | ||
<?php foreach ($installedPlugins as $plugin): ?> | ||
|
||
<li data-code="<?= $plugin['code'] ?>"> | ||
<div class="image"> | ||
<img src="<?= $plugin['image'] ?>" alt=""> | ||
</div> | ||
<div class="details"> | ||
<h4><?= $plugin['name'] ?></h4> | ||
<p><?= e(trans('system::lang.plugin.by_author', ['name' => $plugin['author']])) ?></p> | ||
</div> | ||
<button | ||
type="button" | ||
class="close" | ||
aria-hidden="true" | ||
data-request="onRemovePlugin" | ||
data-request-data="code: '<?= $plugin['code'] ?>'" | ||
data-request-confirm="<?= e(trans('system::lang.plugins.remove_confirm')) ?>" | ||
data-stripe-load-indicator> | ||
× | ||
</button> | ||
</li> | ||
|
||
<?php endforeach ?> | ||
</ul> | ||
<?php endif ?> | ||
|
||
</div> | ||
|
||
</div> | ||
<div class="col-md-5"> | ||
|
||
<!-- Recommended extras --> | ||
<div class="suggested-products-container"> | ||
<h4 class="section-header"><?= e(trans('system::lang.plugins.recommended')) ?></h4> | ||
<div class="scroll-panel"> | ||
<div | ||
id="suggestedPlugins" | ||
class="suggested-products suggested-plugins" | ||
data-handler="onGetPopularPlugins" | ||
data-view="plugin/suggestion"></div> | ||
</div> | ||
</div> | ||
|
||
</div> | ||
|
||
</div> | ||
|
||
<div id="updates-app"> | ||
<plugin-updates | ||
search-string="<?= e(trans('system::lang.plugins.search')) ?>" | ||
upload-string="<?= e(trans('system::lang.plugins.upload')) ?>" | ||
></plugin-updates> | ||
</div> | ||
|
||
<script type="text/template" data-partial="plugin/suggestion"> | ||
<div class="product"> | ||
<a | ||
data-control="popup" | ||
data-handler="onInstallPlugin" | ||
data-request-data="code: '{{code}}'" | ||
href="javascript:;"> | ||
<div class="image"><img src="{{image}}" alt=""></div> | ||
<div class="details"> | ||
<h5 class="text-overflow">{{code}}</h5> | ||
<p>{{description}}</p> | ||
</div> | ||
</a> | ||
</div> | ||
</script> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.