I have 2 templates that are identical in terms of structure (one page is a menu and the other is catering menu). I am trying to hide a div if there is not an image uploaded. The code works perfectly on the menu page, but hides everything on the catering menu page. I am not sure why it works on one and not the other. Any idea where I am going wrong?
- Code: Select all
<cms:pages masterpage='catering-menu.php' order='asc'>
<div class="menu-list">
<div class="menu-title cute-12-tablet text-center">
<h2><cms:show k_page_title /></h2>
<h2 class="head-title"><cms:show sub_title /></h2>
</div>
<cms:capture into='cm_buffer'>
<cms:show_repeatable 'menu'>
<div class="menu-details cute-6-tablet">
<h2><cms:show item_name /> - <cms:show item_price /> <span></span></h2>
<p>
<cms:show item_desc />
</p>
<cms:if "<cms:not_empty item_img />">
<a href="<cms:show item_img />" class="menu-link mag-pop" title="<cms:show item_name />">
<i class="fa fa-camera"></i> SEE WHAT IT LOOKS LIKE!
</a>
<cms:set show_buffer='1' 'global' />
</cms:if>
</div>
</cms:show_repeatable>
</cms:capture>
<cms:if show_buffer ><cms:show cm_buffer /></cms:if>
</div><!-- end Menu list -->
</cms:pages>