feature: Update version to 1.2.6, add registration link field, and enhance event templates

This commit is contained in:
Keith Solomon
2026-07-30 12:45:34 -05:00
parent 0fc424b035
commit d7f56b1fe9
7 changed files with 89 additions and 37 deletions
+24
View File
@@ -285,6 +285,30 @@
div { margin-bottom: 0.625rem; }
}
.aa-event-registration-link {
background: #005f73;
border: 2px solid #005f73;
border-radius: 0.25rem;
color: #fff;
display: inline-block;
font-weight: 700;
margin-top: 1.25rem;
padding: 0.625rem 1.25rem;
text-decoration: none;
}
.aa-event-registration-link:hover {
background: #003f4d;
border-color: #003f4d;
color: #fff;
text-decoration: underline;
}
.aa-event-registration-link:focus-visible {
outline: 3px solid #111;
outline-offset: 3px;
}
/* Events archive layout */
.aa-events-wrap .aa-events-grid {
display: grid;
-35
View File
@@ -112,41 +112,6 @@ $events = new WP_Query(
'no_found_rows' => true,
'update_post_meta_cache' => true,
'update_post_term_cache' => false,
'meta_query' => array(
'relation' => 'OR',
array(
'relation' => 'AND',
array(
'key' => '_aa_events_occurrence_index_version',
'value' => AA_EVENTS_VERSION,
'compare' => '=',
),
array(
'key' => '_aa_events_sort_start',
'value' => $month['month_end']->format( 'Y-m-d 23:59:59' ),
'compare' => '<=',
'type' => 'DATETIME',
),
array(
'key' => '_aa_events_sort_end',
'value' => $month['month_start']->format( 'Y-m-d 00:00:00' ),
'compare' => '>=',
'type' => 'DATETIME',
),
),
array(
'relation' => 'OR',
array(
'key' => '_aa_events_occurrence_index_version',
'compare' => 'NOT EXISTS',
),
array(
'key' => '_aa_events_occurrence_index_version',
'value' => AA_EVENTS_VERSION,
'compare' => '!=',
),
),
),
)
);
foreach ( $events->posts as $event_id ) {
+7
View File
@@ -93,6 +93,13 @@ get_header(); ?>
</div>
<?php } ?>
</div>
<?php $registration_link_markup = aa_events_registration_link_markup( get_field( 'registration_link' ) ); ?>
<?php if ( $registration_link_markup ) : ?>
<div class="aa-event-registration">
<?php echo wp_kses_post( $registration_link_markup ); ?>
</div>
<?php endif; ?>
</footer><!-- .entry-footer -->
</article><!-- #post-<?php the_ID(); ?> -->