Skip to content

Commit

Permalink
Merge pull request #2810 from compucorp/SHOR-22-add-contact-image-to-…
Browse files Browse the repository at this point in the history
…summary-page

SHOR-22: Remove extra PHP code for appending contact image - covered under shoreditch
  • Loading branch information
AkA84 authored Aug 2, 2018
2 parents e6b3ae0 + fc7f3b0 commit 0c7c88d
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions hrui/hrui.php
Original file line number Diff line number Diff line change
Expand Up @@ -753,10 +753,6 @@ function _hrui_contactSummaryDOMScript($data) {
$script .= "CRM.$(function($) {";
$script .= "$('#contactname-block.crm-summary-block').wrap('<div class=\"crm-summary-block-wrap\" />');";

if (!empty($data['contact']['image_URL'])) {
$script .= "$('.crm-summary-contactname-block').prepend('<img class=\"crm-summary-contactphoto\" src=" . $data['contact']['image_URL'] . " />');";
}

if (empty($data['current_contract'])) {
$script .= "$('.crm-summary-contactname-block').addClass('crm-summary-contactname-block-without-contract');";
}
Expand Down Expand Up @@ -804,7 +800,7 @@ function _hrui_updateContactSummaryUI() {
try {
$contactDetails = civicrm_api3('Contact', 'getsingle', array(
'sequential' => 1,
'return' => array("phone", "email", "image_URL"),
'return' => array("phone", "email"),
'id' => $contact_id,
));

Expand Down

0 comments on commit 0c7c88d

Please sign in to comment.