目前我正在使用来自 MagePsycho jquery 灯箱的扩展。此扩展程序在前端调用所有缩略图并显示为“更多视图”缩略图,我想限制它们。media.phtml 中的代码是:
`<div class="more-views">
<h2><?php echo $helper->getConfig('more_views_label') ?></h2>
<ul>
<?php foreach ($this->getGalleryImages() as $_image):
if(empty($popUpImageSize[0]) || empty($popUpImageSize[0])):
$popUpImage = $this->helper('catalog/image')->init($this->getProduct(), 'image', $_image->getFile());
else:
$popUpImage = $this->helper('catalog/image')->init($this->getProduct(), 'image', $_image->getFile())->resize($popUpImageSize[0], $popUpImageSize[1]);
endif;
?>
<li>
<a href="<?php echo $popUpImage; ?>" rel="<?php echo $rel; ?>" class="<?php echo $class; ?>" title="<?php echo $this->htmlEscape($_image->getLabel()) ?>"><img src="<?php echo $this->helper('catalog/image')->init($this->getProduct(), 'thumbnail', $_image->getFile())->resize($thumbnailSize[0], $thumbnailSize[1]); ?>" alt="<?php echo $this->htmlEscape($_image->getLabel()) ?>" /></a>
</li>
<?php endforeach; ?>
</ul>
`
并附上描述问题的图像。谢谢