public function should_display_main_logo($headinglevel = 1) {
        global $PAGE;

        // Only render the logo if we're on the front page or login page and the we have a logo.
        $logo = $this->get_logo_url();
        if ($headinglevel == 1 && !empty($logo)) {
            if ($PAGE->pagelayout == 'frontpage' || $PAGE->pagelayout == 'login') {
                return true;
            }
        }

        return false;
    }
public function should_display_main_logo($headinglevel = 1) {
        global $PAGE;

        // Only render the logo if we're on the front page or login page and the we have a logo.
        $logo = $this->get_logo_url();
        if ($headinglevel == 1 && !empty($logo)) {
            if ($PAGE->pagelayout == 'frontpage' || $PAGE->pagelayout == 'login') {
                return true;
            }
        }

        return false;
    }
public function should_display_main_logo ( $ headinglevel = 1 ) { global $ PAGE ; // Only render the logo if we're on the front page or login page and the we have a logo. $ logo = $ this -> get_logo_url ( ) ; if ( $ headinglevel == 1 && ! empty ( $ logo ) ) { if ( $ PAGE -> pagelayout == 'frontpage' || $ PAGE -> pagelayout == 'login' ) { return true ; } } return false ; }
Whether we should display the main logo.

@param int $headinglevel
@return bool
Whether we should display the main logo .