| Línea 43... |
Línea 43... |
| 43 |
public function export_for_template(\renderer_base $output): stdClass {
|
43 |
public function export_for_template(\renderer_base $output): stdClass {
|
| 44 |
$format = $this->format;
|
44 |
$format = $this->format;
|
| Línea 45... |
Línea 45... |
| 45 |
|
45 |
|
| Línea 46... |
Línea 46... |
| 46 |
$data = parent::export_for_template($output);
|
46 |
$data = parent::export_for_template($output);
|
| 47 |
|
47 |
|
| 48 |
if (!$this->format->get_sectionnum()) {
|
48 |
if (!$this->format->get_sectionnum() && !$this->section->get_component_instance()) {
|
| 49 |
$addsectionclass = $format->get_output_classname('content\\addsection');
|
49 |
$addsectionclass = $format->get_output_classname('content\\addsection');
|
| 50 |
$addsection = new $addsectionclass($format);
|
50 |
$addsection = new $addsectionclass($format);
|
| 51 |
$data->numsections = $addsection->export_for_template($output);
|
51 |
$data->numsections = $addsection->export_for_template($output);
|