| @@ -1,129 +1,0 @@ | ||
| 1 | -<div class="cell grid-x acym__content" id="acym__plugin__installed"> | |
| 2 | - <form id="acym_form" | |
| 3 | - action="<?php echo acym_completeLink(acym_getVar('cmd', 'ctrl')); ?>" | |
| 4 | - method="post" | |
| 5 | - name="acyForm" | |
| 6 | - class="cell grid-x acym__form__campaign__edit" | |
| 7 | - data-abide> | |
| 8 | - <input type="hidden" name="all__plugins" id="acym__plugins__all" value="<?php echo acym_escape(json_encode($data['plugins'])); ?>"> | |
| 9 | - <input type="hidden" name="plugin__folder_name" value=""> | |
| 10 | - <?php | |
| 11 | - $workflow = $data['workflowHelper']; | |
| 12 | - echo $workflow->display($data['tabs'], $data['tab'], false, true); | |
| 13 | - ?> | |
| 14 | - <div id="acym__plugin__installed__application" class="cell grid-x"> | |
| 15 | - <?php | |
| 16 | - if (empty($data['plugins'])) { ?> | |
| 17 | - <div class="cell grid-x align-center"> | |
| 18 | - <h2 class="cell text-center acym__title__primary__color"><?php echo acym_translation('ACYM_YOU_DONT_HAVE_ADD_ONS'); ?></h2> | |
| 19 | - <a href="<?php echo acym_completeLink('plugins&task=available'); ?>" | |
| 20 | - class="cell shrink button text-center margin-top-1 margin-bottom-2"><?php echo acym_translation('ACYM_DOWNLOAD_MY_FIRST_ONE'); ?></a> | |
| 21 | - </div> | |
| 22 | - <?php } else { ?> | |
| 23 | - <div class="cell grid-x grid-margin-x margin-bottom-1"> | |
| 24 | - <input type="text" class="cell medium-3 margin-bottom-0" v-model="search" placeholder="<?php echo acym_translation('ACYM_SEARCH'); ?>"> | |
| 25 | - <div class="cell medium-4 large-2"> | |
| 26 | - <select2 :name="'acym__plugins__type'" :options="<?php echo acym_escape(json_encode($data['types'])); ?>" v-model="type"></select2> | |
| 27 | - </div> | |
| 28 | - <div class="cell medium-4 large-2"> | |
| 29 | - <select2 :name="'acym__plugins__level'" :options="<?php echo acym_escape(json_encode($data['level'])); ?>" v-model="level"></select2> | |
| 30 | - </div> | |
| 31 | - <div class="cell grid-x medium-5 align-right"> | |
| 32 | - <div class="cell medium-2"></div> | |
| 33 | - <button type="button" class="acy_button_submit button button-secondary acym_vcenter" data-task="checkUpdates"> | |
| 34 | - <i class="acymicon-autorenew"></i><?php echo acym_translation('ACYM_CHECK_FOR_UPDATES'); ?> | |
| 35 | - </button> | |
| 36 | - </div> | |
| 37 | - </div> | |
| 38 | - <div class="cell grid-x" v-show="noPluginTodisplay" style="display: none;"> | |
| 39 | - <h2 class="cell text-center acym__title__primary__color"><?php echo acym_translation('ACYM_NO_ADD_ONS_TO_DISPLAY'); ?></h2> | |
| 40 | - </div> | |
| 41 | - <div class="cell grid-x margin-bottom-2" v-show="!noPluginTodisplay"> | |
| 42 | - <div class="cell grid-x align-center text-center acym__plugin__available__loader__page margin-top-3 margin-bottom-3" v-show="loading"> | |
| 43 | - <?php echo acym_loaderLogo(); ?> | |
| 44 | - </div> | |
| 45 | - <div class="cell grid-x grid-margin-x grid-margin-y" | |
| 46 | - v-show="!loading" | |
| 47 | - style="display: none;" | |
| 48 | - v-infinite-scroll="loadMorePlugins" | |
| 49 | - :infinite-scroll-disabled="busy"> | |
| 50 | - <div class="acym__plugins__card cell xlarge-3 large-4 medium-6 grid-y align-justify" | |
| 51 | - :id="'acym__plugins__card__' + plugin.folder_name" | |
| 52 | - v-for="(plugin, index) in displayedPlugins" | |
| 53 | - :key="plugin"> | |
| 54 | - <div v-show="!showSettings[plugin.id]" class="acym__plugins__info__container"> | |
| 55 | - <button v-if="plugin.type == 'ADDON'" @click="deletePlugin(plugin.id)" type="button" class="acym__plugins__button__delete"> | |
| 56 | - <i class="acymicon-delete"></i> | |
| 57 | - </button> | |
| 58 | - | |
| 59 | - <div class="acym__plugins__card__params_type shrink cell">{{ plugin.category }}</div> | |
| 60 | - | |
| 61 | - <!-- PICTURE CARD --> | |
| 62 | - <div class="acym__plugins__card__image margin-bottom-1 cell grid-x align-center"> | |
| 63 | - <img :src="imageUrl(plugin.folder_name, plugin.type)" alt="plugin image" class="cell"> | |
| 64 | - </div> | |
| 65 | - | |
| 66 | - <!-- MAIN CARD --> | |
| 67 | - <div class="acym__plugins__card__params"> | |
| 68 | - <div class="acym__plugins__card__params__title-line"> | |
| 69 | - <h2 class="medium-9 acym__plugins__card__params__title acym_text_ellipsis" :title="plugin.title">{{ plugin.title }}</h2> | |
| 70 | - <div class="acym__plugins__card__params__icons"> | |
| 71 | - <button v-show="plugin.uptodate == '0'" data-acym-tooltip="<?php echo acym_translation('ACYM_UPDATE'); ?>" | |
| 72 | - type="button" | |
| 73 | - class="acym__plugins__button shrink acym__plugins__button__update cell text-center" | |
| 74 | - @click="updatePlugin(plugin)"> | |
| 75 | - <span v-show="!updating[plugin.id]"><i class="acymicon-exclamation-triangle"></i></span> | |
| 76 | - <span v-show="updating[plugin.id]"><?php echo acym_loaderLogo(); ?></span> | |
| 77 | - </button> | |
| 78 | - <div v-if="plugin.settings && plugin.settings != 'not_installed'" class="acym__icon"> | |
| 79 | - <i @click="toggleSettings(plugin.folder_name)" | |
| 80 | - class="acymicon-cog cell shrink acym__plugins__settings__toggle cursor-pointer"></i> | |
| 81 | - </div> | |
| 82 | - <div v-if="plugin.settings && plugin.settings == 'not_installed'" class="acym__icon"> | |
| 83 | - <i class="acymicon-cog cell shrink acym__plugins__settings__toggle__blocked cursor-pointer acym__color__medium-gray acym__tooltip"> | |
| 84 | - <span class="acym__tooltip__text"><?php echo acym_translation('ACYM_SETTINGS_AVAILABLE_INSTALLED_EXTENSION'); ?></span> | |
| 85 | - </i> | |
| 86 | - </div> | |
| 87 | - <a class="acym__icon" target="_blank" | |
| 88 | - :href="documentationUrl(plugin.folder_name, plugin.type)" | |
| 89 | - class="acym__icon acym__plugins__documentation cell medium-1"> | |
| 90 | - <i class="acymicon-book"></i> | |
| 91 | - </a> | |
| 92 | - </div> | |
| 93 | - </div> | |
| 94 | - | |
| 95 | - <div ref="plugins" :class="isOverflown(index)" class="acym__plugins__card__params_desc cell" v-html="plugin.description"></div> | |
| 96 | - | |
| 97 | - <div v-if="plugin.type == 'ADDON'" class="acym__plugins__card__actions cell grid-x acym_vcenter" v-show="rightLevel(plugin.level)"> | |
| 98 | - <div class="cell grid-x acym_vcenter medium-8"> | |
| 99 | - <span class="cell shrink"><?php echo acym_translation('ACYM_ENABLED'); ?>:</span> | |
| 100 | - <vue-switch :plugin="plugin" :ischecked="isActivated(plugin.active)"></vue-switch> | |
| 101 | - </div> | |
| 102 | - </div> | |
| 103 | - </div> | |
| 104 | - </div> | |
| 105 | - <div class="cell grid-x acym__plugins__settings__container" v-if="plugin.settings"> | |
| 106 | - <h3 class="cell acym__title__primary__color text-center">{{ plugin.title }}</h3> | |
| 107 | - <div class="acym__plugins__settings__options__container cell"> | |
| 108 | - <div class="cell grid-x acym_vcenter acym__plugins__settings-one" v-for="(settings, index) in plugin.settings" :key="index" v-html="settings"> | |
| 109 | - </div> | |
| 110 | - </div> | |
| 111 | - <div class="cell grid-x align-center"> | |
| 112 | - <button type="button" | |
| 113 | - @click="toggleSettings(plugin.folder_name)" | |
| 114 | - class="cell medium-5 button acym__button__cancel"><?php echo acym_translation('ACYM_CANCEL'); ?></button> | |
| 115 | - <div class="cell medium-1 hide-for-small-only"></div> | |
| 116 | - <button type="button" class="cell medium-5 button acy_button_submit" data-task="saveSettings"> | |
| 117 | - <?php echo acym_translation('ACYM_SAVE'); ?> | |
| 118 | - </button> | |
| 119 | - </div> | |
| 120 | - </div> | |
| 121 | - </div> | |
| 122 | - </div> | |
| 123 | - </div> | |
| 124 | - <?php | |
| 125 | - } ?> | |
| 126 | - </div> | |
| 127 | - <?php acym_formOptions(); ?> | |
| 128 | - </form> | |
| 129 | -</div> | |