Skip to content

Commit 434022b

Browse files
authored
Merge pull request #14 from HelloAsso/fix-sandbox
Fix sandbox
2 parents 7235f0c + bc731d0 commit 434022b

6 files changed

Lines changed: 42 additions & 9 deletions

File tree

README.txt

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ Contributors: helloasso, yohannkipfer
33
Donate link: https://helloasso.com
44
Tags: helloasso, paiement, association, crowdfunding, don
55
Requires at least: 4.0
6-
Tested up to: 6.8
6+
Tested up to: 6.9
77
Requires PHP: 7.2.34
8-
Stable tag: 1.1.23
8+
Stable tag: 1.1.24
99
License: GPLv2 or later
1010
License URI: http://www.gnu.org/licenses/gpl-2.0.html
1111

@@ -80,7 +80,10 @@ Please report security bugs found in the source code of the helloasso plugin thr
8080
2. Iframes des campagnes
8181

8282
== Changelog ==
83-
= 1.1.22 =
83+
= 1.1.24 =
84+
* Corrections de l'affichage au pluriel des campagnes dans le dashboard
85+
86+
= 1.1.23 =
8487
* Synchronisation avec organizationSlug seulement
8588

8689
= 1.1.22 =

admin/class-hello-asso-admin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,7 @@ function ha_search_campaign()
477477
return;
478478
}
479479

480-
$sandbox = false;
480+
$sandbox = HELLO_ASSO_SANDBOX_MODE ?? false;
481481
$organizationSlug = '';
482482

483483
$organizationSlug = sanitize_title_with_dashes($value);

admin/css/hello-asso-admin.css

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1505,5 +1505,18 @@ a:focus {
15051505
}
15061506

15071507
#hello_asso_metabox {
1508-
visibility: hidden;
1508+
visibility: hidden;
1509+
}
1510+
1511+
.ha-container-dashboard .ha-checkbox{
1512+
width: 1rem;
1513+
margin:0;
1514+
padding: 0;
1515+
}
1516+
.ha-form-group{
1517+
display:flex;
1518+
align-items:center;
1519+
gap:10px;
1520+
justify-content:flex-start;
1521+
margin: 0 0 15px;
15091522
}

admin/view/campaign.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@
162162
<h5>La synchronisation a échouée</h5>
163163
</div>
164164
<?php endif; ?>
165-
<h3><?= esc_html($nbCampaign); ?> campagnes publiques synchronisées</h3>
165+
<h3><?= esc_html(sprintf(_n('%d campagne publique synchronisée', '%d campagnes publiques synchronisées', $nbCampaign, 'hello-asso'), $nbCampaign)); ?></h3>
166166
</div>
167167
<div class="ha-header-col">
168168
<a href="<?= esc_url(admin_url()); ?>admin.php?page=hello-asso" class="ha-btn ha-btn-primary">Resynchroniser</a>

admin/view/dashboard.php

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,11 @@
6969
<path d="M5 5L15 15" stroke="#BEBED7" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" />
7070
</svg>
7171
</span>
72+
<!-- <label for="ha-sandbox-checkbox" class="ha-sandbox-label ha-form-group">
73+
<input type="checkbox" class="ha-checkbox" id="ha-sandbox-checkbox">
74+
Mode bac à sable
75+
</label> -->
76+
7277
</div>
7378
<button class="ha-btn ha-btn-primary searchCampaign" <?php if (get_option('ha-slug') == '') {
7479
echo 'disabled';
@@ -160,7 +165,14 @@
160165
<div class="ha-block-white">
161166
<div class="ha-count">
162167
<div class="ha-number-count"><?= esc_html($nbCampaign); ?></div>
163-
<div class="ha-description-count">campagnes publiques rattachées à votre association</div>
168+
<div class="ha-description-count">
169+
<?= esc_html(_n(
170+
'campagne publique rattachée à votre association',
171+
'campagnes publiques rattachées à votre association',
172+
$nbCampaign,
173+
'hello-asso'
174+
)); ?>
175+
</div>
164176
</div>
165177
<?php
166178
$campaign = get_option('ha-campaign');

hello-asso.php

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
* Plugin Name: HelloAsso
1717
* Plugin URI: https://centredaide.helloasso.com/s/article/paiement-en-ligne-wordpress-integrer-vos-campagnes-helloasso
1818
* Description: HelloAsso est la solution gratuite des associations pour collecter des paiements et des dons sur internet.
19-
* Version: 1.1.23
19+
* Version: 1.1.24
2020
* Author: HelloAsso
2121
* Author URI: https://helloasso.com
2222
* License: GPL-2.0+
@@ -36,7 +36,12 @@
3636
* Start at version 1.0.0 and use SemVer - https://semver.org
3737
* Rename this for your plugin and update it as you release new versions.
3838
*/
39-
define('HELLO_ASSO_VERSION', '1.1.23');
39+
define('HELLO_ASSO_VERSION', '1.1.24');
40+
41+
/**
42+
* Enable or disable sandbox mode.
43+
*/
44+
define('HELLO_ASSO_SANDBOX_MODE', false);
4045

4146
/**
4247
* The code that runs during plugin activation.

0 commit comments

Comments
 (0)