+--------------------------------------------------------------------+
| CiviCRM version 5 |
+--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2018 |
+ | Copyright CiviCRM LLC (c) 2004-2019 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
/**
*
* @package CRM
- * @copyright CiviCRM LLC (c) 2004-2018
+ * @copyright CiviCRM LLC (c) 2004-2019
*/
/**
'url' => '#contact-summary',
'title' => ts('Summary'),
'weight' => 0,
+ 'icon' => 'crm-i fa-address-card-o'
],
[
'id' => 'activity',
'title' => ts('Activities'),
'class' => 'livePage',
'weight' => 70,
+ 'icon' => 'crm-i fa-tasks',
],
[
'id' => 'rel',
'title' => ts('Relationships'),
'class' => 'livePage',
'weight' => 80,
+ 'icon' => 'crm-i fa-handshake-o',
],
[
'id' => 'group',
'title' => ts('Groups'),
'class' => 'ajaxForm',
'weight' => 90,
+ 'icon' => 'crm-i fa-users',
],
[
'id' => 'note',
'title' => ts('Notes'),
'class' => 'livePage',
'weight' => 100,
+ 'icon' => 'crm-i fa-sticky-note-o',
],
[
'id' => 'tag',
'title' => ts('Tags'),
'weight' => 110,
+ 'icon' => 'crm-i fa-tags',
],
[
'id' => 'log',
'title' => ts('Change Log'),
'weight' => 120,
+ 'icon' => 'crm-i fa-history',
],
];
}
'weight' => $elem['weight'],
'count' => CRM_Contact_BAO_Contact::getCountComponent($u, $this->_contactId),
'class' => 'livePage',
+ 'icon' => $component->getIcon(),
];
}
}
}
elseif ($accessCiviCRM && !empty($this->_viewOptions[$tab['id']])) {
$allTabs[] = $tab + [
- 'url' => CRM_Utils_System::url(
- "civicrm/contact/view/{$tab['id']}",
- "reset=1&cid={$this->_contactId}"
- ),
+ 'url' => CRM_Utils_System::url("civicrm/contact/view/{$tab['id']}", "reset=1&cid={$this->_contactId}"),
'count' => CRM_Contact_BAO_Contact::getCountComponent($tab['id'], $this->_contactId),
];
$weight = $tab['weight'] + 10;
'count' => CRM_Contact_BAO_Contact::getCountComponent($id, $this->_contactId, $group['table_name']),
'hideCount' => !$group['is_multiple'],
'class' => 'livePage',
+ 'icon' => 'crm-i fa-gear',
];
$weight += 10;
}