Advertisement:

Author Topic: help hiding public profile pagination  (Read 536 times)

BabyDunk

  • Jr. Member
  • **
  • Posts: 66
  • I Am A Noob But I Am Here To Learn. :D
help hiding public profile pagination
« on: July 08, 2016, 02:38:16 am »
i have search the forum but cant seem to find the answer

i am tyrying to hide the pagination if their is 10 or less listings being displayed in the public profile. can someone look over this and see where i am going wrong.

Code: [Select]
<div class="propag">
         <?php if( osc_count_items() > 10) { ?>
          <label for="profileitems"><span><?php _e('Check out more from this sellers''patricia') ; ?></span></label>
         <?php echo osc_pagination_items(); ?>
          <?php } else if ( osc_item_count() < 10 )  { ?>
          <?php _e(''); } ?>
  </div>

thanks
Chris

BabyDunk

  • Jr. Member
  • **
  • Posts: 66
  • I Am A Noob But I Am Here To Learn. :D
Re: help hiding public profile pagination
« Reply #1 on: July 16, 2016, 01:11:26 am »
Thanks to Frosticek for help in completing this.

Pagination is now hidden until 10 items are showing in public-profile .
Code: [Select]
      <div class="propag">
         <?php if( osc_count_items() >= 10) { ?>
          <label for="profileitems"><span><?php _e('Check out more from this seller''patricia') ; ?></span></label>
         <?php echo osc_pagination_items(); ?>
          <?php } else { ?>
          <?php osc_reset_items(); } ?>
        </div>