Hello,
I am using a jquery plugin that lazy loads images with specific classes. Their processes is to load a placeholder image with src and store that image url in data-src until the image becomes visible on the page.
I was able to change the src to data-src here: pro/cornerstone/includes/shortcodes/image.php
if ( $link == 'true' ) { $output = "<a {$id} class=\"{$class}{$link_class}{$type}{$float}\" {$style} href=\"{$href}\" {$title} {$target} {$tooltip_attr} {$lightbox_caption} {$lightbox_options}><img src=\"{$src}\" {$alt}></a>"; } else { $output = "<img {$id} class=\"{$class}{$type}{$float}\" {$style} src=\"{$src}\" {$alt}>"; }
My question would be, if a certain image or image + link had a class, would I be able to specify that with this code such as:
if ( $customClass == ‘lazyLoad’ ) {
$output = a>img data-src="{$src}" {$alt}> /a>;
}
Thanks