PluginProbe
ووسلام – همگام سازی ووکامرس و باسلام / 1.10.6
ووسلام – همگام سازی ووکامرس و باسلام v1.10.6
1.10.19 1.10.20 1.10.18 1.10.17 1.10.15 1.10.14 1.10.13 1.10.12 1.10.10 1.10.9 1.10.8 1.10.7 1.10.6 1.10.5 1.10.4 1.10.3 1.10.2 1.10.1 1.10.0 1.9.2 1.9.1 1.9.0 1.8.8 1.8.5 1.8.6 All 53 releases
sync-basalam / templates / notifications / CircuitBreakerAlert.php

CircuitBreakerAlert.php in ووسلام – همگام سازی ووکامرس و باسلام 1.10.6, at templates/notifications/CircuitBreakerAlert.php

35 lines 1.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 defined('ABSPATH') || exit;
4
5 use SyncBasalam\Services\Api\CircuitBreaker;
6
7 $state = $circuitBreaker->getState();
8 $failureCount = $circuitBreaker->getFailureCount();
9 $lastFailure = $circuitBreaker->getLastFailure();
10
11 if ($state === CircuitBreaker::STATE_CLOSED) return;
12
13 $noticeClass = $state === CircuitBreaker::STATE_OPEN ? 'notice notice-error' : 'notice notice-warning';
14 $stateLabel = $state === CircuitBreaker::STATE_OPEN ? 'OPEN' : 'HALF_OPEN';
15 $description = $state === CircuitBreaker::STATE_OPEN
16 ? 'ارتباط با باسلا�
17 به دلیل خطای س�
18 ت باسلا�
19 ، به طور �
20 وقت قطع و بعد از دقایقی در صورت در دسترس بودن سرویس های باسلا�
21 ، ارتباط �
22 جددا ایجاد �
23 یشود.'
24 : 'ووسلا�
25 در حال تست بازگشت ارتباط با باسلا�
26 است و فقط یک درخواست آز�
27 ایشی را اجرا �
28 یکند.';
29 ?>
30 <div class="<?php echo esc_attr($noticeClass); ?> basalam-notice-flex">
31 <p class="basalam-p basalam-text-right basalam-padding-0">
32 <?php echo esc_html($description); ?>
33 </p>
34 </div>
35