From 135b5b6b28cad6ddf35a921606466f2d5de686d8 Mon Sep 17 00:00:00 2001 From: Anthony Talarico Date: Fri, 8 Feb 2019 10:34:46 -0500 Subject: [PATCH] adding container around the dates in the event slider --- .../views/front/events/eventsFeed.html | 65 ++++++++++--------- 1 file changed, 33 insertions(+), 32 deletions(-) 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') ); -- 2.17.1