</ul> <?php } ?> </article> <article class="article-map col-10 col-offset-1 col-l-5 col-l-offset-1"> <div class="liens"> <h3>Sélectionnez un lieu pour afficher sa localisation :</h3> <?php $lieux = get_lieux(); foreach ($lieux as $lieu) { if (get_prog_lieu($lieu['lieu']) !== "Aucun évènement n'est prévu à cet endroit pour le moment") { ?> <a href="?lieu=<?php echo $lieu['lieu']; ?> #map-canvas"><?php echo $lieu['lieu']; ?> </a> <?php } }
/** Utility function called by event_editor_box(). */ function schedule_row($start, $end, $time_start, $time_end, $sid, $action, $allday, $lieux_id, $option_id, $info_shed) { global $post_ID; $s = "ec3_start_{$sid}"; $e = "ec3_end_{$sid}"; $ts = "ec3_timeStart_{$sid}"; $te = "ec3_timeEnd_{$sid}"; $now = substr(date(DATE_W3C), 0, 10); ?> <tr class="ec3_schedule_row" valign="middle" id="ec3_tr_<?php echo $sid; ?> " name="ec3_tr_<?php echo $sid; ?> " <?php if ('create' == $action) { echo ' style="display:none"'; } ?> > <td> <!-- Start --> <input type="hidden" name="ec3_action_<?php echo $sid; ?> " value="<?php echo $action; ?> " /> <input type="text" name="<?php echo $s; if ('update' == $action) { echo "\" id=\"{$s}"; } ?> " value="<?php echo $start; ?> " /> <button type="reset" id="trigger_<?php echo $s; ?> ">…</button> </br> <!-- End --> <input type="text" name="<?php echo $e; if ('update' == $action) { echo "\" id=\"{$e}"; } ?> " value="<?php echo $end; ?> " /> <button type="reset" id="trigger_<?php echo $e; ?> ">…</button> </td> <?php if (get_post_type() != 'exposition') { ?> <td> <!-- Time Start --> <input type="text" name="<?php echo $ts; if ('update' == $action) { echo "\" id=\"{$ts}"; } ?> " value="<?php echo $time_start; ?> " /> </br> <!-- Time End --> <input type="text" name="<?php echo $te; if ('update' == $action) { echo "\" id=\"{$te}"; } ?> " value="<?php echo $time_end; ?> " /> </td> <td style="text-align:center"> <input type="checkbox" name="ec3_allday_<?php echo $sid; ?> " value="1"<?php if ($allday) { echo ' checked="checked"'; } ?> /> </td> <?php } ?> <td style="max-width : 200px;"> <?php get_lieux($sid, $post_ID); ?> </td> <td> <?php get_option_event($sid, $post_ID); ?> </td> <td> <textarea name="ec3_info_<?php echo $sid; ?> " id="ec3_info_<?php echo $sid; ?> " cols="30" rows="2"><?php echo stripslashes($info_shed); ?> </textarea> </td> <td> <p style="margin:0;padding:0"> <input type="button" name="ec3_del_row_<?php echo $sid; ?> " value=" — " title="<?php _e('Delete this event', 'ec3'); ?> " onclick="Ec3EditForm.del_row(this)" /> </p> </td> </tr> <?php if ($start < $now) { echo '<script>ec3_oldrows.push(ec3_tr_' . $sid . ');</script>'; } }