'); subMenuHolder = jQuery(".bn-sub-navigation #submenu-" + submenuId); var data = testData[submenuId], hasMain = (typeof data.mainFilters != "undefined" && data.mainFilters.length > 0), hasMore = (typeof data.moreFilters != "undefined" && data.moreFilters.length > 0), hasTrailers = (typeof data.trailers != "undefined" && data.trailers.length > 0); // main filters empty if(!hasMain) return; // TPL var tpl = '', createLink = function(lable, url){ return '' + lable + ''; }, createTrailer = function(trailer){ return '
' + '
' + '
' + '' + '' + '' + '
' + '
' + '' + trailer.text + '' + '
' + '
' + '
'; }, createBanner = function(targeting){ var tg = (targeting) ? 'data-targeting=\'' + JSON.stringify(targeting) + '\'' : ''; var banner_html = '
' + '
' + '
'; banner_html += '
'; return banner_html; }, createMain = function(){ if(!hasMain) return ''; var result = '
'; // create filter list result += '
'; for(var i in data.mainFilters) { if(!data.mainFilters.hasOwnProperty(i)) continue; var item = data.mainFilters[i]; if(item.is_visible == 1){ result += createLink(item.label, item.url,item.is_visible); } } if(hasMore) result += 'more'; result += '
'; // end filter list // create trailers if(hasTrailers) { for(var i1 in data.trailers) { if(!data.trailers.hasOwnProperty(i1)) continue; if(i1 == 2) { result += createBanner(data.targeting); } var trailer = data.trailers[i1]; result += createTrailer(trailer); } } // end trailers result += '
'; result += '
'; return result; }, createExtra = function(){ if(!hasMore) return ''; var result = '
'; for(var i in data.moreFilters) { if(!data.moreFilters.hasOwnProperty(i)) continue; var item = data.moreFilters[i]; if(item.is_visible == 1) { result += createLink(item.label, item.url); } } result += '
'; result += '
'; return result; }; tpl += createMain(); if(hasMore) tpl += createExtra(); subMenuHolder.html(tpl); // more button jQuery("#submenu-" + submenuId + " .sub-more").on('click', function() { var t = jQuery(this); var extra = jQuery('#submenu-' + submenuId + ' .sub-col-extra'); t.toggleClass('active'); extra.toggleClass('active'); return false; }); } jQuery('.bn-sub-navigation #submenu-' + submenuId + ' .sub-col-extra').removeClass('active'); jQuery('.bn-sub-navigation #submenu-' + submenuId + ' .sub-more').removeClass('active'); subMenu.show(); subMenuHolder.show(); }; window.updateSubMenuPosition = function(){ mainMenuEndPoint = topNav.position(); mainMenuHeight = topNav.outerHeight(); subMenu.css('position', 'absolute'); subMenu.css('top', mainMenuEndPoint.top + mainMenuHeight); }; //init scroll control var locationPath = document.location.pathname.split('/'); if(locationPath[1] != 'admin') { var block = jQuery('#one-line-nav-block'), navBar = jQuery('#nav-bar'), navLoginButtons = jQuery('#nav-login-buttons'), searchBar = jQuery('.top-nav .search-bar'), scrollPosition = jQuery(window).scrollTop(), windowWidth = jQuery(window).width(), topNav = jQuery(".top-nav"), subMenu = jQuery(".bn-sub-navigation"), subMenuIsDev = false, timeoutHideMenuTime = 300, timeoutHideMenu; block.find('.centered').append(navBar.clone()); block.find('.one-line-nav').append(navLoginButtons.clone()); block.find('.one-line-nav').append(searchBar.clone()); // // sub menu // var mainMenuEndPoint = topNav.position(), mainMenuHeight = topNav.outerHeight(); // subMenu.css('position', 'absolute'); // subMenu.css('top', mainMenuEndPoint.top + mainMenuHeight); window.updateSubMenuPosition(); if(subMenuIsDev) subMenu.addClass('active'); // add arrows jQuery('.with-submenu').append(''); if(windowWidth > 1024) { var openedSubMenuId; jQuery('.b-nav-new a[data-submenu]').hover(function(){ clearTimeout(timeoutHideMenu); var t = jQuery(this), subMenuId = t.data('submenu'); // createSubMenu generateSubmenu(subMenuId); if(t.parents('.one-line-nav').length === 0) window.updateSubMenuPosition(); jQuery('.b-nav-new a[data-submenu=' + openedSubMenuId + ']').removeClass('opened'); openedSubMenuId = subMenuId; jQuery('.b-nav-new a[data-submenu=' + openedSubMenuId + ']').addClass('opened'); subMenu.addClass('active'); // window.updateSubMenuPosition(); if(typeof window.bannerClass !== 'undefined') window.bannerClass.findAndInit(); }, function(){ timeoutHideMenu = setTimeout(function(){ if(!subMenuIsDev) { subMenu.removeClass('active'); subMenu.hide(); jQuery('.b-nav-new a[data-submenu=' + openedSubMenuId + ']').removeClass('opened'); } },timeoutHideMenuTime); }); subMenu.hover(function(){ clearTimeout(timeoutHideMenu); },function(){ timeoutHideMenu = setTimeout(function(){ if(!subMenuIsDev) { subMenu.removeClass('active'); subMenu.hide(); jQuery('.b-nav-new a[data-submenu=' + openedSubMenuId + ']').removeClass('opened'); } },timeoutHideMenuTime); }); } // mobile submenu else { jQuery(document).on('click touchend', '.with-submenu .mobile-arrow', function(){ var t = jQuery(this), li = jQuery(t.parent()), nav = t.parents('.b-nav-new'); if(!li.hasClass('opened')) { var opened = jQuery('.with-submenu.opened', nav); if(opened.length > 0) { jQuery('.b-nav-new .nav-list li a.disabled').removeClass('disabled'); opened.removeClass('opened'); } li.addClass("opened"); jQuery('.b-nav-new .nav-list>li[class!="with-submenu opened"] a[class!="mobile-arrow"]').addClass('disabled'); } else { jQuery('.b-nav-new .nav-list li a.disabled').removeClass('disabled'); li.removeClass('opened'); } return false; }); } // // end sub menu // scrollControl(windowWidth, scrollPosition, block, subMenu, topNav); jQuery(window).scroll(function () { var scrollPosition = jQuery(window).scrollTop(), windowWidth = jQuery(window).width(); scrollControl(windowWidth, scrollPosition, block, subMenu, topNav); }); jQuery(window).resize(function(){ var windowWidth = jQuery(window).width(); if(windowWidth < 1025) { if(block.hasClass("active")) { block.removeClass("active"); block.hide(); } if(subMenu.hasClass("active")) subMenu.removeClass("active"); } }); } }); jQuery(document).ready(function() { //notification display message // + set a localstorage to display only once //check if it is IOS or not var iOS = !!navigator.platform && /iPad|iPhone|iPod/.test(navigator.platform); if (iOS) { //hide the notification for IOS user SINCE it is still does not support Web push. jQuery("#notification-button-mobile").hide(); } if (Modernizr.localstorage) { var countNotification = localStorage.getItem('countNotification'); if (countNotification === null) { countNotification = 0; } if (countNotification <= 1 ){ setTimeout(function() { jQuery("#notification-button-mobile").attr('data-balloon-visible',''); setTimeout(function() { jQuery("#notification-button-mobile").removeAttr('data-balloon-visible'); }, 12000); },2000 ); setTimeout(function() { jQuery("#notification-button").attr('data-balloon-visible',''); setTimeout(function() { jQuery("#notification-button").removeAttr('data-balloon-visible'); }, 12000); },2000 ); } countNotification++; localStorage.setItem('countNotification',countNotification); } else { //Find a alternative solution maybe a Variable. // i dont provide support for notification for old browser though one solution is to use cookies but this would affect speed and this is a BETA test. } });
Get the Best of London Life, Culture and Style
By entering my email I agree to the CultureWhisper Privacy Policy (we won`t share data & you can unsubscribe anytime).
Things to do
Take advantage of ripe summer apricots with this bright gluten free tart recipe by CW's resident foodie
Apricot and Rosemary tart recipe
TRY CULTURE WHISPER
Receive free tickets & insider tips to unlock the best of London — direct to your inbox
If we had to imagine what heaven tastes like, a perfectly ripe summer apricot would be our best guess. Make the most of the seasonal fruit and satisfy your sweet-tooth with a guilt-free, gluten-free tart recipe from Culture Whisper's resident foodie, Stephanie Achar.
APRICOT + ROSEMARY TART
Recently, my family and I have had to go gluten-free to help our 4 year old. He is not coeliac but seems to have some issues digesting gluten.
I thought I would make an effort to create an amazing gluten-free tart to satisfy his sugar cravings (as well as mine).
With the best apricots the summer has to offer, this tart looks beautiful and tastes amazing. Unfortunately my son doesn't like apricots and didn't touch it! More for me!
INGREDIENTS
Serves 6
For the crust:
1 cup gluten-free rolled oats
1/2 cup whole raw almonds
75 g brown rice flour
1/4 cup honey
1/4 cup coconut oil, melted
1 tsp. vanilla bean paste
1/2 tsp. sea salt
For the topping:
10/12 apricots
1 or 2 tbsp of coconut palm sugar
A branch of rosemary or lavender
METHOD
Preheat oven to 180C/350°F.
Combine all of the crust ingredients in a food processor and mix. Grease a 20cm (8”) tart pan with a little coconut oil and press crust evenly into the pan.
Cut the apricots in half and place them on top of the crust.
Sprinkle lightly with coconut palm sugar and add a branch of rosemary or lavender on top.
Bake for 35 to 40 minutes, until the crust is golden brown and the apricots are caramelized. Enjoy!
Vegetarian; free from gluten, dairy and refined sugar
Stéphanie Achar: Simple and Healthy
Stéphanie Achar is a qualified nutritional therapist and health coach based in South West London. She is collaborating with Culture Whisper to create a series of seasonal, wholesome and nutritionally balanced recipes.
Find more recipes or book a free nutrition consultation with Stéphanie on her website, www.simpleandhealthy.com
You may also like:
- Cauliflower and Samphire Summer Salad recipe
- Recover from Christmas: Detox Juice
- Raw Energy Bar recipe