original_string: protected function frontpage_remote_host($host) {
          $output = '';
          $output .= html_writer::start_tag('div', array('class' => 'coursebox remotehost clearfix'));
          $output .= html_writer::start_tag('div', array('class' => 'info'));
          $output .= html_writer::start_tag('h3', array('class' => 'name'));
          $output .= html_writer::link($host['url'], s($host['name']), array('title' => s($host['name'])));
          $output .= html_writer::end_tag('h3'); // .name
          $output .= html_writer::tag('div', '', array('class' => 'moreinfo'));
          $output .= html_writer::end_tag('div'); // .info
          $output .= html_writer::start_tag('div', array('class' => 'content'));
          $output .= html_writer::start_tag('div', array('class' => 'summary'));
          $output .= $host['count'] . ' ' . get_string('courses');
          $output .= html_writer::end_tag('div'); // .content
          $output .= html_writer::end_tag('div'); // .coursebox
          return $output;
      }
code: protected function frontpage_remote_host($host) {
          $output = '';
          $output .= html_writer::start_tag('div', array('class' => 'coursebox remotehost clearfix'));
          $output .= html_writer::start_tag('div', array('class' => 'info'));
          $output .= html_writer::start_tag('h3', array('class' => 'name'));
          $output .= html_writer::link($host['url'], s($host['name']), array('title' => s($host['name'])));
          $output .= html_writer::end_tag('h3'); // .name
          $output .= html_writer::tag('div', '', array('class' => 'moreinfo'));
          $output .= html_writer::end_tag('div'); // .info
          $output .= html_writer::start_tag('div', array('class' => 'content'));
          $output .= html_writer::start_tag('div', array('class' => 'summary'));
          $output .= $host['count'] . ' ' . get_string('courses');
          $output .= html_writer::end_tag('div'); // .content
          $output .= html_writer::end_tag('div'); // .coursebox
          return $output;
      }
code_tokens: protected function frontpage_remote_host ( $ host ) { $ output = '' ; $ output .= html_writer :: start_tag ( 'div' , array ( 'class' => 'coursebox remotehost clearfix' ) ) ; $ output .= html_writer :: start_tag ( 'div' , array ( 'class' => 'info' ) ) ; $ output .= html_writer :: start_tag ( 'h3' , array ( 'class' => 'name' ) ) ; $ output .= html_writer :: link ( $ host [ 'url' ] , s ( $ host [ 'name' ] ) , array ( 'title' => s ( $ host [ 'name' ] ) ) ) ; $ output .= html_writer :: end_tag ( 'h3' ) ; // .name $ output .= html_writer :: tag ( 'div' , '' , array ( 'class' => 'moreinfo' ) ) ; $ output .= html_writer :: end_tag ( 'div' ) ; // .info $ output .= html_writer :: start_tag ( 'div' , array ( 'class' => 'content' ) ) ; $ output .= html_writer :: start_tag ( 'div' , array ( 'class' => 'summary' ) ) ; $ output .= $ host [ 'count' ] . ' ' . get_string ( 'courses' ) ; $ output .= html_writer :: end_tag ( 'div' ) ; // .content $ output .= html_writer :: end_tag ( 'div' ) ; // .coursebox return $ output ; }
docstring: Returns HTML to display one remote host
  
  @param array $host host information, contains properties: name, url, count
  @return string
docstring_tokens: Returns HTML to display one remote host