D
D
Dmitry Serikov2021-06-02 20:42:14
Joomla
Dmitry Serikov, 2021-06-02 20:42:14

Sigplus + DJ Webp + Joomla 3.9.27?

Good evening, I use this bundle, but as I understand it, after turning on dj webp, sigplus displays 2 images. I set the value here to 1, on the main and in the modules 1 photo is displayed, but in the gallery the repetitions remain in the materials, for some reason the first photos are not shown. Site prosalsk.ru

print '

  • ';
    for ($index = 0; $index < $limit; $index++) {
// no direct access
defined( '_JEXEC' ) or die( 'Restricted access' );

if (!empty($images)) {
// Gallery wrapper prologue
print '<div id="'.$galleryid.'" class="'.$gallerystyle.'">';

// List of images shown directly on the page
print '<noscript class="sigplus-gallery">';  // provide fall-back to a bare-bone gallery implementation when scripting is disabled in the browser
print '<ul>';
for ($index = 0; $index < $limit; $index++) {
// no maximum preview image count set or current image index is within maximum limit
print '<li>';
$this->printImage($images[$index], $index, $total);
print '</li>';
}
print '</ul>';
print '</noscript>';

// List of images that appear only in the lightbox pop-up window
if ($curparams->maxcount > 0 && $curparams->lightbox !== false) {
// if lightbox is disabled, user cannot navigate to images beyond maximum image count
for (; $index < $total; $index++) {
$this->printImage($images[$index], $index, $total, 'display:none !important;');
}
}

// Gallery wrapper epilogue
print '</div>';
} else {
print JText::_('SIGPLUS_GALLERY_EMPTY');
}

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question