|
@@ 1130-1136 (lines=7) @@
|
| 1127 |
|
* |
| 1128 |
|
* @return Menu|null |
| 1129 |
|
*/ |
| 1130 |
|
protected function menuChartFanChart(Individual $individual) { |
| 1131 |
|
if (function_exists('imagettftext')) { |
| 1132 |
|
return new Menu(I18N::translate('Fan chart'), 'fanchart.php?rootid=' . $individual->getXref() . '&' . $this->tree_url, 'menu-chart-fanchart', array('rel' => 'nofollow')); |
| 1133 |
|
} else { |
| 1134 |
|
return null; |
| 1135 |
|
} |
| 1136 |
|
} |
| 1137 |
|
|
| 1138 |
|
/** |
| 1139 |
|
* Generate a menu item for the interactive tree (tree module). |
|
@@ 1145-1151 (lines=7) @@
|
| 1142 |
|
* |
| 1143 |
|
* @return Menu|null |
| 1144 |
|
*/ |
| 1145 |
|
protected function menuChartInteractiveTree(Individual $individual) { |
| 1146 |
|
if (Module::getModuleByName('tree')) { |
| 1147 |
|
return new Menu(I18N::translate('Interactive tree'), 'module.php?mod=tree&mod_action=treeview&' . $this->tree_url . '&rootid=' . $individual->getXref(), 'menu-chart-tree', array('rel' => 'nofollow')); |
| 1148 |
|
} else { |
| 1149 |
|
return null; |
| 1150 |
|
} |
| 1151 |
|
} |
| 1152 |
|
|
| 1153 |
|
/** |
| 1154 |
|
* Generate a menu item for the hourglass chart (hourglass.php). |
|
@@ 1193-1199 (lines=7) @@
|
| 1190 |
|
* |
| 1191 |
|
* @return Menu|null |
| 1192 |
|
*/ |
| 1193 |
|
protected function menuChartPedigreeMap(Individual $individual) { |
| 1194 |
|
if (Module::getModuleByName('googlemap')) { |
| 1195 |
|
return new Menu(I18N::translate('Pedigree map'), 'module.php?' . $this->tree_url . '&mod=googlemap&mod_action=pedigree_map&rootid=' . $individual->getXref(), 'menu-chart-pedigree_map', array('rel' => 'nofollow')); |
| 1196 |
|
} else { |
| 1197 |
|
return null; |
| 1198 |
|
} |
| 1199 |
|
} |
| 1200 |
|
|
| 1201 |
|
/** |
| 1202 |
|
* Generate a menu item for the relationship chart (relationship.php). |