From: Anthony Talarico Date: Thu, 11 May 2017 15:01:29 +0000 (-0400) Subject: highlighting current month and current year to replace the today button X-Git-Tag: v1.6.38^2~2^2~12 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=93ac7e9af6de6cfd4582b14d4dfe5a5549e08349;p=WP-Plugins%2Fglm-member-db-events.git highlighting current month and current year to replace the today button need to remove the nav arrows and today button to clean up the ui, adding background highlighting to the current month of the current only --- diff --git a/css/front.css b/css/front.css index e348751..9260de3 100755 --- a/css/front.css +++ b/css/front.css @@ -405,10 +405,10 @@ a.fc-time-grid-event.fc-v-event { .month-nav:hover, .year-nav:hover{ cursor: pointer; } -/*.current-date{ +.current-date{ background: #f5822a; color: white; -}*/ +} @media (max-width: 640px) and (min-width: 320px){ .view-select{ float: left; diff --git a/views/front/events/agenda.html b/views/front/events/agenda.html index b0139a9..cfa3b0c 100644 --- a/views/front/events/agenda.html +++ b/views/front/events/agenda.html @@ -297,9 +297,9 @@ $('#month-nav-container').empty(); $.each(new_months, function(index, value){ - - if(value.date == current_month.selector){ - {literal} var option = $('
', {class: 'month-nav date-highlight',text: value.name}); {/literal} + + if(value.date == current_month.selector && year === current_year.selector ){ + {literal} var option = $('
', {class: 'month-nav date-highlight current-date',text: value.name}); {/literal} } else { {literal} var option = $('
', {class: 'month-nav',text: value.name}); {/literal} }