From: Anthony Talarico Date: Fri, 8 Feb 2019 15:34:46 +0000 (-0500) Subject: adding container around the dates in the event slider X-Git-Tag: v1.0.0^2~2 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/index.cgi?a=commitdiff_plain;h=135b5b6b28cad6ddf35a921606466f2d5de686d8;p=WP-Themes%2Fbaymills.git adding container around the dates in the event slider --- diff --git a/glm-member-db-events/views/front/events/eventsFeed.html b/glm-member-db-events/views/front/events/eventsFeed.html index 6df8954..9e8d125 100644 --- a/glm-member-db-events/views/front/events/eventsFeed.html +++ b/glm-member-db-events/views/front/events/eventsFeed.html @@ -17,20 +17,21 @@

{$event.intro}

- - {foreach from=$event.times key=myId item=i name=time} - {if $smarty.foreach.time.first} - - {$i.start_time.timestamp|date_format:"%B %e"} - {assign var=first value=$i.start_time.timestamp} + + {foreach from=$event.times key=myId item=i name=time} + {if $smarty.foreach.time.first} - {/if} - {if $smarty.foreach.time.last} - {if $first != $i.start_time.timestamp} - - {$i.start_time.timestamp|date_format:"%B %e"} + {$i.start_time.timestamp|date_format:"%B %e"} + {assign var=first value=$i.start_time.timestamp} + {/if} - {/if} - {/foreach} + {if $smarty.foreach.time.last} + {if $first != $i.start_time.timestamp} + - {$i.start_time.timestamp|date_format:"%B %e"} + {/if} + {/if} + {/foreach} + MORE
@@ -94,28 +95,28 @@ currentDiv, topPosition = 0; $(container).each(function() { - console.log( $(this) ); - $el = $(this); - $($el).height('auto'); - topPosition = $el.position().top; - if (currentRowStart != topPosition) { + + $el = $(this); + $($el).height('auto'); + topPosition = $el.position().top; + if (currentRowStart != topPosition) { + for (currentDiv = 0 ; currentDiv < rowDivs.length ; currentDiv++) { + rowDivs[currentDiv].height(currentTallest); + + } + rowDivs.length = 0; // empty the array + currentRowStart = topPosition; + currentTallest = $el.height(); + + rowDivs.push($el); + } else { + rowDivs.push($el); + currentTallest = (currentTallest < $el.height()) ? ($el.height()) : (currentTallest); + } + for (currentDiv = 0 ; currentDiv < rowDivs.length ; currentDiv++) { - rowDivs[currentDiv].height(currentTallest); - console.log(currentTallest); + rowDivs[currentDiv].height(currentTallest); } - rowDivs.length = 0; // empty the array - currentRowStart = topPosition; - currentTallest = $el.height(); - - rowDivs.push($el); - } else { - rowDivs.push($el); - currentTallest = (currentTallest < $el.height()) ? ($el.height()) : (currentTallest); - } - - for (currentDiv = 0 ; currentDiv < rowDivs.length ; currentDiv++) { - rowDivs[currentDiv].height(currentTallest); - } }); } equalheight( $('.event.feed-block .event-title-intro') );