Plugin Directory

Changeset 2916932


Ignore:
Timestamp:
05/24/2023 05:01:45 PM (3 years ago)
Author:
Ahaenor
Message:
  • V.3.30.1 - hotfix release.
Location:
leyka
Files:
1875 added
7 edited

Legend:

Unmodified
Added
Removed
  • leyka/trunk/README.txt

    r2916457 r2916932  
    66Requires at least: 3.6.1
    77Tested up to: 6.2.2
    8 Stable tag: 3.30
     8Stable tag: 3.30.1
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    8484
    8585== Changelog ==
     86= 3.30.1 =
     87* Fix: different fixes.
     88
    8689= 3.30 =
    8790* New: now YooKassa accepts SBP via "smart payment" payment method.
  • leyka/trunk/extensions/support-packages/leyka-class-support-packages-extension.php

    r2644194 r2916932  
    195195        if( !$this->get_available_campaign() ) {
    196196            echo '<div class="error">
    197                 <p>'.sprintf(__("<strong>Leyka warning!</strong> The Support packages Extension currently doesn't have a campaign for donors to make recurring subscriptions. The campaign must be <strong>published</strong>, <strong>not marked as \"finished\"</strong> and, ideally, <strong>marked as persistent</strong> to be available.<br><br>Please see to it that you have at least <strong>one such campaign</strong>, and select the campaign in the <a href='%s'>Support packages settings page</a>.", 'leyka'), admin_url('admin.php?page=leyka_extension_settings&extension='.$this->_id)).'</p>
     197                <p>'.sprintf(__("<strong>Leyka warning!</strong> The Support packages Extension currently doesn't have a campaign for donors to make recurring subscriptions. The campaign must be <strong>published</strong>, <strong>not marked as \"finished\"</strong> and, ideally, <strong>marked as persistent</strong> to be available.<br><br>Please see to it that you have at least <strong>one such campaign</strong>, and select the campaign in the <a href='%s'>Support packages settings page</a>.", 'leyka'), admin_url('admin.php?page=leyka_settings&stage=extensions&extension='.$this->_id)).'</p>
    198198            </div>';
    199199        }
  • leyka/trunk/inc/donations/leyka-class-donation-post.php

    r2916418 r2916932  
    412412            case 'date_label':
    413413
    414                 $date_format = date_i18n(get_option('date_format'));
     414                $date_format = get_option('date_format');
    415415                $donation_timestamp = $this->date_timestamp;
    416416
    417417                $value = apply_filters(
    418418                    'leyka_admin_donation_date',
    419                     date($date_format, $donation_timestamp),
     419                    date_i18n($date_format, $donation_timestamp),
    420420                    $donation_timestamp, $date_format
    421421                );
     
    438438            case 'date_time_label':
    439439
    440                 $date_format = date_i18n(get_option('date_format'));
     440                $date_format = get_option('date_format');
    441441                $time_format = get_option('time_format');
    442442                $donation_timestamp = $this->date_timestamp;
     
    444444                $value = apply_filters(
    445445                    'leyka_admin_donation_date_time',
    446                     date("$date_format, $time_format", $donation_timestamp),
     446                    date_i18n("$date_format, $time_format", $donation_timestamp),
    447447                    $donation_timestamp, $date_format, $time_format
    448448                );
     
    14661466        }
    14671467
    1468         return $last_date_funded ? $last_date_funded : false;
     1468        return $last_date_funded ? : false;
    14691469
    14701470    }
  • leyka/trunk/inc/leyka-settings-rendering-utils.php

    r2791882 r2916932  
    869869            <?php }?>
    870870
    871             <input type="text" id="<?php echo $option_id.'-field';?>" class="leyka-campaign-selector" data-nonce="<?php echo wp_create_nonce('leyka_get_campaigns_list_nonce');?>" placeholder="<?php echo $data['placeholder'];?>" value="<?php echo $campaign_title;?>">
    872             <input class="campaign-id" type="hidden" name="<?php echo $option_id;?>" value="<?php echo $data['value'];?>">
     871            <input type="text" id="<?php echo $option_id.'-field';?>" class="leyka-campaigns-selector " data-nonce="<?php echo wp_create_nonce('leyka_get_campaigns_list_nonce');?>" placeholder="<?php echo $data['placeholder'];?>" value="<?php echo $campaign_title;?>">
     872            <input class="campaign-id leyka-campaigns-select" type="hidden" name="<?php echo $option_id;?>" value="<?php echo $data['value'];?>">
    873873
    874874        </label>
  • leyka/trunk/inc/portlets/leyka-recent-donations.php

    r2916418 r2916932  
    4646            </td>
    4747            <td class="donation-date">
    48                 <div class="date"><?php echo date('Y.m.d', strtotime($donation['date_time']) ) ;?></div>
    49                 <div class="time"><?php echo date('H:i', strtotime($donation['date_time']) ) ;?></div>
     48                <div class="date"><?php echo $donation['date_label'];?></div>
     49                <div class="time"><?php echo $donation['time_label'];?></div>
    5050            </td>
    5151            <td class="donation-amount-status">
     
    7070
    7171                <div class="donor has-thanks">
    72                     <span class="donation-email-status"><?php echo __('Sent', 'leyka');?></span>
    73                     <span class="donation-email-date"><?php echo date(get_option('date_format'), $donation['donor']['email_date']);?></span>
     72                    <span class="donation-email-status"><?php _e('Sent', 'leyka');?></span>
     73                    <span class="donation-email-date">
     74                        <?php echo date_i18n(get_option('date_format'), $donation['donor']['email_date']);?>
     75                    </span>
    7476                </div>
    7577
  • leyka/trunk/inc/portlets/recent-donations/leyka-class-recent-donations-portlet-controller.php

    r2749154 r2916932  
    2727                'donation_type' => ['id' => $donation->type, 'label' => $donation->donation_type_label],
    2828                'donor' => [
    29                     'id' => $donation->donor_id ? $donation->donor_id : 0,
     29                    'id' => $donation->donor_id ? : 0,
    3030                    'name' => $donation->donor_name,
    3131                    'email' => $donation->donor_email,
     
    3333                    'email_date' => $donation->donor_email_date
    3434                ],
    35                 'date_time' => $donation->date_time_label,
     35                'date_label' => $donation->date_label,
     36                'time_label' => $donation->time_label,
     37//                'date_time_label' => $donation->date_time_label,
    3638                'campaign_title' => $donation->campaign_title,
    3739                'campaign_id' => $donation->campaign_id,
  • leyka/trunk/leyka.php

    r2916418 r2916932  
    55 * Plugin URI:  https://leyka.te-st.ru/
    66 * Description: Donations management system for your WP site. For NGOs and social projects.
    7  * Version:     3.30
     7 * Version:     3.30.1
    88 * Author:      Teplitsa of social technologies
    99 * Author URI:  https://te-st.ru
     
    4040// Leyka plugin version:
    4141if( !defined('LEYKA_VERSION') ) {
    42     define('LEYKA_VERSION', '3.30');
     42    define('LEYKA_VERSION', '3.30.1');
    4343}
    4444
Note: See TracChangeset for help on using the changeset viewer.