diff options
Diffstat (limited to 'modules_v3/gedcom_block/module.php')
| -rw-r--r-- | modules_v3/gedcom_block/module.php | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/modules_v3/gedcom_block/module.php b/modules_v3/gedcom_block/module.php index 77f2fe9b31..d498877f98 100644 --- a/modules_v3/gedcom_block/module.php +++ b/modules_v3/gedcom_block/module.php @@ -37,18 +37,18 @@ class gedcom_block_WT_Module extends WT_Module implements WT_Module_Block { } /** {@inheritdoc} */ - public function getBlock($block_id, $template=true, $cfg=null) { + public function getBlock($block_id, $template = true, $cfg = null) { global $controller; - $indi_xref=$controller->getSignificantIndividual()->getXref(); - $id=$this->getName().$block_id; - $class=$this->getName().'_block'; - $title='<span dir="auto">'.WT_TREE_TITLE.'</span>'; + $indi_xref = $controller->getSignificantIndividual()->getXref(); + $id = $this->getName() . $block_id; + $class = $this->getName() . '_block'; + $title = '<span dir="auto">' . WT_TREE_TITLE . '</span>'; $content = '<table><tr>'; - $content .= '<td><a href="pedigree.php?rootid='.$indi_xref.'&ged='.WT_GEDURL.'"><i class="icon-pedigree"></i><br>'.WT_I18N::translate('Default chart').'</a></td>'; - $content .= '<td><a href="individual.php?pid='.$indi_xref.'&ged='.WT_GEDURL.'"><i class="icon-indis"></i><br>'.WT_I18N::translate('Default individual').'</a></td>'; + $content .= '<td><a href="pedigree.php?rootid=' . $indi_xref . '&ged=' . WT_GEDURL . '"><i class="icon-pedigree"></i><br>' . WT_I18N::translate('Default chart') . '</a></td>'; + $content .= '<td><a href="individual.php?pid=' . $indi_xref . '&ged=' . WT_GEDURL . '"><i class="icon-indis"></i><br>' . WT_I18N::translate('Default individual') . '</a></td>'; if (WT_Site::getPreference('USE_REGISTRATION_MODULE') && !Auth::check()) { - $content .= '<td><a href="'.WT_LOGIN_URL.'?action=register"><i class="icon-user_add"></i><br>'.WT_I18N::translate('Request new user account').'</a></td>'; + $content .= '<td><a href="' . WT_LOGIN_URL . '?action=register"><i class="icon-user_add"></i><br>' . WT_I18N::translate('Request new user account') . '</a></td>'; } $content .= "</tr>"; $content .= "</table>"; |
