1. Certain elements under the section “When” on [event_form] don’t have a CSS class or id. At least a class should be added to all of them to make it easy to manipulate them via CSS and JS without needing to customize their templates, which would make every update of EM more tedious.
This part in “templates/forms/event/recurring-when.php” and “when-with-recurring.php” lacks the classes to hide it completely or certain parts of it:
<p> <?php _e('Each event lasts','dbem'); ?> <input id="end-days" type="text" size="8" maxlength="8" name="recurrence_days" value="<?php echo $EM_Event->recurrence_days; ?>" /> <?php _e('day(s)','dbem'); ?> </p> <em><?php _e( 'For a recurring event, a one day event will be created on each recurring date within this date range.', 'dbem' ); ?></em><br/>
There are several other < p > elements with no class as well in these two files. “when.php” seems to have classes on all elements.
I’d be glad for the heads up when this is fixed to download the fixed recurring-when.php and when-with-recurring.php asap without waiting for the next plugin update. Thanks!
2. The “When” area itself doesn’t have a suitable CSS class (nor id) either. The “Where” area and the rest have appropriate ones. Quote from “templates/forms/event-editor.php”:
<h4 class="event-form-when"><?php _e ( 'When', 'dbem' ); ?></h4> <div class="inside"> ... </div> ... <h4 class="event-form-where"><?php _e ( 'Where', 'dbem' ); ?></h4> <div class="inside event-form-where"> ... </div>
The first div is missing a class “event-form-when”.
- The topic ‘Add HTML/CSS classes to elements under When on [event_form]’ is closed to new replies.