original_string: public function moodlenet_info() {
          if (!$info = \core\hub\registration::get_moodlenet_info()) {
              return '';
          }
  
          $image = html_writer::div(html_writer::img($info['imgurl'], $info['name']), 'hubimage');
  
          $namelink = html_writer::link($info['url'], html_writer::tag('h2', $info['name']), array('class' => 'hubtitlelink'));
          $description = clean_param($info['description'], PARAM_TEXT);
          $descriptiontext = html_writer::div(format_text($description, FORMAT_PLAIN), 'hubdescription');
  
          $additionaldesc = get_string('enrollablecourses', 'block_community') . ': ' . $info['enrollablecourses'] . ' - ' .
              get_string('downloadablecourses', 'block_community') . ': ' . $info['downloadablecourses'];
          $stats = html_writer::div(html_writer::tag('div', $additionaldesc), 'hubstats');
  
          $text = html_writer::div($descriptiontext . $stats, 'hubtext');
  
          $imgandtext = html_writer::div($image . $text, 'hubimgandtext');
  
          $fulldesc = html_writer::div($namelink . $imgandtext, 'hubmainhmtl clearfix');
  
          return html_writer::div($fulldesc, 'formlisting');
      }
code: public function moodlenet_info() {
          if (!$info = \core\hub\registration::get_moodlenet_info()) {
              return '';
          }
  
          $image = html_writer::div(html_writer::img($info['imgurl'], $info['name']), 'hubimage');
  
          $namelink = html_writer::link($info['url'], html_writer::tag('h2', $info['name']), array('class' => 'hubtitlelink'));
          $description = clean_param($info['description'], PARAM_TEXT);
          $descriptiontext = html_writer::div(format_text($description, FORMAT_PLAIN), 'hubdescription');
  
          $additionaldesc = get_string('enrollablecourses', 'block_community') . ': ' . $info['enrollablecourses'] . ' - ' .
              get_string('downloadablecourses', 'block_community') . ': ' . $info['downloadablecourses'];
          $stats = html_writer::div(html_writer::tag('div', $additionaldesc), 'hubstats');
  
          $text = html_writer::div($descriptiontext . $stats, 'hubtext');
  
          $imgandtext = html_writer::div($image . $text, 'hubimgandtext');
  
          $fulldesc = html_writer::div($namelink . $imgandtext, 'hubmainhmtl clearfix');
  
          return html_writer::div($fulldesc, 'formlisting');
      }
code_tokens: public function moodlenet_info ( ) { if ( ! $ info = \ core \ hub \ registration :: get_moodlenet_info ( ) ) { return '' ; } $ image = html_writer :: div ( html_writer :: img ( $ info [ 'imgurl' ] , $ info [ 'name' ] ) , 'hubimage' ) ; $ namelink = html_writer :: link ( $ info [ 'url' ] , html_writer :: tag ( 'h2' , $ info [ 'name' ] ) , array ( 'class' => 'hubtitlelink' ) ) ; $ description = clean_param ( $ info [ 'description' ] , PARAM_TEXT ) ; $ descriptiontext = html_writer :: div ( format_text ( $ description , FORMAT_PLAIN ) , 'hubdescription' ) ; $ additionaldesc = get_string ( 'enrollablecourses' , 'block_community' ) . ': ' . $ info [ 'enrollablecourses' ] . ' - ' . get_string ( 'downloadablecourses' , 'block_community' ) . ': ' . $ info [ 'downloadablecourses' ] ; $ stats = html_writer :: div ( html_writer :: tag ( 'div' , $ additionaldesc ) , 'hubstats' ) ; $ text = html_writer :: div ( $ descriptiontext . $ stats , 'hubtext' ) ; $ imgandtext = html_writer :: div ( $ image . $ text , 'hubimgandtext' ) ; $ fulldesc = html_writer :: div ( $ namelink . $ imgandtext , 'hubmainhmtl clearfix' ) ; return html_writer :: div ( $ fulldesc , 'formlisting' ) ; }
docstring: Displays information about moodle.net above course search form
  
  @return string
docstring_tokens: Displays information about moodle . net above course search form