Changeset 1970130
- Timestamp:
- 11/06/2018 10:07:40 PM (7 years ago)
- Location:
- events-as-posts
- Files:
-
- 10 edited
-
tags/0.5.2/event-meta.php (modified) (1 diff)
-
tags/0.5.2/event-post-type.php (modified) (6 diffs)
-
tags/0.5.2/inc/eap-admin.css (modified) (1 diff)
-
tags/0.5.2/inc/eap.css (modified) (1 diff)
-
tags/0.5.2/settings/eap-display-settings.php (modified) (7 diffs)
-
trunk/event-meta.php (modified) (1 diff)
-
trunk/event-post-type.php (modified) (6 diffs)
-
trunk/inc/eap-admin.css (modified) (1 diff)
-
trunk/inc/eap.css (modified) (1 diff)
-
trunk/settings/eap-display-settings.php (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
events-as-posts/tags/0.5.2/event-meta.php
r1969889 r1970130 13 13 14 14 // date and time icons 15 $date_icon = '<span class="dashicons dashicons-calendar-alt eap__date-icon"></span>';16 $time_icon = '<span class="dashicons dashicons-clock eap__time-icon"></span>';15 $date_icon = '<span class="dashicons dashicons-calendar-alt"></span>'; 16 $time_icon = '<span class="dashicons dashicons-clock"></span>'; 17 17 18 18 // separation mark '–' between from day/time and until day/time -
events-as-posts/tags/0.5.2/event-post-type.php
r1969717 r1970130 82 82 <h4><?php _e( 'From', 'events-as-posts' ) ?></h4> 83 83 84 <p class="eap- post-event">85 <label for="eap__from-day" class="eap-post-event__day"><?php _e( 'Day', 'events-as-posts' )?></label>84 <p class="eap-add-event__custom-field"> 85 <label for="eap__from-day"><span class="dashicons dashicons-calendar-alt"></span> <?php _e( 'Day', 'events-as-posts' )?></label> 86 86 <input type="date" required name="eap_from_day" id="eap__from-day" value="<?php if ( isset ( $eap_stored_meta['eap_from_day'] ) ) echo $eap_stored_meta['eap_from_day'][0]; ?>" /> 87 87 <br> 88 <label for="eap__from-time" class="eap-post-event__time"><?php _e( 'Time', 'events-as-posts' )?></label>88 <label for="eap__from-time"><span class="dashicons dashicons-clock"></span> <?php _e( 'Time', 'events-as-posts' )?></label> 89 89 <input type="time" name="eap_from_time" id="eap__from-time" value="<?php if ( isset ( $eap_stored_meta['eap_from_time'] ) ) echo $eap_stored_meta['eap_from_time'][0]; ?>" /> 90 90 </p> … … 93 93 <h4><?php _e('Until', 'events-as-posts') ?></h4> 94 94 95 <p class="eap- post-event">96 <label for="eap__until-day" class="eap-post-event__day"><?php _e( 'Day', 'events-as-posts' )?></label>95 <p class="eap-add-event__custom-field"> 96 <label for="eap__until-day"><span class="dashicons dashicons-calendar-alt"></span> <?php _e( 'Day', 'events-as-posts' )?></label> 97 97 <input type="date" name="eap_until_day" id="eap__until-day" value="<?php if ( isset ( $eap_stored_meta['eap_until_day'] ) ) echo $eap_stored_meta['eap_until_day'][0]; ?>" /> 98 98 <br> 99 <label for="eap__until-time" class="eap-post-event__time"><?php _e( 'Time', 'events-as-posts' )?></label>99 <label for="eap__until-time"><span class="dashicons dashicons-clock"></span> <?php _e( 'Time', 'events-as-posts' )?></label> 100 100 <input type="time" name="eap_until_time" id="eap__until-time" value="<?php if ( isset ( $eap_stored_meta['eap_until_time'] ) ) echo $eap_stored_meta['eap_until_time'][0]; ?>" /> 101 101 </p> … … 113 113 114 114 <!-- event location --> 115 <p class="eap- post-event">116 <label for="eap__location" class="eap-post-event__location"><?php _e( 'Event location', 'events-as-posts' )?></label>115 <p class="eap-add-event__custom-field"> 116 <label for="eap__location"><?php _e( 'Event location', 'events-as-posts' )?></label> 117 117 <br> 118 118 <input type="text" required maxlength="60" name="eap_location" id="eap__location" value="<?php if ( isset ( $eap_stored_meta['eap_location'] ) ) echo $eap_stored_meta['eap_location'][0]; ?>" /> … … 120 120 121 121 <!-- link to location --> 122 <p class="eap- post-event">122 <p class="eap-add-event__custom-field"> 123 123 <label for="eap__link-location"><?php _e( 'Link to location', 'events-as-posts' )?></label> 124 124 <span> | </span> … … 129 129 130 130 <!-- city --> 131 <p class="eap- post-event">131 <p class="eap-add-event__custom-field"> 132 132 <label for="eap__city"><?php _e( 'City', 'events-as-posts' )?></label> 133 133 <br> … … 136 136 137 137 <!-- country --> 138 <p class="eap- post-event">138 <p class="eap-add-event__custom-field"> 139 139 <label for="eap__country"><?php _e( 'Country', 'events-as-posts' )?></label> 140 140 <br> -
events-as-posts/tags/0.5.2/inc/eap-admin.css
r1969717 r1970130 1 .eap-setting __date-formatinput {1 .eap-settings__date-settings input { 2 2 max-width: 56px; 3 3 } 4 .eap-setting __shortcode {4 .eap-settings__shortcode { 5 5 color: red; 6 6 } 7 .eap-setting __custom-css{7 .eap-settings__custom-css textarea { 8 8 padding: .6em; 9 9 } 10 .eap-post-event label, 11 .eap-post-event input { 12 vertical-align: middle; 13 display: inline-block; 10 .eap-add-event__custom-field .dashicons { 11 vertical-align: middle; 14 12 } 15 .eap-post-event__day::before {16 content: "\f508";17 }18 .eap-post-event__time::before {19 content: "\f469";20 }21 .eap-post-event__location::before {22 content: "\f230";23 }24 .eap-post-event label::before {25 font: 400 20px/1 dashicons;26 speak: none;27 display: inline-block;28 margin-left: -1px;29 padding-right: 3px;30 vertical-align: top;31 -webkit-font-smoothing: antialiased;32 -moz-osx-font-smoothing: grayscale;33 color: #72777c;34 } -
events-as-posts/tags/0.5.2/inc/eap.css
r1969889 r1970130 12 12 white-space: nowrap; 13 13 } 14 .eap__meta .dashicons { 15 vertical-align: middle; 16 } 14 17 15 18 /* you can add your styles here */ -
events-as-posts/tags/0.5.2/settings/eap-display-settings.php
r1969717 r1970130 15 15 <?php _e( '<b>Events as Posts</b> allows you to display a list of events everywhere on your site using a shortcode. Copy and paste in your posts or pages the following shortcode to display a list of events: *', 'events-as-posts' ) ?> 16 16 </p> 17 <span class="eap-setting__shortcode">[display_events]</span> 17 18 <p> 19 <span class="eap-settings__shortcode">[display_events]</span> 20 </p> 21 18 22 <p> 19 23 <i><?php _e('* The above shortcode will only display future events', 'events-as-posts') ?></i> … … 61 65 ?> 62 66 63 <p class="eap-setting __date-format">67 <p class="eap-settings__date-settings"> 64 68 <input type="text" name="eap_settings[date_format]" value="<?php echo $setting['date_format']; ?>" required /> <!-- pattern="[-dDjFmMnYylS,./\s]+" --> 65 69 <p> … … 80 84 ?> 81 85 82 <p class="eap-setting __date-format">86 <p class="eap-settings__date-settings"> 83 87 <input type="text" name="eap_settings[time_format]" value="<?php echo $setting['time_format']; ?>" required /> <!-- pattern="[aAgGhHi:\s]+" --> 84 88 <p> … … 98 102 $setting = get_option( 'eap_settings' ); 99 103 ?> 100 <p class="eap-post-event">104 <p> 101 105 <input type="checkbox" name="eap_settings[date_icon]" id="eap__date-icon" value="true" <?php if ( isset ( $setting['date_icon'] ) ) checked( 'true', $setting['date_icon'] ); ?> /> 102 106 <label for="eap__date-icon"><?php _e( 'Display calendar icon before date', 'events-as-posts' ); ?></label> 103 <br>104 105 107 </p> 106 108 <?php … … 113 115 $setting = get_option( 'eap_settings' ); 114 116 ?> 115 <p class="eap-post-event">117 <p> 116 118 <input type="checkbox" name="eap_settings[time_icon]" id="eap__time-icon" value="true" <?php if ( isset ( $setting['time_icon'] ) ) checked( 'true', $setting['time_icon'] ); ?> /> 117 119 <label for="eap__time-icon"><?php _e( 'Display clock icon before time', 'events-as-posts' ); ?></label> 118 <br>119 120 120 </p> 121 121 <?php … … 188 188 $setting = get_option( 'eap_settings' ); 189 189 190 $shortcode = '<span class="eap-setting __shortcode">';190 $shortcode = '<span class="eap-settings__shortcode">'; 191 191 192 192 // shortcode for future events … … 364 364 $setting = get_option( 'eap_settings_style' ); 365 365 ?> 366 367 <textarea class="eap-setting__custom-css" name="eap_settings_style[custom_css]" rows="8" cols="40"><?php if ( isset( $setting['custom_css'] ) ) echo $setting['custom_css']; ?></textarea> 368 <?php 369 } 366 <div class="eap-settings__custom-css"> 367 <textarea name="eap_settings_style[custom_css]" rows="8" cols="40"><?php if ( isset( $setting['custom_css'] ) ) echo $setting['custom_css']; ?></textarea> 368 </div> 369 <?php 370 } -
events-as-posts/trunk/event-meta.php
r1969889 r1970130 13 13 14 14 // date and time icons 15 $date_icon = '<span class="dashicons dashicons-calendar-alt eap__date-icon"></span>';16 $time_icon = '<span class="dashicons dashicons-clock eap__time-icon"></span>';15 $date_icon = '<span class="dashicons dashicons-calendar-alt"></span>'; 16 $time_icon = '<span class="dashicons dashicons-clock"></span>'; 17 17 18 18 // separation mark '–' between from day/time and until day/time -
events-as-posts/trunk/event-post-type.php
r1968645 r1970130 82 82 <h4><?php _e( 'From', 'events-as-posts' ) ?></h4> 83 83 84 <p class="eap- post-event">85 <label for="eap__from-day" class="eap-post-event__day"><?php _e( 'Day', 'events-as-posts' )?></label>84 <p class="eap-add-event__custom-field"> 85 <label for="eap__from-day"><span class="dashicons dashicons-calendar-alt"></span> <?php _e( 'Day', 'events-as-posts' )?></label> 86 86 <input type="date" required name="eap_from_day" id="eap__from-day" value="<?php if ( isset ( $eap_stored_meta['eap_from_day'] ) ) echo $eap_stored_meta['eap_from_day'][0]; ?>" /> 87 87 <br> 88 <label for="eap__from-time" class="eap-post-event__time"><?php _e( 'Time', 'events-as-posts' )?></label>88 <label for="eap__from-time"><span class="dashicons dashicons-clock"></span> <?php _e( 'Time', 'events-as-posts' )?></label> 89 89 <input type="time" name="eap_from_time" id="eap__from-time" value="<?php if ( isset ( $eap_stored_meta['eap_from_time'] ) ) echo $eap_stored_meta['eap_from_time'][0]; ?>" /> 90 90 </p> … … 93 93 <h4><?php _e('Until', 'events-as-posts') ?></h4> 94 94 95 <p class="eap- post-event">96 <label for="eap__until-day" class="eap-post-event__day"><?php _e( 'Day', 'events-as-posts' )?></label>95 <p class="eap-add-event__custom-field"> 96 <label for="eap__until-day"><span class="dashicons dashicons-calendar-alt"></span> <?php _e( 'Day', 'events-as-posts' )?></label> 97 97 <input type="date" name="eap_until_day" id="eap__until-day" value="<?php if ( isset ( $eap_stored_meta['eap_until_day'] ) ) echo $eap_stored_meta['eap_until_day'][0]; ?>" /> 98 98 <br> 99 <label for="eap__until-time" class="eap-post-event__time"><?php _e( 'Time', 'events-as-posts' )?></label>99 <label for="eap__until-time"><span class="dashicons dashicons-clock"></span> <?php _e( 'Time', 'events-as-posts' )?></label> 100 100 <input type="time" name="eap_until_time" id="eap__until-time" value="<?php if ( isset ( $eap_stored_meta['eap_until_time'] ) ) echo $eap_stored_meta['eap_until_time'][0]; ?>" /> 101 101 </p> … … 113 113 114 114 <!-- event location --> 115 <p class="eap- post-event">116 <label for="eap__location" class="eap-post-event__location"><?php _e( 'Event location', 'events-as-posts' )?></label>115 <p class="eap-add-event__custom-field"> 116 <label for="eap__location"><?php _e( 'Event location', 'events-as-posts' )?></label> 117 117 <br> 118 118 <input type="text" required maxlength="60" name="eap_location" id="eap__location" value="<?php if ( isset ( $eap_stored_meta['eap_location'] ) ) echo $eap_stored_meta['eap_location'][0]; ?>" /> … … 120 120 121 121 <!-- link to location --> 122 <p class="eap- post-event">122 <p class="eap-add-event__custom-field"> 123 123 <label for="eap__link-location"><?php _e( 'Link to location', 'events-as-posts' )?></label> 124 124 <span> | </span> … … 129 129 130 130 <!-- city --> 131 <p class="eap- post-event">131 <p class="eap-add-event__custom-field"> 132 132 <label for="eap__city"><?php _e( 'City', 'events-as-posts' )?></label> 133 133 <br> … … 136 136 137 137 <!-- country --> 138 <p class="eap- post-event">138 <p class="eap-add-event__custom-field"> 139 139 <label for="eap__country"><?php _e( 'Country', 'events-as-posts' )?></label> 140 140 <br> -
events-as-posts/trunk/inc/eap-admin.css
r1969081 r1970130 1 .eap-setting __date-formatinput {1 .eap-settings__date-settings input { 2 2 max-width: 56px; 3 3 } 4 .eap-setting __shortcode {4 .eap-settings__shortcode { 5 5 color: red; 6 6 } 7 .eap-setting __custom-css{7 .eap-settings__custom-css textarea { 8 8 padding: .6em; 9 9 } 10 .eap-post-event label, 11 .eap-post-event input { 12 vertical-align: middle; 13 display: inline-block; 10 .eap-add-event__custom-field .dashicons { 11 vertical-align: middle; 14 12 } 15 .eap-post-event__day::before {16 content: "\f508";17 }18 .eap-post-event__time::before {19 content: "\f469";20 }21 .eap-post-event__location::before {22 content: "\f230";23 }24 .eap-post-event label::before {25 font: 400 20px/1 dashicons;26 speak: none;27 display: inline-block;28 margin-left: -1px;29 padding-right: 3px;30 vertical-align: top;31 -webkit-font-smoothing: antialiased;32 -moz-osx-font-smoothing: grayscale;33 color: #72777c;34 } -
events-as-posts/trunk/inc/eap.css
r1969889 r1970130 12 12 white-space: nowrap; 13 13 } 14 .eap__meta .dashicons { 15 vertical-align: middle; 16 } 14 17 15 18 /* you can add your styles here */ -
events-as-posts/trunk/settings/eap-display-settings.php
r1969717 r1970130 15 15 <?php _e( '<b>Events as Posts</b> allows you to display a list of events everywhere on your site using a shortcode. Copy and paste in your posts or pages the following shortcode to display a list of events: *', 'events-as-posts' ) ?> 16 16 </p> 17 <span class="eap-setting__shortcode">[display_events]</span> 17 18 <p> 19 <span class="eap-settings__shortcode">[display_events]</span> 20 </p> 21 18 22 <p> 19 23 <i><?php _e('* The above shortcode will only display future events', 'events-as-posts') ?></i> … … 61 65 ?> 62 66 63 <p class="eap-setting __date-format">67 <p class="eap-settings__date-settings"> 64 68 <input type="text" name="eap_settings[date_format]" value="<?php echo $setting['date_format']; ?>" required /> <!-- pattern="[-dDjFmMnYylS,./\s]+" --> 65 69 <p> … … 80 84 ?> 81 85 82 <p class="eap-setting __date-format">86 <p class="eap-settings__date-settings"> 83 87 <input type="text" name="eap_settings[time_format]" value="<?php echo $setting['time_format']; ?>" required /> <!-- pattern="[aAgGhHi:\s]+" --> 84 88 <p> … … 98 102 $setting = get_option( 'eap_settings' ); 99 103 ?> 100 <p class="eap-post-event">104 <p> 101 105 <input type="checkbox" name="eap_settings[date_icon]" id="eap__date-icon" value="true" <?php if ( isset ( $setting['date_icon'] ) ) checked( 'true', $setting['date_icon'] ); ?> /> 102 106 <label for="eap__date-icon"><?php _e( 'Display calendar icon before date', 'events-as-posts' ); ?></label> 103 <br>104 105 107 </p> 106 108 <?php … … 113 115 $setting = get_option( 'eap_settings' ); 114 116 ?> 115 <p class="eap-post-event">117 <p> 116 118 <input type="checkbox" name="eap_settings[time_icon]" id="eap__time-icon" value="true" <?php if ( isset ( $setting['time_icon'] ) ) checked( 'true', $setting['time_icon'] ); ?> /> 117 119 <label for="eap__time-icon"><?php _e( 'Display clock icon before time', 'events-as-posts' ); ?></label> 118 <br>119 120 120 </p> 121 121 <?php … … 188 188 $setting = get_option( 'eap_settings' ); 189 189 190 $shortcode = '<span class="eap-setting __shortcode">';190 $shortcode = '<span class="eap-settings__shortcode">'; 191 191 192 192 // shortcode for future events … … 364 364 $setting = get_option( 'eap_settings_style' ); 365 365 ?> 366 367 <textarea class="eap-setting__custom-css" name="eap_settings_style[custom_css]" rows="8" cols="40"><?php if ( isset( $setting['custom_css'] ) ) echo $setting['custom_css']; ?></textarea> 368 <?php 369 } 366 <div class="eap-settings__custom-css"> 367 <textarea name="eap_settings_style[custom_css]" rows="8" cols="40"><?php if ( isset( $setting['custom_css'] ) ) echo $setting['custom_css']; ?></textarea> 368 </div> 369 <?php 370 }
Note: See TracChangeset
for help on using the changeset viewer.