Wczytywanie...
Powered by Booking Calendar
Wyświetlanie wszystkich wyników: 3
RDF – Fotografia ślubna z sercem
Rafał Dziorek tel. 602618730
(function () {
"use strict";
var rid = 1;
var container_id = 'calendar_booking' + rid;
var loader_sel = '.calendar_loader_frame' + rid;
var text_sel = loader_sel + ' .calendar_loader_text';
var duplicate_message = "You have added the same calendar (ID = 1) more than once on this page. Please keep only one calendar with the same ID on a page to avoid conflicts.";
var support_message = "Contact support@wpbookingcalendar.com if you have any questions.";
var lib_msg_wpbc = "It appears that the \"_wpbc\" library is not loading correctly.\nPlease enable the loading of JS\/CSS files for this page on the \"WP Booking Calendar\" - \"Settings General\" - \"Advanced\" page\nFor more information, please refer to this page: https:\/\/wpbookingcalendar.com\/faq\/";
var lib_msg_dp = "It appears that the \"jQuery.datepick\" library is not loading correctly.\nFor more information, please refer to this page: https:\/\/wpbookingcalendar.com\/faq\/";
var lib_msg_jq = "It appears that the \"jQuery\" library is not loading correctly.\nFor more information, please refer to this page: https:\/\/wpbookingcalendar.com\/faq\/";
// Logging helpers (safe across old consoles).
function log_error(ctx, err) {
try {
if ( window.console && console.error ) console.error( 'WPBC loader[' + rid + '] ' + ctx + ':', err );
} catch ( _ ) {
}
}
function log_info(ctx, data) {
try {
if ( window.console && console.log ) console.log( 'WPBC loader[' + rid + '] ' + ctx + ':', data );
} catch ( _ ) {
}
}
// One-shot guard for this resource ID (prevents duplicate inlines from acting twice).
if ( window['__wpbc_loader_finalized__' + rid] === true ) {
return;
}
function html_wrap(msg) {
return '
';
}
function has_jquery() {
return !!(window.jQuery && jQuery.fn && typeof jQuery.fn.on === 'function');
}
function has_datepick() {
return !!(window.jQuery && jQuery.datepick);
}
function has_wpbc() {
return !!(window._wpbc && typeof window._wpbc.set_other_param === 'function');
}
// Detect whether the loader has been replaced by the real calendar.
function is_replaced() {
var loader_exists = !!document.querySelector( loader_sel );
var calendar_exists = !!document.querySelector( '.wpbc_calendar_id_' + rid );
return (!loader_exists) || calendar_exists;
}
// Watcher that just updates a flag; it does NOT show any message.
var replaced = is_replaced();
// Poll watcher (cheap)
var watch = setInterval( function () {
replaced = is_replaced();
if ( replaced ) {
clearInterval( watch );
if ( observer ) {
try {
observer.disconnect();
} catch ( e ) {
log_error( 'observer.disconnect (poll watcher)', e );
}
}
}
}, 250 );
// MutationObserver watcher (fast reaction, low cost).
var observer = null;
(function () {
var container = document.getElementById( container_id );
if ( !container || !('MutationObserver' in window) ) return;
observer = new MutationObserver( function () {
replaced = is_replaced();
if ( replaced ) {
if ( watch ) {
try {
clearInterval( watch );
} catch ( e ) {
log_error( 'clearInterval(watch) in MutationObserver', e );
}
}
try {
observer.disconnect();
} catch ( e ) {
log_error( 'observer.disconnect in MutationObserver', e );
}
}
} );
try {
observer.observe( container, { childList: true, subtree: true } );
} catch ( e ) {
log_error( 'observer.observe', e );
}
})();
// Final decision happens ONLY after the grace period.
var grace_ms = 8000;
setTimeout( function finalize_after_grace() {
if ( window['__wpbc_loader_finalized__' + rid] === true ) {
return;
}
window['__wpbc_loader_finalized__' + rid] = true;
// If loader was replaced by real calendar, do nothing.
if ( replaced ) {
return;
}
// Decide which message to show (no jQuery, no _wpbc, no datepick, or duplicate).
var msg;
if ( !has_jquery() ) {
msg = lib_msg_jq;
} else if ( !has_wpbc() ) {
msg = lib_msg_wpbc;
} else if ( !has_datepick() ) {
msg = lib_msg_dp;
} else {
msg = duplicate_message + '\n\n' + support_message;
}
// Inject message via DOM (no jQuery dependency).
try {
var el = document.querySelector( text_sel );
if ( el ) el.innerHTML = html_wrap( msg );
} catch ( e ) {
log_error( 'inject message into loader text', e );
}
// Optional logging for duplicate case.
if ( msg === (duplicate_message + '\n\n' + support_message) ) {
try {
log_info( 'Duplicate calendar detected', document.querySelector( '.wpbc_calendar_id_' + rid ) );
} catch ( e ) {
log_error( 'duplicate log', e );
}
}
// Cleanup watchers.
try {
clearInterval( watch );
} catch ( e ) {
log_error( 'clearInterval(watch) at finalize', e );
}
if ( observer ) {
try {
observer.disconnect();
} catch ( e ) {
log_error( 'observer.disconnect at finalize', e );
}
}
}, grace_ms );
})();
(function() { var a = setInterval( function() { if ( ( 'undefined' === typeof _wpbc ) || ( 'undefined' === typeof jQuery ) || ! window.jQuery ) { return; } clearInterval( a ); jQuery( document ).ready( function (){ _wpbc.balancer__set_max_threads( 3 ); _wpbc.calendar__set_param_value( 1 , 'calendar_scroll_to' , false ); _wpbc.calendar__set_param_value( 1 , 'calendar_dates_start' , '' ); _wpbc.calendar__set_param_value( 1 , 'calendar_dates_end' , '' ); _wpbc.calendar__set_param_value( 1 , 'booking_max_monthes_in_calendar' , '1y' ); _wpbc.calendar__set_param_value( 1 , 'booking_start_day_weeek' , '1' ); _wpbc.calendar__set_param_value( 1 , 'calendar_number_of_months' , '3' ); _wpbc.calendar__set_param_value( 1, 'days_select_mode', 'multiple' ); _wpbc.calendar__set_param_value( 1, 'fixed__days_num', 0 ); _wpbc.calendar__set_param_value( 1, 'fixed__week_days__start', [] ); _wpbc.calendar__set_param_value( 1, 'dynamic__days_min', 0 ); _wpbc.calendar__set_param_value( 1, 'dynamic__days_max', 0 ); _wpbc.calendar__set_param_value( 1, 'dynamic__days_specific', [] ); _wpbc.calendar__set_param_value( 1, 'dynamic__week_days__start', [] ); _wpbc.calendar__set_param_value( 1, 'booking_date_format', 'j M Y' ); _wpbc.calendar__set_param_value( 1, 'booking_time_format', 'H:i' ); if ( 'function' === typeof ( wpbc__conditions__SAVE_INITIAL__days_selection_params__bm ) ){ wpbc__conditions__SAVE_INITIAL__days_selection_params__bm( 1 ); } wpbc_calendar_show( '1' ); _wpbc.set_secure_param( 'nonce', 'da9483ce9e' ); _wpbc.set_secure_param( 'user_id', '0' ); _wpbc.set_secure_param( 'locale', 'pl_PL' ); wpbc_calendar__load_data__ajx( {"resource_id":1,"booking_hash":"","request_uri":"\/kategoria-produktu\/plener\/","custom_form":"standard","aggregate_resource_id_str":"","aggregate_type":"all"} ); } ); }, 500 ); })();
Wyświetlanie wszystkich wyników: 3