Plugin Directory

Changeset 3148441


Ignore:
Timestamp:
09/09/2024 06:34:59 AM (16 months ago)
Author:
Tussendoor
Message:

##### 5.1.1

  • Fixed: Visual bug where license looked invalid while it was not.
  • Fixed: TinyMCE modal did not render content.
  • Fixed: JavaScript for some modals was not loaded poperly.
  • Fixed: Older CSS styles not were missing/ not loaded in form generator popup.
Location:
open-rdw-kenteken-voertuiginformatie/trunk
Files:
12 edited

Legend:

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

    r3145385 r3148441  
    4444        add_action('wp_ajax_rdw_save_changes', [$this, 'rdw_save_changes']);
    4545
    46         add_action('wp_enqueue_scripts', [$this, 'add_tinymce_form']);
     46        add_action('init', [$this, 'add_tinymce_form']);
    4747        add_filter('mce_buttons', [$this, 'add_tinymce_button']);
    4848        add_filter('mce_external_plugins', [$this, 'register_tinymce_button']);
     
    225225    {
    226226        $view = new TinyMceDisplay();
    227 
    228227        return $view->render();
    229228    }
     
    234233     * @since    2.0.0
    235234     */
     235    public function enqueue_styles()
     236    {
     237        wp_enqueue_style(self::$plugin_name, plugin_dir_url(__FILE__) . 'css/open-rdw-kenteken-voertuiginformatie-admin.css', []);
     238        // wp_enqueue_style(self::$plugin_name, plugin_dir_url(__FILE__) . 'css/admin/open-rdw-kenteken-voertuiginformatie-admin.css', [], $this->version, 'all');
     239    }
     240
     241    /**
     242     * Register the stylesheets for the admin area.
     243     *
     244     * @since    2.0.0
     245     */
    236246    public function enqueue_scripts()
    237247    {
    238         wp_enqueue_style(self::$plugin_name, plugin_dir_url(__FILE__) . 'js/open-rdw-kenteken-voertuiginformatie-admin.js', []);
     248        wp_enqueue_script(self::$plugin_name, plugin_dir_url(__FILE__) . 'js/open-rdw-kenteken-voertuiginformatie-admin.js', []);
    239249    }
    240250
  • open-rdw-kenteken-voertuiginformatie/trunk/admin/css/open-rdw-kenteken-voertuiginformatie-admin.css

    r3138718 r3148441  
    661661    background-color: gainsboro;
    662662}
     663
     664.rdw-sort-fields.rdw-expand-fields ul {
     665    padding-left: 20px;
     666}
     667
     668.rdw-sort-fields.rdw-expand-fields ul li::marker {
     669    content: "";
     670}
     671
     672#rdw-shortcode-box-fields .rdw-expand-fields ul {
     673    padding: 0;
     674}
     675
     676#rdw-shortcode-box-fields .rdw-expand-fields ul li.ui-sortable {
     677    padding: 0;
     678    background-color: #fff;
     679    border: 2px solid #D6D6D6;
     680    cursor: default;
     681    min-height: 50px;
     682}
     683
     684#rdw-shortcode-box-fields .rdw-expand-fields ul li.ui-sortable a {
     685    font-size: 14px;
     686    width: 100%;
     687    display: block;
     688    cursor: pointer;
     689    line-height: 50px;
     690    padding-left: 15px;
     691}
     692
     693#rdw-shortcode-box-fields .rdw-expand-fields ul li ul {
     694    padding: 0px 15px 15px;
     695}
     696
     697#rdw-shortcode-box-fields .rdw-expand-fields ul li ul li label {
     698    background-color: #FAFAFA;
     699    border: 1px solid #E5E5E5;
     700    padding: 15px;
     701    font-size: 14px;
     702}
     703
     704.rdw-shortcode-box-content #rdw-shortcode-box-footer .generated-shortcode-box {
     705    position: relative;
     706}
     707
     708.rdw-shortcode-box-content #rdw-shortcode-box-footer .generated-shortcode-box .generated-shortcode-text {
     709    height: 45px;
     710    font-size: 14px;
     711    width: 100%;
     712    cursor: copy;
     713    background-color: #fff;
     714    border: 2px solid #d6d6d6;
     715}
     716
     717.rdw-shortcode-box-content #rdw-shortcode-box-footer .generated-shortcode-box .copy-tooltip {
     718    position: absolute;
     719    z-index: 2;
     720    top: 38px;
     721    left: 5px;
     722    display: none;
     723    border-radius: 5px;
     724    background-color: #2271b1;
     725    color: white;
     726    padding: 10px;
     727    font-size: 12px;
     728    font-weight: 300;
     729}
     730
     731#app-container .panel-body .panel-container {
     732    display: flex;
     733}
     734
     735#app-container .panel-body .panel-container p {
     736    font-size: 14px;
     737}
     738
     739#app-container .panel-body .panel-container .panel-content-left {
     740    width: 50%;
     741    margin-right: 50px;
     742    max-width: 800px;
     743}
     744
     745#app-container .panel-body .panel-container .panel-content-right {
     746    max-width: 800px;
     747    margin-left: auto;
     748    width: 50%;
     749}
     750
     751#app-container .panel-body .panel-container .panel-content-right.has-image {
     752    display: flex;
     753    justify-content: flex-end;
     754}
     755
     756#app-container .panel-body #shortcode-doc.panel-container {
     757    justify-content: space-between;
     758
     759}
     760
     761
     762#app-container .panel-body .panel-container #rdw-shortcode-box {
     763    width: 100%;
     764    max-width: 800px;
     765}
     766
     767#app-container .panel-body #extensions .row {
     768    margin: 0 auto;
     769}
  • open-rdw-kenteken-voertuiginformatie/trunk/admin/js/open-rdw-kenteken-voertuiginformatie-admin.js

    r3145910 r3148441  
    33
    44    document.addEventListener('DOMContentLoaded', function () {
    5 
    65        /**
    76         * Enables us to toggle the field categories
  • open-rdw-kenteken-voertuiginformatie/trunk/admin/logs/log.txt

    r3145910 r3148441  
    12122024-09-02 14:25:19 - Open RDW PRO activation..
    13132024-09-02 14:25:19 - Open RDW PRO activated.
     142024-09-05 13:06:44 - Deactivating Open RDW PRO. Byebye!
     152024-09-05 13:17:13 - Open RDW PRO activation..
     162024-09-05 13:17:13 - Open RDW PRO activated.
     172024-09-05 13:58:25 - Deactivating Open RDW PRO. Byebye!
     182024-09-05 14:07:47 - Open RDW PRO activation..
     192024-09-05 14:07:47 - Open RDW PRO activated.
  • open-rdw-kenteken-voertuiginformatie/trunk/admin/partials/ContactForm7Display.php

    r3139133 r3148441  
    22
    33namespace Admin\Partials;
     4
     5use App\Fields;
    46
    57class ContactForm7Display
     
    1113    public function __construct(array $fields, $args = null)
    1214    {
    13         $this->args = wp_parse_args($args, array(
    14             'content' => ''
    15         ));
    16         $this->fields = $fields;
     15        if (isset($args)) {
     16            $args = wp_parse_args($args, array());
     17        }
     18
     19        if (!isset($args['content'])) {
     20            $args['content'] = '';
     21        }
     22
     23        $this->fields = Fields::getFields();
    1724    }
    1825
    1926    public function render()
    2027    {
    21     ?>
     28?>
    2229        <div class="control-box">
    2330            <fieldset>
     
    6269                <br>
    6370                <strong><?= __('Use the shortcode in combination with the following fields:', 'Open RDW kenteken voertuiginformatie') ?></strong>
    64                 <div class="rdw-expand-fields">
     71                <div class="rdw-expand-fields cf-7-row-expand">
    6572                    <ul>
    6673                        <?php $this->renderFieldCategories(); ?>
     
    7077        </div>
    7178
    72         <div class="insert-box">
     79        <div class="insert-box rdw-insert-box">
    7380            <input type="text" name="open_rdw" class="tag code" readonly="readonly" onfocus="this.select()" />
    7481
     
    8188            <p class="description mail-tag"><label for="<?php echo esc_attr($this->args['content'] . '-mailtag'); ?>"><?php echo sprintf(esc_html(__("To use the value input through this field in a mail field, you need to insert the corresponding mail-tag (%s) into the field on the Mail tab.", 'contact-form-7')), '<strong><span class="mail-tag"></span></strong>'); ?><input type="text" class="mail-tag code hidden" readonly="readonly" id="<?php echo esc_attr($this->args['content'] . '-mailtag'); ?>" /></label></p>
    8289        </div>
    83     <?php
     90<?php
    8491    }
    8592
    8693    private function renderFieldCategories()
    8794    {
    88         $categories = array();
     95        $categories = [];
    8996
    9097        foreach ($this->fields as $value) {
     
    95102                echo '<a>' . esc_html($value['category']) . '</a>';
    96103                echo '<ul style="display:none;">';
    97 
    98104                foreach ($this->fields as $key => $subValue) {
    99105                    if (end($categories) == $subValue['category']) {
     
    101107                        echo '<label style="display: block;">';
    102108                        echo esc_html($subValue['label']) . ': ';
    103                         echo '<input type="text" onClick="this.select();" readonly="readonly" value="[text ' . esc_attr($key) . ']" />';
     109                        echo '<input type="text" onClick="this.select();" readonly="readonly" value="[text ' . $key . ']" />';
    104110                        echo '</label>';
    105111                        echo '</li>';
    106112                    }
    107113                }
    108 
    109114                echo '</ul>';
    110115                echo '</li>';
  • open-rdw-kenteken-voertuiginformatie/trunk/admin/partials/TinyMceDisplay.php

    r3145910 r3148441  
    5757                echo '<input type="checkbox">';
    5858                echo '<a>' . $value['category'] . '</a>';
    59                 echo '<ul style="display:none;">';
    60                 foreach ($this->fields as $key => $field) {
    61                     if ($field['category'] == $value['category']) {
    62                         echo '<li class="ui-sortable-handle">';
    63                         echo '<label style="display: block;">';
    64                         echo '<input type="checkbox" class="checkbox" id="' . $key . '" name="' . $key . '" value="' . $key . '">' . $field['label'];
    65                         echo '</label>';
    66                         echo '</li>';
    67                     }
    68                 }
    69                 echo '</ul>';
     59                    echo '<ul style="display:none;">';
     60                        foreach ($this->fields as $key => $field) {
     61                            if ($field['category'] == $value['category']) {
     62                                echo '<li class="ui-sortable-handle">';
     63                                    echo '<label style="display: block;">';
     64                                        echo '<input type="checkbox" class="checkbox" id="' . $key . '" name="' . $key . '" value="' . $key . '">' . $field['label'];
     65                                    echo '</label>';
     66                                echo '</li>';
     67                            }
     68                        }
     69                    echo '</ul>';
    7070                echo '</li>';
    7171            }
  • open-rdw-kenteken-voertuiginformatie/trunk/app/Fields.php

    r3138718 r3148441  
    141141    {
    142142        self::init();
     143        self::$fields = apply_filters('open_rdw_vehicle_plate_information_fields', self::$fields);
    143144        return self::$fields;
    144145    }
  • open-rdw-kenteken-voertuiginformatie/trunk/app/Http/Kernel.php

    r3145326 r3148441  
    165165        $plugin_admin = new AdminDashboard(self::getPluginName(), self::getPluginVersion());
    166166
     167        $this->loader->add_action('admin_enqueue_scripts', $plugin_admin, 'enqueue_styles');
    167168        $this->loader->add_action('admin_enqueue_scripts', $plugin_admin, 'enqueue_scripts');
    168169
  • open-rdw-kenteken-voertuiginformatie/trunk/config/plugin.php

    r3145953 r3148441  
    2727        'log_source'            => 'tussendoor-rdw',
    2828        'log_context'           => 'tsdRdwContext',
    29         'version'               => '5.1.0.1',
     29        'version'               => '5.1.1',
    3030        'php_minimum'           => '8.0',
    3131        'php_minimum_id'        => 80000,
  • open-rdw-kenteken-voertuiginformatie/trunk/plugin-gratis-open-rdw-kenteken-voertuiginformatie.php

    r3145953 r3148441  
    1212 * Author URI: https://www.tussendoor.nl
    1313 * Text Domain: tussendoor-rdw
    14  * Version: 5.1.0.1
     14 * Version: 5.1.1
    1515 * Tested up to: 6.6.1
    1616 * Requires at least: 6.2
     
    2828define('ORK_PLUGIN_PATH', plugins_url('tussendoor-rdw'));
    2929define('ORK_PLUGIN', __DIR__);
    30 define('ORK_VERSION', '5.1.0.1');
     30define('ORK_VERSION', '5.1.1');
    3131
    3232/**
  • open-rdw-kenteken-voertuiginformatie/trunk/readme.txt

    r3145953 r3148441  
    22Contributors: Tussendoor
    33Tags: tussendoor, rdw, kenteken, voertuig, kentekeninformatie
    4 Stable tag: 5.1.0.1
     4Stable tag: 5.1.1
    55Tested up to: 6.6.1
    66Requires at least: 6.2
     
    3333*   GravityForms;
    3434*   Widgets;
    35 *   Classic Editor (TinyMCE);
     35*   Classic WordPress Editor (TinyMCE) (No active support);
     36*   Widgets (No active support);
    3637*   Shortcodes via een eenvoudig selectie menu in de WYSIWYG editor.
    3738
     
    4445
    4546### Changelog
     47
     48##### 5.1.1
     49* Fixed: Visual bug where license looked invalid while it was not.
     50* Fixed: TinyMCE modal did not render content.
     51* Fixed: JavaScript for some modals was not loaded poperly.
     52* Fixed: Older CSS styles not were missing/ not loaded in form generator popup.
    4653
    4754##### 5.1.0.1
  • open-rdw-kenteken-voertuiginformatie/trunk/views/dashboard/dashboard.info.php

    r3145910 r3148441  
    8989
    9090                    <?php if (get_option('rdw_tsd_license')) : ?>
    91                         <i class="ms-1 <?php echo get_option('rdw_cpt_license_status') === 'valid' ? 'fa-solid fa-circle-check text-success' : 'fas fa-exclamation-circle text-danger'; ?>" title="<?php echo get_option('rdw_cpt_license_status') === 'valid' ? esc_attr__('Geldig', 'tussendoor-rdw') : esc_attr__('Ongeldig', 'tussendoor-rdw'); ?>"></i>
     91                        <i class="ms-1 <?php echo get_option('tsd_rdw_license_status') === 'valid' ?
     92                            'fa-solid fa-circle-check text-success' :
     93                            'fas fa-exclamation-circle text-danger'; ?>"
     94                            title="<?php echo get_option('tsd_rdw_license_status') === 'valid' ?
     95                            esc_attr__('Geldig', 'tussendoor-rdw') :
     96                            esc_attr__('Ongeldig', 'tussendoor-rdw'); ?>">
     97                        </i>
    9298                    <?php endif; ?>
    9399                </span>
     
    113119                    <?php esc_html_e('Tussendoor API Token', 'tussendoor-rdw'); ?>
    114120                    <small>
    115                         <i class="fa fa-info-circle ms-2 text-info" data-bs-toggle="tooltip" data-bs-custom-class="tussendoor-tooltip tussendoor-info" title="<?php esc_attr_e('Indien het ophalen van kentekens niet werkt kun je dit proberen. Anders neem contact op met Tussendoor B.V.', 'tussendoor-rdw'); ?>"></i>
     121                        <i class="fa fa-info-circle ms-2 text-info"
     122                        data-bs-toggle="tooltip"
     123                        data-bs-custom-class="tussendoor-tooltip tussendoor-info"
     124                        title="<?php esc_attr_e(
     125                                'Indien het ophalen van kentekens niet werkt kun je dit proberen.
     126                                Neem anders contact op met Tussendoor B.V.', 'tussendoor-rdw'
     127                            ); ?>">
     128                        </i>
    116129                    </small>
    117130                </label>
    118131            </div>
    119132            <p id="license" class="mb-0 ms-2">
    120                 <span type="button" class="btn btn-sm btn-primary js--refresh-api-token"><i class="me-1 fa-solid fa-rotate"></i> <?php esc_html_e('Vernieuwen', 'tussendoor-rdw'); ?></span>
     133                <span type="button"
     134                    class="btn btn-sm btn-primary js--refresh-api-token">
     135                    <i class="me-1 fa-solid fa-rotate"></i>
     136                    <?php esc_html_e('Vernieuwen', 'tussendoor-rdw'); ?>
     137                </span>
    121138            </p>
    122139        </div>
Note: See TracChangeset for help on using the changeset viewer.