我收到以下错误消息:
解析错误:语法错误,意外的“ elseif”(T_ELSEIF)
代码:
<?php if ($_product->getData('product_labels') != ''): ?>
<div class = "product-new">
<?php echo $_product->getAttributeText('product_labels'); ?>
</div>
<?php endif; ?>
<?php elseif ($_product->getData('product_labels') == "ssh"): ?>
<div class = "product-ssh"></div>
<?php endif; ?>