File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2727 <div class="ha-header-row">
2828 <div class="ha-header-col">
2929 <?php
30- $ nbCampaign = count ($ campaigns );
31- if (get_option ('ha-error ' ) == 0 ):
32- if (get_option ('ha-sync ' ) > strtotime ('-90 days ' )): ?>
30+ if (get_option ('ha-error ' ) == 0 ) {
31+ if (get_option ('ha-sync ' ) > strtotime ('-90 days ' )) { ?>
3332 <h1><?= esc_html (stripslashes (get_option ('ha-name ' ))); ?> </h1>
3433 <h5>Dernière synchronisation réussie le <?= esc_html (date ('d/m/Y à H:i:s ' , get_option ('ha-sync ' ))); ?> </h5>
35- <?php else : ?>
34+ <?php } else { ?>
3635 <h1><?= esc_html (stripslashes (get_option ('ha-name ' ))); ?> </h1>
3736 <div class="ha-header-message-flex">
3837 <img src="<?= esc_url (plugin_dir_url ( __FILE__ )); ?> icons/alert-triangle.svg" />
3938 <h5>Dernière synchronisation réussie le <?= esc_html (date ('d/m/Y à H:i:s ' , get_option ('ha-sync ' ))); ?> , <span class="semibold">Veuillez resynchroniser</span></h5>
4039 </div>
4140 <?php
42- endif ;
43- else :
44- $ nbCampaign = 0 ;
41+ }
42+ } else {
4543 ?>
4644 <h1><?= esc_html (stripslashes (get_option ('ha-name ' ))); ?> </h1>
4745 <div class="ha-header-message-flex">
4846 <img src="<?= esc_url (plugin_dir_url ( __FILE__ )); ?> icons/alert-triangle.svg" />
4947 <h5>La synchronisation a échouée</h5>
5048 </div>
51- <?php endif ; ?>
52- <h3>0 HelloAsso publics </h3>
49+ <?php } ?>
50+ <h3>aucune campagne publique </h3>
5351 </div>
5452 <div class="ha-header-col">
5553 <a href="<?= esc_url (admin_url ()); ?> admin.php?page=hello-asso" class="ha-btn">Resynchroniser</a>
You can’t perform that action at this time.
0 commit comments