Plugin Directory

Changeset 3137611


Ignore:
Timestamp:
08/19/2024 12:32:19 PM (20 months ago)
Author:
Tussendoor
Message:

##### 5.0.4

  • Updated: Cleaned up files.
  • Fixed: Dutch translations.

##### 5.0.3.1

  • Fixed: Small namespace issue.

##### 5.0.3

  • Updated: Controllers to handle data differently on API V2 new endpoints.

##### 5.0.2

  • Fixed: Moved plugin config to make sure all assets are loaded properly over HTTPS.

##### 5.0.1

  • Added: V2 API endpoints for data handeling.
  • Fixed: Gracefully handle errors on Statisics tab.

##### 5.0.0

  • Updated: We put our time and effort in to bringing the plugin into new standards of programming.
  • Updated: We have rewriten the core and make sure to maintain backwards compatibility.
Location:
open-rdw-kenteken-voertuiginformatie/tags/5.0.4
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • open-rdw-kenteken-voertuiginformatie/tags/5.0.4/admin/AdminDashboard.php

    r3137471 r3137611  
    1818use Admin\Partials\TinyMceDisplay;
    1919use App\MainConfig;
     20use Carbon\Carbon;
    2021
    2122class AdminDashboard extends Kernel
     
    3940    public function __construct()
    4041    {
    41         $this->initializeUpdateChecker();
    42 
    43         // Save our Ajax data
    4442        add_action('wp_ajax_rdw_save_changes', [$this, 'rdw_save_changes']);
    4543
     
    6462    }
    6563
    66     public function initializeUpdateChecker()
    67     {
    68         $reflector = new \ReflectionClass(get_parent_class($this));
    69         $plugin_file = $reflector->getFileName();
    70         $base_url = 'https://tussendoor.nl/get-the-request/wp-updates/9c6346eea1c1ce749e3bff?id=24';
    71 
    72         UpdateChecker::init(
    73             $base_url,
    74             $plugin_file,
    75             ORK_PLUGIN_TAG,
    76             get_option('puc_license_rdw')
    77         );
    78     }
    79 
    8064    /**
    8165     * Function that adds a dismiss option so we don't nag our users with admin notices.
     
    8569    public function admin_notice_dismiss()
    8670    {
    87         update_option('open-rdw-notice-dismissed', strtotime("+1 day"));
     71        $now = Carbon::now();
     72        update_option('open-rdw-notice-dismissed', $now->addDay()->toDateString());
    8873    }
    8974
     
    126111    public function rdw_lisence_check($license_code = '', $force = false)
    127112    {
    128         // Set action to license check
    129113        UpdateChecker::license($license_code);
    130114        $info = UpdateChecker::getLicenseInfo($force);
  • open-rdw-kenteken-voertuiginformatie/tags/5.0.4/admin/logs/log.txt

    r3137471 r3137611  
    1 2024-08-12 08:07:41 - Deactivating Open RDW PRO. Byebye!
    2 2024-08-12 11:18:01 - Open RDW PRO activation..
    3 2024-08-12 11:18:01 - Open RDW PRO activated.
  • open-rdw-kenteken-voertuiginformatie/tags/5.0.4/app/Includes/Widget.php

    r3137471 r3137611  
    1515use App\Api;
    1616use App\Fields;
    17 use Utilities\UpdateChecker;
    1817
    1918class Widget extends \WP_Widget
  • open-rdw-kenteken-voertuiginformatie/tags/5.0.4/config/plugin.php

    r3137471 r3137611  
    5454        'textversion'           => '2.0.0',
    5555        'version'               => 'v2',
    56         'url'                   => 'https://tussendoor.test',
     56        'url'                   => 'https://tussendoor.nl',
    5757        'timezone'              => 'Europe/Amsterdam',
    5858        'endpoints' => [
  • open-rdw-kenteken-voertuiginformatie/tags/5.0.4/public/PublicDashboard.php

    r3137471 r3137611  
    66use App\Fields;
    77use App\Http\Kernel;
    8 use Utilities\UpdateChecker;
    98use Public\Partials\KentekenWidgetView;
    109
     
    1817 * @subpackage open_rdw_kenteken_voertuiginformatie/public
    1918 */
    20 
    21 // use Tussendoor\Updates\UpdateChecker;
    2219
    2320class PublicDashboard extends Kernel
  • open-rdw-kenteken-voertuiginformatie/tags/5.0.4/views/dashboard/dashboard.home.php

    r3137471 r3137611  
    11<?php
    22
     3use Carbon\Carbon;
    34use App\MainConfig;
    45
     
    1011);
    1112
    12 $dismissTime = strtotime(get_option('open-rdw-notice-dismissed'));
    13 $currentTime = strtotime("now");
     13$dismissTime = get_option('open-rdw-notice-dismissed');
     14$currentTime = Carbon::now()->toDateString();
    1415
    15 if (($dismissTime === '') || ($currentTime > $dismissTime)) : ?>
     16if (($dismissTime === '') || (Carbon::parse($currentTime)->greaterThan($dismissTime))) : ?>
    1617    <script>
    1718        document.addEventListener('DOMContentLoaded', function() {
     
    1920            const parsedUrl = new URL(url);
    2021            const queryParams = new URLSearchParams(parsedUrl.search);
    21             if ((queryParams.get('tab') === 'home-tab') || (queryParams.get('page') === 'tsd-rdw')) {
     22            if ((queryParams.get('tab') === 'home-tab') && (queryParams.get('page') === 'tsd-rdw')) {
    2223                var modalElement = document.getElementById('staticBackdrop');
    2324                if (modalElement) {
Note: See TracChangeset for help on using the changeset viewer.