Notice: Trying to get property 'post_name' of non-object in /mnt/web616/b3/14/54068114/htdocs/WordPress_04/wp-content/plugins/ti-woocommerce-wishlist/public/tinvwl.class.php on line 266 Notice: Trying to get property 'ID' of non-object in /mnt/web616/b3/14/54068114/htdocs/WordPress_04/wp-content/plugins/ti-woocommerce-wishlist/public/tinvwl.class.php on line 277 Notice: Trying to get property 'ID' of non-object in /mnt/web616/b3/14/54068114/htdocs/WordPress_04/wp-content/plugins/ti-woocommerce-wishlist/public/tinvwl.class.php on line 296 Warning: Cannot modify header information - headers already sent by (output started at /mnt/web616/b3/14/54068114/htdocs/WordPress_04/wp-content/plugins/ti-woocommerce-wishlist/public/tinvwl.class.php:266) in /mnt/web616/b3/14/54068114/htdocs/WordPress_04/wp-content/plugins/auction-nudge/inc/request.php on line 173 Warning: Cannot modify header information - headers already sent by (output started at /mnt/web616/b3/14/54068114/htdocs/WordPress_04/wp-content/plugins/ti-woocommerce-wishlist/public/tinvwl.class.php:266) in /mnt/web616/b3/14/54068114/htdocs/WordPress_04/wp-content/plugins/auction-nudge/inc/request.php on line 174 /* auctionnudge.com (v2024.2.1) by morehawes.ca */ 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://www.auctionnudge.com/feed/item/js';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);} 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.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.

';} AN.container.innerHTML=html;AN.item_wrap=AN.container.getElementsByClassName('an-item-wrap')[0];} this.add_item_html=function(html){AN.item_wrap.innerHTML=html;} this.create_element=function(type,attr,content){var ele=document.createElement(type);for(key in attr){ele.setAttribute(key,attr[key]);} if(content){if(typeof content=='object'){ele.appendChild(content);}else{ele.innerHTML=content;}} return ele;} this.listen=function(ele,event,callback){if(typeof ele!=='object'){AN.console_error('Element not found');return false;} switch(event){case'load':if(typeof ele.addEventListener!="undefined"){ele.addEventListener("load",callback,false);}else if(typeof ele.attachEvent!="undefined"){ele.attachEvent("onload",callback);}else{if(ele.onload!=null){var old_onload=ele.onload;ele.onload=function(e){old_onload(e);e[callback]();};}else{ele.onload=callback;}} break;default:if(typeof ele.addEventListener!="undefined"){ele.addEventListener(event,callback,false);}else if(typeof ele.attachEvent!="undefined"){ele.attachEvent('on'+event,callback);} break;}} this.add_asset=function(type,url){var e_type='';switch(type){case'css':e_type='link';var styles=AN.head.getElementsByTagName(e_type);for(i=0;i',item_html:'

No items found.

',page_active:false,page_show_next:false,cats_output:'',search_box:false,theme_css_asset:'',theme_js_asset:''});