original_string: 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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: Whether we should display the main logo.
  
  @param int $headinglevel
  @return bool
docstring_tokens: Whether we should display the main logo .