| Línea 129... |
Línea 129... |
| 129 |
foreach ($fullcontexts as $contextinpath) {
|
129 |
foreach ($fullcontexts as $contextinpath) {
|
| 130 |
$contextsinpath[] = $contextinpath->get_context_name(false, true);
|
130 |
$contextsinpath[] = $contextinpath->get_context_name(false, true);
|
| 131 |
}
|
131 |
}
|
| 132 |
$infoicon = new pix_icon('i/info', implode(' / ', array_reverse($contextsinpath)));
|
132 |
$infoicon = new pix_icon('i/info', implode(' / ', array_reverse($contextsinpath)));
|
| 133 |
$infoiconhtml = $OUTPUT->render($infoicon);
|
133 |
$infoiconhtml = $OUTPUT->render($infoicon);
|
| 134 |
$name = html_writer::span(get_string('nameandparent', 'tool_dataprivacy', $contextdata), 'mr-1');
|
134 |
$name = html_writer::span(get_string('nameandparent', 'tool_dataprivacy', $contextdata), 'me-1');
|
| Línea 135... |
Línea 135... |
| 135 |
|
135 |
|
| 136 |
return $name . $infoiconhtml;
|
136 |
return $name . $infoiconhtml;
|
| Línea 137... |
Línea 137... |
| 137 |
}
|
137 |
}
|
| Línea 156... |
Línea 156... |
| 156 |
foreach ($children as $child) {
|
156 |
foreach ($children as $child) {
|
| 157 |
$childnames[] = $child->get_context_name(false, true);
|
157 |
$childnames[] = $child->get_context_name(false, true);
|
| 158 |
}
|
158 |
}
|
| 159 |
$infoicon = new pix_icon('i/info', implode(', ', $childnames));
|
159 |
$infoicon = new pix_icon('i/info', implode(', ', $childnames));
|
| 160 |
$infoiconhtml = $OUTPUT->render($infoicon);
|
160 |
$infoiconhtml = $OUTPUT->render($infoicon);
|
| 161 |
$name = html_writer::span(get_string('nchildren', 'tool_dataprivacy', count($children)), 'mr-1');
|
161 |
$name = html_writer::span(get_string('nchildren', 'tool_dataprivacy', count($children)), 'me-1');
|
| Línea 162... |
Línea 162... |
| 162 |
|
162 |
|
| 163 |
return $name . $infoiconhtml;
|
163 |
return $name . $infoiconhtml;
|
| 164 |
}
|
164 |
}
|