<?php
$this->data['header'] = $this->t('{aggregator:dict:aggregator_header}');
$this->includeAtTemplateBase('includes/header.php');

echo('<div id="content">');
echo('<h1>'. $this->data['header'] . '</h1>');

if (count($this->data['sources']) === 0) {
	echo('<p>' . $this->t('{aggregator:dict:no_aggregators}') . '</p>');
} else {

	echo('<ul>');

	foreach ($this->data['sources'] as $source) {
		$encId = urlencode($source);
		$encName = htmlspecialchars($source);
		echo('<li>');
		echo('<a href="?id=' . $encId . '">' . $encName . '</a>');
		echo(' <a href="?id=' . $encId . '&amp;mimetype=text/plain">[' . $this->t('{aggregator:dict:text}') . ']</a>');
		echo(' <a href="?id=' . $encId . '&amp;mimetype=application/xml">[xml]</a>');
		echo('</li>');
	}

	echo('</ul>');
}

$this->includeAtTemplateBase('includes/footer.php');
?>
<?php
$this->data['header'] = $this->t('{aggregator:dict:aggregator_header}');
$this->includeAtTemplateBase('includes/header.php');

echo('<h1>'. $this->data['header'] . '</h1>');

if (count($this->data['sources']) === 0) {
	echo('<p>' . $this->t('{aggregator:dict:no_aggregators}') . '</p>');
} else {

	echo('<ul>');

	foreach ($this->data['sources'] as $source) {
		$encId = urlencode($source);
		$encName = htmlspecialchars($source);
		echo('<li>');
		echo('<a href="?id=' . $encId . '">' . $encName . '</a>');
		echo(' <a href="?id=' . $encId . '&amp;mimetype=text/plain">[' . $this->t('{aggregator:dict:text}') . ']</a>');
		echo(' <a href="?id=' . $encId . '&amp;mimetype=application/xml">[xml]</a>');
		echo('</li>');
	}

	echo('</ul>');
}

$this->includeAtTemplateBase('includes/footer.php');
?>
Remove extra <div id="content"> in many templates.
Remove extra <div id="content"> in many templates.

git-svn-id: a243b28a2a52d65555a829a95c8c333076d39ae1@1471 44740490-163a-0410-bde0-09ae8108e29a
