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":"","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:\/\/aduresourcecenter.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"};
jQuery('.bwg_nav_cont_0').remove() if( jQuery('.bwg_nav_cont_0').length > 1 ) { jQuery('.bwg_nav_cont_0').first().remove() } function spider_page_0(cur, x, y, load_more) { if (typeof load_more == "undefined") { var load_more = false; } if (jQuery(cur).hasClass('disabled')) { return false; } var items_county_0 = 2; switch (y) { case 1: if (x >= items_county_0) { document.getElementById('page_number_0').value = items_county_0; } else { document.getElementById('page_number_0').value = x + 1; } break; case 2: document.getElementById('page_number_0').value = items_county_0; break; case -1: if (x == 1) { document.getElementById('page_number_0').value = 1; } else { document.getElementById('page_number_0').value = x - 1; } break; case -2: document.getElementById('page_number_0').value = 1; break; case 0: document.getElementById('page_number_0').value = x; break; default: document.getElementById('page_number_0').value = 1; } bwg_ajax('gal_front_form_0', '0', 'bwg_thumbnails_0', '0', '', 'gallery', 0, '', '', load_more, '', 0); } jQuery('.first-page-0').on('click', function () { spider_page_0(this, 1, -2, 'numeric'); return false; }); jQuery('.prev-page-0').on('click', function () { spider_page_0(this, 1, -1, 'numeric'); return false; }); jQuery('.next-page-0').on('click', function () { spider_page_0(this, 1, 1, 'numeric'); return false; }); jQuery('.last-page-0').on('click', function () { spider_page_0(this, 1, 2, 'numeric'); return false; }); /* Change page on input enter. */ function bwg_change_page_0( e, that ) { if ( e.key == 'Enter' ) { var to_page = parseInt(jQuery(that).val()); var pages_count = jQuery(that).parents(".pagination-links").data("pages-count"); var current_url_param = jQuery(that).attr('data-url-info'); if (to_page > pages_count) { to_page = 1; } spider_page_0(this, to_page, 0, 'numeric'); return false; } return true; } jQuery('.bwg_load_btn_0').on('click', function () { spider_page_0(this, 1, 1, true); return false; }); if (document.readyState === 'complete') { if( typeof bwg_main_ready == 'function' ) { if ( jQuery("#bwg_container1_0").height() ) { bwg_main_ready(jQuery("#bwg_container1_0")); } } } else { document.addEventListener('DOMContentLoaded', function() { if( typeof bwg_main_ready == 'function' ) { if ( jQuery("#bwg_container1_0").height() ) { bwg_main_ready(jQuery("#bwg_container1_0")); } } }); }
if( jQuery('.bwg_nav_cont_1').length > 1 ) { jQuery('.bwg_nav_cont_1').first().remove() } function spider_page_1(cur, x, y, load_more) { if (typeof load_more == "undefined") { var load_more = false; } if (jQuery(cur).hasClass('disabled')) { return false; } var items_county_1 = 3; switch (y) { case 1: if (x >= items_county_1) { document.getElementById('page_number_1').value = items_county_1; } else { document.getElementById('page_number_1').value = x + 1; } break; case 2: document.getElementById('page_number_1').value = items_county_1; break; case -1: if (x == 1) { document.getElementById('page_number_1').value = 1; } else { document.getElementById('page_number_1').value = x - 1; } break; case -2: document.getElementById('page_number_1').value = 1; break; case 0: document.getElementById('page_number_1').value = x; break; default: document.getElementById('page_number_1').value = 1; } bwg_ajax('gal_front_form_1', '1', 'bwg_thumbnails_1', '0', '', 'gallery', 0, '', '', load_more, '', 0); } jQuery('.first-page-1').on('click', function () { spider_page_1(this, 1, -2, 'numeric'); return false; }); jQuery('.prev-page-1').on('click', function () { spider_page_1(this, 1, -1, 'numeric'); return false; }); jQuery('.next-page-1').on('click', function () { spider_page_1(this, 1, 1, 'numeric'); return false; }); jQuery('.last-page-1').on('click', function () { spider_page_1(this, 1, 2, 'numeric'); return false; }); /* Change page on input enter. */ function bwg_change_page_1( e, that ) { if ( e.key == 'Enter' ) { var to_page = parseInt(jQuery(that).val()); var pages_count = jQuery(that).parents(".pagination-links").data("pages-count"); var current_url_param = jQuery(that).attr('data-url-info'); if (to_page > pages_count) { to_page = 1; } spider_page_1(this, to_page, 0, 'numeric'); return false; } return true; } jQuery('.bwg_load_btn_1').on('click', function () { spider_page_1(this, 1, 1, true); return false; }); if (document.readyState === 'complete') { if( typeof bwg_main_ready == 'function' ) { if ( jQuery("#bwg_container1_1").height() ) { bwg_main_ready(jQuery("#bwg_container1_1")); } } } else { document.addEventListener('DOMContentLoaded', function() { if( typeof bwg_main_ready == 'function' ) { if ( jQuery("#bwg_container1_1").height() ) { bwg_main_ready(jQuery("#bwg_container1_1")); } } }); }
jQuery('.bwg_nav_cont_2').remove() if( jQuery('.bwg_nav_cont_2').length > 1 ) { jQuery('.bwg_nav_cont_2').first().remove() } function spider_page_2(cur, x, y, load_more) { if (typeof load_more == "undefined") { var load_more = false; } if (jQuery(cur).hasClass('disabled')) { return false; } var items_county_2 = 2; switch (y) { case 1: if (x >= items_county_2) { document.getElementById('page_number_2').value = items_county_2; } else { document.getElementById('page_number_2').value = x + 1; } break; case 2: document.getElementById('page_number_2').value = items_county_2; break; case -1: if (x == 1) { document.getElementById('page_number_2').value = 1; } else { document.getElementById('page_number_2').value = x - 1; } break; case -2: document.getElementById('page_number_2').value = 1; break; case 0: document.getElementById('page_number_2').value = x; break; default: document.getElementById('page_number_2').value = 1; } bwg_ajax('gal_front_form_2', '2', 'bwg_thumbnails_2', '0', '', 'gallery', 0, '', '', load_more, '', 0); } jQuery('.first-page-2').on('click', function () { spider_page_2(this, 1, -2, 'numeric'); return false; }); jQuery('.prev-page-2').on('click', function () { spider_page_2(this, 1, -1, 'numeric'); return false; }); jQuery('.next-page-2').on('click', function () { spider_page_2(this, 1, 1, 'numeric'); return false; }); jQuery('.last-page-2').on('click', function () { spider_page_2(this, 1, 2, 'numeric'); return false; }); /* Change page on input enter. */ function bwg_change_page_2( e, that ) { if ( e.key == 'Enter' ) { var to_page = parseInt(jQuery(that).val()); var pages_count = jQuery(that).parents(".pagination-links").data("pages-count"); var current_url_param = jQuery(that).attr('data-url-info'); if (to_page > pages_count) { to_page = 1; } spider_page_2(this, to_page, 0, 'numeric'); return false; } return true; } jQuery('.bwg_load_btn_2').on('click', function () { spider_page_2(this, 1, 1, true); return false; }); if (document.readyState === 'complete') { if( typeof bwg_main_ready == 'function' ) { if ( jQuery("#bwg_container1_2").height() ) { bwg_main_ready(jQuery("#bwg_container1_2")); } } } else { document.addEventListener('DOMContentLoaded', function() { if( typeof bwg_main_ready == 'function' ) { if ( jQuery("#bwg_container1_2").height() ) { bwg_main_ready(jQuery("#bwg_container1_2")); } } }); }
jQuery('.bwg_nav_cont_3').remove() if( jQuery('.bwg_nav_cont_3').length > 1 ) { jQuery('.bwg_nav_cont_3').first().remove() } function spider_page_3(cur, x, y, load_more) { if (typeof load_more == "undefined") { var load_more = false; } if (jQuery(cur).hasClass('disabled')) { return false; } var items_county_3 = 2; switch (y) { case 1: if (x >= items_county_3) { document.getElementById('page_number_3').value = items_county_3; } else { document.getElementById('page_number_3').value = x + 1; } break; case 2: document.getElementById('page_number_3').value = items_county_3; break; case -1: if (x == 1) { document.getElementById('page_number_3').value = 1; } else { document.getElementById('page_number_3').value = x - 1; } break; case -2: document.getElementById('page_number_3').value = 1; break; case 0: document.getElementById('page_number_3').value = x; break; default: document.getElementById('page_number_3').value = 1; } bwg_ajax('gal_front_form_3', '3', 'bwg_thumbnails_3', '0', '', 'gallery', 0, '', '', load_more, '', 0); } jQuery('.first-page-3').on('click', function () { spider_page_3(this, 1, -2, 'numeric'); return false; }); jQuery('.prev-page-3').on('click', function () { spider_page_3(this, 1, -1, 'numeric'); return false; }); jQuery('.next-page-3').on('click', function () { spider_page_3(this, 1, 1, 'numeric'); return false; }); jQuery('.last-page-3').on('click', function () { spider_page_3(this, 1, 2, 'numeric'); return false; }); /* Change page on input enter. */ function bwg_change_page_3( e, that ) { if ( e.key == 'Enter' ) { var to_page = parseInt(jQuery(that).val()); var pages_count = jQuery(that).parents(".pagination-links").data("pages-count"); var current_url_param = jQuery(that).attr('data-url-info'); if (to_page > pages_count) { to_page = 1; } spider_page_3(this, to_page, 0, 'numeric'); return false; } return true; } jQuery('.bwg_load_btn_3').on('click', function () { spider_page_3(this, 1, 1, true); return false; }); if (document.readyState === 'complete') { if( typeof bwg_main_ready == 'function' ) { if ( jQuery("#bwg_container1_3").height() ) { bwg_main_ready(jQuery("#bwg_container1_3")); } } } else { document.addEventListener('DOMContentLoaded', function() { if( typeof bwg_main_ready == 'function' ) { if ( jQuery("#bwg_container1_3").height() ) { bwg_main_ready(jQuery("#bwg_container1_3")); } } }); }
jQuery('.bwg_nav_cont_4').remove() if( jQuery('.bwg_nav_cont_4').length > 1 ) { jQuery('.bwg_nav_cont_4').first().remove() } function spider_page_4(cur, x, y, load_more) { if (typeof load_more == "undefined") { var load_more = false; } if (jQuery(cur).hasClass('disabled')) { return false; } var items_county_4 = 2; switch (y) { case 1: if (x >= items_county_4) { document.getElementById('page_number_4').value = items_county_4; } else { document.getElementById('page_number_4').value = x + 1; } break; case 2: document.getElementById('page_number_4').value = items_county_4; break; case -1: if (x == 1) { document.getElementById('page_number_4').value = 1; } else { document.getElementById('page_number_4').value = x - 1; } break; case -2: document.getElementById('page_number_4').value = 1; break; case 0: document.getElementById('page_number_4').value = x; break; default: document.getElementById('page_number_4').value = 1; } bwg_ajax('gal_front_form_4', '4', 'bwg_thumbnails_4', '0', '', 'gallery', 0, '', '', load_more, '', 0); } jQuery('.first-page-4').on('click', function () { spider_page_4(this, 1, -2, 'numeric'); return false; }); jQuery('.prev-page-4').on('click', function () { spider_page_4(this, 1, -1, 'numeric'); return false; }); jQuery('.next-page-4').on('click', function () { spider_page_4(this, 1, 1, 'numeric'); return false; }); jQuery('.last-page-4').on('click', function () { spider_page_4(this, 1, 2, 'numeric'); return false; }); /* Change page on input enter. */ function bwg_change_page_4( e, that ) { if ( e.key == 'Enter' ) { var to_page = parseInt(jQuery(that).val()); var pages_count = jQuery(that).parents(".pagination-links").data("pages-count"); var current_url_param = jQuery(that).attr('data-url-info'); if (to_page > pages_count) { to_page = 1; } spider_page_4(this, to_page, 0, 'numeric'); return false; } return true; } jQuery('.bwg_load_btn_4').on('click', function () { spider_page_4(this, 1, 1, true); return false; }); if (document.readyState === 'complete') { if( typeof bwg_main_ready == 'function' ) { if ( jQuery("#bwg_container1_4").height() ) { bwg_main_ready(jQuery("#bwg_container1_4")); } } } else { document.addEventListener('DOMContentLoaded', function() { if( typeof bwg_main_ready == 'function' ) { if ( jQuery("#bwg_container1_4").height() ) { bwg_main_ready(jQuery("#bwg_container1_4")); } } }); }