Keyword

template issues

  • yourmanstan
  • yourmanstan's Avatar Topic Author
  • Offline
  • New Member
More
14 years 4 weeks ago #81640 by yourmanstan
template issues was created by yourmanstan
this is fairly minor, but i thought i would share.  when i was viewing a category page i noticed that there was quite a bit of excessive whitespace caused by some elements being out of place.  i fixed them... here are the changes:category_item.php ~ line 158<?php if(  $this->item->params->get('catItemHits')||   $this->item->params->get('catItemCategory')||   $this->item->params->get('catItemTags')||    $this->item->params->get('catItemAttachments')   ): ?>should be<?php if(  $this->item->params->get('catItemHits')||   $this->item->params->get('catItemCategory')||   ($this->item->params->get('catItemTags') && count($this->item->tags))||    ($this->item->params->get('catItemAttachments') && count($this->item->attachments))  ): ?>also there were a few spots where <div class="clr"></div> needed to be pulled into the if statement...that way if features are disabled, the code doesn't produce <div class="clr"></div><div class="clr"></div> over and over.

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum