PageRenderTime 151ms CodeModel.GetById 16ms RepoModel.GetById 1ms app.codeStats 0ms

/plugins/all-in-one-event-calendar/app/view/box_time_and_date.php

https://github.com/jdickie/mithpressbeta
PHP | 83 lines | 83 code | 0 blank | 0 comment | 6 complexity | 2941867e2f2cd9ca06887f50d5cce1ae MD5 | raw file
Possible License(s): GPL-3.0, LGPL-2.1, AGPL-1.0
  1. <?php wp_nonce_field( 'ai1ec', AI1EC_POST_TYPE ); ?>
  2. <h4 class="ai1ec-section-title"><?php _e( 'Event date and time', AI1EC_PLUGIN_NAME ); ?></h4>
  3. <table class="ai1ec-form">
  4. <tbody>
  5. <tr>
  6. <td class="ai1ec-first">
  7. <label for="ai1ec_all_day_event">
  8. <?php _e( 'All-day event', AI1EC_PLUGIN_NAME ); ?>?
  9. </label>
  10. </td>
  11. <td>
  12. <input type="checkbox" name="ai1ec_all_day_event" id="ai1ec_all_day_event" <?php echo $all_day_event; ?> />
  13. </td>
  14. </tr>
  15. <tr>
  16. <td>
  17. <label for="ai1ec_start-date-input">
  18. <?php _e( 'Start date / time', AI1EC_PLUGIN_NAME ); ?>:
  19. </label>
  20. </td>
  21. <td>
  22. <input type="text" class="ai1ec-date-input" id="ai1ec_start-date-input" />
  23. <input type="text" class="ai1ec-time-input" id="ai1ec_start-time-input" />
  24. <small><?php echo $timezone ?></small>
  25. <input type="hidden" name="ai1ec_start_time" id="ai1ec_start-time" value="<?php echo $start_timestamp ?>" />
  26. </td>
  27. </tr>
  28. <tr>
  29. <td>
  30. <label for="ai1ec_end-date-input">
  31. <?php _e( 'End date / time', AI1EC_PLUGIN_NAME ) ?>:
  32. </label>
  33. </td>
  34. <td>
  35. <input type="text" class="ai1ec-date-input" id="ai1ec_end-date-input" />
  36. <input type="text" class="ai1ec-time-input" id="ai1ec_end-time-input" />
  37. <small><?php echo $timezone ?></small>
  38. <input type="hidden" name="ai1ec_end_time" id="ai1ec_end-time" value="<?php echo $end_timestamp ?>" />
  39. </td>
  40. </tr>
  41. <tr>
  42. <td>
  43. <label for="ai1ec_repeat">
  44. <?php _e( 'Repeat', AI1EC_PLUGIN_NAME ) ?>:
  45. </label>
  46. </td>
  47. <td>
  48. <?php echo $repeat; ?>
  49. </td>
  50. </tr>
  51. <tr id="ai1ec_end_holder" <?php if( ! $repeating_event ) echo 'class="ai1ec_hidden"' ?>>
  52. <td>
  53. <label for="ai1ec_end">
  54. <?php _e( 'End', AI1EC_PLUGIN_NAME ) ?>:
  55. </label>
  56. </td>
  57. <td>
  58. <?php echo $end ?>
  59. </td>
  60. </tr>
  61. <tr id="ai1ec_count_holder" <?php if( $ending != 1 ) echo 'class="ai1ec_hidden"' ?>>
  62. <td>
  63. <label for="ai1ec_count">
  64. <?php _e( 'Ending after', AI1EC_PLUGIN_NAME ) ?>:
  65. </label>
  66. </td>
  67. <td>
  68. <?php echo $count; ?>
  69. </td>
  70. </tr>
  71. <tr id="ai1ec_until_holder" <?php if( $ending != 2 ) echo 'class="ai1ec_hidden"' ?>>
  72. <td>
  73. <label for="ai1ec_until-date-input">
  74. <?php _e( 'On date', AI1EC_PLUGIN_NAME ) ?>:
  75. </label>
  76. </td>
  77. <td>
  78. <input type="text" class="ai1ec-date-input" id="ai1ec_until-date-input" />
  79. <input type="hidden" name="ai1ec_until_time" id="ai1ec_until-time" value="<?php echo !is_null( $until ) && $until > 0 ? $until : '' ?>" />
  80. </td>
  81. </tr>
  82. </tbody>
  83. </table>