Skip to content
Snippets Groups Projects
Commit 3819e131 authored by Satish's avatar Satish
Browse files

Fixes #355 - How to customize modules icons?

parent f2b6aa91
No related branches found
No related tags found
2 merge requests!2777.1.0 release integration,!268Fixes #355, #721, #722
......@@ -986,8 +986,19 @@ class Calendar_Module_Model extends Vtiger_Module_Model {
}
public function getModuleIcon($activityType) {
$moduleIcon = '<i class="vicon-'.strtolower($activityType).'" ></i>';
if ($activityType != 'Task') {
$moduleName = $this->getName();
$title = vtranslate($moduleName, $moduleName);
if (!$activityType) {
if ($moduleName == 'Events') {
$activityType = 'calendar';
}
}
$activityType = strtolower($activityType);
$moduleIcon = "<i class='vicon-$activityType' title='$title' ></i>";
if (!in_array($activityType, array('task', 'calendar'))) {
$moduleIcon = parent::getModuleIcon();
}
return $moduleIcon;
......
  • Alan Lord @lord_alan ·
    Contributor

    @satish.dvnk How does this fix the Module Icon issue in #355 (closed)? This commit only seems to affect the Calendar translation of the title tag?

  • Alan Lord @lord_alan ·
    Contributor

    @satish.dvnk Never mind I saw your earlier commit from a few days ago. Will test after Christmas - thanks!

0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment