Plugin Directory

Changeset 3390564


Ignore:
Timestamp:
11/05/2025 03:31:37 PM (5 months ago)
Author:
helloasso
Message:

Update to version 1.1.23 from GitHub

Location:
helloasso
Files:
10 edited
1 copied

Legend:

Unmodified
Added
Removed
  • helloasso/tags/1.1.23/README.txt

    r3387717 r3390564  
    66Tested up to: 6.8
    77Requires PHP: 7.2.34
    8 Stable tag: 1.1.22
     8Stable tag: 1.1.23
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    8181
    8282== Changelog ==
     83= 1.1.22 =
     84* Synchronisation avec organizationSlug seulement
     85
    8386= 1.1.22 =
    8487* Correction bug nom association non reconnu
  • helloasso/tags/1.1.23/admin/class-hello-asso-admin.php

    r3387717 r3390564  
    478478            }
    479479
    480             $url = parse_url($value);
    481480            $sandbox = false;
    482             $nameAsso = '';
    483 
    484             if ($url !== false && isset($url['host'])) {
    485                 $domain = $url['host'];
    486 
    487                 if ($domain == 'helloasso-sandbox.com' || $domain == 'www.helloasso-sandbox.com') {
    488                     $sandbox = true;
    489                 }
    490 
    491                 if ($domain != 'helloasso.com' && $domain != 'www.helloasso.com' && $domain != 'helloasso-sandbox.com' && $domain != 'www.helloasso-sandbox.com') {
    492                     $nameAsso = '';
    493                 } else {
    494                     $slug = explode('/', $value);
    495                     $nameAsso = isset($slug[4]) ? $slug[4] : '';
    496                 }
    497             } else {
    498                 $nameAsso = sanitize_title_with_dashes($value);
    499             }
    500 
    501             if (empty($nameAsso)) {
    502                 wp_send_json_error('URL ou nom d\'association invalide.');
     481            $organizationSlug = '';         
     482           
     483            $organizationSlug = sanitize_title_with_dashes($value);
     484           
     485            if (empty($organizationSlug)) {
     486                wp_send_json_error('Slug d\'association invalide.');
    503487                return;
    504488            }
     
    527511            $bearer_token = $token_data['access_token'];
    528512
    529             $org_response = ha_curl_get($apiUrl . '/v5/organizations/' . $nameAsso, $bearer_token);
     513            $org_response = ha_curl_get($apiUrl . '/v5/organizations/' . $organizationSlug, $bearer_token);
    530514
    531515            if ($org_response === false) {
    532                 wp_send_json_error('Erreur lors de la récupération des informations de l\'organisation.');
     516                wp_send_json_error('Erreur lors de la récupération des informations de l\'association.');
    533517                return;
    534518            }
     
    537521
    538522            if (!isset($org_data['name'])) {
    539                 wp_send_json_error('Organisation non trouvée.');
     523                wp_send_json_error('Association non trouvée.');
    540524                return;
    541525            }
     
    546530
    547531            for ($i = 1; $i <= 5; $i++) {
    548                 $campaign_response = ha_curl_get($apiUrl . '/v5/organizations/' . $nameAsso . '/forms?pageSize=20&pageIndex=' . $i, $bearer_token);
     532                $campaign_response = ha_curl_get($apiUrl . '/v5/organizations/' . $organizationSlug . '/forms?pageSize=20&pageIndex=' . $i, $bearer_token);
    549533
    550534                if ($campaign_response === false) {
     
    577561                'campaigns' => $all_campaigns,
    578562                'total_count' => $total_count,
    579                 'slug' => $nameAsso
     563                'slug' => $organizationSlug
    580564            );
    581565
  • helloasso/tags/1.1.23/admin/css/hello-asso-admin.css

    r2813465 r3390564  
    575575    color: #2E2F5E;
    576576    font-size: 20px;
    577     text-align: center;
     577    text-align: left;
    578578}
    579579
  • helloasso/tags/1.1.23/admin/view/dashboard.php

    r3053289 r3390564  
    5757        <div class="ha-blocks">
    5858            <div class="ha-block-white">
     59                <div class="ha-description">
    5960                <h3 class="ha-title-block">Récupérez toutes vos campagnes en 1 clic</h3>
     61                    <p>Coller le slug de votre association qui se trouve dans l'URL de votre association</p>
     62                    <p>Exemple : <b>https://admin.helloasso.com/club-de-judo/accueil</b>  le slug ici est <b>club-de-judo</b></p>
     63                </div>
    6064                <div class="ha-search-glob">
    61                     <input type="search" class="ha-search" onkeyup="haCheckInput()" value="<?= esc_html(get_option('ha-slug')); ?>" placeholder="Nom ou URL de mon organisme">
     65                    <input type="search" class="ha-search" onkeyup="haCheckInput()" value="<?= esc_html(get_option('ha-slug')); ?>" placeholder="Slug de mon association">
    6266                    <span onclick="haResetInput()" class="ha-search-delete">
    6367                        <svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
  • helloasso/tags/1.1.23/hello-asso.php

    r3387717 r3390564  
    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.22
     19 * Version:           1.1.23
    2020 * Author:            HelloAsso
    2121 * Author URI:        https://helloasso.com
     
    3737 * Rename this for your plugin and update it as you release new versions.
    3838 */
    39 define('HELLO_ASSO_VERSION', '1.1.22');
     39define('HELLO_ASSO_VERSION', '1.1.23');
    4040
    4141/**
  • helloasso/trunk/README.txt

    r3387717 r3390564  
    66Tested up to: 6.8
    77Requires PHP: 7.2.34
    8 Stable tag: 1.1.22
     8Stable tag: 1.1.23
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    8181
    8282== Changelog ==
     83= 1.1.22 =
     84* Synchronisation avec organizationSlug seulement
     85
    8386= 1.1.22 =
    8487* Correction bug nom association non reconnu
  • helloasso/trunk/admin/class-hello-asso-admin.php

    r3387717 r3390564  
    478478            }
    479479
    480             $url = parse_url($value);
    481480            $sandbox = false;
    482             $nameAsso = '';
    483 
    484             if ($url !== false && isset($url['host'])) {
    485                 $domain = $url['host'];
    486 
    487                 if ($domain == 'helloasso-sandbox.com' || $domain == 'www.helloasso-sandbox.com') {
    488                     $sandbox = true;
    489                 }
    490 
    491                 if ($domain != 'helloasso.com' && $domain != 'www.helloasso.com' && $domain != 'helloasso-sandbox.com' && $domain != 'www.helloasso-sandbox.com') {
    492                     $nameAsso = '';
    493                 } else {
    494                     $slug = explode('/', $value);
    495                     $nameAsso = isset($slug[4]) ? $slug[4] : '';
    496                 }
    497             } else {
    498                 $nameAsso = sanitize_title_with_dashes($value);
    499             }
    500 
    501             if (empty($nameAsso)) {
    502                 wp_send_json_error('URL ou nom d\'association invalide.');
     481            $organizationSlug = '';         
     482           
     483            $organizationSlug = sanitize_title_with_dashes($value);
     484           
     485            if (empty($organizationSlug)) {
     486                wp_send_json_error('Slug d\'association invalide.');
    503487                return;
    504488            }
     
    527511            $bearer_token = $token_data['access_token'];
    528512
    529             $org_response = ha_curl_get($apiUrl . '/v5/organizations/' . $nameAsso, $bearer_token);
     513            $org_response = ha_curl_get($apiUrl . '/v5/organizations/' . $organizationSlug, $bearer_token);
    530514
    531515            if ($org_response === false) {
    532                 wp_send_json_error('Erreur lors de la récupération des informations de l\'organisation.');
     516                wp_send_json_error('Erreur lors de la récupération des informations de l\'association.');
    533517                return;
    534518            }
     
    537521
    538522            if (!isset($org_data['name'])) {
    539                 wp_send_json_error('Organisation non trouvée.');
     523                wp_send_json_error('Association non trouvée.');
    540524                return;
    541525            }
     
    546530
    547531            for ($i = 1; $i <= 5; $i++) {
    548                 $campaign_response = ha_curl_get($apiUrl . '/v5/organizations/' . $nameAsso . '/forms?pageSize=20&pageIndex=' . $i, $bearer_token);
     532                $campaign_response = ha_curl_get($apiUrl . '/v5/organizations/' . $organizationSlug . '/forms?pageSize=20&pageIndex=' . $i, $bearer_token);
    549533
    550534                if ($campaign_response === false) {
     
    577561                'campaigns' => $all_campaigns,
    578562                'total_count' => $total_count,
    579                 'slug' => $nameAsso
     563                'slug' => $organizationSlug
    580564            );
    581565
  • helloasso/trunk/admin/css/hello-asso-admin.css

    r2813465 r3390564  
    575575    color: #2E2F5E;
    576576    font-size: 20px;
    577     text-align: center;
     577    text-align: left;
    578578}
    579579
  • helloasso/trunk/admin/view/dashboard.php

    r3053289 r3390564  
    5757        <div class="ha-blocks">
    5858            <div class="ha-block-white">
     59                <div class="ha-description">
    5960                <h3 class="ha-title-block">Récupérez toutes vos campagnes en 1 clic</h3>
     61                    <p>Coller le slug de votre association qui se trouve dans l'URL de votre association</p>
     62                    <p>Exemple : <b>https://admin.helloasso.com/club-de-judo/accueil</b>  le slug ici est <b>club-de-judo</b></p>
     63                </div>
    6064                <div class="ha-search-glob">
    61                     <input type="search" class="ha-search" onkeyup="haCheckInput()" value="<?= esc_html(get_option('ha-slug')); ?>" placeholder="Nom ou URL de mon organisme">
     65                    <input type="search" class="ha-search" onkeyup="haCheckInput()" value="<?= esc_html(get_option('ha-slug')); ?>" placeholder="Slug de mon association">
    6266                    <span onclick="haResetInput()" class="ha-search-delete">
    6367                        <svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
  • helloasso/trunk/hello-asso.php

    r3387717 r3390564  
    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.22
     19 * Version:           1.1.23
    2020 * Author:            HelloAsso
    2121 * Author URI:        https://helloasso.com
     
    3737 * Rename this for your plugin and update it as you release new versions.
    3838 */
    39 define('HELLO_ASSO_VERSION', '1.1.22');
     39define('HELLO_ASSO_VERSION', '1.1.23');
    4040
    4141/**
Note: See TracChangeset for help on using the changeset viewer.