[bex_folder]

[tribe_events]

Comment on Facebook

X
').appendTo('body'); //on image click $(this).click(function() { $('.weblizar-fb-product-gallery-popup').fadeIn(500); $('body').css({ 'overflow': 'hidden' }); $('.weblizar-fb-product-popup-content a#nav-btn-next').attr('data-id', $(this).find('dialog').attr('data-id')); $('.weblizar-fb-product-popup-content a#nav-btn-next').attr('feed-type', $(this).find('dialog').attr('feed-type')); $('.weblizar-fb-product-popup-content a#nav-btn-next').attr('feed-post', $(this).find('dialog').attr('feed-post')); $('.weblizar-fb-product-popup-content a#nav-btn-next').attr('feed-token', $(this).find('dialog').attr('feed-token')); $('.weblizar-fb-product-popup-content a#nav-btn-prev').attr('data-id', $(this).find('dialog').attr('data-id')); $('.weblizar-fb-product-popup-content a#nav-btn-prev').attr('feed-type', $(this).find('dialog').attr('feed-type')); $('.weblizar-fb-product-popup-content a#nav-btn-prev').attr('feed-post', $(this).find('dialog').attr('feed-post')); $('.weblizar-fb-product-popup-content a#nav-btn-prev').attr('feed-token', $(this).find('dialog').attr('feed-token')); var val = jQuery(this).find('dialog').attr('data-id'); var typ = jQuery(this).find('dialog').attr('feed-type'); var post_type = jQuery(this).find('dialog').attr('feed-post'); var feed_id = jQuery(this).find('dialog').attr('feed-id'); jQuery(".feed_demo_cls").hide(); jQuery('div.inner_box_' + val).append("
"); jQuery.ajax({ type: "POST", url: location.href, data: { 'action': 'get_feed_like_comment', 'id': val, 'type': typ, 'post_types': post_type, 'feed_id': feed_id, //'post_token':post_token, }, success: function(data) { like_comment = jQuery(data).find('div.wp-weblizar_like_comment_div:first'); jQuery('div.weblizar-fb-product-gallery-popup').find('div.inner_box_' + val).html(like_comment); jQuery(document).unbind("ajaxComplete"); jQuery(".feed_more").click(function() { jQuery(".weblizar_fb_teaser").toggle(); jQuery(".weblizar_fb_complete").toggle(); var oldText = $(this).text(); var newText = $(this).attr('data-text'); if (jQuery(this).text(oldText)) { jQuery(this).text(newText); } else { jQuery(this).text(oldText); } jQuery(this).attr('data-text', oldText); }); //Query(".custom_box_load_div").hide(); } }); $('.weblizar-fb-product-popup-content .weblizar-fb-product-image div.ffp_weblizar_img').html($(this).find('span.weblizar_span_img').html()); $('.weblizar-fb-product-popup-content .weblizar-fb-product-information .weblizar-comment').html($(this).find('dialog').html()); $Current = $(this); $PreviousElm = $(this).closest('.custom_box_gallary').prev().find('.gallery-img') $nextElm = $(this).closest('.custom_box_gallary').next().find('.gallery-img') if ($PreviousElm.length === 0) { $('.nav-btn.prev').css({ 'display': 'none' }); } else { $('.nav-btn.prev').css({ 'display': 'block' }); } if ($nextElm.length === 0) { $('.nav-btn.next').css({ 'display': 'none' }); } else { $('.nav-btn.next').css({ 'display': 'block' }); } }); //on Next click $('.next').click(function() { $NewCurrent = $nextElm; $PreviousElm = $NewCurrent.closest('.custom_box_gallary').prev().find('.gallery-img') $nextElm = $NewCurrent.closest('.custom_box_gallary').next().find('.gallery-img') $('.weblizar-fb-product-popup-content .weblizar-fb-product-image img').clearQueue().animate({ opacity: '0' }, 0).attr('src', $NewCurrent.find('img').attr('src')).animate({ opacity: '1' }, 500); $('.weblizar-fb-product-popup-content a#nav-btn-next').attr('data-id', $NewCurrent.find('dialog').attr('data-id')); $('.weblizar-fb-product-popup-content a#nav-btn-next').attr('feed-type', $NewCurrent.find('dialog').attr('feed-type')); $('.weblizar-fb-product-popup-content a#nav-btn-next').attr('feed-post', $NewCurrent.find('dialog').attr('feed-post')); $('.weblizar-fb-product-popup-content a#nav-btn-next').attr('feed-token', $NewCurrent.find('dialog').attr('feed-token')); $('.weblizar-fb-product-popup-content a#nav-btn-prev').attr('data-id', $NewCurrent.find('dialog').attr('data-id')); $('.weblizar-fb-product-popup-content a#nav-btn-prev').attr('feed-type', $NewCurrent.find('dialog').attr('feed-type')); $('.weblizar-fb-product-popup-content a#nav-btn-prev').attr('feed-post', $NewCurrent.find('dialog').attr('feed-post')); $('.weblizar-fb-product-popup-content a#nav-btn-prev').attr('feed-token', $NewCurrent.find('dialog').attr('feed-token')); var val = jQuery(this).attr('data-id'); var typ = jQuery(this).attr('feed-type'); var post_type = jQuery(this).attr('feed-post'); var feed_id = jQuery(this).find('dialog').attr('feed-id'); jQuery(".feed_demo_cls").hide(); jQuery('div.inner_box_' + val).append("
"); jQuery.ajax({ type: "POST", url: location.href, data: { 'action': 'get_feed_like_comment', 'id': val, 'type': typ, 'post_types': post_type, 'feed_id': feed_id, }, success: function(data) { like_comment = jQuery(data).find('div.wp-weblizar_like_comment_div:first'); jQuery('div.weblizar-fb-product-gallery-popup').find('div.inner_box_' + val).html(like_comment); jQuery(document).unbind("ajaxComplete"); jQuery(".feed_more").click(function() { jQuery(".weblizar_fb_teaser").toggle(); jQuery(".weblizar_fb_complete").toggle(); var oldText = $(this).text(); var newText = $(this).attr('data-text'); if (jQuery(this).text(oldText)) { jQuery(this).text(newText); } else { jQuery(this).text(oldText); } jQuery(this).attr('data-text', oldText); }); } }); $('.weblizar-fb-product-popup-content .weblizar-fb-product-image div.ffp_weblizar_img').html($NewCurrent.find('span.weblizar_span_img').html()); $('.weblizar-fb-product-popup-content .weblizar-fb-product-information .weblizar-comment').html($NewCurrent.find('dialog').html()); if ($PreviousElm.length === 0) { $('.nav-btn.prev').css({ 'display': 'none' }); } else { $('.nav-btn.prev').css({ 'display': 'block' }); } if ($nextElm.length === 0) { $('.nav-btn.next').css({ 'display': 'none' }); } else { $('.nav-btn.next').css({ 'display': 'block' }); } }); //on Prev click $('.prev').click(function() { $NewCurrent = $PreviousElm; $PreviousElm = $NewCurrent.closest('.custom_box_gallary').prev().find('.gallery-img') $nextElm = $NewCurrent.closest('.custom_box_gallary').next().find('.gallery-img') $('.weblizar-fb-product-popup-content .weblizar-fb-product-image img').clearQueue().animate({ opacity: '0' }, 0).attr('src', $NewCurrent.find('img').attr('src')).animate({ opacity: '1' }, 500); $('.weblizar-fb-product-popup-content a#nav-btn-next').attr('data-id', $NewCurrent.find('dialog').attr('data-id')); $('.weblizar-fb-product-popup-content a#nav-btn-next').attr('feed-type', $NewCurrent.find('dialog').attr('feed-type')); $('.weblizar-fb-product-popup-content a#nav-btn-next').attr('feed-post', $NewCurrent.find('dialog').attr('feed-post')); $('.weblizar-fb-product-popup-content a#nav-btn-next').attr('feed-token', $NewCurrent.find('dialog').attr('feed-token')); $('.weblizar-fb-product-popup-content a#nav-btn-prev').attr('data-id', $NewCurrent.find('dialog').attr('data-id')); $('.weblizar-fb-product-popup-content a#nav-btn-prev').attr('feed-type', $NewCurrent.find('dialog').attr('feed-type')); $('.weblizar-fb-product-popup-content a#nav-btn-prev').attr('feed-post', $NewCurrent.find('dialog').attr('feed-post')); $('.weblizar-fb-product-popup-content a#nav-btn-prev').attr('feed-token', $NewCurrent.find('dialog').attr('feed-token')); var val = jQuery(this).attr('data-id'); var typ = jQuery(this).attr('feed-type'); var post_type = jQuery(this).attr('feed-post'); var feed_id = jQuery(this).find('dialog').attr('feed-id'); jQuery(".feed_demo_cls").hide(); jQuery('div.inner_box_' + val).append("
"); jQuery.ajax({ type: "POST", url: location.href, data: { 'action': 'get_feed_like_comment', 'id': val, 'type': typ, 'post_types': post_type, 'feed_id': feed_id, }, success: function(data) { like_comment = jQuery(data).find('div.wp-weblizar_like_comment_div:first'); jQuery('div.weblizar-fb-product-gallery-popup').find('div.inner_box_' + val).html(like_comment); jQuery(document).unbind("ajaxComplete"); jQuery(".feed_more").click(function() { jQuery(".weblizar_fb_teaser").toggle(); jQuery(".weblizar_fb_complete").toggle(); var oldText = $(this).text(); var newText = $(this).attr('data-text'); if (jQuery(this).text(oldText)) { jQuery(this).text(newText); } else { jQuery(this).text(oldText); } jQuery(this).attr('data-text', oldText); }); } }); $('.weblizar-fb-product-popup-content .weblizar-fb-product-image div.ffp_weblizar_img').html($NewCurrent.find('span.weblizar_span_img').html()); $('.weblizar-fb-product-popup-content .weblizar-fb-product-information .weblizar-comment').html($NewCurrent.find('dialog').html()); if ($PreviousElm.length === 0) { $('.nav-btn.prev').css({ 'display': 'none' }); } else { $('.nav-btn.prev').css({ 'display': 'block' }); } if ($nextElm.length === 0) { $('.nav-btn.next').css({ 'display': 'none' }); } else { $('.nav-btn.next').css({ 'display': 'block' }); } }); //Close Popup $('.cross,.popup-overlay').click(function() { $('.weblizar-fb-product-gallery-popup').fadeOut(500); $('body').css({ 'overflow': 'initial' }); }); //Key Events /* $(document).on('keyup', function (e) { e.preventDefault(); //Close popup on esc if (e.keyCode === 27) { $('.weblizar-fb-product-gallery-popup').fadeOut(500); $('body').css({ 'overflow': 'initial' }); } //Next Img On Right Arrow Click if (e.keyCode === 39) { NextProduct(); } //Prev Img on Left Arrow Click if (e.keyCode === 37) { PrevProduct(); } });*/ function NextProduct() { if ($nextElm.length === 1) { $NewCurrent = $nextElm; $PreviousElm = $NewCurrent.prev(); $nextElm = $NewCurrent.next(); $('.weblizar-fb-product-popup-content .weblizar-fb-product-image img').clearQueue().animate({ opacity: '0' }, 0).attr('src', $NewCurrent.find('img').attr('src')).animate({ opacity: '1' }, 500); $('.weblizar-fb-product-popup-content a#nav-btn-next').attr('data-id', $NewCurrent.find('dialog').attr('data-id')); $('.weblizar-fb-product-popup-content a#nav-btn-next').attr('feed-type', $NewCurrent.find('dialog').attr('feed-type')); $('.weblizar-fb-product-popup-content a#nav-btn-next').attr('feed-post', $NewCurrent.find('dialog').attr('feed-post')); $('.weblizar-fb-product-popup-content a#nav-btn-next').attr('feed-token', $NewCurrent.find('dialog').attr('feed-token')); $('.weblizar-fb-product-popup-content a#nav-btn-prev').attr('data-id', $NewCurrent.find('dialog').attr('data-id')); $('.weblizar-fb-product-popup-content a#nav-btn-prev').attr('feed-type', $NewCurrent.find('dialog').attr('feed-type')); $('.weblizar-fb-product-popup-content a#nav-btn-prev').attr('feed-post', $NewCurrent.find('dialog').attr('feed-post')); $('.weblizar-fb-product-popup-content a#nav-btn-prev').attr('feed-token', $NewCurrent.find('dialog').attr('feed-token')); var val = jQuery(this).attr('data-id'); var typ = jQuery(this).attr('feed-type'); var post_type = jQuery(this).attr('feed-post'); var feed_id = jQuery(this).find('dialog').attr('feed-id'); console.log(feed_id); jQuery(".feed_demo_cls").hide(); jQuery('div.inner_box_' + val).append("
"); jQuery.ajax({ type: "POST", url: location.href, data: { 'action': 'get_feed_like_comment', 'id': val, 'type': typ, 'post_types': post_type, 'feed_id': feed_id, }, success: function(data) { like_comment = jQuery(data).find('div.wp-weblizar_like_comment_div:first'); jQuery('div.weblizar-fb-product-gallery-popup').find('div.inner_box_' + val).html(like_comment); jQuery(document).unbind("ajaxComplete"); jQuery(".feed_more").click(function() { jQuery(".weblizar_fb_teaser").toggle(); jQuery(".weblizar_fb_complete").toggle(); var oldText = $(this).text(); var newText = $(this).attr('data-text'); if (jQuery(this).text(oldText)) { jQuery(this).text(newText); } else { jQuery(this).text(oldText); } jQuery(this).attr('data-text', oldText); }); } }); $('.weblizar-fb-product-popup-content .weblizar-fb-product-image div.ffp_weblizar_img').html($NewCurrent.find('span.weblizar_span_img').html()); $('.weblizar-fb-product-popup-content .weblizar-fb-product-information .weblizar-comment').html($NewCurrent.find('dialog').html()); if ($PreviousElm.length === 0) { $('.nav-btn.prev').css({ 'display': 'none' }); } else { $('.nav-btn.prev').css({ 'display': 'none' }); } if ($nextElm.length === 0) { $('.nav-btn.next').css({ 'display': 'none' }); } else { $('.nav-btn.next').css({ 'display': 'none' }); } } } function PrevProduct() { if ($PreviousElm.length === 1) { $NewCurrent = $PreviousElm; $PreviousElm = $NewCurrent.prev(); $nextElm = $NewCurrent.next(); $('.weblizar-fb-product-popup-content .weblizar-fb-product-image img').clearQueue().animate({ opacity: '0' }, 0).attr('src', $NewCurrent.find('img').attr('src')).animate({ opacity: '1' }, 500); $('.weblizar-fb-product-popup-content a#nav-btn-next').attr('data-id', $NewCurrent.find('dialog').attr('data-id')); $('.weblizar-fb-product-popup-content a#nav-btn-next').attr('feed-type', $NewCurrent.find('dialog').attr('feed-type')); $('.weblizar-fb-product-popup-content a#nav-btn-next').attr('feed-post', $NewCurrent.find('dialog').attr('feed-post')); $('.weblizar-fb-product-popup-content a#nav-btn-next').attr('feed-token', $NewCurrent.find('dialog').attr('feed-token')); $('.weblizar-fb-product-popup-content a#nav-btn-prev').attr('data-id', $NewCurrent.find('dialog').attr('data-id')); $('.weblizar-fb-product-popup-content a#nav-btn-prev').attr('feed-type', $NewCurrent.find('dialog').attr('feed-type')); $('.weblizar-fb-product-popup-content a#nav-btn-prev').attr('feed-post', $NewCurrent.find('dialog').attr('feed-post')); $('.weblizar-fb-product-popup-content a#nav-btn-prev').attr('feed-token', $NewCurrent.find('dialog').attr('feed-token')); var val = jQuery(this).attr('data-id'); var typ = jQuery(this).attr('feed-type'); var post_type = jQuery(this).attr('feed-post'); var feed_id = jQuery(this).find('dialog').attr('feed-id'); jQuery(".feed_demo_cls").hide(); jQuery('div.inner_box_' + val).append("
"); jQuery.ajax({ type: "POST", url: location.href, data: { 'action': 'get_feed_like_comment', 'id': val, 'type': typ, 'post_types': post_type, 'feed_id': feed_id, //'post_token':post_token, }, success: function(data) { //jQuery("#custom_box_load_div").hide(); like_comment = jQuery(data).find('div.wp-weblizar_like_comment_div:first'); jQuery('div.weblizar-fb-product-gallery-popup').find('div.inner_box_' + val).html(like_comment); jQuery(document).unbind("ajaxComplete"); jQuery(".feed_more").click(function() { jQuery(".weblizar_fb_teaser").toggle(); jQuery(".weblizar_fb_complete").toggle(); var oldText = $(this).text(); var newText = $(this).attr('data-text'); if (jQuery(this).text(oldText)) { jQuery(this).text(newText); } else { jQuery(this).text(oldText); } jQuery(this).attr('data-text', oldText); }); //jQuery(".custom_box_load_div").hide(); } }); $('.weblizar-fb-product-popup-content .weblizar-fb-product-image div.ffp_weblizar_img').html($NewCurrent.find('span.weblizar_span_img').html()); $('.weblizar-fb-product-popup-content .weblizar-fb-product-information .weblizar-comment').html($NewCurrent.find('dialog').html()); if ($PreviousElm.length === 0) { $('.nav-btn.prev').css({ 'display': 'none' }); } else { $('.nav-btn.prev').css({ 'display': 'none' }); } if ($nextElm.length === 0) { $('.nav-btn.next').css({ 'display': 'none' }); } else { $('.nav-btn.next').css({ 'display': 'none' }); } } } }; }(jQuery)); /* custom box js end */ /* custom box js assign */ jQuery(document).ready(function() { jQuery('.gallery-img').Am2_SimpleSlider(); }); /* custom box js assign end */ /* post comment box open js */ jQuery(document).ready(function() { var acc = document.getElementsByClassName("accordion"); var i; for (i = 0; i