← All changes
|
templates/notifications/VendorInactiveAlert.php
+11
-1
1.10.10
→
1.10.21
View file →
| @@ -8,9 +8,9 @@ | ||
| 8 | 8 | $inactiveDays = (int) ($vendorSyncState['inactive_days'] ?? 0); |
| 9 | 9 | $statusName = trim((string) ($vendorSyncState['status_name'] ?? '')); |
| 10 | 10 | $noticeClass = $mode === VendorSyncPolicy::MODE_INACTIVE_SUSPENDED ? 'notice-error' : 'notice-warning'; |
| 11 | 11 | ?> |
| 12 | -<div class="notice <?php echo esc_attr($noticeClass); ?> sync-basalam-vendor-status-notice"> | |
| 12 | +<div class="notice <?php echo esc_attr($noticeClass); ?> sync-basalam-vendor-status-notice" id="sync_basalam_vendor_status_notice"> | |
| 13 | 13 | <?php if ($mode === VendorSyncPolicy::MODE_INACTIVE_LIMITED): ?> |
| 14 | 14 | <p> |
| 15 | 15 | <strong>غرفه باسلام شما غیرفعال است.</strong> |
| 16 | 16 | ایجاد محصول جدید متوقف شده و تا پایان هفته سوم فقط قیمت و موجودی محصولات بروزرسانی میشود. |
| @@ -27,5 +27,15 @@ | ||
| 27 | 27 | |
| 28 | 28 | <?php if ($statusName !== ''): ?> |
| 29 | 29 | <p>وضعیت فعلی غرفه در باسلام: <strong><?php echo esc_html($statusName); ?></strong></p> |
| 30 | 30 | <?php endif; ?> |
| 31 | + | |
| 32 | + <p> | |
| 33 | + <button | |
| 34 | + type="button" | |
| 35 | + class="button <?php echo esc_attr($mode === VendorSyncPolicy::MODE_INACTIVE_SUSPENDED ? 'button-primary' : ''); ?>" | |
| 36 | + id="sync_basalam_refresh_vendor_status_btn" | |
| 37 | + data-nonce="<?php echo esc_attr(wp_create_nonce('sync_basalam_refresh_vendor_status_nonce')); ?>"> | |
| 38 | + بررسی مجدد وضعیت غرفه | |
| 39 | + </button> | |
| 40 | + </p> | |
| 31 | 41 | </div> |