original_string: protected function export_header(workshop_submission $workshopsubmission) {
  
          $output = '';
          $output .= html_writer::tag('h2', get_string('pluginname', 'mod_workshop').': '.s($this->workshop->name));
          $output .= html_writer::tag('h3', s($workshopsubmission->title));
  
          $created = get_string('userdatecreated', 'workshop', userdate($workshopsubmission->timecreated));
          $created = html_writer::tag('span', $created);
  
          if ($workshopsubmission->timemodified > $workshopsubmission->timecreated) {
              $modified = get_string('userdatemodified', 'workshop', userdate($workshopsubmission->timemodified));
              $modified = ' | ' . html_writer::tag('span', $modified);
          } else {
              $modified = '';
          }
  
          $output .= html_writer::div($created.$modified);
          $output .= html_writer::empty_tag('br');
  
          return $output;
      }
code: protected function export_header(workshop_submission $workshopsubmission) {
  
          $output = '';
          $output .= html_writer::tag('h2', get_string('pluginname', 'mod_workshop').': '.s($this->workshop->name));
          $output .= html_writer::tag('h3', s($workshopsubmission->title));
  
          $created = get_string('userdatecreated', 'workshop', userdate($workshopsubmission->timecreated));
          $created = html_writer::tag('span', $created);
  
          if ($workshopsubmission->timemodified > $workshopsubmission->timecreated) {
              $modified = get_string('userdatemodified', 'workshop', userdate($workshopsubmission->timemodified));
              $modified = ' | ' . html_writer::tag('span', $modified);
          } else {
              $modified = '';
          }
  
          $output .= html_writer::div($created.$modified);
          $output .= html_writer::empty_tag('br');
  
          return $output;
      }
code_tokens: protected function export_header ( workshop_submission $ workshopsubmission ) { $ output = '' ; $ output .= html_writer :: tag ( 'h2' , get_string ( 'pluginname' , 'mod_workshop' ) . ': ' . s ( $ this -> workshop -> name ) ) ; $ output .= html_writer :: tag ( 'h3' , s ( $ workshopsubmission -> title ) ) ; $ created = get_string ( 'userdatecreated' , 'workshop' , userdate ( $ workshopsubmission -> timecreated ) ) ; $ created = html_writer :: tag ( 'span' , $ created ) ; if ( $ workshopsubmission -> timemodified > $ workshopsubmission -> timecreated ) { $ modified = get_string ( 'userdatemodified' , 'workshop' , userdate ( $ workshopsubmission -> timemodified ) ) ; $ modified = ' | ' . html_writer :: tag ( 'span' , $ modified ) ; } else { $ modified = '' ; } $ output .= html_writer :: div ( $ created . $ modified ) ; $ output .= html_writer :: empty_tag ( 'br' ) ; return $ output ; }
docstring: Render the header of the exported content.
  
  This is mainly used for the HTML output format. In case of LEAP2A
  export, this is not used as the information is stored in metadata and
  displayed as a part of the journal and entry title in Mahara.
  
  @param workshop_submission $workshopsubmission
  @return string HTML
docstring_tokens: Render the header of the exported content .