adding featured event check to the group by month conidtional
authorAnthony Talarico <talarico@gaslightmedia.com>
Fri, 23 Jun 2017 16:06:11 +0000 (12:06 -0400)
committerAnthony Talarico <talarico@gaslightmedia.com>
Fri, 23 Jun 2017 16:06:11 +0000 (12:06 -0400)
adding a check for featured events with the event from date so that the featured
events are also being pulled in

models/front/events/list.php

index ec2d563..ef8ab34 100644 (file)
@@ -189,7 +189,7 @@ class GlmMembersFront_events_list extends GlmMembersFront_events_baseAction
                     )
                 )
             );
-        } else if ( $groupMonth ) {
+        } else if ( $groupMonth && !$featured) {
             // restrict the date to one month of events
             if ( !isset( $_REQUEST['glm_event_from'] ) ) {
                 // use the first date for this month