diff --git a/src/templates/layout.phtml b/src/templates/layout.phtml index 2a2d8d9..5ac846d 100644 --- a/src/templates/layout.phtml +++ b/src/templates/layout.phtml @@ -13,12 +13,12 @@ - + __('Friendica Directory')?> - + __('Search terms')?> - + __('Search terms')?> - __('Directory')?> + __('Directory')?> - __('Public servers')?> + __('Public servers')?> @@ -66,7 +66,7 @@ - + e(Friendica\Directory\Utils\L10n::localeToLanguageString($lang)) ?> @@ -94,11 +94,11 @@ __('Source Code on GitHub')?> - __('Stats')?> + __('Stats')?> - + diff --git a/src/templates/search.phtml b/src/templates/search.phtml index aa5bd00..970fcec 100644 --- a/src/templates/search.phtml +++ b/src/templates/search.phtml @@ -1,5 +1,5 @@ - + __('Search terms')?> diff --git a/src/templates/statistics.phtml b/src/templates/statistics.phtml index 2fa788d..bf29ff5 100644 --- a/src/templates/statistics.phtml +++ b/src/templates/statistics.phtml @@ -8,9 +8,10 @@ use \Friendica\Directory\Utils\L10n; L10n::formatNumber($stats['profile']['total']), L10n::formatNumber($stats['profile']['ratio'], L10n::PERCENT) )?> -__('Out of those, there currently are %s available profiles (%s). Check them out!', +__('Out of those, there currently are %s available profiles (%s). Check them out!', L10n::formatNumber($stats['profile']['available']['total']), - L10n::formatNumber($stats['profile']['available']['ratio'], L10n::PERCENT) + L10n::formatNumber($stats['profile']['available']['ratio'], L10n::PERCENT), + $this->escapeHtmlAttr($this->u('')) )?> __('Languages') ?> __('Out of %s profiles reporting their language there are:', L10n::formatNumber($stats['profile']['language']['total']))?> @@ -35,9 +36,10 @@ use \Friendica\Directory\Utils\L10n; L10n::formatNumber($stats['server']['available']['total']), L10n::formatNumber($stats['server']['available']['ratio'], L10n::PERCENT) )?> - __('%s public servers (%s) currently open for registration. Check them out!', + __('%s public servers (%s) currently open for registration. Check them out!', L10n::formatNumber($stats['server']['open']['total']), - L10n::formatNumber($stats['server']['open']['ratio'], L10n::PERCENT) + L10n::formatNumber($stats['server']['open']['ratio'], L10n::PERCENT), + $this->escapeHtmlAttr($this->r('servers')) )?> diff --git a/src/templates/sub/profile.phtml b/src/templates/sub/profile.phtml index 2dcbc1e..5a651b3 100644 --- a/src/templates/sub/profile.phtml +++ b/src/templates/sub/profile.phtml @@ -1,19 +1,19 @@ escapeHtml($profile['locality']) . ' + $parts[] = $this->escapeHtml($profile['locality']) . ' '; } if (!empty($profile['region']) && strtolower($profile['locality']) != strtolower($profile['region'])) { - $parts[] = $this->escapeHtml($profile['region']) . ' + $parts[] = $this->escapeHtml($profile['region']) . ' '; } if (!empty($profile['country'])) { - $parts[] = $this->escapeHtml($profile['country']) . ' + $parts[] = $this->escapeHtml($profile['country']) . ' '; } @@ -21,20 +21,20 @@ if (!empty($profile['country'])) { - + - + p__('verb', 'Follow')?> escapeHtml($profile['name']) ?> - + escapeHtml($profile['addr']) ?> @@ -46,7 +46,7 @@ if (!empty($profile['country'])) { e(Friendica\Directory\Utils\L10n::localeToLanguageString($profile['language'])) ?> - + @@ -65,7 +65,7 @@ if (!empty($profile['country'])) { foreach ($tags as $tag):?> escapeHtml($tag) ?> - + diff --git a/src/templates/sub/server.phtml b/src/templates/sub/server.phtml index e3710ab..b4c252c 100644 --- a/src/templates/sub/server.phtml +++ b/src/templates/sub/server.phtml @@ -34,7 +34,7 @@ $base_url_display = substr($base_url, strpos($base_url, '/') + 2); HTTP - e($base_url_display); ?> + e($base_url_display); ?> @@ -51,7 +51,7 @@ $base_url_display = substr($base_url, strpos($base_url, '/') + 2); - + __('Admin')?>: e($server['admin_name']); ?> @@ -61,7 +61,7 @@ $base_url_display = substr($base_url, strpos($base_url, '/') + 2); <__('No description provided')?>> - + __('Visit Server')?> diff --git a/src/templates/widget/accounttypetabs.phtml b/src/templates/widget/accounttypetabs.phtml index 5e15a6a..4926683 100644 --- a/src/templates/widget/accounttypetabs.phtml +++ b/src/templates/widget/accounttypetabs.phtml @@ -2,7 +2,7 @@ e($tab['title']) ?> + href="escapeHtmlAttr($this->u($tab['link'])) ?>">e($tab['title']) ?> diff --git a/src/templates/widget/popularcountries.phtml b/src/templates/widget/popularcountries.phtml index 6086cc6..bb78905 100644 --- a/src/templates/widget/popularcountries.phtml +++ b/src/templates/widget/popularcountries.phtml @@ -3,7 +3,7 @@ - + e($country['country']) ?> diff --git a/src/templates/widget/popularlanguages.phtml b/src/templates/widget/popularlanguages.phtml index 15fa128..a51e153 100644 --- a/src/templates/widget/popularlanguages.phtml +++ b/src/templates/widget/popularlanguages.phtml @@ -3,7 +3,7 @@ - + e(Friendica\Directory\Utils\L10n::localeToLanguageString($language['language'])) ?> diff --git a/src/templates/widget/populartags.phtml b/src/templates/widget/populartags.phtml index 37dcf44..a3601ad 100644 --- a/src/templates/widget/populartags.phtml +++ b/src/templates/widget/populartags.phtml @@ -3,7 +3,7 @@ - + e($tag['term']) ?>
__('Out of those, there currently are %s available profiles (%s). Check them out!', +
__('Out of those, there currently are %s available profiles (%s). Check them out!', L10n::formatNumber($stats['profile']['available']['total']), - L10n::formatNumber($stats['profile']['available']['ratio'], L10n::PERCENT) + L10n::formatNumber($stats['profile']['available']['ratio'], L10n::PERCENT), + $this->escapeHtmlAttr($this->u('')) )?>
__('Out of %s profiles reporting their language there are:', L10n::formatNumber($stats['profile']['language']['total']))?>
- + escapeHtml($profile['addr']) ?>
@@ -51,7 +51,7 @@ $base_url_display = substr($base_url, strpos($base_url, '/') + 2); - + __('Admin')?>: e($server['admin_name']); ?> @@ -61,7 +61,7 @@ $base_url_display = substr($base_url, strpos($base_url, '/') + 2);
<__('No description provided')?>>