| 1 |
<?php |
| 2 |
// phpcs:disable WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound -- View file, its variables are local to the include scope, not true globals. |
| 3 |
defined('ABSPATH') || die('Restricted Access'); |
| 4 |
?> |
| 5 |
<div class="cell grid-x acym__content" id="acym__plugin__available"> |
| 6 |
<form id="acym_form" |
| 7 |
action="<?php echo esc_url(acym_completeLink(acym_getVar('cmd', 'ctrl'))); ?>" |
| 8 |
method="post" |
| 9 |
name="acyForm" |
| 10 |
class="cell grid-x acym__form__campaign__edit" |
| 11 |
data-abide> |
| 12 |
<?php |
| 13 |
$workflow = $data['workflowHelper']; |
| 14 |
$workflow->display($data['tabs'], $data['tab'], false, true); |
| 15 |
?> |
| 16 |
<div id="acym__plugin__available__application" class="cell grid-x"> |
| 17 |
<div class="cell grid-x grid-margin-x margin-bottom-2"> |
| 18 |
<input type="text" class="cell medium-3" v-model="search" placeholder="<?php echo esc_attr(acym_translation('ACYM_SEARCH')); ?>"> |
| 19 |
<div class="cell medium-4 large-2"> |
| 20 |
<select2 :name="'acym__plugins__type'" :options="<?php echo esc_attr(json_encode($data['types'])); ?>" v-model="type"></select2> |
| 21 |
</div> |
| 22 |
<div class="cell medium-4 large-2"> |
| 23 |
<select2 :name="'acym__plugins__level'" :options="<?php echo esc_attr(json_encode($data['level'])); ?>" v-model="level"></select2> |
| 24 |
</div> |
| 25 |
</div> |
| 26 |
<div class="cell grid-x" v-show="noPluginTodisplay" style="display: none;"> |
| 27 |
<h2 class="cell text-center acym__title__primary__color"><?php echo esc_html(acym_translation('ACYM_NO_ADD_ONS_TO_DISPLAY')); ?></h2> |
| 28 |
</div> |
| 29 |
<div class="cell grid-x margin-bottom-2"> |
| 30 |
<div class="cell grid-x align-center text-center acym__plugin__available__loader__page margin-top-3 margin-bottom-3" v-show="loading"> |
| 31 |
<?php acym_loaderLogo(); ?> |
| 32 |
</div> |
| 33 |
<div class="cell grid-x grid-margin-x grid-margin-y" v-show="!loading" style="display: none;" v-infinite-scroll="loadMorePlugins" :infinite-scroll-disabled="busy"> |
| 34 |
<div class="acym__plugins__card cell xlarge-3 large-4 medium-6 grid-y align-justify" v-for="(plugin, index) in displayedPlugins"> |
| 35 |
|
| 36 |
<div class="margin-bottom-1"> |
| 37 |
<div class="acym__plugins__card__params_type shrink cell">{{ plugin.category }}</div> |
| 38 |
|
| 39 |
<!-- PICTURE CARD --> |
| 40 |
<div class="acym__plugins__card__image margin-bottom-1 cell grid-x align-center"> |
| 41 |
<img :src="imageUrl(plugin.file_name)" alt="plugin image" class="cell"> |
| 42 |
</div> |
| 43 |
|
| 44 |
<!-- MAIN CARD --> |
| 45 |
<div class="acym__plugins__card__params"> |
| 46 |
<div class="acym__plugins__card__params__title-line"> |
| 47 |
<h2 class="acym__plugins__card__params__title acym_text_ellipsis" :title="plugin.name">{{ plugin.name }}</h2> |
| 48 |
<a target="_blank" :href="plugin.documentation" class="acym__icon"> |
| 49 |
<i class="acymicon-book"></i> |
| 50 |
</a> |
| 51 |
</div> |
| 52 |
<div ref="plugins" :class="isOverflown(index)" class="acym__plugins__card__params_desc cell" v-html="plugin.description"></div> |
| 53 |
</div> |
| 54 |
</div> |
| 55 |
|
| 56 |
<!-- BUTTON ACTION TELECHARGEMENT --> |
| 57 |
<div class="cell grid-x acym__plugins__card__actions"> |
| 58 |
<div v-if="!installed[plugin.file_name]" v-show="!rightLevel(plugin.level)" class="cell grid-x align-center"> |
| 59 |
<a :data-acym-tooltip="<?php echo esc_attr(json_encode(acym_translation('ACYM_YOU_DONT_HAVE_THE_RIGHT_LEVEL'))); ?> + ucfirst(plugin.level)" |
| 60 |
target="_blank" |
| 61 |
href="<?php echo esc_url(ACYM_ACYMAILING_WEBSITE); ?>pricing" |
| 62 |
class="acym__plugins__button cell small-5 acym__plugins__button__purchase text-center button button-primary"> |
| 63 |
<?php echo esc_html(acym_translation('ACYM_PURCHASE')); ?> |
| 64 |
<i class="acymicon-cart-arrow-down"></i> |
| 65 |
</a> |
| 66 |
</div> |
| 67 |
<div v-if="!installed[plugin.file_name]" v-show="rightLevel(plugin.level)" class="cell grid-x acym__plugins__card__actions margin-top-1"> |
| 68 |
<button v-show="'<?php echo esc_attr(ACYM_CMS); ?>' == 'joomla'" |
| 69 |
type="button" |
| 70 |
class="acym__plugins__button cell text-center button button-primary" |
| 71 |
@click="download(plugin)"> |
| 72 |
<span v-show="!downloading[plugin.file_name]"> |
| 73 |
<?php echo esc_html(acym_translation('ACYM_DOWNLOAD')); ?> |
| 74 |
<i class="acymicon-download"></i> |
| 75 |
</span> |
| 76 |
<span v-show="downloading[plugin.file_name]"><?php acym_loaderLogo(); ?></span> |
| 77 |
</button> |
| 78 |
<a v-show="'<?php echo esc_attr(ACYM_CMS); ?>' == 'wordpress'" |
| 79 |
target="_blank" |
| 80 |
:href="plugin.downloadlink" |
| 81 |
class="acym__plugins__button cell acym__plugins__button__purchase text-center button button-primary"> |
| 82 |
<?php echo esc_html(acym_translation('ACYM_DOWNLOAD')); ?> |
| 83 |
<i class="acymicon-download"></i> |
| 84 |
</a> |
| 85 |
</div> |
| 86 |
<div v-if="installed[plugin.file_name]" class="cell grid-x acym__plugins__card__actions margin-top-1"> |
| 87 |
<button type="button" class="acym__plugins__button cell text-center acym__plugins__button-disabled button button-secondary"> |
| 88 |
<?php echo esc_html(acym_translation('ACYM_ADD_ON_SUCCESSFULLY_INSTALLED')); ?> |
| 89 |
<i class="acymicon-check"></i> |
| 90 |
</button> |
| 91 |
</div> |
| 92 |
</div> |
| 93 |
</div> |
| 94 |
</div> |
| 95 |
</div> |
| 96 |
</div> |
| 97 |
</form> |
| 98 |
</div> |
| 99 |
|