Skip to content

Commit

Permalink
Always enqueue the CSS #2. Change title for View Calendar link #1
Browse files Browse the repository at this point in the history
  • Loading branch information
bobbingwide committed Nov 27, 2021
1 parent a31e55c commit bc35d0c
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions includes/ebps-tribe-events.php
Original file line number Diff line number Diff line change
Expand Up @@ -166,9 +166,7 @@ function ebps_maybe_register_tribe_events() {
*/
function ebps_meetings_lazy_shortcode( $atts, $content, $tag ) {
$enqueue_css = ebps_maybe_register_tribe_events();
if ( $enqueue_css ) {
ebps_enqueue_css();
}
ebps_enqueue_css();
$html = ebps_get_cached_meetings();
if ( false === $html ) {
$html = ebps_meetings_render_html( $atts, $content, $tag );
Expand All @@ -194,7 +192,7 @@ function ebps_meetings_render_html( $atts, $content, $tag ) {
function ebps_meetings_view_calendar_link() {
$html = '<a href="';
$html .= home_url('events');
$html .= '" title="View more events">View Calendar</a>';
$html .= '" title="View more meetings">View Calendar</a>';
return $html;
}

Expand Down

0 comments on commit bc35d0c

Please sign in to comment.