Changeset 3486037
- Timestamp:
- 03/18/2026 09:11:16 PM (2 weeks ago)
- Location:
- parksystem
- Files:
-
- 6 edited
- 8 copied
-
tags/1.0.2 (copied) (copied from parksystem/trunk)
-
tags/1.0.2/languages (copied) (copied from parksystem/trunk/languages)
-
tags/1.0.2/languages/parksystem-pl_PL.mo (copied) (copied from parksystem/trunk/languages/parksystem-pl_PL.mo)
-
tags/1.0.2/languages/parksystem-pl_PL.po (copied) (copied from parksystem/trunk/languages/parksystem-pl_PL.po) (4 diffs)
-
tags/1.0.2/languages/parksystem.pot (modified) (3 diffs)
-
tags/1.0.2/package.json (copied) (copied from parksystem/trunk/package.json)
-
tags/1.0.2/parksystem.php (copied) (copied from parksystem/trunk/parksystem.php) (15 diffs)
-
tags/1.0.2/readme.txt (copied) (copied from parksystem/trunk/readme.txt) (3 diffs)
-
tags/1.0.2/templates (copied) (copied from parksystem/trunk/templates)
-
trunk/languages/parksystem-pl_PL.mo (modified) (previous)
-
trunk/languages/parksystem-pl_PL.po (modified) (4 diffs)
-
trunk/languages/parksystem.pot (modified) (3 diffs)
-
trunk/parksystem.php (modified) (15 diffs)
-
trunk/readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
parksystem/tags/1.0.2/languages/parksystem-pl_PL.po
r3463514 r3486037 14 14 "X-Generator: Poedit\n" 15 15 16 #: parksystem.php: 19517 #: parksystem.php:20 118 #: parksystem.php: 42216 #: parksystem.php:200 17 #: parksystem.php:206 18 #: parksystem.php:523 19 19 msgid "ParkSystem Settings" 20 20 msgstr "Ustawienia ParkSystem" 21 21 22 #: parksystem.php:20 123 #: parksystem.php: 65822 #: parksystem.php:206 23 #: parksystem.php:825 24 24 msgid "Settings" 25 25 msgstr "Ustawienia" 26 26 27 #: parksystem.php:2 0727 #: parksystem.php:212 28 28 msgid "Reservation Page" 29 29 msgstr "Strona Rezerwacji" 30 30 31 #: parksystem.php: 40831 #: parksystem.php:502 32 32 msgid "Settings saved!" 33 33 msgstr "Ustawienia zapisane!" 34 34 35 #: parksystem.php: 42835 #: parksystem.php:529 36 36 msgid "Parking Token" 37 37 msgstr "Token Parkingu" 38 38 39 #: parksystem.php: 43239 #: parksystem.php:533 40 40 msgid "Parking token displayed on reservation pages" 41 41 msgstr "Token parkingu wyświetlany na stronach rezerwacji" 42 42 43 #: parksystem.php: 43744 msgid " Body Background Color"45 msgstr "Kolor tła widget ów"46 47 #: parksystem.php: 44143 #: parksystem.php:550 44 msgid "Widget Body Background Color" 45 msgstr "Kolor tła widgetu rezerwacji" 46 47 #: parksystem.php:554 48 48 msgid "Body background color for the iframe widget" 49 msgstr "Kolor tła widgetów"50 51 #: parksystem.php: 44649 msgstr "Kolor tła strony dla widżetu iframe" 50 51 #: parksystem.php:559 52 52 msgid "Text Color" 53 53 msgstr "Kolor tekstu" 54 54 55 #: parksystem.php: 45055 #: parksystem.php:563 56 56 msgid "Text color for the iframe widget" 57 msgstr "Kolor tekstu widgetów"58 59 #: parksystem.php: 45557 msgstr "Kolor tekstu dla widżetu iframe" 58 59 #: parksystem.php:568 60 60 msgid "Input Background Color" 61 61 msgstr "Kolor tła pól tekstowych" 62 62 63 #: parksystem.php: 45963 #: parksystem.php:572 64 64 msgid "Background color for input fields" 65 65 msgstr "Kolor tła pól tekstowych" 66 66 67 #: parksystem.php: 46467 #: parksystem.php:577 68 68 msgid "Label Text Color" 69 69 msgstr "Kolor tekstu etykiet" 70 70 71 #: parksystem.php: 46871 #: parksystem.php:581 72 72 msgid "Text color for form labels" 73 73 msgstr "Kolor tekstu etykiet pól formularza" 74 74 75 #: parksystem.php: 47375 #: parksystem.php:586 76 76 msgid "Card Background Color" 77 77 msgstr "Kolor tła kart" 78 78 79 #: parksystem.php: 47779 #: parksystem.php:590 80 80 msgid "Background color for card elements" 81 msgstr "Kolor tła kart"82 83 #: parksystem.php: 48281 msgstr "Kolor tła elementów kart" 82 83 #: parksystem.php:595 84 84 msgid "Input Hover Background Color" 85 85 msgstr "Kolor tła pól tekstowych przy najechaniu" 86 86 87 #: parksystem.php: 48687 #: parksystem.php:599 88 88 msgid "Background color for input fields on hover" 89 89 msgstr "Kolor tła pól tekstowych przy najechaniu myszką" 90 90 91 #: parksystem.php:528 91 #: parksystem.php:538 92 msgid "Use new reservation form" 93 msgstr "Użyj nowego formularza rezerwacji" 94 95 #: parksystem.php:543 96 msgid "Use new reservation form (order2)" 97 msgstr "Użyj nowego formularza rezerwacji (order2)" 98 99 #: parksystem.php:545 100 msgid "Enable the new reservation form with additional styling options" 101 msgstr "Włącz nowy formularz rezerwacji z dodatkowymi opcjami stylowania" 102 103 #: parksystem.php:604 104 msgid "Secondary Text Color" 105 msgstr "Kolor tekstu drugorzędnego" 106 107 #: parksystem.php:608 108 msgid "Secondary text color for the iframe widget" 109 msgstr "Kolor tekstu drugorzędnego dla widżetu iframe" 110 111 #: parksystem.php:613 112 msgid "Card Text Color" 113 msgstr "Kolor tekstu kart" 114 115 #: parksystem.php:617 116 msgid "Text color for card body content" 117 msgstr "Kolor tekstu treści kart" 118 119 #: parksystem.php:622 120 msgid "Card Header Text Color" 121 msgstr "Kolor tekstu nagłówków kart" 122 123 #: parksystem.php:626 124 msgid "Text color for card headers" 125 msgstr "Kolor tekstu nagłówków kart" 126 127 #: parksystem.php:631 128 msgid "Active Color" 129 msgstr "Kolor aktywny" 130 131 #: parksystem.php:635 132 msgid "Primary/active button color" 133 msgstr "Kolor przycisków głównych/aktywnych" 134 135 #: parksystem.php:640 136 msgid "Active Text Color" 137 msgstr "Kolor tekstu na przyciskach aktywnych" 138 139 #: parksystem.php:644 140 msgid "Text color on primary buttons" 141 msgstr "Kolor tekstu na przyciskach głównych" 142 143 #: parksystem.php:625 144 msgid "Input Text Color" 145 msgstr "Kolor tekstu pól tekstowych" 146 147 #: parksystem.php:629 148 msgid "Text color inside input fields" 149 msgstr "Kolor tekstu wewnątrz pól tekstowych" 150 151 #: parksystem.php:634 152 msgid "Input Border Color" 153 msgstr "Kolor obramowania pól tekstowych" 154 155 #: parksystem.php:638 156 msgid "Border color for input fields" 157 msgstr "Kolor obramowania pól tekstowych" 158 159 #: parksystem.php:660 160 msgid "Card Border Color" 161 msgstr "Kolor obramowania kart" 162 163 #: parksystem.php:664 164 msgid "Border color for card elements" 165 msgstr "Kolor obramowania elementów kart" 166 167 #: parksystem.php:681 168 msgid "Error Color" 169 msgstr "Kolor błędów" 170 171 #: parksystem.php:685 172 msgid "Color for error labels and messages" 173 msgstr "Kolor etykiet błędów i komunikatów" 174 175 #: parksystem.php:695 92 176 msgid "Redirecting..." 93 177 msgstr "Przekierowywanie..." 94 178 95 #: parksystem.php: 528179 #: parksystem.php:695 96 180 msgid "Click here if you are not redirected." 97 181 msgstr "Kliknij tutaj, jeśli nie nastąpiło przekierowanie." … … 101 185 msgstr "Domyślny Szablon" 102 186 103 #: parksystem.php: 491187 #: parksystem.php:658 104 188 msgid "Page Template" 105 189 msgstr "Szablon Strony" 106 190 107 #: parksystem.php: 502191 #: parksystem.php:669 108 192 msgid "Page template to use for ParkSystem widget pages (/rezerwuj/ and /potwierdzenie/)" 109 193 msgstr "Szablon strony do użycia dla stron widgetów ParkSystem (/rezerwuj/ i /potwierdzenie/)" … … 111 195 #. Plugin Name of the plugin 112 196 #: parksystem.php 113 #: parksystem.php: 195197 #: parksystem.php:200 114 198 msgid "ParkSystem" 115 199 msgstr "ParkSystem" … … 130 214 msgstr "https://parksystem.online" 131 215 132 #: parksystem.php:21 3216 #: parksystem.php:218 133 217 msgid "Widgets" 134 218 msgstr "Widżety" 135 219 136 #: parksystem.php: 546220 #: parksystem.php:713 137 221 msgid "Pricing Widget" 138 222 msgstr "Widżet Cennika" 139 223 140 #: parksystem.php: 548224 #: parksystem.php:715 141 225 msgid "Display pricing table with optional parameters: min_days, max_days, date, iframe_id" 142 226 msgstr "Wyświetl tabelę cenową z opcjonalnymi parametrami: min_days, max_days, date, iframe_id" 143 227 144 #: parksystem.php: 552228 #: parksystem.php:719 145 229 msgid "Reservation Form Widget" 146 230 msgstr "Widżet Formularza Rezerwacji" 147 231 148 #: parksystem.php: 554232 #: parksystem.php:721 149 233 msgid "Display reservation form with optional parameter: iframe_id" 150 234 msgstr "Wyświetl formularz rezerwacji z opcjonalnym parametrem: iframe_id" 151 235 152 #: parksystem.php: 560236 #: parksystem.php:727 153 237 msgid "ParkSystem Widgets" 154 238 msgstr "Widżety ParkSystem" 155 239 156 #: parksystem.php: 561240 #: parksystem.php:728 157 241 msgid "Copy the widget codes below and paste them into your posts, pages, or widgets." 158 242 msgstr "Skopiuj kody widżetów poniżej i wklej je do swoich wpisów, stron lub widżetów." 159 243 160 #: parksystem.php: 570244 #: parksystem.php:737 161 245 msgid "Basic Shortcode:" 162 246 msgstr "Podstawowy Kod Krótki:" 163 247 164 #: parksystem.php: 586165 #: parksystem.php: 610248 #: parksystem.php:753 249 #: parksystem.php:777 166 250 msgid "Copy" 167 251 msgstr "Kopiuj" 168 252 169 #: parksystem.php: 594253 #: parksystem.php:761 170 254 msgid "Example with Parameters:" 171 255 msgstr "Przykład z Parametrami:" 172 256 173 #: parksystem.php: 634257 #: parksystem.php:801 174 258 msgid "Copied!" 175 259 msgstr "Skopiowano!" 176 260 177 #: parksystem.php: 643261 #: parksystem.php:810 178 262 msgid "Failed to copy. Please select and copy manually." 179 263 msgstr "Nie udało się skopiować. Proszę zaznaczyć i skopiować ręcznie." 180 264 181 #: parksystem.php: 682182 #: parksystem.php: 722183 #: parksystem.php: 728265 #: parksystem.php:849 266 #: parksystem.php:893 267 #: parksystem.php:899 184 268 msgid "Parking token is not configured. Please set it in plugin settings." 185 269 msgstr "Token parkingu nie jest skonfigurowany. Proszę ustawić go w ustawieniach wtyczki." 186 270 187 #: templates/block-renderer.php: 41271 #: templates/block-renderer.php:62 188 272 msgid "Template not found." 189 273 msgstr "Szablon nie znaleziony." -
parksystem/tags/1.0.2/languages/parksystem.pot
r3463491 r3486037 10 10 "Content-Type: text/plain; charset=UTF-8\n" 11 11 "Content-Transfer-Encoding: 8bit\n" 12 "POT-Creation-Date: 2026-0 2-10T15:18:48+00:00\n"12 "POT-Creation-Date: 2026-03-17T17:43:02+00:00\n" 13 13 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 14 14 "X-Generator: WP-CLI 2.12.0\n" … … 17 17 #. Plugin Name of the plugin 18 18 #: parksystem.php 19 #: parksystem.php: 19519 #: parksystem.php:200 20 20 msgid "ParkSystem" 21 21 msgstr "" … … 40 40 msgstr "" 41 41 42 #: parksystem.php: 19543 #: parksystem.php:20 144 #: parksystem.php: 42242 #: parksystem.php:200 43 #: parksystem.php:206 44 #: parksystem.php:523 45 45 msgid "ParkSystem Settings" 46 46 msgstr "" 47 47 48 #: parksystem.php:201 48 #: parksystem.php:206 49 #: parksystem.php:825 50 msgid "Settings" 51 msgstr "" 52 53 #: parksystem.php:212 54 msgid "Reservation Page" 55 msgstr "" 56 57 #: parksystem.php:218 58 msgid "Widgets" 59 msgstr "" 60 61 #: parksystem.php:502 62 msgid "Settings saved!" 63 msgstr "" 64 65 #: parksystem.php:529 66 msgid "Parking Token" 67 msgstr "" 68 69 #: parksystem.php:533 70 msgid "Parking token displayed on reservation pages" 71 msgstr "" 72 73 #: parksystem.php:538 74 msgid "Use new reservation form" 75 msgstr "" 76 77 #: parksystem.php:543 78 msgid "Use new reservation form (order2)" 79 msgstr "" 80 81 #: parksystem.php:545 82 msgid "Enable the new reservation form with additional styling options" 83 msgstr "" 84 85 #: parksystem.php:550 86 msgid "Widget Body Background Color" 87 msgstr "" 88 89 #: parksystem.php:554 90 msgid "Body background color for the iframe widget" 91 msgstr "" 92 93 #: parksystem.php:559 94 msgid "Text Color" 95 msgstr "" 96 97 #: parksystem.php:563 98 msgid "Text color for the iframe widget" 99 msgstr "" 100 101 #: parksystem.php:568 102 msgid "Input Background Color" 103 msgstr "" 104 105 #: parksystem.php:572 106 msgid "Background color for input fields" 107 msgstr "" 108 109 #: parksystem.php:577 110 msgid "Label Text Color" 111 msgstr "" 112 113 #: parksystem.php:581 114 msgid "Text color for form labels" 115 msgstr "" 116 117 #: parksystem.php:586 118 msgid "Card Background Color" 119 msgstr "" 120 121 #: parksystem.php:590 122 msgid "Background color for card elements" 123 msgstr "" 124 125 #: parksystem.php:595 126 msgid "Input Hover Background Color" 127 msgstr "" 128 129 #: parksystem.php:599 130 msgid "Background color for input fields on hover" 131 msgstr "" 132 133 #: parksystem.php:604 134 msgid "Secondary Text Color" 135 msgstr "" 136 137 #: parksystem.php:608 138 msgid "Secondary text color for the iframe widget" 139 msgstr "" 140 141 #: parksystem.php:613 142 msgid "Card Text Color" 143 msgstr "" 144 145 #: parksystem.php:617 146 msgid "Text color for card body content" 147 msgstr "" 148 149 #: parksystem.php:622 150 msgid "Card Header Text Color" 151 msgstr "" 152 153 #: parksystem.php:626 154 msgid "Text color for card headers" 155 msgstr "" 156 157 #: parksystem.php:631 158 msgid "Active Color" 159 msgstr "" 160 161 #: parksystem.php:635 162 msgid "Primary/active button color" 163 msgstr "" 164 165 #: parksystem.php:640 166 msgid "Active Text Color" 167 msgstr "" 168 169 #: parksystem.php:644 170 msgid "Text color on primary buttons" 171 msgstr "" 172 173 #: parksystem.php:625 174 msgid "Input Text Color" 175 msgstr "" 176 177 #: parksystem.php:629 178 msgid "Text color inside input fields" 179 msgstr "" 180 181 #: parksystem.php:634 182 msgid "Input Border Color" 183 msgstr "" 184 185 #: parksystem.php:638 186 msgid "Border color for input fields" 187 msgstr "" 188 189 #: parksystem.php:660 190 msgid "Card Border Color" 191 msgstr "" 192 193 #: parksystem.php:664 194 msgid "Border color for card elements" 195 msgstr "" 196 197 #: parksystem.php:681 198 msgid "Error Color" 199 msgstr "" 200 201 #: parksystem.php:685 202 msgid "Color for error labels and messages" 203 msgstr "" 204 49 205 #: parksystem.php:658 50 msgid "Settings"51 msgstr ""52 53 #: parksystem.php:20754 msgid "Reservation Page"55 msgstr ""56 57 #: parksystem.php:21358 msgid "Widgets"59 msgstr ""60 61 #: parksystem.php:40862 msgid "Settings saved!"63 msgstr ""64 65 #: parksystem.php:42866 msgid "Parking Token"67 msgstr ""68 69 #: parksystem.php:43270 msgid "Parking token displayed on reservation pages"71 msgstr ""72 73 #: parksystem.php:43774 msgid "Body Background Color"75 msgstr ""76 77 #: parksystem.php:44178 msgid "Body background color for the iframe widget"79 msgstr ""80 81 #: parksystem.php:44682 msgid "Text Color"83 msgstr ""84 85 #: parksystem.php:45086 msgid "Text color for the iframe widget"87 msgstr ""88 89 #: parksystem.php:45590 msgid "Input Background Color"91 msgstr ""92 93 #: parksystem.php:45994 msgid "Background color for input fields"95 msgstr ""96 97 #: parksystem.php:46498 msgid "Label Text Color"99 msgstr ""100 101 #: parksystem.php:468102 msgid "Text color for form labels"103 msgstr ""104 105 #: parksystem.php:473106 msgid "Card Background Color"107 msgstr ""108 109 #: parksystem.php:477110 msgid "Background color for card elements"111 msgstr ""112 113 #: parksystem.php:482114 msgid "Input Hover Background Color"115 msgstr ""116 117 #: parksystem.php:486118 msgid "Background color for input fields on hover"119 msgstr ""120 121 #: parksystem.php:491122 206 msgid "Page Template" 123 207 msgstr "" 124 208 125 #: parksystem.php: 502209 #: parksystem.php:669 126 210 msgid "Page template to use for ParkSystem widget pages (/rezerwuj/ and /potwierdzenie/)" 127 211 msgstr "" 128 212 129 #: parksystem.php: 528213 #: parksystem.php:695 130 214 msgid "Redirecting..." 131 215 msgstr "" 132 216 133 #: parksystem.php: 528217 #: parksystem.php:695 134 218 msgid "Click here if you are not redirected." 135 219 msgstr "" 136 220 137 #: parksystem.php: 546221 #: parksystem.php:713 138 222 msgid "Pricing Widget" 139 223 msgstr "" 140 224 141 #: parksystem.php: 548225 #: parksystem.php:715 142 226 msgid "Display pricing table with optional parameters: min_days, max_days, date, iframe_id" 143 227 msgstr "" 144 228 145 #: parksystem.php: 552229 #: parksystem.php:719 146 230 msgid "Reservation Form Widget" 147 231 msgstr "" 148 232 149 #: parksystem.php: 554233 #: parksystem.php:721 150 234 msgid "Display reservation form with optional parameter: iframe_id" 151 235 msgstr "" 152 236 153 #: parksystem.php: 560237 #: parksystem.php:727 154 238 msgid "ParkSystem Widgets" 155 239 msgstr "" 156 240 157 #: parksystem.php: 561241 #: parksystem.php:728 158 242 msgid "Copy the widget codes below and paste them into your posts, pages, or widgets." 159 243 msgstr "" 160 244 161 #: parksystem.php: 570245 #: parksystem.php:737 162 246 msgid "Basic Shortcode:" 163 247 msgstr "" 164 248 165 #: parksystem.php: 586166 #: parksystem.php: 610249 #: parksystem.php:753 250 #: parksystem.php:777 167 251 msgid "Copy" 168 252 msgstr "" 169 253 170 #: parksystem.php: 594254 #: parksystem.php:761 171 255 msgid "Example with Parameters:" 172 256 msgstr "" 173 257 174 #: parksystem.php: 634258 #: parksystem.php:801 175 259 msgid "Copied!" 176 260 msgstr "" 177 261 178 #: parksystem.php: 643262 #: parksystem.php:810 179 263 msgid "Failed to copy. Please select and copy manually." 180 264 msgstr "" 181 265 182 #: parksystem.php: 682183 #: parksystem.php: 722184 #: parksystem.php: 728266 #: parksystem.php:849 267 #: parksystem.php:893 268 #: parksystem.php:899 185 269 msgid "Parking token is not configured. Please set it in plugin settings." 186 270 msgstr "" 187 271 188 #: templates/block-renderer.php: 41272 #: templates/block-renderer.php:62 189 273 msgid "Template not found." 190 274 msgstr "" -
parksystem/tags/1.0.2/parksystem.php
r3463491 r3486037 3 3 * Plugin Name: ParkSystem 4 4 * Description: Parking management system integration - display reservation forms, confirmation pages, and pricing tables via iframe widgets from ParkSystem.online. 5 * Version: 1.0. 15 * Version: 1.0.2 6 6 * Author: Jakub Lasek (ParkSystem.online) 7 7 * Author URI: https://parksystem.online … … 236 236 'sanitize_callback' => 'sanitize_text_field' 237 237 )); 238 register_setting('parksystem_settings', 'parksystem_ body_bg_color', array(238 register_setting('parksystem_settings', 'parksystem_widget_background_color', array( 239 239 'sanitize_callback' => 'sanitize_hex_color' 240 240 )); … … 252 252 )); 253 253 register_setting('parksystem_settings', 'parksystem_input_hover_bg_color', array( 254 'sanitize_callback' => 'sanitize_hex_color' 255 )); 256 register_setting('parksystem_settings', 'parksystem_input_text_color', array( 257 'sanitize_callback' => 'sanitize_hex_color' 258 )); 259 register_setting('parksystem_settings', 'parksystem_input_border_color', array( 260 'sanitize_callback' => 'sanitize_hex_color' 261 )); 262 register_setting('parksystem_settings', 'parksystem_use_new_form', array( 263 'sanitize_callback' => function ($value) { 264 return !empty($value) ? '1' : ''; 265 } 266 )); 267 register_setting('parksystem_settings', 'parksystem_text_color_secondary', array( 268 'sanitize_callback' => 'sanitize_hex_color' 269 )); 270 register_setting('parksystem_settings', 'parksystem_card_text_color', array( 271 'sanitize_callback' => 'sanitize_hex_color' 272 )); 273 register_setting('parksystem_settings', 'parksystem_card_header_text_color', array( 274 'sanitize_callback' => 'sanitize_hex_color' 275 )); 276 register_setting('parksystem_settings', 'parksystem_active_color', array( 277 'sanitize_callback' => 'sanitize_hex_color' 278 )); 279 register_setting('parksystem_settings', 'parksystem_active_text_color', array( 280 'sanitize_callback' => 'sanitize_hex_color' 281 )); 282 register_setting('parksystem_settings', 'parksystem_card_border_color', array( 283 'sanitize_callback' => 'sanitize_hex_color' 284 )); 285 register_setting('parksystem_settings', 'parksystem_error_color', array( 254 286 'sanitize_callback' => 'sanitize_hex_color' 255 287 )); … … 284 316 wp_enqueue_script('jquery'); 285 317 286 // Add inline script for color picker initialization 318 // Add inline script for color picker initialization and new form toggle 287 319 $inline_script = "jQuery(document).ready(function($) { 288 320 $('.parksystem-color-picker').wpColorPicker(); 321 function toggleNewFormInputs() { 322 $('.parksystem-new-form-only').toggle($('#parksystem_use_new_form').is(':checked')); 323 } 324 $('#parksystem_use_new_form').on('change', toggleNewFormInputs); 325 toggleNewFormInputs(); 289 326 });"; 290 327 wp_add_inline_script('wp-color-picker', $inline_script); … … 345 382 function handleIframeResize() { 346 383 window.addEventListener('message', function (event) { 347 if (event.origin !== 'https://parksystem.online' ) return;384 if (event.origin !== 'https://parksystem.online' && event.origin !== 'http://localhost:3000') return; 348 385 349 386 const messageType = event.data.type; … … 424 461 } 425 462 426 if (isset($_POST['parksystem_ body_bg_color'])) {427 update_option('parksystem_ body_bg_color', sanitize_hex_color(wp_unslash($_POST['parksystem_body_bg_color'])));463 if (isset($_POST['parksystem_widget_background_color'])) { 464 update_option('parksystem_widget_background_color', sanitize_hex_color(wp_unslash($_POST['parksystem_widget_background_color']))); 428 465 } 429 466 … … 447 484 update_option('parksystem_input_hover_bg_color', sanitize_hex_color(wp_unslash($_POST['parksystem_input_hover_bg_color']))); 448 485 } 486 if (isset($_POST['parksystem_input_text_color'])) { 487 update_option('parksystem_input_text_color', sanitize_hex_color(wp_unslash($_POST['parksystem_input_text_color']))); 488 } 489 if (isset($_POST['parksystem_input_border_color'])) { 490 update_option('parksystem_input_border_color', sanitize_hex_color(wp_unslash($_POST['parksystem_input_border_color']))); 491 } 492 493 update_option('parksystem_use_new_form', isset($_POST['parksystem_use_new_form']) ? '1' : ''); 494 495 if (isset($_POST['parksystem_text_color_secondary'])) { 496 update_option('parksystem_text_color_secondary', sanitize_hex_color(wp_unslash($_POST['parksystem_text_color_secondary']))); 497 } 498 if (isset($_POST['parksystem_card_text_color'])) { 499 update_option('parksystem_card_text_color', sanitize_hex_color(wp_unslash($_POST['parksystem_card_text_color']))); 500 } 501 if (isset($_POST['parksystem_card_header_text_color'])) { 502 update_option('parksystem_card_header_text_color', sanitize_hex_color(wp_unslash($_POST['parksystem_card_header_text_color']))); 503 } 504 if (isset($_POST['parksystem_active_color'])) { 505 update_option('parksystem_active_color', sanitize_hex_color(wp_unslash($_POST['parksystem_active_color']))); 506 } 507 if (isset($_POST['parksystem_active_text_color'])) { 508 update_option('parksystem_active_text_color', sanitize_hex_color(wp_unslash($_POST['parksystem_active_text_color']))); 509 } 510 if (isset($_POST['parksystem_card_border_color'])) { 511 update_option('parksystem_card_border_color', sanitize_hex_color(wp_unslash($_POST['parksystem_card_border_color']))); 512 } 513 if (isset($_POST['parksystem_error_color'])) { 514 update_option('parksystem_error_color', sanitize_hex_color(wp_unslash($_POST['parksystem_error_color']))); 515 } 449 516 450 517 // Flush rewrite rules to ensure custom routes work … … 456 523 $parking_token = get_option('parksystem_parking_token', ''); 457 524 $page_template = get_option('parksystem_page_template', ''); 458 $ body_bg_color = get_option('parksystem_body_bg_color', '');525 $widget_background_color = get_option('parksystem_widget_background_color', ''); 459 526 $text_color = get_option('parksystem_text_color', ''); 460 527 $input_bg_color = get_option('parksystem_input_bg_color', ''); … … 462 529 $card_bg_color = get_option('parksystem_card_bg_color', ''); 463 530 $input_hover_bg_color = get_option('parksystem_input_hover_bg_color', ''); 531 $input_text_color = get_option('parksystem_input_text_color', ''); 532 $input_border_color = get_option('parksystem_input_border_color', ''); 533 $use_new_form = get_option('parksystem_use_new_form', ''); 534 $text_color_secondary = get_option('parksystem_text_color_secondary', ''); 535 $card_text_color = get_option('parksystem_card_text_color', ''); 536 $card_header_text_color = get_option('parksystem_card_header_text_color', ''); 537 $active_color = get_option('parksystem_active_color', ''); 538 $active_text_color = get_option('parksystem_active_text_color', ''); 539 $card_border_color = get_option('parksystem_card_border_color', ''); 540 $error_color = get_option('parksystem_error_color', ''); 464 541 $available_templates = $this->get_available_page_templates(); 465 542 ?> … … 480 557 <tr> 481 558 <th scope="row"> 482 <label for="parksystem_body_bg_color"><?php esc_html_e('Body Background Color', 'parksystem'); ?></label> 483 </th> 484 <td> 485 <input type="text" id="parksystem_body_bg_color" name="parksystem_body_bg_color" value="<?php echo esc_attr($body_bg_color); ?>" class="parksystem-color-picker" /> 559 <label for="parksystem_use_new_form"><?php esc_html_e('Use new reservation form', 'parksystem'); ?></label> 560 </th> 561 <td> 562 <label for="parksystem_use_new_form"> 563 <input type="checkbox" id="parksystem_use_new_form" name="parksystem_use_new_form" value="1" <?php checked($use_new_form, '1'); ?> /> 564 <?php esc_html_e('Use new reservation form (order2)', 'parksystem'); ?> 565 </label> 566 <p class="description"><?php esc_html_e('Enable the new reservation form with additional styling options', 'parksystem'); ?></p> 567 </td> 568 </tr> 569 <tr> 570 <th scope="row"> 571 <label for="parksystem_widget_background_color"><?php esc_html_e('Widget Body Background Color', 'parksystem'); ?></label> 572 </th> 573 <td> 574 <input type="text" id="parksystem_widget_background_color" name="parksystem_widget_background_color" value="<?php echo esc_attr($widget_background_color); ?>" class="parksystem-color-picker" /> 486 575 <p class="description"><?php esc_html_e('Body background color for the iframe widget', 'parksystem'); ?></p> 487 576 </td> … … 530 619 <input type="text" id="parksystem_input_hover_bg_color" name="parksystem_input_hover_bg_color" value="<?php echo esc_attr($input_hover_bg_color); ?>" class="parksystem-color-picker" /> 531 620 <p class="description"><?php esc_html_e('Background color for input fields on hover', 'parksystem'); ?></p> 621 </td> 622 </tr> 623 <tr class="parksystem-new-form-only" style="<?php echo $use_new_form ? '' : 'display:none'; ?>"> 624 <th scope="row"> 625 <label for="parksystem_input_text_color"><?php esc_html_e('Input Text Color', 'parksystem'); ?></label> 626 </th> 627 <td> 628 <input type="text" id="parksystem_input_text_color" name="parksystem_input_text_color" value="<?php echo esc_attr($input_text_color); ?>" class="parksystem-color-picker" /> 629 <p class="description"><?php esc_html_e('Text color inside input fields', 'parksystem'); ?></p> 630 </td> 631 </tr> 632 <tr class="parksystem-new-form-only" style="<?php echo $use_new_form ? '' : 'display:none'; ?>"> 633 <th scope="row"> 634 <label for="parksystem_input_border_color"><?php esc_html_e('Input Border Color', 'parksystem'); ?></label> 635 </th> 636 <td> 637 <input type="text" id="parksystem_input_border_color" name="parksystem_input_border_color" value="<?php echo esc_attr($input_border_color); ?>" class="parksystem-color-picker" /> 638 <p class="description"><?php esc_html_e('Border color for input fields', 'parksystem'); ?></p> 639 </td> 640 </tr> 641 <tr class="parksystem-new-form-only" style="<?php echo $use_new_form ? '' : 'display:none'; ?>"> 642 <th scope="row"> 643 <label for="parksystem_text_color_secondary"><?php esc_html_e('Secondary Text Color', 'parksystem'); ?></label> 644 </th> 645 <td> 646 <input type="text" id="parksystem_text_color_secondary" name="parksystem_text_color_secondary" value="<?php echo esc_attr($text_color_secondary); ?>" class="parksystem-color-picker" /> 647 <p class="description"><?php esc_html_e('Secondary text color for the iframe widget', 'parksystem'); ?></p> 648 </td> 649 </tr> 650 <tr class="parksystem-new-form-only" style="<?php echo $use_new_form ? '' : 'display:none'; ?>"> 651 <th scope="row"> 652 <label for="parksystem_card_text_color"><?php esc_html_e('Card Text Color', 'parksystem'); ?></label> 653 </th> 654 <td> 655 <input type="text" id="parksystem_card_text_color" name="parksystem_card_text_color" value="<?php echo esc_attr($card_text_color); ?>" class="parksystem-color-picker" /> 656 <p class="description"><?php esc_html_e('Text color for card body content', 'parksystem'); ?></p> 657 </td> 658 </tr> 659 <tr class="parksystem-new-form-only" style="<?php echo $use_new_form ? '' : 'display:none'; ?>"> 660 <th scope="row"> 661 <label for="parksystem_card_header_text_color"><?php esc_html_e('Card Header Text Color', 'parksystem'); ?></label> 662 </th> 663 <td> 664 <input type="text" id="parksystem_card_header_text_color" name="parksystem_card_header_text_color" value="<?php echo esc_attr($card_header_text_color); ?>" class="parksystem-color-picker" /> 665 <p class="description"><?php esc_html_e('Text color for card headers', 'parksystem'); ?></p> 666 </td> 667 </tr> 668 <tr class="parksystem-new-form-only" style="<?php echo $use_new_form ? '' : 'display:none'; ?>"> 669 <th scope="row"> 670 <label for="parksystem_active_color"><?php esc_html_e('Active Color', 'parksystem'); ?></label> 671 </th> 672 <td> 673 <input type="text" id="parksystem_active_color" name="parksystem_active_color" value="<?php echo esc_attr($active_color); ?>" class="parksystem-color-picker" /> 674 <p class="description"><?php esc_html_e('Primary/active button color', 'parksystem'); ?></p> 675 </td> 676 </tr> 677 <tr class="parksystem-new-form-only" style="<?php echo $use_new_form ? '' : 'display:none'; ?>"> 678 <th scope="row"> 679 <label for="parksystem_active_text_color"><?php esc_html_e('Active Text Color', 'parksystem'); ?></label> 680 </th> 681 <td> 682 <input type="text" id="parksystem_active_text_color" name="parksystem_active_text_color" value="<?php echo esc_attr($active_text_color); ?>" class="parksystem-color-picker" /> 683 <p class="description"><?php esc_html_e('Text color on primary buttons', 'parksystem'); ?></p> 684 </td> 685 </tr> 686 <tr class="parksystem-new-form-only" style="<?php echo $use_new_form ? '' : 'display:none'; ?>"> 687 <th scope="row"> 688 <label for="parksystem_card_border_color"><?php esc_html_e('Card Border Color', 'parksystem'); ?></label> 689 </th> 690 <td> 691 <input type="text" id="parksystem_card_border_color" name="parksystem_card_border_color" value="<?php echo esc_attr($card_border_color); ?>" class="parksystem-color-picker" /> 692 <p class="description"><?php esc_html_e('Border color for card elements', 'parksystem'); ?></p> 693 </td> 694 </tr> 695 <tr class="parksystem-new-form-only" style="<?php echo $use_new_form ? '' : 'display:none'; ?>"> 696 <th scope="row"> 697 <label for="parksystem_error_color"><?php esc_html_e('Error Color', 'parksystem'); ?></label> 698 </th> 699 <td> 700 <input type="text" id="parksystem_error_color" name="parksystem_error_color" value="<?php echo esc_attr($error_color); ?>" class="parksystem-color-picker" /> 701 <p class="description"><?php esc_html_e('Color for error labels and messages', 'parksystem'); ?></p> 532 702 </td> 533 703 </tr> … … 892 1062 } 893 1063 894 $ body_bg_color = get_option('parksystem_body_bg_color', '');1064 $widget_background_color = get_option('parksystem_widget_background_color', ''); 895 1065 $text_color = get_option('parksystem_text_color', ''); 896 1066 $input_bg_color = get_option('parksystem_input_bg_color', ''); 1067 $input_hover_bg_color = get_option('parksystem_input_hover_bg_color', ''); 1068 $input_text_color = get_option('parksystem_input_text_color', ''); 1069 $input_border_color = get_option('parksystem_input_border_color', ''); 897 1070 $label_text_color = get_option('parksystem_label_text_color', ''); 898 1071 $card_bg_color = get_option('parksystem_card_bg_color', ''); 899 $input_hover_bg_color = get_option('parksystem_input_hover_bg_color', ''); 1072 $text_color_secondary = get_option('parksystem_text_color_secondary', ''); 1073 $card_text_color = get_option('parksystem_card_text_color', ''); 1074 $card_header_text_color = get_option('parksystem_card_header_text_color', ''); 1075 $active_color = get_option('parksystem_active_color', ''); 1076 $active_text_color = get_option('parksystem_active_text_color', ''); 1077 $card_border_color = get_option('parksystem_card_border_color', ''); 1078 $error_color = get_option('parksystem_error_color', ''); 900 1079 901 1080 $iframeParams = array( … … 904 1083 905 1084 // Add color parameters if they are not blank 906 if (!empty($ body_bg_color)) {907 $iframeParams['body_bg_color'] = $ body_bg_color;1085 if (!empty($widget_background_color)) { 1086 $iframeParams['body_bg_color'] = $widget_background_color; 908 1087 } 909 1088 if (!empty($text_color)) { … … 921 1100 if (!empty($input_hover_bg_color)) { 922 1101 $iframeParams['input_hover_bg_color'] = $input_hover_bg_color; 1102 } 1103 if (!empty($input_text_color)) { 1104 $iframeParams['input_text_color'] = $input_text_color; 1105 } 1106 if (!empty($input_border_color)) { 1107 $iframeParams['input_border_color'] = $input_border_color; 1108 } 1109 if (!empty($text_color_secondary)) { 1110 $iframeParams['text_color_secondary'] = $text_color_secondary; 1111 } 1112 if (!empty($card_text_color)) { 1113 $iframeParams['card_text_color'] = $card_text_color; 1114 } 1115 if (!empty($card_header_text_color)) { 1116 $iframeParams['card_header_text_color'] = $card_header_text_color; 1117 } 1118 if (!empty($active_color)) { 1119 $iframeParams['active_color'] = $active_color; 1120 } 1121 if (!empty($active_text_color)) { 1122 $iframeParams['active_text_color'] = $active_text_color; 1123 } 1124 if (!empty($card_border_color)) { 1125 $iframeParams['card_border_color'] = $card_border_color; 1126 } 1127 if (!empty($error_color)) { 1128 $iframeParams['error_color'] = $error_color; 923 1129 } 924 1130 … … 938 1144 } 939 1145 1146 $use_new_form = get_option('parksystem_use_new_form', ''); 1147 $order_path = $use_new_form ? '/order2' : '/order'; 1148 940 1149 $parking_token_sanitized = sanitize_text_field($parking_token); 941 $iframe_url = 'https://parksystem.online/widget/' . $parking_token_sanitized . '/order';1150 $iframe_url = 'https://parksystem.online/widget/' . $parking_token_sanitized . $order_path; 942 1151 943 1152 if (!empty($iframeParams)) { -
parksystem/tags/1.0.2/readme.txt
r3463514 r3486037 4 4 Requires at least: 5.0 5 5 Tested up to: 6.9 6 Stable tag: 1.0. 16 Stable tag: 1.0.2 7 7 Requires PHP: 7.4 8 8 License: GPL2 … … 45 45 == Changelog == 46 46 47 = 1.0.2 = 48 * Add optional new reservation form (order2) with toggle in settings 49 * Add extended styling options for new form: input text/border colors, secondary text, card text/header/border colors, active/error colors 50 * Rename "Body Background Color" to "Widget Body Background Color" 51 * Add localhost origin support for iframe message handling (development) 52 * Update Polish translations 53 47 54 = 1.0.1 = 48 55 * Improved code organization and WordPress coding standards compliance … … 62 69 == Upgrade Notice == 63 70 71 = 1.0.2 = 72 Adds new reservation form option with extended styling controls. Enable in ParkSystem > Settings. 73 64 74 = 1.0.1 = 65 75 This update improves code quality and WordPress standards compliance. No action required. -
parksystem/trunk/languages/parksystem-pl_PL.po
r3463514 r3486037 14 14 "X-Generator: Poedit\n" 15 15 16 #: parksystem.php: 19517 #: parksystem.php:20 118 #: parksystem.php: 42216 #: parksystem.php:200 17 #: parksystem.php:206 18 #: parksystem.php:523 19 19 msgid "ParkSystem Settings" 20 20 msgstr "Ustawienia ParkSystem" 21 21 22 #: parksystem.php:20 123 #: parksystem.php: 65822 #: parksystem.php:206 23 #: parksystem.php:825 24 24 msgid "Settings" 25 25 msgstr "Ustawienia" 26 26 27 #: parksystem.php:2 0727 #: parksystem.php:212 28 28 msgid "Reservation Page" 29 29 msgstr "Strona Rezerwacji" 30 30 31 #: parksystem.php: 40831 #: parksystem.php:502 32 32 msgid "Settings saved!" 33 33 msgstr "Ustawienia zapisane!" 34 34 35 #: parksystem.php: 42835 #: parksystem.php:529 36 36 msgid "Parking Token" 37 37 msgstr "Token Parkingu" 38 38 39 #: parksystem.php: 43239 #: parksystem.php:533 40 40 msgid "Parking token displayed on reservation pages" 41 41 msgstr "Token parkingu wyświetlany na stronach rezerwacji" 42 42 43 #: parksystem.php: 43744 msgid " Body Background Color"45 msgstr "Kolor tła widget ów"46 47 #: parksystem.php: 44143 #: parksystem.php:550 44 msgid "Widget Body Background Color" 45 msgstr "Kolor tła widgetu rezerwacji" 46 47 #: parksystem.php:554 48 48 msgid "Body background color for the iframe widget" 49 msgstr "Kolor tła widgetów"50 51 #: parksystem.php: 44649 msgstr "Kolor tła strony dla widżetu iframe" 50 51 #: parksystem.php:559 52 52 msgid "Text Color" 53 53 msgstr "Kolor tekstu" 54 54 55 #: parksystem.php: 45055 #: parksystem.php:563 56 56 msgid "Text color for the iframe widget" 57 msgstr "Kolor tekstu widgetów"58 59 #: parksystem.php: 45557 msgstr "Kolor tekstu dla widżetu iframe" 58 59 #: parksystem.php:568 60 60 msgid "Input Background Color" 61 61 msgstr "Kolor tła pól tekstowych" 62 62 63 #: parksystem.php: 45963 #: parksystem.php:572 64 64 msgid "Background color for input fields" 65 65 msgstr "Kolor tła pól tekstowych" 66 66 67 #: parksystem.php: 46467 #: parksystem.php:577 68 68 msgid "Label Text Color" 69 69 msgstr "Kolor tekstu etykiet" 70 70 71 #: parksystem.php: 46871 #: parksystem.php:581 72 72 msgid "Text color for form labels" 73 73 msgstr "Kolor tekstu etykiet pól formularza" 74 74 75 #: parksystem.php: 47375 #: parksystem.php:586 76 76 msgid "Card Background Color" 77 77 msgstr "Kolor tła kart" 78 78 79 #: parksystem.php: 47779 #: parksystem.php:590 80 80 msgid "Background color for card elements" 81 msgstr "Kolor tła kart"82 83 #: parksystem.php: 48281 msgstr "Kolor tła elementów kart" 82 83 #: parksystem.php:595 84 84 msgid "Input Hover Background Color" 85 85 msgstr "Kolor tła pól tekstowych przy najechaniu" 86 86 87 #: parksystem.php: 48687 #: parksystem.php:599 88 88 msgid "Background color for input fields on hover" 89 89 msgstr "Kolor tła pól tekstowych przy najechaniu myszką" 90 90 91 #: parksystem.php:528 91 #: parksystem.php:538 92 msgid "Use new reservation form" 93 msgstr "Użyj nowego formularza rezerwacji" 94 95 #: parksystem.php:543 96 msgid "Use new reservation form (order2)" 97 msgstr "Użyj nowego formularza rezerwacji (order2)" 98 99 #: parksystem.php:545 100 msgid "Enable the new reservation form with additional styling options" 101 msgstr "Włącz nowy formularz rezerwacji z dodatkowymi opcjami stylowania" 102 103 #: parksystem.php:604 104 msgid "Secondary Text Color" 105 msgstr "Kolor tekstu drugorzędnego" 106 107 #: parksystem.php:608 108 msgid "Secondary text color for the iframe widget" 109 msgstr "Kolor tekstu drugorzędnego dla widżetu iframe" 110 111 #: parksystem.php:613 112 msgid "Card Text Color" 113 msgstr "Kolor tekstu kart" 114 115 #: parksystem.php:617 116 msgid "Text color for card body content" 117 msgstr "Kolor tekstu treści kart" 118 119 #: parksystem.php:622 120 msgid "Card Header Text Color" 121 msgstr "Kolor tekstu nagłówków kart" 122 123 #: parksystem.php:626 124 msgid "Text color for card headers" 125 msgstr "Kolor tekstu nagłówków kart" 126 127 #: parksystem.php:631 128 msgid "Active Color" 129 msgstr "Kolor aktywny" 130 131 #: parksystem.php:635 132 msgid "Primary/active button color" 133 msgstr "Kolor przycisków głównych/aktywnych" 134 135 #: parksystem.php:640 136 msgid "Active Text Color" 137 msgstr "Kolor tekstu na przyciskach aktywnych" 138 139 #: parksystem.php:644 140 msgid "Text color on primary buttons" 141 msgstr "Kolor tekstu na przyciskach głównych" 142 143 #: parksystem.php:625 144 msgid "Input Text Color" 145 msgstr "Kolor tekstu pól tekstowych" 146 147 #: parksystem.php:629 148 msgid "Text color inside input fields" 149 msgstr "Kolor tekstu wewnątrz pól tekstowych" 150 151 #: parksystem.php:634 152 msgid "Input Border Color" 153 msgstr "Kolor obramowania pól tekstowych" 154 155 #: parksystem.php:638 156 msgid "Border color for input fields" 157 msgstr "Kolor obramowania pól tekstowych" 158 159 #: parksystem.php:660 160 msgid "Card Border Color" 161 msgstr "Kolor obramowania kart" 162 163 #: parksystem.php:664 164 msgid "Border color for card elements" 165 msgstr "Kolor obramowania elementów kart" 166 167 #: parksystem.php:681 168 msgid "Error Color" 169 msgstr "Kolor błędów" 170 171 #: parksystem.php:685 172 msgid "Color for error labels and messages" 173 msgstr "Kolor etykiet błędów i komunikatów" 174 175 #: parksystem.php:695 92 176 msgid "Redirecting..." 93 177 msgstr "Przekierowywanie..." 94 178 95 #: parksystem.php: 528179 #: parksystem.php:695 96 180 msgid "Click here if you are not redirected." 97 181 msgstr "Kliknij tutaj, jeśli nie nastąpiło przekierowanie." … … 101 185 msgstr "Domyślny Szablon" 102 186 103 #: parksystem.php: 491187 #: parksystem.php:658 104 188 msgid "Page Template" 105 189 msgstr "Szablon Strony" 106 190 107 #: parksystem.php: 502191 #: parksystem.php:669 108 192 msgid "Page template to use for ParkSystem widget pages (/rezerwuj/ and /potwierdzenie/)" 109 193 msgstr "Szablon strony do użycia dla stron widgetów ParkSystem (/rezerwuj/ i /potwierdzenie/)" … … 111 195 #. Plugin Name of the plugin 112 196 #: parksystem.php 113 #: parksystem.php: 195197 #: parksystem.php:200 114 198 msgid "ParkSystem" 115 199 msgstr "ParkSystem" … … 130 214 msgstr "https://parksystem.online" 131 215 132 #: parksystem.php:21 3216 #: parksystem.php:218 133 217 msgid "Widgets" 134 218 msgstr "Widżety" 135 219 136 #: parksystem.php: 546220 #: parksystem.php:713 137 221 msgid "Pricing Widget" 138 222 msgstr "Widżet Cennika" 139 223 140 #: parksystem.php: 548224 #: parksystem.php:715 141 225 msgid "Display pricing table with optional parameters: min_days, max_days, date, iframe_id" 142 226 msgstr "Wyświetl tabelę cenową z opcjonalnymi parametrami: min_days, max_days, date, iframe_id" 143 227 144 #: parksystem.php: 552228 #: parksystem.php:719 145 229 msgid "Reservation Form Widget" 146 230 msgstr "Widżet Formularza Rezerwacji" 147 231 148 #: parksystem.php: 554232 #: parksystem.php:721 149 233 msgid "Display reservation form with optional parameter: iframe_id" 150 234 msgstr "Wyświetl formularz rezerwacji z opcjonalnym parametrem: iframe_id" 151 235 152 #: parksystem.php: 560236 #: parksystem.php:727 153 237 msgid "ParkSystem Widgets" 154 238 msgstr "Widżety ParkSystem" 155 239 156 #: parksystem.php: 561240 #: parksystem.php:728 157 241 msgid "Copy the widget codes below and paste them into your posts, pages, or widgets." 158 242 msgstr "Skopiuj kody widżetów poniżej i wklej je do swoich wpisów, stron lub widżetów." 159 243 160 #: parksystem.php: 570244 #: parksystem.php:737 161 245 msgid "Basic Shortcode:" 162 246 msgstr "Podstawowy Kod Krótki:" 163 247 164 #: parksystem.php: 586165 #: parksystem.php: 610248 #: parksystem.php:753 249 #: parksystem.php:777 166 250 msgid "Copy" 167 251 msgstr "Kopiuj" 168 252 169 #: parksystem.php: 594253 #: parksystem.php:761 170 254 msgid "Example with Parameters:" 171 255 msgstr "Przykład z Parametrami:" 172 256 173 #: parksystem.php: 634257 #: parksystem.php:801 174 258 msgid "Copied!" 175 259 msgstr "Skopiowano!" 176 260 177 #: parksystem.php: 643261 #: parksystem.php:810 178 262 msgid "Failed to copy. Please select and copy manually." 179 263 msgstr "Nie udało się skopiować. Proszę zaznaczyć i skopiować ręcznie." 180 264 181 #: parksystem.php: 682182 #: parksystem.php: 722183 #: parksystem.php: 728265 #: parksystem.php:849 266 #: parksystem.php:893 267 #: parksystem.php:899 184 268 msgid "Parking token is not configured. Please set it in plugin settings." 185 269 msgstr "Token parkingu nie jest skonfigurowany. Proszę ustawić go w ustawieniach wtyczki." 186 270 187 #: templates/block-renderer.php: 41271 #: templates/block-renderer.php:62 188 272 msgid "Template not found." 189 273 msgstr "Szablon nie znaleziony." -
parksystem/trunk/languages/parksystem.pot
r3463491 r3486037 10 10 "Content-Type: text/plain; charset=UTF-8\n" 11 11 "Content-Transfer-Encoding: 8bit\n" 12 "POT-Creation-Date: 2026-0 2-10T15:18:48+00:00\n"12 "POT-Creation-Date: 2026-03-17T17:43:02+00:00\n" 13 13 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 14 14 "X-Generator: WP-CLI 2.12.0\n" … … 17 17 #. Plugin Name of the plugin 18 18 #: parksystem.php 19 #: parksystem.php: 19519 #: parksystem.php:200 20 20 msgid "ParkSystem" 21 21 msgstr "" … … 40 40 msgstr "" 41 41 42 #: parksystem.php: 19543 #: parksystem.php:20 144 #: parksystem.php: 42242 #: parksystem.php:200 43 #: parksystem.php:206 44 #: parksystem.php:523 45 45 msgid "ParkSystem Settings" 46 46 msgstr "" 47 47 48 #: parksystem.php:201 48 #: parksystem.php:206 49 #: parksystem.php:825 50 msgid "Settings" 51 msgstr "" 52 53 #: parksystem.php:212 54 msgid "Reservation Page" 55 msgstr "" 56 57 #: parksystem.php:218 58 msgid "Widgets" 59 msgstr "" 60 61 #: parksystem.php:502 62 msgid "Settings saved!" 63 msgstr "" 64 65 #: parksystem.php:529 66 msgid "Parking Token" 67 msgstr "" 68 69 #: parksystem.php:533 70 msgid "Parking token displayed on reservation pages" 71 msgstr "" 72 73 #: parksystem.php:538 74 msgid "Use new reservation form" 75 msgstr "" 76 77 #: parksystem.php:543 78 msgid "Use new reservation form (order2)" 79 msgstr "" 80 81 #: parksystem.php:545 82 msgid "Enable the new reservation form with additional styling options" 83 msgstr "" 84 85 #: parksystem.php:550 86 msgid "Widget Body Background Color" 87 msgstr "" 88 89 #: parksystem.php:554 90 msgid "Body background color for the iframe widget" 91 msgstr "" 92 93 #: parksystem.php:559 94 msgid "Text Color" 95 msgstr "" 96 97 #: parksystem.php:563 98 msgid "Text color for the iframe widget" 99 msgstr "" 100 101 #: parksystem.php:568 102 msgid "Input Background Color" 103 msgstr "" 104 105 #: parksystem.php:572 106 msgid "Background color for input fields" 107 msgstr "" 108 109 #: parksystem.php:577 110 msgid "Label Text Color" 111 msgstr "" 112 113 #: parksystem.php:581 114 msgid "Text color for form labels" 115 msgstr "" 116 117 #: parksystem.php:586 118 msgid "Card Background Color" 119 msgstr "" 120 121 #: parksystem.php:590 122 msgid "Background color for card elements" 123 msgstr "" 124 125 #: parksystem.php:595 126 msgid "Input Hover Background Color" 127 msgstr "" 128 129 #: parksystem.php:599 130 msgid "Background color for input fields on hover" 131 msgstr "" 132 133 #: parksystem.php:604 134 msgid "Secondary Text Color" 135 msgstr "" 136 137 #: parksystem.php:608 138 msgid "Secondary text color for the iframe widget" 139 msgstr "" 140 141 #: parksystem.php:613 142 msgid "Card Text Color" 143 msgstr "" 144 145 #: parksystem.php:617 146 msgid "Text color for card body content" 147 msgstr "" 148 149 #: parksystem.php:622 150 msgid "Card Header Text Color" 151 msgstr "" 152 153 #: parksystem.php:626 154 msgid "Text color for card headers" 155 msgstr "" 156 157 #: parksystem.php:631 158 msgid "Active Color" 159 msgstr "" 160 161 #: parksystem.php:635 162 msgid "Primary/active button color" 163 msgstr "" 164 165 #: parksystem.php:640 166 msgid "Active Text Color" 167 msgstr "" 168 169 #: parksystem.php:644 170 msgid "Text color on primary buttons" 171 msgstr "" 172 173 #: parksystem.php:625 174 msgid "Input Text Color" 175 msgstr "" 176 177 #: parksystem.php:629 178 msgid "Text color inside input fields" 179 msgstr "" 180 181 #: parksystem.php:634 182 msgid "Input Border Color" 183 msgstr "" 184 185 #: parksystem.php:638 186 msgid "Border color for input fields" 187 msgstr "" 188 189 #: parksystem.php:660 190 msgid "Card Border Color" 191 msgstr "" 192 193 #: parksystem.php:664 194 msgid "Border color for card elements" 195 msgstr "" 196 197 #: parksystem.php:681 198 msgid "Error Color" 199 msgstr "" 200 201 #: parksystem.php:685 202 msgid "Color for error labels and messages" 203 msgstr "" 204 49 205 #: parksystem.php:658 50 msgid "Settings"51 msgstr ""52 53 #: parksystem.php:20754 msgid "Reservation Page"55 msgstr ""56 57 #: parksystem.php:21358 msgid "Widgets"59 msgstr ""60 61 #: parksystem.php:40862 msgid "Settings saved!"63 msgstr ""64 65 #: parksystem.php:42866 msgid "Parking Token"67 msgstr ""68 69 #: parksystem.php:43270 msgid "Parking token displayed on reservation pages"71 msgstr ""72 73 #: parksystem.php:43774 msgid "Body Background Color"75 msgstr ""76 77 #: parksystem.php:44178 msgid "Body background color for the iframe widget"79 msgstr ""80 81 #: parksystem.php:44682 msgid "Text Color"83 msgstr ""84 85 #: parksystem.php:45086 msgid "Text color for the iframe widget"87 msgstr ""88 89 #: parksystem.php:45590 msgid "Input Background Color"91 msgstr ""92 93 #: parksystem.php:45994 msgid "Background color for input fields"95 msgstr ""96 97 #: parksystem.php:46498 msgid "Label Text Color"99 msgstr ""100 101 #: parksystem.php:468102 msgid "Text color for form labels"103 msgstr ""104 105 #: parksystem.php:473106 msgid "Card Background Color"107 msgstr ""108 109 #: parksystem.php:477110 msgid "Background color for card elements"111 msgstr ""112 113 #: parksystem.php:482114 msgid "Input Hover Background Color"115 msgstr ""116 117 #: parksystem.php:486118 msgid "Background color for input fields on hover"119 msgstr ""120 121 #: parksystem.php:491122 206 msgid "Page Template" 123 207 msgstr "" 124 208 125 #: parksystem.php: 502209 #: parksystem.php:669 126 210 msgid "Page template to use for ParkSystem widget pages (/rezerwuj/ and /potwierdzenie/)" 127 211 msgstr "" 128 212 129 #: parksystem.php: 528213 #: parksystem.php:695 130 214 msgid "Redirecting..." 131 215 msgstr "" 132 216 133 #: parksystem.php: 528217 #: parksystem.php:695 134 218 msgid "Click here if you are not redirected." 135 219 msgstr "" 136 220 137 #: parksystem.php: 546221 #: parksystem.php:713 138 222 msgid "Pricing Widget" 139 223 msgstr "" 140 224 141 #: parksystem.php: 548225 #: parksystem.php:715 142 226 msgid "Display pricing table with optional parameters: min_days, max_days, date, iframe_id" 143 227 msgstr "" 144 228 145 #: parksystem.php: 552229 #: parksystem.php:719 146 230 msgid "Reservation Form Widget" 147 231 msgstr "" 148 232 149 #: parksystem.php: 554233 #: parksystem.php:721 150 234 msgid "Display reservation form with optional parameter: iframe_id" 151 235 msgstr "" 152 236 153 #: parksystem.php: 560237 #: parksystem.php:727 154 238 msgid "ParkSystem Widgets" 155 239 msgstr "" 156 240 157 #: parksystem.php: 561241 #: parksystem.php:728 158 242 msgid "Copy the widget codes below and paste them into your posts, pages, or widgets." 159 243 msgstr "" 160 244 161 #: parksystem.php: 570245 #: parksystem.php:737 162 246 msgid "Basic Shortcode:" 163 247 msgstr "" 164 248 165 #: parksystem.php: 586166 #: parksystem.php: 610249 #: parksystem.php:753 250 #: parksystem.php:777 167 251 msgid "Copy" 168 252 msgstr "" 169 253 170 #: parksystem.php: 594254 #: parksystem.php:761 171 255 msgid "Example with Parameters:" 172 256 msgstr "" 173 257 174 #: parksystem.php: 634258 #: parksystem.php:801 175 259 msgid "Copied!" 176 260 msgstr "" 177 261 178 #: parksystem.php: 643262 #: parksystem.php:810 179 263 msgid "Failed to copy. Please select and copy manually." 180 264 msgstr "" 181 265 182 #: parksystem.php: 682183 #: parksystem.php: 722184 #: parksystem.php: 728266 #: parksystem.php:849 267 #: parksystem.php:893 268 #: parksystem.php:899 185 269 msgid "Parking token is not configured. Please set it in plugin settings." 186 270 msgstr "" 187 271 188 #: templates/block-renderer.php: 41272 #: templates/block-renderer.php:62 189 273 msgid "Template not found." 190 274 msgstr "" -
parksystem/trunk/parksystem.php
r3463491 r3486037 3 3 * Plugin Name: ParkSystem 4 4 * Description: Parking management system integration - display reservation forms, confirmation pages, and pricing tables via iframe widgets from ParkSystem.online. 5 * Version: 1.0. 15 * Version: 1.0.2 6 6 * Author: Jakub Lasek (ParkSystem.online) 7 7 * Author URI: https://parksystem.online … … 236 236 'sanitize_callback' => 'sanitize_text_field' 237 237 )); 238 register_setting('parksystem_settings', 'parksystem_ body_bg_color', array(238 register_setting('parksystem_settings', 'parksystem_widget_background_color', array( 239 239 'sanitize_callback' => 'sanitize_hex_color' 240 240 )); … … 252 252 )); 253 253 register_setting('parksystem_settings', 'parksystem_input_hover_bg_color', array( 254 'sanitize_callback' => 'sanitize_hex_color' 255 )); 256 register_setting('parksystem_settings', 'parksystem_input_text_color', array( 257 'sanitize_callback' => 'sanitize_hex_color' 258 )); 259 register_setting('parksystem_settings', 'parksystem_input_border_color', array( 260 'sanitize_callback' => 'sanitize_hex_color' 261 )); 262 register_setting('parksystem_settings', 'parksystem_use_new_form', array( 263 'sanitize_callback' => function ($value) { 264 return !empty($value) ? '1' : ''; 265 } 266 )); 267 register_setting('parksystem_settings', 'parksystem_text_color_secondary', array( 268 'sanitize_callback' => 'sanitize_hex_color' 269 )); 270 register_setting('parksystem_settings', 'parksystem_card_text_color', array( 271 'sanitize_callback' => 'sanitize_hex_color' 272 )); 273 register_setting('parksystem_settings', 'parksystem_card_header_text_color', array( 274 'sanitize_callback' => 'sanitize_hex_color' 275 )); 276 register_setting('parksystem_settings', 'parksystem_active_color', array( 277 'sanitize_callback' => 'sanitize_hex_color' 278 )); 279 register_setting('parksystem_settings', 'parksystem_active_text_color', array( 280 'sanitize_callback' => 'sanitize_hex_color' 281 )); 282 register_setting('parksystem_settings', 'parksystem_card_border_color', array( 283 'sanitize_callback' => 'sanitize_hex_color' 284 )); 285 register_setting('parksystem_settings', 'parksystem_error_color', array( 254 286 'sanitize_callback' => 'sanitize_hex_color' 255 287 )); … … 284 316 wp_enqueue_script('jquery'); 285 317 286 // Add inline script for color picker initialization 318 // Add inline script for color picker initialization and new form toggle 287 319 $inline_script = "jQuery(document).ready(function($) { 288 320 $('.parksystem-color-picker').wpColorPicker(); 321 function toggleNewFormInputs() { 322 $('.parksystem-new-form-only').toggle($('#parksystem_use_new_form').is(':checked')); 323 } 324 $('#parksystem_use_new_form').on('change', toggleNewFormInputs); 325 toggleNewFormInputs(); 289 326 });"; 290 327 wp_add_inline_script('wp-color-picker', $inline_script); … … 345 382 function handleIframeResize() { 346 383 window.addEventListener('message', function (event) { 347 if (event.origin !== 'https://parksystem.online' ) return;384 if (event.origin !== 'https://parksystem.online' && event.origin !== 'http://localhost:3000') return; 348 385 349 386 const messageType = event.data.type; … … 424 461 } 425 462 426 if (isset($_POST['parksystem_ body_bg_color'])) {427 update_option('parksystem_ body_bg_color', sanitize_hex_color(wp_unslash($_POST['parksystem_body_bg_color'])));463 if (isset($_POST['parksystem_widget_background_color'])) { 464 update_option('parksystem_widget_background_color', sanitize_hex_color(wp_unslash($_POST['parksystem_widget_background_color']))); 428 465 } 429 466 … … 447 484 update_option('parksystem_input_hover_bg_color', sanitize_hex_color(wp_unslash($_POST['parksystem_input_hover_bg_color']))); 448 485 } 486 if (isset($_POST['parksystem_input_text_color'])) { 487 update_option('parksystem_input_text_color', sanitize_hex_color(wp_unslash($_POST['parksystem_input_text_color']))); 488 } 489 if (isset($_POST['parksystem_input_border_color'])) { 490 update_option('parksystem_input_border_color', sanitize_hex_color(wp_unslash($_POST['parksystem_input_border_color']))); 491 } 492 493 update_option('parksystem_use_new_form', isset($_POST['parksystem_use_new_form']) ? '1' : ''); 494 495 if (isset($_POST['parksystem_text_color_secondary'])) { 496 update_option('parksystem_text_color_secondary', sanitize_hex_color(wp_unslash($_POST['parksystem_text_color_secondary']))); 497 } 498 if (isset($_POST['parksystem_card_text_color'])) { 499 update_option('parksystem_card_text_color', sanitize_hex_color(wp_unslash($_POST['parksystem_card_text_color']))); 500 } 501 if (isset($_POST['parksystem_card_header_text_color'])) { 502 update_option('parksystem_card_header_text_color', sanitize_hex_color(wp_unslash($_POST['parksystem_card_header_text_color']))); 503 } 504 if (isset($_POST['parksystem_active_color'])) { 505 update_option('parksystem_active_color', sanitize_hex_color(wp_unslash($_POST['parksystem_active_color']))); 506 } 507 if (isset($_POST['parksystem_active_text_color'])) { 508 update_option('parksystem_active_text_color', sanitize_hex_color(wp_unslash($_POST['parksystem_active_text_color']))); 509 } 510 if (isset($_POST['parksystem_card_border_color'])) { 511 update_option('parksystem_card_border_color', sanitize_hex_color(wp_unslash($_POST['parksystem_card_border_color']))); 512 } 513 if (isset($_POST['parksystem_error_color'])) { 514 update_option('parksystem_error_color', sanitize_hex_color(wp_unslash($_POST['parksystem_error_color']))); 515 } 449 516 450 517 // Flush rewrite rules to ensure custom routes work … … 456 523 $parking_token = get_option('parksystem_parking_token', ''); 457 524 $page_template = get_option('parksystem_page_template', ''); 458 $ body_bg_color = get_option('parksystem_body_bg_color', '');525 $widget_background_color = get_option('parksystem_widget_background_color', ''); 459 526 $text_color = get_option('parksystem_text_color', ''); 460 527 $input_bg_color = get_option('parksystem_input_bg_color', ''); … … 462 529 $card_bg_color = get_option('parksystem_card_bg_color', ''); 463 530 $input_hover_bg_color = get_option('parksystem_input_hover_bg_color', ''); 531 $input_text_color = get_option('parksystem_input_text_color', ''); 532 $input_border_color = get_option('parksystem_input_border_color', ''); 533 $use_new_form = get_option('parksystem_use_new_form', ''); 534 $text_color_secondary = get_option('parksystem_text_color_secondary', ''); 535 $card_text_color = get_option('parksystem_card_text_color', ''); 536 $card_header_text_color = get_option('parksystem_card_header_text_color', ''); 537 $active_color = get_option('parksystem_active_color', ''); 538 $active_text_color = get_option('parksystem_active_text_color', ''); 539 $card_border_color = get_option('parksystem_card_border_color', ''); 540 $error_color = get_option('parksystem_error_color', ''); 464 541 $available_templates = $this->get_available_page_templates(); 465 542 ?> … … 480 557 <tr> 481 558 <th scope="row"> 482 <label for="parksystem_body_bg_color"><?php esc_html_e('Body Background Color', 'parksystem'); ?></label> 483 </th> 484 <td> 485 <input type="text" id="parksystem_body_bg_color" name="parksystem_body_bg_color" value="<?php echo esc_attr($body_bg_color); ?>" class="parksystem-color-picker" /> 559 <label for="parksystem_use_new_form"><?php esc_html_e('Use new reservation form', 'parksystem'); ?></label> 560 </th> 561 <td> 562 <label for="parksystem_use_new_form"> 563 <input type="checkbox" id="parksystem_use_new_form" name="parksystem_use_new_form" value="1" <?php checked($use_new_form, '1'); ?> /> 564 <?php esc_html_e('Use new reservation form (order2)', 'parksystem'); ?> 565 </label> 566 <p class="description"><?php esc_html_e('Enable the new reservation form with additional styling options', 'parksystem'); ?></p> 567 </td> 568 </tr> 569 <tr> 570 <th scope="row"> 571 <label for="parksystem_widget_background_color"><?php esc_html_e('Widget Body Background Color', 'parksystem'); ?></label> 572 </th> 573 <td> 574 <input type="text" id="parksystem_widget_background_color" name="parksystem_widget_background_color" value="<?php echo esc_attr($widget_background_color); ?>" class="parksystem-color-picker" /> 486 575 <p class="description"><?php esc_html_e('Body background color for the iframe widget', 'parksystem'); ?></p> 487 576 </td> … … 530 619 <input type="text" id="parksystem_input_hover_bg_color" name="parksystem_input_hover_bg_color" value="<?php echo esc_attr($input_hover_bg_color); ?>" class="parksystem-color-picker" /> 531 620 <p class="description"><?php esc_html_e('Background color for input fields on hover', 'parksystem'); ?></p> 621 </td> 622 </tr> 623 <tr class="parksystem-new-form-only" style="<?php echo $use_new_form ? '' : 'display:none'; ?>"> 624 <th scope="row"> 625 <label for="parksystem_input_text_color"><?php esc_html_e('Input Text Color', 'parksystem'); ?></label> 626 </th> 627 <td> 628 <input type="text" id="parksystem_input_text_color" name="parksystem_input_text_color" value="<?php echo esc_attr($input_text_color); ?>" class="parksystem-color-picker" /> 629 <p class="description"><?php esc_html_e('Text color inside input fields', 'parksystem'); ?></p> 630 </td> 631 </tr> 632 <tr class="parksystem-new-form-only" style="<?php echo $use_new_form ? '' : 'display:none'; ?>"> 633 <th scope="row"> 634 <label for="parksystem_input_border_color"><?php esc_html_e('Input Border Color', 'parksystem'); ?></label> 635 </th> 636 <td> 637 <input type="text" id="parksystem_input_border_color" name="parksystem_input_border_color" value="<?php echo esc_attr($input_border_color); ?>" class="parksystem-color-picker" /> 638 <p class="description"><?php esc_html_e('Border color for input fields', 'parksystem'); ?></p> 639 </td> 640 </tr> 641 <tr class="parksystem-new-form-only" style="<?php echo $use_new_form ? '' : 'display:none'; ?>"> 642 <th scope="row"> 643 <label for="parksystem_text_color_secondary"><?php esc_html_e('Secondary Text Color', 'parksystem'); ?></label> 644 </th> 645 <td> 646 <input type="text" id="parksystem_text_color_secondary" name="parksystem_text_color_secondary" value="<?php echo esc_attr($text_color_secondary); ?>" class="parksystem-color-picker" /> 647 <p class="description"><?php esc_html_e('Secondary text color for the iframe widget', 'parksystem'); ?></p> 648 </td> 649 </tr> 650 <tr class="parksystem-new-form-only" style="<?php echo $use_new_form ? '' : 'display:none'; ?>"> 651 <th scope="row"> 652 <label for="parksystem_card_text_color"><?php esc_html_e('Card Text Color', 'parksystem'); ?></label> 653 </th> 654 <td> 655 <input type="text" id="parksystem_card_text_color" name="parksystem_card_text_color" value="<?php echo esc_attr($card_text_color); ?>" class="parksystem-color-picker" /> 656 <p class="description"><?php esc_html_e('Text color for card body content', 'parksystem'); ?></p> 657 </td> 658 </tr> 659 <tr class="parksystem-new-form-only" style="<?php echo $use_new_form ? '' : 'display:none'; ?>"> 660 <th scope="row"> 661 <label for="parksystem_card_header_text_color"><?php esc_html_e('Card Header Text Color', 'parksystem'); ?></label> 662 </th> 663 <td> 664 <input type="text" id="parksystem_card_header_text_color" name="parksystem_card_header_text_color" value="<?php echo esc_attr($card_header_text_color); ?>" class="parksystem-color-picker" /> 665 <p class="description"><?php esc_html_e('Text color for card headers', 'parksystem'); ?></p> 666 </td> 667 </tr> 668 <tr class="parksystem-new-form-only" style="<?php echo $use_new_form ? '' : 'display:none'; ?>"> 669 <th scope="row"> 670 <label for="parksystem_active_color"><?php esc_html_e('Active Color', 'parksystem'); ?></label> 671 </th> 672 <td> 673 <input type="text" id="parksystem_active_color" name="parksystem_active_color" value="<?php echo esc_attr($active_color); ?>" class="parksystem-color-picker" /> 674 <p class="description"><?php esc_html_e('Primary/active button color', 'parksystem'); ?></p> 675 </td> 676 </tr> 677 <tr class="parksystem-new-form-only" style="<?php echo $use_new_form ? '' : 'display:none'; ?>"> 678 <th scope="row"> 679 <label for="parksystem_active_text_color"><?php esc_html_e('Active Text Color', 'parksystem'); ?></label> 680 </th> 681 <td> 682 <input type="text" id="parksystem_active_text_color" name="parksystem_active_text_color" value="<?php echo esc_attr($active_text_color); ?>" class="parksystem-color-picker" /> 683 <p class="description"><?php esc_html_e('Text color on primary buttons', 'parksystem'); ?></p> 684 </td> 685 </tr> 686 <tr class="parksystem-new-form-only" style="<?php echo $use_new_form ? '' : 'display:none'; ?>"> 687 <th scope="row"> 688 <label for="parksystem_card_border_color"><?php esc_html_e('Card Border Color', 'parksystem'); ?></label> 689 </th> 690 <td> 691 <input type="text" id="parksystem_card_border_color" name="parksystem_card_border_color" value="<?php echo esc_attr($card_border_color); ?>" class="parksystem-color-picker" /> 692 <p class="description"><?php esc_html_e('Border color for card elements', 'parksystem'); ?></p> 693 </td> 694 </tr> 695 <tr class="parksystem-new-form-only" style="<?php echo $use_new_form ? '' : 'display:none'; ?>"> 696 <th scope="row"> 697 <label for="parksystem_error_color"><?php esc_html_e('Error Color', 'parksystem'); ?></label> 698 </th> 699 <td> 700 <input type="text" id="parksystem_error_color" name="parksystem_error_color" value="<?php echo esc_attr($error_color); ?>" class="parksystem-color-picker" /> 701 <p class="description"><?php esc_html_e('Color for error labels and messages', 'parksystem'); ?></p> 532 702 </td> 533 703 </tr> … … 892 1062 } 893 1063 894 $ body_bg_color = get_option('parksystem_body_bg_color', '');1064 $widget_background_color = get_option('parksystem_widget_background_color', ''); 895 1065 $text_color = get_option('parksystem_text_color', ''); 896 1066 $input_bg_color = get_option('parksystem_input_bg_color', ''); 1067 $input_hover_bg_color = get_option('parksystem_input_hover_bg_color', ''); 1068 $input_text_color = get_option('parksystem_input_text_color', ''); 1069 $input_border_color = get_option('parksystem_input_border_color', ''); 897 1070 $label_text_color = get_option('parksystem_label_text_color', ''); 898 1071 $card_bg_color = get_option('parksystem_card_bg_color', ''); 899 $input_hover_bg_color = get_option('parksystem_input_hover_bg_color', ''); 1072 $text_color_secondary = get_option('parksystem_text_color_secondary', ''); 1073 $card_text_color = get_option('parksystem_card_text_color', ''); 1074 $card_header_text_color = get_option('parksystem_card_header_text_color', ''); 1075 $active_color = get_option('parksystem_active_color', ''); 1076 $active_text_color = get_option('parksystem_active_text_color', ''); 1077 $card_border_color = get_option('parksystem_card_border_color', ''); 1078 $error_color = get_option('parksystem_error_color', ''); 900 1079 901 1080 $iframeParams = array( … … 904 1083 905 1084 // Add color parameters if they are not blank 906 if (!empty($ body_bg_color)) {907 $iframeParams['body_bg_color'] = $ body_bg_color;1085 if (!empty($widget_background_color)) { 1086 $iframeParams['body_bg_color'] = $widget_background_color; 908 1087 } 909 1088 if (!empty($text_color)) { … … 921 1100 if (!empty($input_hover_bg_color)) { 922 1101 $iframeParams['input_hover_bg_color'] = $input_hover_bg_color; 1102 } 1103 if (!empty($input_text_color)) { 1104 $iframeParams['input_text_color'] = $input_text_color; 1105 } 1106 if (!empty($input_border_color)) { 1107 $iframeParams['input_border_color'] = $input_border_color; 1108 } 1109 if (!empty($text_color_secondary)) { 1110 $iframeParams['text_color_secondary'] = $text_color_secondary; 1111 } 1112 if (!empty($card_text_color)) { 1113 $iframeParams['card_text_color'] = $card_text_color; 1114 } 1115 if (!empty($card_header_text_color)) { 1116 $iframeParams['card_header_text_color'] = $card_header_text_color; 1117 } 1118 if (!empty($active_color)) { 1119 $iframeParams['active_color'] = $active_color; 1120 } 1121 if (!empty($active_text_color)) { 1122 $iframeParams['active_text_color'] = $active_text_color; 1123 } 1124 if (!empty($card_border_color)) { 1125 $iframeParams['card_border_color'] = $card_border_color; 1126 } 1127 if (!empty($error_color)) { 1128 $iframeParams['error_color'] = $error_color; 923 1129 } 924 1130 … … 938 1144 } 939 1145 1146 $use_new_form = get_option('parksystem_use_new_form', ''); 1147 $order_path = $use_new_form ? '/order2' : '/order'; 1148 940 1149 $parking_token_sanitized = sanitize_text_field($parking_token); 941 $iframe_url = 'https://parksystem.online/widget/' . $parking_token_sanitized . '/order';1150 $iframe_url = 'https://parksystem.online/widget/' . $parking_token_sanitized . $order_path; 942 1151 943 1152 if (!empty($iframeParams)) { -
parksystem/trunk/readme.txt
r3463514 r3486037 4 4 Requires at least: 5.0 5 5 Tested up to: 6.9 6 Stable tag: 1.0. 16 Stable tag: 1.0.2 7 7 Requires PHP: 7.4 8 8 License: GPL2 … … 45 45 == Changelog == 46 46 47 = 1.0.2 = 48 * Add optional new reservation form (order2) with toggle in settings 49 * Add extended styling options for new form: input text/border colors, secondary text, card text/header/border colors, active/error colors 50 * Rename "Body Background Color" to "Widget Body Background Color" 51 * Add localhost origin support for iframe message handling (development) 52 * Update Polish translations 53 47 54 = 1.0.1 = 48 55 * Improved code organization and WordPress coding standards compliance … … 62 69 == Upgrade Notice == 63 70 71 = 1.0.2 = 72 Adds new reservation form option with extended styling controls. Enable in ParkSystem > Settings. 73 64 74 = 1.0.1 = 65 75 This update improves code quality and WordPress standards compliance. No action required.
Note: See TracChangeset
for help on using the changeset viewer.