@@ -6,22 +6,22 @@ |
||
| 6 | 6 | |
| 7 | 7 | <?php |
| 8 | 8 | if (count($this->data['sources']) === 0) { |
| 9 | - echo " <p>".$this->t('{aggregator2:aggregator:no_aggregators}')."</p>\n"; |
|
| 9 | + echo " <p>".$this->t('{aggregator2:aggregator:no_aggregators}')."</p>\n"; |
|
| 10 | 10 | } else { |
| 11 | - echo " <ul>"; |
|
| 12 | - $sources = $this->data['sources']; |
|
| 13 | - foreach ($sources as $id => $source) { |
|
| 14 | - echo str_repeat(' ', 8)."<li>\n"; |
|
| 15 | - echo str_repeat(' ', 12).'<a href="'; |
|
| 16 | - echo $source['name'].'">'.htmlspecialchars($id)."</a>\n"; |
|
| 17 | - echo str_repeat(' ', 12).'<a href="'; |
|
| 18 | - echo $source['text'].'">['.$this->t('{aggregator2:aggregator:text}')."]</a>\n"; |
|
| 19 | - echo str_repeat(' ', 12).'<a href="'; |
|
| 20 | - echo $source['xml']."\">[XML]</a>\n"; |
|
| 21 | - echo str_repeat(' ', 8)."</li>\n"; |
|
| 22 | - } |
|
| 11 | + echo " <ul>"; |
|
| 12 | + $sources = $this->data['sources']; |
|
| 13 | + foreach ($sources as $id => $source) { |
|
| 14 | + echo str_repeat(' ', 8)."<li>\n"; |
|
| 15 | + echo str_repeat(' ', 12).'<a href="'; |
|
| 16 | + echo $source['name'].'">'.htmlspecialchars($id)."</a>\n"; |
|
| 17 | + echo str_repeat(' ', 12).'<a href="'; |
|
| 18 | + echo $source['text'].'">['.$this->t('{aggregator2:aggregator:text}')."]</a>\n"; |
|
| 19 | + echo str_repeat(' ', 12).'<a href="'; |
|
| 20 | + echo $source['xml']."\">[XML]</a>\n"; |
|
| 21 | + echo str_repeat(' ', 8)."</li>\n"; |
|
| 22 | + } |
|
| 23 | 23 | |
| 24 | - echo " </ul>\n"; |
|
| 24 | + echo " </ul>\n"; |
|
| 25 | 25 | } |
| 26 | 26 | |
| 27 | 27 | $this->includeAtTemplateBase('includes/footer.php'); |
@@ -8,22 +8,22 @@ |
||
| 8 | 8 | $sources = []; |
| 9 | 9 | |
| 10 | 10 | foreach ($names as $name) { |
| 11 | - $encId = urlencode($name); |
|
| 11 | + $encId = urlencode($name); |
|
| 12 | 12 | |
| 13 | - $sources[$name] = [ |
|
| 14 | - 'name' => SimpleSAML\Module::getModuleURL( |
|
| 15 | - 'aggregator2/get.php', |
|
| 16 | - ['id' => $encId] |
|
| 17 | - ), |
|
| 18 | - 'text' => SimpleSAML\Module::getModuleURL( |
|
| 19 | - 'aggregator2/get.php', |
|
| 20 | - ['id' => $encId, 'mimetype' => 'text/plain'] |
|
| 21 | - ), |
|
| 22 | - 'xml' => SimpleSAML\Module::getModuleURL( |
|
| 23 | - 'aggregator2/get.php', |
|
| 24 | - ['id' => $encId, 'mimetype' => 'application/xml'] |
|
| 25 | - ), |
|
| 26 | - ]; |
|
| 13 | + $sources[$name] = [ |
|
| 14 | + 'name' => SimpleSAML\Module::getModuleURL( |
|
| 15 | + 'aggregator2/get.php', |
|
| 16 | + ['id' => $encId] |
|
| 17 | + ), |
|
| 18 | + 'text' => SimpleSAML\Module::getModuleURL( |
|
| 19 | + 'aggregator2/get.php', |
|
| 20 | + ['id' => $encId, 'mimetype' => 'text/plain'] |
|
| 21 | + ), |
|
| 22 | + 'xml' => SimpleSAML\Module::getModuleURL( |
|
| 23 | + 'aggregator2/get.php', |
|
| 24 | + ['id' => $encId, 'mimetype' => 'application/xml'] |
|
| 25 | + ), |
|
| 26 | + ]; |
|
| 27 | 27 | } |
| 28 | 28 | |
| 29 | 29 | $t = new \SimpleSAML\XHTML\Template($ssp_cf, 'aggregator2:list.php'); |