[cc lang=’javascript’ ]/* Replace default stock image when not images is found */
if (jQuery(‘#dealertrend-inventory-api’).length){
if (jQuery(‘#armadillo-listing’).length){ //Looks on Vehicle List Page
jQuery(‘.armadillo-photo img’).each(function(){
if (jQuery(this).attr(‘src’).match(/s_no_photo/i) != null){
jQuery(this).attr(‘src’,’/wp-content/uploads/2012/05/coming-soon-vehicle.jpg’);
}
});
} else {
jQuery(‘.armadillo-images a’).each(function(){ //Looks on Vehicle Detail Page
if (jQuery(this).attr(‘href’).match(/m_no_photo/i) != null){
jQuery(this).attr(‘href’,’/wp-content/uploads/2012/05/coming-soon-vehicle.jpg’);
jQuery(this).children(‘img’).attr(‘src’,’/wp-content/uploads/2012/05/coming-soon-vehicle.jpg’);
}
});
}
}[/cc]