You are here

protected function crumbs_CurrentPageInfo::minVisibleItems in Crumbs, the Breadcrumbs suite 7.2

If there are fewer visible items than this, we hide the breadcrumb. Every "trail item" does become a "visible item", except when it is hidden:

  • The frontpage item might be hidden based on a setting.
  • The current page item might be hidden based on a setting.
  • Any item where the title is FALSE will be hidden / skipped over.

Return value

int

See also

crumbs_CurrentPageInfo::$minVisibleItems

File

lib/CurrentPageInfo.php, line 231

Class

crumbs_CurrentPageInfo
Creates various data related to the current page.

Code

protected function minVisibleItems() {
  $n = $this->minTrailItems;
  if (!$this->showCurrentPage) {
    --$n;
  }
  if (!$this->showFrontPage) {
    --$n;
  }
  return $n;
}