# acymailing/trunk/back/Views/Dashboard/tmpl/campaign_progress.php

AcyMailing – An Ultimate Newsletter Plugin and Marketing Automation Solution for WordPress, version trunk. 50 lines.

- Page: https://pluginprobe.com/plugins/acymailing/trunk/code/back/Views/Dashboard/tmpl/campaign_progress.php
- Raw: https://pluginprobe.com/plugins/acymailing/trunk/raw/back/Views/Dashboard/tmpl/campaign_progress.php
- Modified: 2026-08-03T10:18:54+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/acymailing/trunk/code/back/Views/Dashboard/tmpl/campaign_progress.php#L10-L20`.

```php
<?php
// phpcs:disable WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound -- View file, its variables are local to the include scope, not true globals.
defined('ABSPATH') || die('Restricted Access');
?>
<div class="acym__content cell">
	<div class="cell acym__title acym__dashboard__title"><?php echo esc_html(acym_translation('ACYM_IN_PROGRESS')); ?></div>
	<span class="separator"></span>
    <?php if ($data['campaigns']) { ?>
		<div class="grid-x acym__listing cell">
			<div class="grid-x cell acym__listing__header">
				<div class="grid-x medium-auto small-12">
					<div class="cell small-6 acym__listing__header__title">
                        <?php echo esc_html(acym_translation('ACYM_CAMPAIGN')); ?>
					</div>
					<div class="cell small-3 acym__listing__header__title">
                        <?php echo esc_html(acym_translation('ACYM_STATUS')); ?>
					</div>
					<div class="cell small-3 acym__listing__header__title">
                        <?php echo esc_html(acym_translation('ACYM_PROGRESS')); ?>
					</div>
				</div>
			</div>

            <?php
            $activeCampaigns = $data['campaigns'];
            foreach ($activeCampaigns as $index => $campaigns) { ?>
				<div acym-data-domain="coucou" class="grid-x cell align-middle acym__listing__row">
					<div class="cell small-6">
                        <?php echo esc_html($campaigns->name); ?>
					</div>
					<div class="cell small-3 large">
						<span class="<?php echo $results = $campaigns->active == 1 ? 'acym__dashboard__campaign__active' : 'acym__dashboard__campaign__paused'; ?>">
							<?php echo esc_html($results = $campaigns->active == 1 ? acym_translation('ACYM_IN_PROGRESS') : acym_translation('ACYM_STOPPED')); ?>
						</span>
					</div>
					<div class="cell small-3 ">
                        <?php echo esc_html($campaigns->recipients - $campaigns->nbqueued.' / '.$campaigns->recipients); ?>
					</div>
				</div>
            <?php } ?>
		</div>
    <?php } else { ?>
		<div class="cell grid-x">
			<div class="cell text-center acym__dashboard__empty">
                <?php echo esc_html(acym_translation('ACYM_QUEUE_IS_EMPTY')); ?>
			</div>
		</div>
    <?php } ?>
</div>

```
