Changeset 2501574
- Timestamp:
- 03/23/2021 09:13:53 AM (5 years ago)
- File:
-
- 1 edited
-
slope-widgets/trunk/slope-reservations.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
slope-widgets/trunk/slope-reservations.php
r2501564 r2501574 47 47 48 48 // Checkbox: slope_options[show_children] 49 if ($options['show_children']) { 50 $checkedChildren = ' checked="checked" '; 51 } 49 $checkedChildren = array_key_exists('show_children', $options) ? ' checked="checked" ' : null; 52 50 echo "<div class='setting-field'> 53 51 <label class='checkbox-children'>" . esc_html__('Mostra selezione bambini', 'slope-widgets') . "<input " . $checkedChildren . " id='slope_show_children' name='slope_options[show_children]' type='checkbox'></label> … … 67 65 echo "<div class='setting-field'> 68 66 <label>" . esc_html__('Apri il Booking Engine in una nuova scheda', 'slope-widgets'); 69 if ($options['book_target']) { 70 $checkedBook = ' checked="checked" '; 71 } 67 $checkedBook = array_key_exists('book_target', $options) ? ' checked="checked" ' : null; 72 68 echo "<input" . $checkedBook . " id='slope_book_target' name='slope_options[book_target]' type='checkbox'></label></div>"; 73 69 … … 384 380 <span class="slope-guests-adults">' . $strings['adults'] . '</span>'; 385 381 386 if ( $options['show_children']) {387 $html .= '<span style="font-size: 16px"> - </span><span class="slope-children-count" data-sync-value="children"></span>382 if (array_key_exists('show_children', $options)) { 383 $html .= '<span style="font-size: 16px"> - </span><span class="slope-children-count" data-sync-value="children"></span> 388 384 <span class="slope-guests-children">' . $strings['children'] . '</span>'; 389 385 }
Note: See TracChangeset
for help on using the changeset viewer.