From 5769015bb650f17f9e51673495df1de7e09aad19 Mon Sep 17 00:00:00 2001 From: Irina Sokolovskaja Date: Wed, 8 Jul 2015 21:03:13 +0300 Subject: [PATCH 1/3] Added count of stars to embed repo --- github-embed.php | 1 + 1 file changed, 1 insertion(+) diff --git a/github-embed.php b/github-embed.php index 1cbaf08..d0fbc4d 100644 --- a/github-embed.php +++ b/github-embed.php @@ -338,6 +338,7 @@ class github_embed { $response->html .= '

'.esc_html($repo->description)."
"; $response->html .= ''.esc_html($repo->html_url)."
"; $response->html .= esc_html ( number_format_i18n ( $repo->forks_count ) )." forks.
"; + $response->html .= esc_html ( number_format_i18n ( $repo->stargazers_count ) )." stars.
"; $response->html .= esc_html ( number_format_i18n ( $repo->open_issues_count ) )." open issues.
"; if ( count ( $commits ) ) { From 0d5eda0622d0dce94aa16fc1db8d557c45e47c79 Mon Sep 17 00:00:00 2001 From: Irina Sokolovskaja Date: Wed, 8 Jul 2015 22:20:08 +0300 Subject: [PATCH 2/3] Added links to forks, stars, issues --- github-embed.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/github-embed.php b/github-embed.php index d0fbc4d..479f797 100644 --- a/github-embed.php +++ b/github-embed.php @@ -337,9 +337,9 @@ class github_embed { $response->html = '

'; $response->html .= '

'.esc_html($repo->description)."
"; $response->html .= ''.esc_html($repo->html_url)."
"; - $response->html .= esc_html ( number_format_i18n ( $repo->forks_count ) )." forks.
"; - $response->html .= esc_html ( number_format_i18n ( $repo->stargazers_count ) )." stars.
"; - $response->html .= esc_html ( number_format_i18n ( $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->stargazers_count ) )." stars.
"; + $response->html .= ''.esc_html ( number_format_i18n ( $repo->open_issues_count ) )." open issues.
"; if ( count ( $commits ) ) { From 9fd61d2f9a13c7533b9174f52ebae3850317b539 Mon Sep 17 00:00:00 2001 From: Irina Sokolovskaja Date: Thu, 9 Jul 2015 23:01:00 +0300 Subject: [PATCH 3/3] fixing comment on #16 --- github-embed.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/github-embed.php b/github-embed.php index 479f797..d2ba291 100644 --- a/github-embed.php +++ b/github-embed.php @@ -337,9 +337,9 @@ class github_embed { $response->html = '