| 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="acym__content cell"> |
| 6 |
<div class="cell acym__title acym__dashboard__title"><?php echo esc_html(acym_translation('ACYM_IN_PROGRESS')); ?></div> |
| 7 |
<span class="separator"></span> |
| 8 |
<?php if ($data['campaigns']) { ?> |
| 9 |
<div class="grid-x acym__listing cell"> |
| 10 |
<div class="grid-x cell acym__listing__header"> |
| 11 |
<div class="grid-x medium-auto small-12"> |
| 12 |
<div class="cell small-6 acym__listing__header__title"> |
| 13 |
<?php echo esc_html(acym_translation('ACYM_CAMPAIGN')); ?> |
| 14 |
</div> |
| 15 |
<div class="cell small-3 acym__listing__header__title"> |
| 16 |
<?php echo esc_html(acym_translation('ACYM_STATUS')); ?> |
| 17 |
</div> |
| 18 |
<div class="cell small-3 acym__listing__header__title"> |
| 19 |
<?php echo esc_html(acym_translation('ACYM_PROGRESS')); ?> |
| 20 |
</div> |
| 21 |
</div> |
| 22 |
</div> |
| 23 |
|
| 24 |
<?php |
| 25 |
$activeCampaigns = $data['campaigns']; |
| 26 |
foreach ($activeCampaigns as $index => $campaigns) { ?> |
| 27 |
<div acym-data-domain="coucou" class="grid-x cell align-middle acym__listing__row"> |
| 28 |
<div class="cell small-6"> |
| 29 |
<?php echo esc_html($campaigns->name); ?> |
| 30 |
</div> |
| 31 |
<div class="cell small-3 large"> |
| 32 |
<span class="<?php echo $results = $campaigns->active == 1 ? 'acym__dashboard__campaign__active' : 'acym__dashboard__campaign__paused'; ?>"> |
| 33 |
<?php echo esc_html($results = $campaigns->active == 1 ? acym_translation('ACYM_IN_PROGRESS') : acym_translation('ACYM_STOPPED')); ?> |
| 34 |
</span> |
| 35 |
</div> |
| 36 |
<div class="cell small-3 "> |
| 37 |
<?php echo esc_html($campaigns->recipients - $campaigns->nbqueued.' / '.$campaigns->recipients); ?> |
| 38 |
</div> |
| 39 |
</div> |
| 40 |
<?php } ?> |
| 41 |
</div> |
| 42 |
<?php } else { ?> |
| 43 |
<div class="cell grid-x"> |
| 44 |
<div class="cell text-center acym__dashboard__empty"> |
| 45 |
<?php echo esc_html(acym_translation('ACYM_QUEUE_IS_EMPTY')); ?> |
| 46 |
</div> |
| 47 |
</div> |
| 48 |
<?php } ?> |
| 49 |
</div> |
| 50 |
|