Dismissible Notices Handler Error: The library can not be used because your version of PHP is too old. You need version 5.5 at least.
WP Review Me Error: The library can not be used because your version of PHP is too old. You need version 5.5 at least.
How Aishwarya Rai Bachchan, Katrina Kaif & others celebrated Mother’s Day – Viral News

How Aishwarya Rai Bachchan, Katrina Kaif & others celebrated Mother’s Day

Questions raised over role of facial recognition technology in Didi passenger death
05/14/2018
IPL 2018: KXIP vs RCB, Match 48 at Indore: Preview, Predictions and Teams’ Likely 11s
05/14/2018

How Aishwarya Rai Bachchan, Katrina Kaif & others celebrated Mother’s Day


Bollywood-celebrates-Mothers-Day

There’s a good chance you celebrated Mother’s Day yesterday by not just treating your mom to a great gift and a hug, but also with a heartfelt post on your social media account. Bollywood went all out on social media on the annual occasion too, just like everyone else. While Priyanka Chopra took mom Madhu Chopra to the beach in Florida, Mira Rajput Kapoor posted an adorable snapshot of her mother with daughter Misha Kapoor, and Katrina Kaif shared some love using a rarely-seen selfie with her mom. What else did you miss? Here’s a look at some of Bollywood’s sweetest Mother’s Day posts this year.

Aishwarya Rai Bachchan’s three-generations-in-one picture

In case you missed it, Aishwarya Rai Bachchan is now officially on Instagram, and has wasted no time in loading up her feed with must-see images. On the occasion of Mother’s Day, the star shared a snapshot that has already become one of her most popular so far: a picture of herself with daughter Aaradhya Bachchan and mother Brindya Rai, surrounded with balloons and cute emoji props.

Rai Bachchan wasn’t the only mom to celebrate Mother’s Day with a picture that brought different generations from her family together. While Gauri Khan posted a snapshot of herself with Aryan Khan and mother Sabita Chhibber, Soha Ali Khan Pataudi shared an adorable photograph of Sharmila Tagore holding Inaaya Naumi Kemmu in her arms, and Shilpa Shetty Kundra’s Insta album featured both, son Viaan Raj Kundra, and mom Sunanda Shetty.

Newly-weds Sonam Kapoor-Ahuja and Neha Dhupia’s posts

Mother’s Day also gave Bollywood’s latest brides, Sonam Kapoor-Ahuja and Neha Dhupia, a chance to thank their mothers for all that they’ve done for them. While Kapoor-Ahuja celebrated the day with an unseen yesteryear picture of Sunita Kapoor (can you believe how similar the mother-daughter duo look?), Neha Dhupia gave her followers a glimpse into her wedding with a festive picture of her mom at one of her recent celebrations.

Janhvi Kapoor, Arjun Kapoor and Anushka Sharma’s throwbacks

A popular theme for Bollywood this Mother’s Day was throwback pictures. From Anushka Sharma and Kriti Sanon to Abhishek Bachchan and Parineeti Chopra, almost all of Bollywood celebrated Mother’s Day with snapshots of themselves as babies, smiling in their mothers’ laps. Of the many that flooded Instagram this weekend, two of the most heartfelt belonged to Arjun Kapoor and Janhvi Kapoor, who dedicated their posts to their late mothers. “You made me reach for the stars and now you watch over us as our shining star,” Arjun Kapoor wrote in his post for mother Mona Kapoor. Janhvi Kapoor’s Instagram post, a rarely-seen-before pictures of herself as a child with Sridevi, has already earned more than 4,00,000 likes in less than 24 hours.

Catch up on Bollywood’s most heartfelt Mother’s Day posts in our slideshow below.

Abhishek-Bachchan-mothers-day-Instagram-pictures-Bollywood-celebrities
Happy Mama’s day!! #mothership

Image: Instagram.com/bachchan

Aishwarya-Rai-Bachchan-mothers-day-Instagram-pictures-Bollywood-celebrities

❤✨💖YOU COMPLETE ME 😍😘🤗✨ HAPPIEST MOTHERS’ DAYS EVERY BREATH OF OUR LIVES..💖✨

Image: Instagram.com/aishwaryaraibachchan_arb

Akshay-Kumar-mothers-day-Instagram-pictures-Bollywood-celebrities

As the Sun sets in our Home, the Light within us Shines because of this very Woman. Our Mom!! Our Hero!! Our reason for Eternal SunShine!! Happy Mother’s Day Everyone
❤❤❤

Image: Instagram.com/akshaykumar

Alia-Bhatt-mothers-day-Instagram-pictures-Bollywood-celebrities

Hello beautiful mommy. It’s your day. Today & everyday ✨

Image: Instagram.com/aliaabhatt

Anushka-Sharma-mothers-day-Instagram-pictures-Bollywood-celebrities

Wherever I’ve managed to reach in my profession is because of the support and motivation my mother has provided me with …. happy mothers day to this beautiful woman 🙏❤🙏

Image: Instagram.com/anushkasharma

Arjun-Kapoor-mothers-day-Instagram-pictures-Bollywood-celebrities
You made me reach for the stars and now you watch over us as our shining star & guiding light love you Mom Happy Mother’s Day from @anshulakapoor & me as u always used to say Rab Rakha for us u are our everything protect us & support us like u always have… big tight 🤗

Image: Instagram.com/arjunkapoor

Arpita-Khan-Sharma-mothers-day-Instagram-pictures-Bollywood-celebrities
Happy Mother’s Day ! Only today do I know the unconditional love a mother has. Only today do I know every time I dint listen & back answered, threw a tantrum, fought with any one of you or said anytime mean/hurtful how it felt. But you all are still the most fun person to trouble. Thank you for being super moms & being the back bone & strength of our families.
I LOVE each one Of you very very much 😘 Salma khan , @helenkhan3551 , Alvira khan, @suneetasharma 🙏

Image: Instagram.com/arpitakhansharma

Dia-Mirza-mothers-day-Instagram-pictures-Bollywood-celebrities

Image: Instagram.com/diamirzaofficial

Gauri-Khan-mothers-day-Instagram-pictures-Bollywood-celebrities

Happy Mother’s Day ..❤

Image: Instagram.com/gaurikhan

Janhvi-Kapoor-mothers-day-Instagram-pictures-Bollywood-celebrities

Image: Instagram.com/janhvikapoor

Karan-Johar-mothers-day-Instagram-pictures-Bollywood-celebrities
Love you ❤❤❤❤❤! #happymothersday to me and mine!

Image: Instagram.com/karanjohar

Katrina-Kaif-mothers-day-Instagram-pictures-Bollywood-celebrities

Happy Mother’s Day…. the best example of positivity, selflessness, and generosity❤

Image: Instagram.com/katrinakaif

Kriti-Sanon-mothers-day-Instagram-pictures-Bollywood-celebrities
Missing my “Aata-bori” days.. hehe.. Happy Mothers Day to the prettiest Mom ever!!! ❤❤❤ love you so so much mumma!! 😘 All i wanna see is a big smile on your face!!🤗 @geeta_sanon

Image: Instagram.com/kritisanon

Malaika-Arora-mothers-day-Instagram-pictures-Bollywood-celebrities

♥️♥️♥️♥️♥️♥️

Image: Instagram.com/malaikaarorakhanofficial

Nimrat-Kaur-mothers-day-Instagram-pictures-Bollywood-celebrities
Not much has changed except for time. I stand because you won’t let me fall. I walk with your faith running in my veins. All I am is you. Happy Mother’s Day @avinashsethi.10…you’re more to me than you’ll ever know.

Image: Instagram.com/nimratofficial

Raveena-Tandon-mothers-day-Instagram-pictures-Bollywood-celebrities

A special day! Moms Birthday & Mother’s Day! Wishing all the moms a very happy Mother’s Day! My mom, the strongest bravest compassionate lady I know From her Ive learnt To love, care for ones that aren’t fortunate, she worked tirelessly for underprivileged children. Happy Birthday Mom!

Image: Instagram.com/officialraveenatandon

Shilpa-Shetty-Kundra-mothers-day-Instagram-pictures-Bollywood-celebrities-2
This is the best role of my life, and I already won an award in the form of you before I played it😇 Still feels like yesterday when you were inside me.. Gosh! how time flies. Its amazing to now see my heart beat outside of me…Viaan-Raj, Thank you for choosing me😬😍😘 And I got my FIRST handwritten card today🤗😢😬 Happy Mother’s Day to my mom, love you to the moon and back…and to all you #SuperMoms #wonderwomen, Sending u all a #grouphug #loveyourmom #respect#gratitude

Image: Instagram.com/theshilpashetty

Shilpa-Shetty-Kundra-mothers-day-Instagram-pictures-Bollywood-celebrities
This is the best role of my life, and I already won an award in the form of you before I played it😇 Still feels like yesterday when you were inside me.. Gosh! how time flies. Its amazing to now see my heart beat outside of me…Viaan-Raj, Thank you for choosing me😬😍😘 And I got my FIRST handwritten card today🤗😢😬 Happy Mother’s Day to my mom, love you to the moon and back…and to all you #SuperMoms #wonderwomen, Sending u all a #grouphug #loveyourmom #respect#gratitude

Image: Instagram.com/theshilpashetty

Soha-Ali-Khan-Pataudi-mothers-day-Instagram-pictures-Bollywood-celebrities

From one mother to another – Happy Mother’s Day 💖

Image: Instagram.com/sakpataudi

Sonam-Kapoor-mothers-day-Instagram-pictures-Bollywood-celebrities

To the woman who taught me everything- compassion, passion and style! I love you mama.. happy Mother’s Day!

Image: Instagram.com/sonamkapoor

Sophie-Choudry-mothers-day-Instagram-pictures-Bollywood-celebrities
Happy Mother’s Day to my heart and soul… thank you for being my backbone in good times and bad, for teaching me all the values that are a part of my core, for all your love & understanding. You are a true supermom and I feel blessed every single day! For me every day is Mother’s Day but I don’t say thank you enough.. so thank you for everything you have done and continue to do for me. Love you so much! Happy Mother’s Day, lots of love Sophie and many licks from Tia xx #mothersday #blessed #grateful#bestmumintheworld #bff #supermum#purelove #sophiechoudry#motheringsunday

Image: Instagram.com/sophiechoudry

Sushmita-Sen-mothers-day-Instagram-pictures-Bollywood-celebrities
#happymothersday Maa ❤💋😍💃🏻 To that spirit with which she taught me & @rajeevsen9 that “we have EVERYTHING we’ll ever need, right here inside of us…& we are enough” 👊👏😍❤😘 ufffff what a WOMAN!!!!! I celebrate this #Durga #shakti with every breath…I am blessed to be born to an absolute #goddess😍❤😇 To ALL #mothers …#respect#hugs & an #avalanche of love 🙏😊❤ #DuggaDugga

Image: Instagram.com/sushmitasen47

Varun-Dhawan-mothers-day-Instagram-pictures-Bollywood-celebrities

Happy Mother’s Day MA 💙💙💙💙

Image: Instagram.com/varundvn

";
var sb_focus="focused";
var isSponsored = false;

var crossed = false;
var randomInterval = 20000;
var adDelay = 7000;
var videoadDelay = 3000;
var mobAdDelay = 20000;
var adpause = true;
var currentAdSlot = "";
var currentPos = 0;
var currentScroll;
var firsttime = true, doitfornext = false;
var ADcont = [];
var storyLeaderboardID = $("#topadbnr div").attr("ad-slot-id");
ADcont.push(eval(storyLeaderboardID));
var magazineid = '';
var ctaFallback = "";

$(window).scroll(function (event) {
currentScroll = $(window).scrollTop()+$(window).height();
if (currentScroll > currentPos)
{
currentPos = currentScroll;
crossed = true;
}
});

$(document).ready(function() {
$.ajaxSetup({ cache: true });
$.getScript('//connect.facebook.net/en_US/sdk.js', function(){
FB.init({
appId: '543661672486127',
version: 'v2.8'
});
FB.XFBML.parse();
});
});

var hidden, state, visibilityChange;
if (typeof document.hidden !== "undefined") {
hidden = "hidden";
visibilityChange = "visibilitychange";
state = "visibilityState";
} else if (typeof document.mozHidden !== "undefined") {
hidden = "mozHidden";
visibilityChange = "mozvisibilitychange";
state = "mozVisibilityState";
} else if (typeof document.msHidden !== "undefined") {
hidden = "msHidden";
visibilityChange = "msvisibilitychange";
state = "msVisibilityState";
} else if (typeof document.webkitHidden !== "undefined") {
hidden = "webkitHidden";
visibilityChange = "webkitvisibilitychange";
state = "webkitVisibilityState";
}

var sb_focus = "focused";
window.addEventListener('focus', function() {
sb_focus ='focused';
});

window.addEventListener('blur', function() {
sb_focus = 'not focused';
});

window.onblur = function() { window.blurred = true; };
window.onfocus = function() { window.blurred = false; };

function onScrollAutoplayVideo(ifx)
{
ifx[0].contentWindow.playad();
}

function onScrollAutopauseVideo(ifx)
{
ifx[0].contentWindow.pausead();
}

jQuery(window).scroll(function(e){
// Code for inview video autoplay
$('body').find('.video-ads').each(function(index){
if(isScrolledIntoView($(this)))
{
onScrollAutoplayVideo($(this));
}
else
{
onScrollAutopauseVideo($(this));
}
});
// END Code for inview video autoplay
});
// END Window Scroll Handlers

jQuery.fn.is_on_screen = function() {
var win = $(window);
var viewport = {
top : win.scrollTop(),
left : win.scrollLeft()
};
viewport.right = viewport.left + win.width();
viewport.bottom = viewport.top + win.height();

var bounds = this.offset();
bounds.right = bounds.left + this.innerWidth();
bounds.bottom = bounds.top + this.innerHeight();

return (!(viewport.bottom < bounds.top || viewport.top > bounds.bottom));
};

window.addEventListener('message', function(event) {
if (~event.origin.indexOf('https://www.vogue.in')) {
if(event.data.event && event.data.event == "CN-AD-refresh")
{

if(document[state] != 'visible') { return; }
if(sb_focus == 'not focused') { return; }

if(typeof event.data.slot !== "undefined" && event.data.slot)
{
if($.inArray(event.data.slot, window.cnAdsRefreshArray.leaderboard))
{
clearInterval(ADintervalLeaderboard);
autoADtimerLeaderboard();
}

if($.inArray(event.data.slot, window.cnAdsRefreshArray.mpu))
{
clearInterval(ADintervalMPU);
autoADtimerMPU();
}
}

if(typeof event.data.slot !== "undefined" && event.data.slot)
{
googletag.cmd.push(function() {
googletag.pubads().refresh([eval(event.data.slot)]);
});
}
}
} else {
return;
}
});

$(document).ready(function(e) {
window.addEventListener('focus', function() {
sb_focus ='focused';
});

window.addEventListener('blur', function() {
sb_focus = 'not focused';
});

cnWebengage('article-category', 'article_category', {"category":"News","sub_category":"Trending"});

$("img.lazy").lazyload({
skip_invisible : true
});

autoADtimerLeaderboard = function() {
ADintervalLeaderboard = window.setInterval(function(){
if(document[state] != 'visible') { return; }
if(sb_focus == 'not focused') { return; }
if(true)
{
var leaderboardAdSlot = $(".topadbnr:last div").attr("ad-slot-id");

googletag.cmd.push(function() {
googletag.pubads().refresh([eval(leaderboardAdSlot)]);
});
}
}, randomInterval);
}

autoADtimerMPU = function() {
ADintervalMPU = window.setInterval(function(){
if(document[state] != 'visible') { return; }
if(sb_focus == 'not focused') { return; }
if(true)
{
var mpuAdSlot = $("#mpu-ad-slot div").attr("ad-slot-id");
var newAdSlot = $("#secondary-mpu-ad-slot div").attr("ad-slot-id");

if(typeof newAdSlot !== "undefined")
{
googletag.cmd.push(function() {
googletag.pubads().refresh([eval(mpuAdSlot)]);
googletag.pubads().refresh([eval(newAdSlot)]);
});
} else {
googletag.cmd.push(function() {
googletag.pubads().refresh([eval(mpuAdSlot)]);
});
}
}
}, randomInterval);
}

autoADtimerLeaderboard();
autoADtimerMPU();

$('body').imagesLoaded( function() {
if ($(window).scrollTop() >= ($(document).height() - $(window).height() - ($(window).height()*0.2) )) {
infinite_single_json(count, 0);
}
});

$(document).on('click','.open_other_social', function(){
$(this).parents('.socialShare.socialShare-top.social-sharer-buttons-article-top').find('ul').css('right','0');
$(this).parents('.socialShare.socialShare-top.social-sharer-buttons-article-top').find('li').css('width','auto');
$(this).parents('.socialShare.socialShare-top.social-sharer-buttons-article-top').find('li a').css('display','block');
$(this).parents('.socialShare.socialShare-top.social-sharer-buttons-article-top').find('.fb_rect_wrapper').remove();
$(this).hide();
});

$(window).scroll(function(e) {
if ($(window).scrollTop() >= ($(document).height() - $(window).height() - ($(window).height()*0.2) )) {
infinite_single_json(Articlecount, 0);
}
});

gtmFirstLoad();
$('#post-936925 .in-story-slideshow').each(function(){
gtmNextArrowTop();
});
// get_related_stories('0','936925','no','7597','10132,10135,10146,10148,19694,16560,19559,14141,49582,10189,19175,50274,10211,10214,51758,14239,10239,10241,10244,9934');
setTimeout(function(){
processBrightcoveVideos();
$('a.embed-popover').webuiPopover();
}, 2000);
});

function cn_lr_logout_callback(){
if((!regwall_story||isLoggedIn)&&!isSponsored)
load_instory_cta_ajax('936925', 0, '7597', magazineid);
}

function cn_lr_login_callback(){
if((!regwall_story||isLoggedIn)&&!isSponsored)
load_instory_cta_ajax('936925', 0, '7597', magazineid);
}

function check_ref_sub(postid, issue_id, referer, guid, page_no = 0){

$.ajax({
type: 'POST',
url: 'https://www.vogue.in/wp-admin/admin-ajax.php',
async: false,
data: "action=getsubstatus" + "&postid=" + postid + "&issue_id=" + issue_id + "&referer=" + referer,
success: function (data) {
if (data === ' blocked' || data === 'blocked')
{

var blockedhtml = '

';

setTimeout(function(){
gtmMagazineHomeSubscribe("WebStory Page", "Subscribe Button Impressions");
}, 500);

var pTagCount = 0;
var pETop = 0
var targetPtag;
$.each($("#post-"+postid+" .description").children('p'),function(){
pTagCount++;
if(pTagCount>2) $(this).remove();
if(pTagCount==2){ targetPtag = $(this); pETop = $(this).offset().top;}
});
var pTagCount = 0;
var sETop = 0
$.each($("#post-"+postid+" .slide"),function(){
pTagCount++;
if(pTagCount>regwallSlides){ $(this).append(blockedhtml); $(this).addClass('regwalled-slide');var regSlider = $(this).parents('div.cycle-slideshow'); $(this).prev('.instory-slide-counter').hide(); }
if(pTagCount>(parseInt(regwallSlides)+1)){ $(this).prev('.instory-slide-counter').remove(); $(this).remove(); }
if(pTagCount==regwallSlides) sETop = $(this).offset().top;
});

if(typeof targetPtag !== "undefined" && (pETop < sETop || sETop == 0)) { targetPtag.after(blockedhtml); } // console.log('offset',pETop,sETop); if(pETop>sETop&&sETop!=0) pETop = sETop;
if(pETop==0) pETop = sETop;
$.each($("#post-"+postid+" .description").children(),function(){
if(pETop!=0&&$(this).offset().top>pETop&&!$(this).hasClass('nextStory')&&!$(this).hasClass('socialIconSet'))
{
if(pETop!=sETop){} else $(this).remove();
}
// console.log($(this),$(this).offset().top);
});
$("#post-"+postid+" .storyLink").remove();
// $("#post-"+postid+" #related-stories-0").remove();
$.each($("#post-"+postid+" .wrapper").children(),function(){
if(!$(this).hasClass('nextStory')&&!$(this).hasClass('tag-slider-video')&&!$(this).hasClass('socialIconSet')) $(this).remove();
// console.log($(this),$(this).offset().top);
});

// $('.single-story-block').hide();
// $('#post-'+postid).parents('.single-story-block').show();

// $('#post-'+postid).append(blockedhtml);
/*var id1 = button_1_meta;
var id2 = button_2_meta;
*/

if(guid != '' && guid !== undefined){ load_subscription_btn_1(guid); }else{ $('.button1_popup').remove(); }

} else if(data === ' blockedref' || data === 'blockedref') {

}

else {
$('#get_all_post_ids').val(data);
}

}
});
}

$(document).on("click",".addFbComment",function(){
var commentMarkup = '';
$(this).parents('div.comment_section').html(commentMarkup);
FB.XFBML.parse();
});

//load cta
function load_instory_cta_ajax(post_id, pageNumber, category_id, magazineid){
var ctaSlot = "CTA_" + post_id + "_" + pageNumber + "_1";
var ctaHtml = get_instory_cta_dfp(ctaSlot);
insert_cta_html(post_id, ctaHtml);
$.ajax({
url: action_url+'?action=get_instory_cta_ajax',
type:'POST',
data: {"page_no":pageNumber,'post_id': post_id, 'isLoggedIn' : isLoggedIn,'category_id':category_id,'magazineid' : magazineid}
}).done(function(data) {
data = JSON.parse(data);
ctaFallback = data.cta1;
if(ctaFallback == "Fallback") $("#div-gpt-ad-"+ctaSlot).html(ctaFallback);
$(".cta_holder-"+pageNumber+"-b").html(data.cta2);
});
}

//Get Related Stories Ajax
function get_related_stories(pageNumber, post_id, sponsored, category_id, topic_ids) {
$.ajax({
url: action_url+'?action=related_story_ajax',
type:'POST',
data: {"page_no":pageNumber,'post_id': post_id,'sponsored':sponsored,'category_id':category_id,'rel_ids':$("#get_all_post_ids").val(),'topic_ids':topic_ids}
}).done(function(data) {
$("#related-stories-"+pageNumber).html(data);
owl_cursel_init();
});
}

//get instory CTA
function get_instory_cta_dfp(ctaSlot)
{
var deviceSlot = "[[848,218],[848,200],[848,250],[848,150]]";
if (isMobile.any()) {
deviceSlot = "[[320,157]]";
}
var ctaHtml = "

";
setTimeout(function(){
if($("#div-gpt-ad-"+ctaSlot).height() == 0){
$("#div-gpt-ad-"+ctaSlot).replaceWith(ctaFallback);
}
}, 2000);
return ctaHtml;
}

function insert_cta_html(post_id, ctaHtml){
if(isMobile.any())
{
if($("#post-"+post_id+" .description").children('p').length > 1 && $("#post-"+post_id+" .description .slide").length > 1)
{
if($("#post-"+post_id+" .description").children('p').eq(1).offset().top > $("#post-"+post_id+" .description .slide").eq(1).offset().top )
{
$("#post-"+post_id+" .description .slide").eq(1).after(ctaHtml);
} else {
$("#post-"+post_id+" .description").children('p').eq(1).after(ctaHtml);
}
} else {
if($("#post-"+post_id+" .description").children('p').length > 2)
{
$("#post-"+post_id+" .description").children('p').eq(1).after(ctaHtml);
} else {
$("#post-"+post_id+" .description .slide").eq(1).after(ctaHtml);
}
}
} else {
if($("#post-"+post_id+" .description").children('p').length>2)
$("#post-"+post_id+" .description").children('p').eq(1).after(ctaHtml);
}
}

//ad check
googletag.cmd.push(function() {
googletag.pubads().addEventListener('slotRenderEnded', function(e) {
if(e.isEmpty){
if($("#"+e.slot.getSlotElementId()).hasClass("instory_cta")){
$("#"+e.slot.getSlotElementId()).html(ctaFallback);
if(!ctaFallback) ctaFallback = "Fallback";
}
$("#"+e.slot.getSlotElementId()).parent(".adinsert").slideUp(400);
if(!$("#native_story .native-story-ad").is(":visible")&&!$(".topadbnr").is(":visible")){$("#native_story").remove();singleNativeCarousel = false;isSingleNativeCarousel=false;$(".topadbnr").show(); $("body").css({paddingTop:parseInt($("#navBar").outerHeight()+$(".topadbnr").outerHeight())+"px"});}
} else {
$("#"+e.slot.getSlotElementId()).parent(".adinsert").slideDown(400);
}
});
});

//Get Next Story
function infinite_single_json(pageNumber, animation) {
if (typeof(animation)==='undefined') animation = 0;
$('.loader_img:last').show();
var get_all_post_ids = $("#get_all_post_ids").val();
var all_post_ids_arr = new Array();
all_post_ids_arr = get_all_post_ids.split(",");
var next_article_id = all_post_ids_arr[(parseInt(pageNumber) - 1 )];

if(next_article_id&&typeof(next_article_id)!=='undefined')
{
if($("#next_story_"+(parseInt(pageNumber))+'_'+next_article_id).length == 0)
{
if(load_start==0)
{
load_start = 1;
var action_url = 'https://www.vogue.in/wp-admin/admin-ajax.php';
$.ajax({
url: action_url+'?action=infinite_single_json',
type:'POST',
data: {"page_no":pageNumber,'get_all_post_ids':get_all_post_ids}
}).done(function(data) {
//console.log("infinite_data",data);
load_start = 0;Articlecount++;
data = JSON.parse(data);
$('.loader_img').hide();
if(!data.sponsored_status&&!isLoggedIn&&!data.issue_id) singleStoryCookie(data.article_id);
isSponsored = data.sponsored_status;

ADPostId = data.article_id;

$(".next_article:last").hide();
if(!data.is_mobile)
{
$( ".topadbnr:first" ).remove();
}

data.page_no_i = data.page_no + 1;
data.encoded_permalink = encodeURI(data.permalink);

//related Stories start
var sponsored = 'no';
if(data.sponsored_status) sponsored = 'yes';
var topic_tags = [];
$.each(data.topic_tags,function(index,tag){
topic_tags.push(tag.term_id);
});
/*if(is_sponsored==1)
{
get_related_stories(data.page_no,data.article_id,'yes',data.category_term_id,topic_tags.join(','));
}
else
{
get_related_stories(data.page_no,data.article_id,'no',data.category_term_id,topic_tags.join(','));
}*/

if(!data.sponsored_status) load_instory_cta_ajax(data.article_id,data.page_no, data.category_term_id, data.magazineid);

//mustache code
var template = $('#template').html();
Mustache.parse(template); // optional, speeds up future uses
var rendered = Mustache.render(template, data);
if(Cookies.get('cn_bid'))
{
dataLayerBID = Cookies.get('cn_bid');
re = new RegExp("<%shareBid%>", "g");
rendered = rendered.replace(re, dataLayerBID);
}
$("#load_article_content").append(rendered);
$("img.lazy").lazyload({
skip_invisible : true
});

if(data.issue_id)
{
marketing_text = data.marketing_text;
check_ref_sub(data.article_id, data.issue_id, 'internal', data.guid, data.page_no);
}

var google_category = $(".topadbnr:last").attr('data-google-category');
var sponsor_ad = $(".topadbnr:last").attr('data-sponsor-story');
var is_sponsored = $(".topadbnr:last").attr("data-is-sponsored");
var leaderboardcode = $(".topadbnr:last").attr("data-leaderboard-code");
var mpucode = $(".topadbnr:last").attr("data-mpu-code");

if(!data.is_magazine)
{
if(!data.is_mobile)
{
$("#topadbnr").html(data.leaderboard_ad);
}
$('#mpu-ad-slot').html(data.mpu_ad);
$("#secondary-mpu-ad-slot").html(data.mpu_ad2);
mpuAd = data.mpu_ad;
}
if(!data.is_mobile)
{
dfpCount = 0;
totalInterval = 0;
clearInterval(ADintervalLeaderboard);
autoADtimerLeaderboard();
clearInterval(ADintervalMPU);
autoADtimerMPU();
}

var currentDiv = $("#next_story_"+(parseInt(pageNumber))+'_'+next_article_id);
cnReplaceUrlandTitle(currentDiv.data("post-title"), currentDiv.data("purl"));
gtmSingleContinuousScroll();
if(!data.is_mobile)
{
$('#post-'+data.article_id+' .in-story-slideshow').each(function(){
gtmNextArrowTop();
});
}
processBrightcoveVideos();
if(animation==1)
{
if(isMobile.any())
{
$("html, body").animate({
scrollTop: $("#next_story_"+(parseInt(pageNumber))+'_'+next_article_id).offset().top - $("#navBar").outerHeight() - $('#topadbnr').outerHeight() + 20
}, 600);
} else {
$("html, body").animate({
scrollTop: $("#next_story_"+(parseInt(pageNumber))+'_'+next_article_id).offset().top - $("#navBar").outerHeight() - $('#topadbnr').outerHeight()
}, 600);
}
}
onloadAjax.initAll();
});
}
} else {
if(animation==1)
{
console.log($("#next_story_"+(parseInt(pageNumber))+'_'+next_article_id).offset().top, $("#navBar").outerHeight(), $('#topadbnr').outerHeight());
if(isMobile.any())
{
$("html, body").animate({
scrollTop: $("#next_story_"+(parseInt(pageNumber))+'_'+next_article_id).offset().top - $("#navBar").outerHeight() - $('#topadbnr').outerHeight() + 20
}, 600);
} else {
$("html, body").animate({
scrollTop: $("#next_story_"+(parseInt(pageNumber))+'_'+next_article_id).offset().top - $("#navBar").outerHeight() - $('#topadbnr').outerHeight()
}, 600);
}
}
}
} else {
load_start = 1;
$('.loader_img:last').hide();
}
}

$(document).on('click', '.subscription_popup .content_btns', function(){
gtmMagazineHomeSubscribe("WebStory Page - "+$(this).data("price"), "Subscribe Button Click");
});

$(document).on('click','.close_reg_wall', function(){
$('.reg_wall_v2').fadeOut();
});

$(window).load(function(){
// alert($('body').find('.has-responsive-video').width());

if($(window).width() < 768) { $('.reg_wall_v2').width($(window).width()); } else{ $('.reg_wall_v2').width($('.has-responsive-video').width()); } })



Source link

Leave a Reply

Your email address will not be published. Required fields are marked *