GitHub PullRequestReviewCommentEvent at 2014-02-23 06:42:15
Repository: fbphoto
Actor: andytruong
Payload: {"comment":{"url":"https://api.github.com/repos/andytruong/fbphoto/pulls/comments/9974593","id":9974593,"diff_hunk":"@@ -110,28 +109,62 @@ function theme_fbphoto_photo($vars) {\n  * Theming callback to render albumn.\n  */\n function theme_fbphoto_album($vars) {\n-  $album = &$vars['album'];\n+  $items = array();\n+  $album = & $vars['album'];\n   if (!empty($album)) {\n     foreach ($album['photos'] as $photo) {\n-      $img = array_pop($photo->images);\n-      $attributes['src']    = $img->source;\n-      $attributes['height'] = $img->height;\n-      $attributes['width']  = $img->width;\n-      $attributes['title']  = isset($photo->name) ? $photo->name : '';\n-      $output = '<img '. drupal_attributes($attributes) .' />';\n-      $output = '<a href=\"'. $photo->images[0]->source .'\">'. $output .'</a>';\n-      $items[] = '<span>'. $output .'</span>';\n+      $bg_image = fbphoto_get_best_photo($photo);\n+      $items[] =\n+          l(\"<div style='background-image: url($bg_image);'></div>\",","path":"fbphoto.module","position":61,"original_position":61,"commit_id":"aa348631ec09933d20cc6fbe2de87d305ccf6876","original_commit_id":"aa348631ec09933d20cc6fbe2de87d305ccf6876","user":{"login":"andytruong","id":41143,"avatar_url":"https://gravatar.com/avatar/64399a68c59494ce83e446dd5b7e596d?d=https%3A%2F%2Fidenticons.github.com%2Fb94542e1434723ab81c1fe5ba5ff78e1.png&r=x","gravatar_id":"64399a68c59494ce83e446dd5b7e596d","url":"https://api.github.com/users/andytruong","html_url":"https://github.com/andytruong","followers_url":"https://api.github.com/users/andytruong/followers","following_url":"https://api.github.com/users/andytruong/following{/other_user}","gists_url":"https://api.github.com/users/andytruong/gists{/gist_id}","starred_url":"https://api.github.com/users/andytruong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andytruong/subscriptions","organizations_url":"https://api.github.com/users/andytruong/orgs","repos_url":"https://api.github.com/users/andytruong/repos","events_url":"https://api.github.com/users/andytruong/events{/privacy}","received_events_url":"https://api.github.com/users/andytruong/received_events","type":"User","site_admin":false},"body":"I have added you add contributor, please fell free make changes. Thank you.","created_at":"2014-02-23T06:42:15Z","updated_at":"2014-02-23T06:42:15Z","html_url":"https://github.com/andytruong/fbphoto/pull/5#discussion_r9974593","pull_request_url":"https://api.github.com/repos/andytruong/fbphoto/pulls/5","_links":{"self":{"href":"https://api.github.com/repos/andytruong/fbphoto/pulls/comments/9974593"},"html":{"href":"https://github.com/andytruong/fbphoto/pull/5#discussion_r9974593"},"pull_request":{"href":"https://api.github.com/repos/andytruong/fbphoto/pulls/5"}}}}