Deprecated: Calling get_class() without arguments is deprecated in /mnt/web023/e3/24/51917324/htdocs/tiara546/wp-includes/class-wp-http.php on line 329
Warning: Cannot modify header information - headers already sent by (output started at /mnt/web023/e3/24/51917324/htdocs/tiara546/wp-includes/class-wp-http.php:329) in /mnt/web023/e3/24/51917324/htdocs/tiara546/wp-content/plugins/auction-nudge/inc/request.php on line 174
Warning: Cannot modify header information - headers already sent by (output started at /mnt/web023/e3/24/51917324/htdocs/tiara546/wp-includes/class-wp-http.php:329) in /mnt/web023/e3/24/51917324/htdocs/tiara546/wp-content/plugins/auction-nudge/inc/request.php on line 175
/**
*
* Auction Nudge
* https://www.auctionnudge.com
*
* By Joe Hawes
* http://www.morehawes.co.uk
*
*/
function AN_Item_JS(){var AN=null;var head=null;var request_endpoint=null;var request_params={};var container=null;var last_js=null;var max_pages=null;this.init=function(params={}){AN=this;AN.config={target_div_id:'auction-nudge-items',request_params:{},template_html:'',item_html:'',page_active:false,page_show_next:false,page_show_prev:false,cats_output:false,search_box:false,theme_css_asset:'',theme_js_asset:''};AN.update_config(params);AN.head=document.getElementsByTagName('head')[0];AN.request_endpoint='https://tiara546.de/?an_tool_key=item&an_request=';AN.disclosure_html='
Ad Clicking an item will take you to eBay, who may pay a referral commission if a purchase is made.
';AN.listen(window,'load',AN.ready);}
this.update_config=function(params={}){for(i in params){if(typeof AN.config[i]!=='undefined'){AN.config[i]=params[i];}}}
this.ready=function(){AN.container=document.getElementById(AN.config.target_div_id);if(AN.container===null){AN.console_error('Container #'+AN.config.target_div_id+' not found.');return false;}
if(AN.config.request_params.theme!=='unstyled'){if(AN.container.className.indexOf('auction-nudge-items')===-1){AN.container.className+=' '+'auction-nudge-items';}
AN.container.className+=' theme-'+AN.config.request_params.theme;}
AN.add_template_html(AN.config.template_html);AN.add_item_html(AN.config.item_html);if(AN.config.page_active){AN.setup_pagination();AN.page_links('next',AN.config.page_show_next);}
if(AN.config.cats_output){AN.setup_cats(AN.config.cats_output);}
if(AN.config.search_box){AN.setup_search();}
if(AN.config.theme_css_asset){AN.add_asset('css',AN.config.theme_css_asset);}
if(AN.config.theme_js_asset){AN.add_asset('js',AN.config.theme_js_asset);}
let skipCheck=['carousel'];if(skipCheck.indexOf(AN.config.request_params.theme)==-1){setInterval(function(){AN.check_disclosure();},2500);}
AN.ready_callback();}
this.update=function(params={}){AN.update_config(params);AN.show_loading(false);if(AN.config.item_html){AN.add_item_html(AN.config.item_html);}else{AN.handle_items_end();}
AN.update_callback(AN.config.page_show_prev,AN.config.page_show_next);}
this.check_disclosure=function(){const checkDiv=AN.container.getElementsByTagName('span')[0];if(!checkDiv||checkDiv.innerHTML!=='Ad'){AN.console_error('Affiliate disclosure not found. This is an eBay requirement.');AN.container.innerHTML=AN.disclosure_html+AN.container.innerHTML;}}
this.console_error=function(text=''){console.log('Auction Nudge Error: '+text+'');}
this.add_template_html=function(html){if(location.host.indexOf('ebay')!=-1||location.host.indexOf('paypal')!=-1){html='
Auction Nudge Error Your items can not load because the website hostname contains a disallowed keyword.
',page_active:true,page_show_next:false,cats_output:'dropdown',search_box:true,theme_css_asset:'https://assets-auctionnudge.s3.amazonaws.com/feed/item/css/responsive.min.css?v=2024.1',theme_js_asset:'https://assets-auctionnudge.s3.amazonaws.com/feed/item/js/responsive.min.js?v=2024.1'});
Warning: Cannot modify header information - headers already sent by (output started at /mnt/web023/e3/24/51917324/htdocs/tiara546/wp-includes/class-wp-http.php:329) in /mnt/web023/e3/24/51917324/htdocs/tiara546/wp-includes/functions.php on line 5349