Changeset 3148441
- Timestamp:
- 09/09/2024 06:34:59 AM (16 months ago)
- Location:
- open-rdw-kenteken-voertuiginformatie/trunk
- Files:
-
- 12 edited
-
admin/AdminDashboard.php (modified) (3 diffs)
-
admin/css/open-rdw-kenteken-voertuiginformatie-admin.css (modified) (1 diff)
-
admin/js/open-rdw-kenteken-voertuiginformatie-admin.js (modified) (1 diff)
-
admin/logs/log.txt (modified) (1 diff)
-
admin/partials/ContactForm7Display.php (modified) (7 diffs)
-
admin/partials/TinyMceDisplay.php (modified) (1 diff)
-
app/Fields.php (modified) (1 diff)
-
app/Http/Kernel.php (modified) (1 diff)
-
config/plugin.php (modified) (1 diff)
-
plugin-gratis-open-rdw-kenteken-voertuiginformatie.php (modified) (2 diffs)
-
readme.txt (modified) (3 diffs)
-
views/dashboard/dashboard.info.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
open-rdw-kenteken-voertuiginformatie/trunk/admin/AdminDashboard.php
r3145385 r3148441 44 44 add_action('wp_ajax_rdw_save_changes', [$this, 'rdw_save_changes']); 45 45 46 add_action(' wp_enqueue_scripts', [$this, 'add_tinymce_form']);46 add_action('init', [$this, 'add_tinymce_form']); 47 47 add_filter('mce_buttons', [$this, 'add_tinymce_button']); 48 48 add_filter('mce_external_plugins', [$this, 'register_tinymce_button']); … … 225 225 { 226 226 $view = new TinyMceDisplay(); 227 228 227 return $view->render(); 229 228 } … … 234 233 * @since 2.0.0 235 234 */ 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 */ 236 246 public function enqueue_scripts() 237 247 { 238 wp_enqueue_s tyle(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', []); 239 249 } 240 250 -
open-rdw-kenteken-voertuiginformatie/trunk/admin/css/open-rdw-kenteken-voertuiginformatie-admin.css
r3138718 r3148441 661 661 background-color: gainsboro; 662 662 } 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 3 3 4 4 document.addEventListener('DOMContentLoaded', function () { 5 6 5 /** 7 6 * Enables us to toggle the field categories -
open-rdw-kenteken-voertuiginformatie/trunk/admin/logs/log.txt
r3145910 r3148441 12 12 2024-09-02 14:25:19 - Open RDW PRO activation.. 13 13 2024-09-02 14:25:19 - Open RDW PRO activated. 14 2024-09-05 13:06:44 - Deactivating Open RDW PRO. Byebye! 15 2024-09-05 13:17:13 - Open RDW PRO activation.. 16 2024-09-05 13:17:13 - Open RDW PRO activated. 17 2024-09-05 13:58:25 - Deactivating Open RDW PRO. Byebye! 18 2024-09-05 14:07:47 - Open RDW PRO activation.. 19 2024-09-05 14:07:47 - Open RDW PRO activated. -
open-rdw-kenteken-voertuiginformatie/trunk/admin/partials/ContactForm7Display.php
r3139133 r3148441 2 2 3 3 namespace Admin\Partials; 4 5 use App\Fields; 4 6 5 7 class ContactForm7Display … … 11 13 public function __construct(array $fields, $args = null) 12 14 { 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(); 17 24 } 18 25 19 26 public function render() 20 27 { 21 ?>28 ?> 22 29 <div class="control-box"> 23 30 <fieldset> … … 62 69 <br> 63 70 <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"> 65 72 <ul> 66 73 <?php $this->renderFieldCategories(); ?> … … 70 77 </div> 71 78 72 <div class="insert-box ">79 <div class="insert-box rdw-insert-box"> 73 80 <input type="text" name="open_rdw" class="tag code" readonly="readonly" onfocus="this.select()" /> 74 81 … … 81 88 <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> 82 89 </div> 83 <?php90 <?php 84 91 } 85 92 86 93 private function renderFieldCategories() 87 94 { 88 $categories = array();95 $categories = []; 89 96 90 97 foreach ($this->fields as $value) { … … 95 102 echo '<a>' . esc_html($value['category']) . '</a>'; 96 103 echo '<ul style="display:none;">'; 97 98 104 foreach ($this->fields as $key => $subValue) { 99 105 if (end($categories) == $subValue['category']) { … … 101 107 echo '<label style="display: block;">'; 102 108 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 . ']" />'; 104 110 echo '</label>'; 105 111 echo '</li>'; 106 112 } 107 113 } 108 109 114 echo '</ul>'; 110 115 echo '</li>'; -
open-rdw-kenteken-voertuiginformatie/trunk/admin/partials/TinyMceDisplay.php
r3145910 r3148441 57 57 echo '<input type="checkbox">'; 58 58 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>'; 70 70 echo '</li>'; 71 71 } -
open-rdw-kenteken-voertuiginformatie/trunk/app/Fields.php
r3138718 r3148441 141 141 { 142 142 self::init(); 143 self::$fields = apply_filters('open_rdw_vehicle_plate_information_fields', self::$fields); 143 144 return self::$fields; 144 145 } -
open-rdw-kenteken-voertuiginformatie/trunk/app/Http/Kernel.php
r3145326 r3148441 165 165 $plugin_admin = new AdminDashboard(self::getPluginName(), self::getPluginVersion()); 166 166 167 $this->loader->add_action('admin_enqueue_scripts', $plugin_admin, 'enqueue_styles'); 167 168 $this->loader->add_action('admin_enqueue_scripts', $plugin_admin, 'enqueue_scripts'); 168 169 -
open-rdw-kenteken-voertuiginformatie/trunk/config/plugin.php
r3145953 r3148441 27 27 'log_source' => 'tussendoor-rdw', 28 28 'log_context' => 'tsdRdwContext', 29 'version' => '5.1. 0.1',29 'version' => '5.1.1', 30 30 'php_minimum' => '8.0', 31 31 'php_minimum_id' => 80000, -
open-rdw-kenteken-voertuiginformatie/trunk/plugin-gratis-open-rdw-kenteken-voertuiginformatie.php
r3145953 r3148441 12 12 * Author URI: https://www.tussendoor.nl 13 13 * Text Domain: tussendoor-rdw 14 * Version: 5.1. 0.114 * Version: 5.1.1 15 15 * Tested up to: 6.6.1 16 16 * Requires at least: 6.2 … … 28 28 define('ORK_PLUGIN_PATH', plugins_url('tussendoor-rdw')); 29 29 define('ORK_PLUGIN', __DIR__); 30 define('ORK_VERSION', '5.1. 0.1');30 define('ORK_VERSION', '5.1.1'); 31 31 32 32 /** -
open-rdw-kenteken-voertuiginformatie/trunk/readme.txt
r3145953 r3148441 2 2 Contributors: Tussendoor 3 3 Tags: tussendoor, rdw, kenteken, voertuig, kentekeninformatie 4 Stable tag: 5.1. 0.14 Stable tag: 5.1.1 5 5 Tested up to: 6.6.1 6 6 Requires at least: 6.2 … … 33 33 * GravityForms; 34 34 * Widgets; 35 * Classic Editor (TinyMCE); 35 * Classic WordPress Editor (TinyMCE) (No active support); 36 * Widgets (No active support); 36 37 * Shortcodes via een eenvoudig selectie menu in de WYSIWYG editor. 37 38 … … 44 45 45 46 ### 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. 46 53 47 54 ##### 5.1.0.1 -
open-rdw-kenteken-voertuiginformatie/trunk/views/dashboard/dashboard.info.php
r3145910 r3148441 89 89 90 90 <?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> 92 98 <?php endif; ?> 93 99 </span> … … 113 119 <?php esc_html_e('Tussendoor API Token', 'tussendoor-rdw'); ?> 114 120 <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> 116 129 </small> 117 130 </label> 118 131 </div> 119 132 <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> 121 138 </p> 122 139 </div>
Note: See TracChangeset
for help on using the changeset viewer.