Browse Source

Merge pull request #16 from ierhyna/master

Added stars and links to forks, stars, issues
widget
Lee Willis 10 years ago
parent
commit
bb43222943
  1. 5
      github-embed.php

5
github-embed.php

@ -337,8 +337,9 @@ class github_embed {
$response->html = '<div class="github-embed github-embed-repository">'; $response->html = '<div class="github-embed github-embed-repository">';
$response->html .= '<p><a href="'.esc_attr($repo->html_url).'" target="_blank"><strong>'.esc_html($repo->description)."</strong></a><br/>"; $response->html .= '<p><a href="'.esc_attr($repo->html_url).'" target="_blank"><strong>'.esc_html($repo->description)."</strong></a><br/>";
$response->html .= '<a href="'.esc_attr($repo->html_url).'" target="_blank">'.esc_html($repo->html_url)."</a><br/>"; $response->html .= '<a href="'.esc_attr($repo->html_url).'" target="_blank">'.esc_html($repo->html_url)."</a><br/>";
$response->html .= esc_html ( number_format_i18n ( $repo->forks_count ) )." forks.<br/>"; $response->html .= '<a href="'.esc_attr($repo->html_url . '/network') . '" target="_blank">'.esc_html ( number_format_i18n ( $repo->forks_count ) ) . "</a> forks.<br/>";
$response->html .= esc_html ( number_format_i18n ( $repo->open_issues_count ) )." open issues.<br/>"; $response->html .= '<a href="'.esc_attr($repo->html_url . '/stargazers') . '" target="_blank">'.esc_html ( number_format_i18n ( $repo->stargazers_count ) ) . "</a> stars.<br/>";
$response->html .= '<a href="'.esc_attr($repo->html_url . '/issues') . '" target="_blank">'.esc_html ( number_format_i18n ( $repo->open_issues_count ) ) . "</a> open issues.<br/>";
if ( count ( $commits ) ) { if ( count ( $commits ) ) {

Loading…
Cancel
Save