Ejemplo n.º 1
0
function breadcrumb_buildTrail($crumbs, $loc)
{
    global $feature_siteidentity, $feature_siteloc, $feature_page_title, $info, $feature_breadcrumbs;
    if ($feature_siteidentity == 'y' && $feature_breadcrumbs == 'y') {
        if ($loc == 'page' && ($feature_siteloc == 'page' || $feature_page_title == 'y' && $info)) {
            return _breadcrumb_buildTrail($crumbs);
        } else {
            if (($loc == 'site' || $loc == 'location') && $feature_siteloc == 'y') {
                return _breadcrumb_buildTrail($crumbs);
            } else {
                if ($loc != 'page' && $loc != 'site' && $loc != 'location' && $loc != 'admin') {
                    return _breadcrumb_buildTrail($crumbs);
                }
            }
        }
    } else {
        if ($loc == "admin" && $feature_breadcrumbs == 'y') {
            return _breadcrumb_buildTrail($crumbs);
        }
    }
}
Ejemplo n.º 2
0
function breadcrumb_buildTrail($crumbs, $loc)
{
    global $prefs, $info;
    if ($prefs['feature_siteidentity'] == 'y' && $prefs['feature_breadcrumbs'] == 'y') {
        if ($loc == 'page' && ($prefs['feature_siteloc'] == 'page' || $prefs['feature_page_title'] == 'y' && $info)) {
            return _breadcrumb_buildTrail($crumbs);
        } else {
            if (($loc == 'site' || $loc == 'location') && $prefs['feature_siteloc'] == 'y') {
                return _breadcrumb_buildTrail($crumbs);
            } else {
                if ($loc != 'page' && $loc != 'site' && $loc != 'location' && $loc != 'admin') {
                    return _breadcrumb_buildTrail($crumbs);
                }
            }
        }
    } else {
        if ($loc == "admin" && $prefs['feature_breadcrumbs'] == 'y') {
            return _breadcrumb_buildTrail($crumbs);
        }
    }
}