diff --git a/github-embed.php b/github-embed.php index a53be29..36344e7 100644 --- a/github-embed.php +++ b/github-embed.php @@ -259,21 +259,21 @@ class github_embed { // @TODO This should all be templated $response->html = '
'.esc_html($repo->description)."
";
-
+
$response->html .= 'Milestone: ';
$response->html .= ''.esc_html($summary->title)."
";
-
+
$response->html .= 'Issues: ';
$response->html .= '';
- $response->html .= esc_html($summary->open_issues)." open, ";
- $response->html .= esc_html($summary->closed_issues)." closed.
";
-
+ $response->html .= esc_html ( number_format_i18n ( $summary->open_issues ) )." open, ";
+ $response->html .= esc_html ( number_format_i18n ( $summary->closed_issues ) )." closed.
";
+
if ( ! empty ( $summary->due_on ) ) {
$response->html .= 'Due: ';
$due_date = date_format ( date_create ( $summary->due_on ), 'jS F Y' );
$response->html .= ''.esc_html($due_date).'
';
}
-
+
$response->html .= '
'.nl2br(esc_html($summary->description))."
'.esc_html($repo->description)."
";
$response->html .= ''.esc_html($repo->html_url)."
";
- $response->html .= esc_html($repo->forks_count)." forks.
";
- $response->html .= esc_html($repo->open_issues_count)." open issues.
";
+ $response->html .= esc_html ( number_format_i18n ( $repo->forks_count ) )." forks.
";
+ $response->html .= esc_html ( number_format_i18n ( $repo->open_issues_count ) )." open issues.
";
if ( count ( $commits ) ) {
@@ -360,8 +360,8 @@ class github_embed {
// @TODO This should all be templated
$response->html = '
'.esc_html($owner)."
";
- $response->html .= esc_html($owner_info->public_repos).' repositories, ';
- $response->html .= esc_html($owner_info->followers).' followers.