1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Lack of Interest Remove empty pageNavLinkGroup from html

Discussion in 'Closed Suggestions' started by Luxus, Aug 13, 2013.

  1. Luxus

    Luxus Well-Known Member

    Template: online_list
    Line: 42-44

    Code:
    	<div class="pageNavLinkGroup">
    		<xen:pagenav link="online" linkparams="{xen:array 'type={$userLimit}'}" page="{$page}" perpage="{$usersPerPage}" total="{$totalOnlineUsers}" />
    	</div>
    Should be

    Code:
    <xen:if hascontent="true">
    	<div class="pageNavLinkGroup">
    		<xen:contentcheck>
    			<xen:pagenav link="online" linkparams="{xen:array 'type={$userLimit}'}" page="{$page}" perpage="{$usersPerPage}" total="{$totalOnlineUsers}" />
    		</xen:contentcheck>
    	</div>
    </xen:if>
     
  2. Chris D

    Chris D XenForo Developer Staff Member

    What is the effect with/without this code?
     
  3. Luxus

    Luxus Well-Known Member

    An empty <div class="pageNavLinkGroup"></div> which takes up a height of 10px due to margin applied to it.
     

Share This Page