diff --git a/github-embed.php b/github-embed.php index 1498781..6287b86 100644 --- a/github-embed.php +++ b/github-embed.php @@ -195,7 +195,7 @@ class github_embed { $response->title = $repo->description; // @TODO This should all be templated - $response->html = '
'; + $response->html = '
'; $response->html .= '

'.esc_html($repo->description)."
"; $response->html .= ''.esc_html($repo->html_url)."
"; $response->html .= esc_html($repo->forks_count)." forks.
"; @@ -263,9 +263,11 @@ class github_embed { $response->title = $owner_info->name; // @TODO This should all be templated - $response->html = '

'.esc_html($owner)."
"; + $response->html = '

'; + $response->html .= '

'.esc_html($owner)."
"; $response->html .= esc_html($owner_info->public_repos).' repositories, '; $response->html .= esc_html($owner_info->followers).' followers.

'; + $response->html .= '
'; header ( 'Content-Type: application/json' ); echo json_encode ( $response );