# sync-basalam/1.10.14/templates/notifications/VendorInactiveAlert.php

ووسلام – همگام سازی ووکامرس و باسلام, version 1.10.14. 42 lines.

- Page: https://pluginprobe.com/plugins/sync-basalam/1.10.14/code/templates/notifications/VendorInactiveAlert.php
- Raw: https://pluginprobe.com/plugins/sync-basalam/1.10.14/raw/templates/notifications/VendorInactiveAlert.php
- Modified: 2026-09-08T09:08:34+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/sync-basalam/1.10.14/code/templates/notifications/VendorInactiveAlert.php#L10-L20`.

```php
<?php

use SyncBasalam\Services\VendorSyncPolicy;

defined('ABSPATH') || exit;

$mode = $vendorSyncState['mode'] ?? VendorSyncPolicy::MODE_ACTIVE;
$inactiveDays = (int) ($vendorSyncState['inactive_days'] ?? 0);
$statusName = trim((string) ($vendorSyncState['status_name'] ?? ''));
$noticeClass = $mode === VendorSyncPolicy::MODE_INACTIVE_SUSPENDED ? 'notice-error' : 'notice-warning';
?>
<div class="notice <?php echo esc_attr($noticeClass); ?> sync-basalam-vendor-status-notice" id="sync_basalam_vendor_status_notice">
    <?php if ($mode === VendorSyncPolicy::MODE_INACTIVE_LIMITED): ?>
        <p>
            <strong>غرفه باسلام شما غیرفعال است.</strong>
            ایجاد محصول جدید متوقف شده و تا پایان هفته سوم فقط قیمت و موجودی محصولات بروزرسانی می‌شود.
            <?php if ($inactiveDays > 0): ?>
                مدت غیرفعالی ثبت‌شده: <?php echo esc_html($inactiveDays); ?> روز.
            <?php endif; ?>
        </p>
    <?php else: ?>
        <p>
            <strong>همگام‌سازی محصولات متوقف شده است.</strong>
            غرفه بیش از ۳ هفته غیرفعال بوده و تا زمان فعال‌شدن دوباره، هیچ محصولی ایجاد یا بروزرسانی نمی‌شود.
        </p>
    <?php endif; ?>

    <?php if ($statusName !== ''): ?>
        <p>وضعیت فعلی غرفه در باسلام: <strong><?php echo esc_html($statusName); ?></strong></p>
    <?php endif; ?>

    <p>
        <button
            type="button"
            class="button <?php echo esc_attr($mode === VendorSyncPolicy::MODE_INACTIVE_SUSPENDED ? 'button-primary' : ''); ?>"
            id="sync_basalam_refresh_vendor_status_btn"
            data-nonce="<?php echo esc_attr(wp_create_nonce('sync_basalam_refresh_vendor_status_nonce')); ?>">
            بررسی مجدد وضعیت غرفه
        </button>
    </p>
</div>

```
