-
LANGUAGE
-
FOLLOW US ON
-
FEEDBACK
-
‘;
var loginMobileStr=”
‘+cookiearray[0]+’
‘;
jQuery(‘body’).addClass(‘logged-in’);
}else{
var loginStr=”
LOGIN
‘;
var loginMobileStr=”‘;
}
jQuery(‘#logwebsitediv’).html(loginStr);
jQuery(‘#logmobilediv’).html(loginMobileStr);
}
/*login*/
jQuery( document ).ready(function() {
if((document.cookie.indexOf(“bhud”)<0) && (document.cookie.indexOf(“lstc”)<0)){
var data = { action: ‘is_user_logged_in’ };
jQuery.post(ajaxurl, data, function(response) {
var user_json = jQuery.parseJSON(response);
if(user_json.login == ‘true’) {
createBHCookie(‘bhud’,user_json.username+”|”+user_json.userimg+”|”+user_json.userid);
createBHCookie(‘lstc’,”,-1);
//checkwebsitecookie();
}else{
createBHCookie(‘lstc’,’1′);
}
});
}else if((document.cookie.indexOf(“bhud”)!=”) && (document.cookie.indexOf(“lstc”)<0)){
createBHCookie(‘lstc’,”,-1);
}else{
}
checkwebsitecookie();
jQuery(‘.bh-header-menu1 li a span, .mobile-header .bh-header-menu1 li a, .bh-header-menu1 li sub-menu li a span’).click(function(event) {
var menu_title = jQuery(this).text();
menu_title = jQuery.trim(menu_title);
var bhmenu_list = [“Box Office”, “Movies”, “Music”,”News”,”Photos”,”Videos”,”Celebs”];
if(menu_title !== ”){
if(menu_title==’Videos’){
menu_title=”Video”;
}
if(menu_title ==”Parties and Events”){
menu_title = “Parties and Events Photos”;
}
if (menu_title ==”Parties & Events”) {
menu_title = “Parties and Events Videos”;
}
ga(‘send’, ‘event’, ‘Header’, ‘Header ‘+menu_title+’ menu Link’,document.location.pathname);
}
});
});