From f504641a2fc851db44828cda2269b890f2497710 Mon Sep 17 00:00:00 2001 From: Lee Willis Date: Sat, 9 Feb 2013 20:07:35 +0000 Subject: [PATCH] Additional CSS classes --- github-embed.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 );