.wp-block-audio figcaption{color:#555;font-size:13px;text-align:center}.is-dark-theme .wp-block-audio figcaption{color:#ffffffa6}.wp-block-audio{margin:0 0 1em}.wp-block-code{border:1px solid #ccc;border-radius:4px;font-family:Menlo,Consolas,monaco,monospace;padding:.8em 1em}.wp-block-embed figcaption{color:#555;font-size:13px;text-align:center}.is-dark-theme .wp-block-embed figcaption{color:#ffffffa6}.wp-block-embed{margin:0 0 1em}.blocks-gallery-caption{color:#555;font-size:13px;text-align:center}.is-dark-theme .blocks-gallery-caption{color:#ffffffa6}.wp-block-image figcaption{color:#555;font-size:13px;text-align:center}.is-dark-theme .wp-block-image figcaption{color:#ffffffa6}.wp-block-image{margin:0 0 1em}.wp-block-pullquote{border-bottom:4px solid;border-top:4px solid;color:currentColor;margin-bottom:1.75em}.wp-block-pullquote cite,.wp-block-pullquote footer,.wp-block-pullquote__citation{color:currentColor;font-size:.8125em;font-style:normal;text-transform:uppercase}.wp-block-quote{border-left:.25em solid;margin:0 0 1.75em;padding-left:1em}.wp-block-quote cite,.wp-block-quote footer{color:currentColor;font-size:.8125em;font-style:normal;position:relative}.wp-block-quote.has-text-align-right{border-left:none;border-right:.25em solid;padding-left:0;padding-right:1em}.wp-block-quote.has-text-align-center{border:none;padding-left:0}.wp-block-quote.is-large,.wp-block-quote.is-style-large,.wp-block-quote.is-style-plain{border:none}.wp-block-search .wp-block-search__label{font-weight:700}.wp-block-search__button{border:1px solid #ccc;padding:.375em .625em}:where(.wp-block-group.has-background){padding:1.25em 2.375em}.wp-block-separator.has-css-opacity{opacity:.4}.wp-block-separator{border:none;border-bottom:2px solid;margin-left:auto;margin-right:auto}.wp-block-separator.has-alpha-channel-opacity{opacity:1}.wp-block-separator:not(.is-style-wide):not(.is-style-dots){width:100px}.wp-block-separator.has-background:not(.is-style-dots){border-bottom:none;height:1px}.wp-block-separator.has-background:not(.is-style-wide):not(.is-style-dots){height:2px}.wp-block-table{margin:0 0 1em}.wp-block-table td,.wp-block-table th{word-break:normal}.wp-block-table figcaption{color:#555;font-size:13px;text-align:center}.is-dark-theme .wp-block-table figcaption{color:#ffffffa6}.wp-block-video figcaption{color:#555;font-size:13px;text-align:center}.is-dark-theme .wp-block-video figcaption{color:#ffffffa6}.wp-block-video{margin:0 0 1em}.wp-block-template-part.has-background{margin-bottom:0;margin-top:0;padding:1.25em 2.375em} .editor-styles-wrapper .wp-block-elastiress-related-posts ul,.wp-block-elastiress-related-posts ul{list-style-type:none;padding:0}.editor-styles-wrapper .wp-block-elastiress-related-posts ul li a>div{display:inline} /*! This file is auto-generated */ .wp-block-button__link{color:#fff;background-color:#32373c;border-radius:9999px;box-shadow:none;text-decoration:none;padding:calc(.667em + 2px) calc(1.333em + 2px);font-size:1.125em}.wp-block-file__button{background:#32373c;color:#fff;text-decoration:none} body{--wp--preset--color--black: #000000;--wp--preset--color--cyan-bluish-gray: #abb8c3;--wp--preset--color--white: #ffffff;--wp--preset--color--pale-pink: #f78da7;--wp--preset--color--vivid-red: #cf2e2e;--wp--preset--color--luminous-vivid-orange: #ff6900;--wp--preset--color--luminous-vivid-amber: #fcb900;--wp--preset--color--light-green-cyan: #7bdcb5;--wp--preset--color--vivid-green-cyan: #00d084;--wp--preset--color--pale-cyan-blue: #8ed1fc;--wp--preset--color--vivid-cyan-blue: #0693e3;--wp--preset--color--vivid-purple: #9b51e0;--wp--preset--gradient--vivid-cyan-blue-to-vivid-purple: linear-gradient(135deg,rgba(6,147,227,1) 0%,rgb(155,81,224) 100%);--wp--preset--gradient--light-green-cyan-to-vivid-green-cyan: linear-gradient(135deg,rgb(122,220,180) 0%,rgb(0,208,130) 100%);--wp--preset--gradient--luminous-vivid-amber-to-luminous-vivid-orange: linear-gradient(135deg,rgba(252,185,0,1) 0%,rgba(255,105,0,1) 100%);--wp--preset--gradient--luminous-vivid-orange-to-vivid-red: linear-gradient(135deg,rgba(255,105,0,1) 0%,rgb(207,46,46) 100%);--wp--preset--gradient--very-light-gray-to-cyan-bluish-gray: linear-gradient(135deg,rgb(238,238,238) 0%,rgb(169,184,195) 100%);--wp--preset--gradient--cool-to-warm-spectrum: linear-gradient(135deg,rgb(74,234,220) 0%,rgb(151,120,209) 20%,rgb(207,42,186) 40%,rgb(238,44,130) 60%,rgb(251,105,98) 80%,rgb(254,248,76) 100%);--wp--preset--gradient--blush-light-purple: linear-gradient(135deg,rgb(255,206,236) 0%,rgb(152,150,240) 100%);--wp--preset--gradient--blush-bordeaux: linear-gradient(135deg,rgb(254,205,165) 0%,rgb(254,45,45) 50%,rgb(107,0,62) 100%);--wp--preset--gradient--luminous-dusk: linear-gradient(135deg,rgb(255,203,112) 0%,rgb(199,81,192) 50%,rgb(65,88,208) 100%);--wp--preset--gradient--pale-ocean: linear-gradient(135deg,rgb(255,245,203) 0%,rgb(182,227,212) 50%,rgb(51,167,181) 100%);--wp--preset--gradient--electric-grass: linear-gradient(135deg,rgb(202,248,128) 0%,rgb(113,206,126) 100%);--wp--preset--gradient--midnight: linear-gradient(135deg,rgb(2,3,129) 0%,rgb(40,116,252) 100%);--wp--preset--font-size--small: 13px;--wp--preset--font-size--medium: 20px;--wp--preset--font-size--large: 36px;--wp--preset--font-size--x-large: 42px;--wp--preset--spacing--20: 0.44rem;--wp--preset--spacing--30: 0.67rem;--wp--preset--spacing--40: 1rem;--wp--preset--spacing--50: 1.5rem;--wp--preset--spacing--60: 2.25rem;--wp--preset--spacing--70: 3.38rem;--wp--preset--spacing--80: 5.06rem;--wp--preset--shadow--natural: 6px 6px 9px rgba(0, 0, 0, 0.2);--wp--preset--shadow--deep: 12px 12px 50px rgba(0, 0, 0, 0.4);--wp--preset--shadow--sharp: 6px 6px 0px rgba(0, 0, 0, 0.2);--wp--preset--shadow--outlined: 6px 6px 0px -3px rgba(255, 255, 255, 1), 6px 6px rgba(0, 0, 0, 1);--wp--preset--shadow--crisp: 6px 6px 0px rgba(0, 0, 0, 1);}:where(.is-layout-flex){gap: 0.5em;}:where(.is-layout-grid){gap: 0.5em;}body .is-layout-flex{display: flex;}body .is-layout-flex{flex-wrap: wrap;align-items: center;}body .is-layout-flex > *{margin: 0;}body .is-layout-grid{display: grid;}body .is-layout-grid > *{margin: 0;}:where(.wp-block-columns.is-layout-flex){gap: 2em;}:where(.wp-block-columns.is-layout-grid){gap: 2em;}:where(.wp-block-post-template.is-layout-flex){gap: 1.25em;}:where(.wp-block-post-template.is-layout-grid){gap: 1.25em;}.has-black-color{color: var(--wp--preset--color--black) !important;}.has-cyan-bluish-gray-color{color: var(--wp--preset--color--cyan-bluish-gray) !important;}.has-white-color{color: var(--wp--preset--color--white) !important;}.has-pale-pink-color{color: var(--wp--preset--color--pale-pink) !important;}.has-vivid-red-color{color: var(--wp--preset--color--vivid-red) !important;}.has-luminous-vivid-orange-color{color: var(--wp--preset--color--luminous-vivid-orange) !important;}.has-luminous-vivid-amber-color{color: var(--wp--preset--color--luminous-vivid-amber) !important;}.has-light-green-cyan-color{color: var(--wp--preset--color--light-green-cyan) !important;}.has-vivid-green-cyan-color{color: var(--wp--preset--color--vivid-green-cyan) !important;}.has-pale-cyan-blue-color{color: var(--wp--preset--color--pale-cyan-blue) !important;}.has-vivid-cyan-blue-color{color: var(--wp--preset--color--vivid-cyan-blue) !important;}.has-vivid-purple-color{color: var(--wp--preset--color--vivid-purple) !important;}.has-black-background-color{background-color: var(--wp--preset--color--black) !important;}.has-cyan-bluish-gray-background-color{background-color: var(--wp--preset--color--cyan-bluish-gray) !important;}.has-white-background-color{background-color: var(--wp--preset--color--white) !important;}.has-pale-pink-background-color{background-color: var(--wp--preset--color--pale-pink) !important;}.has-vivid-red-background-color{background-color: var(--wp--preset--color--vivid-red) !important;}.has-luminous-vivid-orange-background-color{background-color: var(--wp--preset--color--luminous-vivid-orange) !important;}.has-luminous-vivid-amber-background-color{background-color: var(--wp--preset--color--luminous-vivid-amber) !important;}.has-light-green-cyan-background-color{background-color: var(--wp--preset--color--light-green-cyan) !important;}.has-vivid-green-cyan-background-color{background-color: var(--wp--preset--color--vivid-green-cyan) !important;}.has-pale-cyan-blue-background-color{background-color: var(--wp--preset--color--pale-cyan-blue) !important;}.has-vivid-cyan-blue-background-color{background-color: var(--wp--preset--color--vivid-cyan-blue) !important;}.has-vivid-purple-background-color{background-color: var(--wp--preset--color--vivid-purple) !important;}.has-black-border-color{border-color: var(--wp--preset--color--black) !important;}.has-cyan-bluish-gray-border-color{border-color: var(--wp--preset--color--cyan-bluish-gray) !important;}.has-white-border-color{border-color: var(--wp--preset--color--white) !important;}.has-pale-pink-border-color{border-color: var(--wp--preset--color--pale-pink) !important;}.has-vivid-red-border-color{border-color: var(--wp--preset--color--vivid-red) !important;}.has-luminous-vivid-orange-border-color{border-color: var(--wp--preset--color--luminous-vivid-orange) !important;}.has-luminous-vivid-amber-border-color{border-color: var(--wp--preset--color--luminous-vivid-amber) !important;}.has-light-green-cyan-border-color{border-color: var(--wp--preset--color--light-green-cyan) !important;}.has-vivid-green-cyan-border-color{border-color: var(--wp--preset--color--vivid-green-cyan) !important;}.has-pale-cyan-blue-border-color{border-color: var(--wp--preset--color--pale-cyan-blue) !important;}.has-vivid-cyan-blue-border-color{border-color: var(--wp--preset--color--vivid-cyan-blue) !important;}.has-vivid-purple-border-color{border-color: var(--wp--preset--color--vivid-purple) !important;}.has-vivid-cyan-blue-to-vivid-purple-gradient-background{background: var(--wp--preset--gradient--vivid-cyan-blue-to-vivid-purple) !important;}.has-light-green-cyan-to-vivid-green-cyan-gradient-background{background: var(--wp--preset--gradient--light-green-cyan-to-vivid-green-cyan) !important;}.has-luminous-vivid-amber-to-luminous-vivid-orange-gradient-background{background: var(--wp--preset--gradient--luminous-vivid-amber-to-luminous-vivid-orange) !important;}.has-luminous-vivid-orange-to-vivid-red-gradient-background{background: var(--wp--preset--gradient--luminous-vivid-orange-to-vivid-red) !important;}.has-very-light-gray-to-cyan-bluish-gray-gradient-background{background: var(--wp--preset--gradient--very-light-gray-to-cyan-bluish-gray) !important;}.has-cool-to-warm-spectrum-gradient-background{background: var(--wp--preset--gradient--cool-to-warm-spectrum) !important;}.has-blush-light-purple-gradient-background{background: var(--wp--preset--gradient--blush-light-purple) !important;}.has-blush-bordeaux-gradient-background{background: var(--wp--preset--gradient--blush-bordeaux) !important;}.has-luminous-dusk-gradient-background{background: var(--wp--preset--gradient--luminous-dusk) !important;}.has-pale-ocean-gradient-background{background: var(--wp--preset--gradient--pale-ocean) !important;}.has-electric-grass-gradient-background{background: var(--wp--preset--gradient--electric-grass) !important;}.has-midnight-gradient-background{background: var(--wp--preset--gradient--midnight) !important;}.has-small-font-size{font-size: var(--wp--preset--font-size--small) !important;}.has-medium-font-size{font-size: var(--wp--preset--font-size--medium) !important;}.has-large-font-size{font-size: var(--wp--preset--font-size--large) !important;}.has-x-large-font-size{font-size: var(--wp--preset--font-size--x-large) !important;} .wp-block-navigation a:where(:not(.wp-element-button)){color: inherit;} :where(.wp-block-post-template.is-layout-flex){gap: 1.25em;}:where(.wp-block-post-template.is-layout-grid){gap: 1.25em;} :where(.wp-block-columns.is-layout-flex){gap: 2em;}:where(.wp-block-columns.is-layout-grid){gap: 2em;} .wp-block-pullquote{font-size: 1.5em;line-height: 1.6;} .wp-polls .pollbar { margin: 1px; font-size: 6px; line-height: 8px; height: 8px; background-image: url('https://www.stegenherald.com/wp-content/plugins/webads-polls/images/default/pollbg.gif'); border: 1px solid #c8c8c8; } var twb = {"nonce":"b4506edfb1","ajax_url":"https:\/\/www.stegenherald.com\/wp-\/-ajax.php","plugin_url":"https:\/\/www.stegenherald.com\/wp-content\/plugins\/photo-gallery\/booster","href":"https:\/\/www.stegenherald.com\/wp-\/.php?page=twbbwg_photo-gallery"}; var twb = {"nonce":"b4506edfb1","ajax_url":"https:\/\/www.stegenherald.com\/wp-\/-ajax.php","plugin_url":"https:\/\/www.stegenherald.com\/wp-content\/plugins\/photo-gallery\/booster","href":"https:\/\/www.stegenherald.com\/wp-\/.php?page=twbbwg_photo-gallery"}; var ecwd = {"ajaxurl":"https:\/\/www.stegenherald.com\/wp-\/-ajax.php","ajaxnonce":"f3abc75255","loadingText":"Loading...","event_popup_title_text":"Event Details","plugin_url":"https:\/\/www.stegenherald.com\/wp-content\/plugins\/event-calendar-wd","gmap_type":"ROAP","gmap_redirect":"","gmap_key":"AIzaSyCaa0RtTxnqA-JnjHxBpIGMd3YpYmbJm8g","gmap_style":""}; window.a2a_config=window.a2a_config||{};a2a_config.callbacks=[];a2a_config.overlays=[];a2a_config.templates={}; var bwg_objectsL10n = {"bwg_field_required":"field is required.","bwg_mail_validation":"This is not a valid email address.","bwg_search_result":"There are no images matching your search.","bwg_select_tag":"Select Tag","bwg_order_by":"Order By","bwg_search":"Search","bwg_show_ecommerce":"Show Ecommerce","bwg_hide_ecommerce":"Hide Ecommerce","bwg_show_comments":"Show Comments","bwg_hide_comments":"Hide Comments","bwg_restore":"Restore","bwg_maximize":"Maximize","bwg_fullscreen":"Fullscreen","bwg_exit_fullscreen":"Exit Fullscreen","bwg_search_tag":"SEARCH...","bwg_tag_no_match":"No tags found","bwg_all_tags_selected":"All tags selected","bwg_tags_selected":"tags selected","play":"Play","pause":"Pause","is_pro":"1","bwg_play":"Play","bwg_pause":"Pause","bwg_hide_info":"Hide info","bwg_show_info":"Show info","bwg_hide_rating":"Hide rating","bwg_show_rating":"Show rating","ok":"Ok","cancel":"Cancel","select_all":"Select all","lazy_load":"0","lazy_loader":"https:\/\/www.stegenherald.com\/wp-content\/plugins\/photo-gallery\/images\/ajax_loader.png","front_ajax":"0","bwg_tag_see_all":"see all tags","bwg_tag_see_less":"see less tags"}; .g { margin:0px; padding:0px; overflow:hidden; line-height:1; zoom:1; } .g img { height:auto; } .g-col { position:relative; float:left; } .g-col:first-child { margin-left: 0; } .g-col:last-child { margin-right: 0; } .woocommerce-page .g, .bbpress-wrapper .g { margin: 20px auto; clear:both; } .g-1 { margin:0px 0px 0px 0px;width:100%; max-width:300px; height:100%; max-height:250px; } .g-2 { margin:0px 0px 0px 0px; width:100%; max-width:700px; height:100%; max-height:150px; } @media only screen and (max-width: 480px) { .g-col, .g-dyn, .g-single { width:100%; margin-left:0; margin-right:0; } .woocommerce-page .g, .bbpress-wrapper .g { margin: 10px auto; } } var _paq = window._paq = window._paq || []; /* tracker methods like "setCustomDimension" should be called before "trackPageView" */ _paq.push(['trackPageView']); _paq.push(['enableLinkTracking']); (function() { var u="//stats.iadsnetwork.com/"; _paq.push(['setTrackerUrl', u+'matomo.php']); _paq.push(['setSiteId', '204']); var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0]; g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s); })(); window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', '1'); document.documentElement.className += " js"; 284a29

Skip to content

BREAKING NEWS 2950

COMMUNITY a143

Ribbon-Cutting Marks Sara’s Reopening Under Monias 344a25

May 8, 2025

BY MARK EVANS STE. GENEVIEVE HERALD Barely dodging heavy rains, the Ste. Genevieve Chamber of Commerce held a ribbon-cutting ceremony…

70-Year-Olds Biking From Tampa To Tacoma 6zxb

April 24, 2025

BY MARK EVANS STE. GENEVIEVE HERALD Making his third cross-country bicycle trip, Don Coffey decided to hit the central United…

Locals Attend Stem Cell Presentation In Farmington 6w696a

April 9, 2025

BY MARK EVANS STE. GENEVIEVE HERALD Several Ste. Genevieve County residents attended a presentation on the use of stem cells…

Southern Gypsi Eager To Return For Winter Music Series Gig 6f2472

March 13, 2025

BY MARK EVANS STE. GENEVIEVE HERALD Local music fans should be quite familiar with this Friday night’s Ste. Genevieve Chamber…

Mardi Gras p6a3c

March 6, 2025

Visitors flocked to North Main’s Little Bohemia art district Friday evening for the Second Annual Mardi Gras on Main Street.…

CLICK HERE TO VIEW MORE COMMUNITY STORIES 113b3j

OBITUARIES p6z4

Delores  Baechle 375n2o

May 21, 2025

In Loving Memory of Delores  Baechle 91 years old of Sainte Genevieve, MO. June 18, 1933 – May 17, 2025…

Reva Louise Grein 2o1k18

May 14, 2025

Reva Louise Grein, 83 years old, of Sainte Genevieve, MO ed away peacefully on Tuesday, May 6, 2025 at Ste.…

Martin F. “Pepper” Buchheit r4068

May 14, 2025

Martin F. “Pepper” Buchheit, fortified with the Sacraments of Holy Mother Church, ed away on Thursday, April 24, 2025, at…

Vincent J. Fallert 1i3r33

May 14, 2025

In Loving Memory Vincent J. Fallert 65 years old of Sainte Genevieve, MO May 8, 1960 – May 8, 2025…

Donald Gene Boeckstiegel i6k5l

May 14, 2025

Donald Gene Boeckstiegel, age 66, of Bloomsdale, Missouri, ed away Thursday May 8, 2025 at de Greeff Hospice House in…

BIRTHS 4v3q5f

Renley Marie Horn 6ot2b

May 21, 2025

Brett and Madison Horn of Perryville, MO announce the birth of their daughter, Renley Marie at 5:36 pm, on Wednesday,…

Ryder Scott Pingel 725v2w

May 21, 2025

Brock and Macy Pingel of Ste. Genevieve, MO announce the birth of their son, Ryder Scott at 11:27 am, on…

Traxton Marshall Allebach 4n1p53

May 14, 2025

Brittany Decker and Thomas Allebach of Ste. Genevieve, MO announce the birth of their son, Traxton Marshall at 3:40 pm,…

Ranger Hurlin Parks 1o6n1t

May 14, 2025

Tyler and Sydney Parks of Belgrade, MO announce the birth of their son, Ranger Hurlin at 12:59 pm, on Tuesday,…

Tatum O’Neil Barber 524

May 8, 2025

Tyler and Emily Barber of Park Hills, MO announce the birth of their son, Tatum O’Neil at 9:00 pm, on…

AREA NEWS 2i2z44

Commissioners Opt Not To Reappoint Two Longtime C.C. Board 4hj6i

May 21, 2025

BY MARK EVANS STE. GENEVIEVE HERALD Only one of three Community Center Board who requested to stay on the…

VCHS Sees 36 Seniors Graduate 4f75g

May 21, 2025

BY MARK EVANS STE. GENEVIEVE HERALD One hundred years after the first Valle High graduates picked up their diplomas, the…

Urhahn s Herald Staff As Summer Intern 1n254j

May 21, 2025

Erin Urhahn has ed the Herald staff as a summer intern. Urhahn is a writing major and mass communications minor…

DAR Honors Elder As Top Teacher 2f6w49

May 21, 2025

BY MARK EVANS STE. GENEVIEVE HERALD The Ste. Genevieve Settlement Chapter of the National Daughters of the American Revolution recently…

Bloomsdale Balancing A Pair Of Big Projects 6t6d6m

May 21, 2025

BY MARK EVANS STE. GENEVIEVE HERALD As plans simultaneously advance on both their huge water system upgrade and a separate…

SPORTS 2k705o

1 pitch. Bieser, Gamecocks win game in unusual way 5t2q9

April 2, 2025

Liberty U. used ineligible player to lose conference baseball contest, swept JACKSONVILLE, Ala.  — Chalk this one to baseball’s wild,…

Kuehn earns Valle’s only state medal 281v2e

February 28, 2025

All-state gridiron kicker finishes stellar wrestling season with 6th place and all-state BY MICHAEL BOYD JR. HERALD SPORTS EDITOR COLUMBIA,…

Dragons take third at state wrestling 6t5mb

February 28, 2025

Bonnell and Dragons claim third straight top-four state team trophy BY TONY CAPOBIANCO SOUTHEAST MISSOURIAN & SEMOBALL.com SPORTS EDITOR SPECIAL…

Undefeated Schweigert wins Missouri heavyweight championship 4m5412

February 27, 2025

The lovable senior has perfect season after losing only match in state finals last year BY MICHAEL BOYD JR. HERALD…

Fallert wins Missouri wrestling girls’ championship 3t6a4f

February 27, 2025

SGHS sees 2nd girls’ champion in 3 years BY MICHAEL BOYD JR. HERALD SPORTS EDITOR COLUMBIA, Mo. — Keely Fallert…

LAW ENFORCEMENT 686ln

Man in custody after downtown search 5z2rb

April 23, 2025

CORRECTION: This story originally stated that a first-period class at Valle Schools was disrupted. The article has been corrected to…

Sex offender fugitive Rector arrested by Ste. Genevieve County Sheriff’s Office 305w43

March 27, 2025

‘Warrant Wednesdays’ Facebook Post By St. Francois County Sheriff Leads To Capture STE. GENEVIEVE COUNTY, Mo.  —  The St. Francois…

Man leads authorities on 100+mph chase though the ‘Vieve 591s2k

March 13, 2025

BY MICHAEL BOYD JR. STE. GENEVIEVE HERALD STE. GENEVIEVE, M0.  —  A Perryville, Mo., man is in police custody after…

CLICK HERE TO VIEW MORE LAW ENFORCEMENT STORIES 321u4u

PHOTO ALBUMS 191z1f

NATIONAL HEADLINES 5423l

'); } } }, error: function (d) { //alert("Error"); } }); var delay = 1000; setTimeout(function() { WAFLBuilderPostCarousel = function (settings) { this.settings = settings.settings; this.transitionType = settings.transition; this.nodeClass = '.fl-node-' + settings.id; this.wrapperClass = this.nodeClass + ' .fl-post-carousel-wrapper'; this.postClass = this.nodeClass + ' .fl-post-carousel-post'; this.prevCarouselBtn = $(this.nodeClass + ' .carousel-prev'); this.nextCarouselBtn = $(this.nodeClass + ' .carousel-next'); this.layout = settings.layout; this.navigation = settings.navigationControls; this.slideWidth = settings.slideWidth; this.currentBrowserWidth = $(window).width(); if (this._hasPosts()) { //alert('yes'); this._initCarousel(); $(window).on('resize', function (e) { var width = $(window).width(); if (width != this.currentBrowserWidth) { this._resizeDebounce(); this.currentBrowserWidth = width; } }.bind(this)); } else { //alert('no'); } }; WAFLBuilderPostCarousel.prototype = { settings: {}, nodeClass: '', wrapperClass: '', postClass: '', prevCarouselBtn: '', nextCarouselBtn: '', layout: '', navigation: false, slideWidth: 0, carousel: '', _hasPosts: function () { return $(this.postClass).length > 0; }, _resizeDebounce: function () { clearTimeout(this.resizeTimer); this.resizeTimer = setTimeout(function () { this._reloadCarousel(); }.bind(this), 250); }, _getSlidesNumber: function () { var $wrapperWidth = $(this.nodeClass + ' .fl-post-carousel').width(), $slideWidth = $(this.postClass).width(), columns = Math.ceil($wrapperWidth / this.slideWidth); return columns; }, _getSlideWidth: function () { return Math.ceil(($(this.nodeClass + ' .fl-post-carousel').width() - (this.settings.slideMargin * (this._getSlidesNumber() - 1))) / this._getSlidesNumber()); }, _getSettings: function () { var newSettings, settings = { slideWidth: this._getSlideWidth(), minSlides: this._getSlidesNumber(), maxSlides: this._getSlidesNumber(), onSliderLoad: function () { $(this.wrapperClass).addClass('fl-post-carousel-loaded'); }.bind(this), } newSettings = $.extend({}, this.settings, settings); return newSettings; }, _initCarousel: function () { this.carousel = $(this.wrapperClass).bxSlider( this._getSettings() ); if (this.navigation) { this.prevCarouselBtn.on('click', function (e) { e.preventDefault(); this.carousel.goToPrevSlide(); }.bind(this)); this.nextCarouselBtn.on('click', function (e) { e.preventDefault(); this.carousel.goToNextSlide(); }.bind(this)); } }, _reloadCarousel: function () { this.carousel.reloadSlider(this._getSettings()); }, }; new WAFLBuilderPostCarousel({ id: '593ae829a39ce', layout: 'grid', slideWidth: 300, settings: { auto: true, pause: 5000, speed: 1000, infiniteLoop: true, adaptiveHeight: true, controls: false, autoHover: true, slideMargin: 30, moveSlides: 1, } }); }, delay); });