public function getShortFooter() { $baseUrl = "<a href=\"" . $this->getBaseUrl() . "\" target=\"_blank\">" . $this->getEntity() . "</a>"; $slogan = $this->getSlogan(); // === GTU $cguUrl = ''; if (OC_APP::isEnabled('gtu')) { $cguUrl = \OCP\Config::getAppvalue('gtu', 'url', ''); } if (empty($cguUrl)) { $cguUrl = \OCP\Config::getSystemvalue('custom_termsofserviceurl', ''); } $cgu = ''; if (!empty($cguUrl)) { $cgu = '<a href="' . $cguUrl . '" target="_blank">CGU</a>'; } // === Help $helpUrl = ''; if (empty($helpUrl)) { $helpUrl = $this->getHelpUrl(); } $help = ''; if (!empty($helpUrl)) { $help = '<a href="' . $helpUrl . '" target="_blank">Aide</a>'; } // === contact $contact = ' – ' . '<a href="http://ods.cnrs.fr/contacts.html" target="_blank">Contacts</a>'; // ========================= $footer = $baseUrl . ' – ' . $slogan . ' – ' . $cgu . ' – ' . $help . $contact; return $footer; }
if (OC_Config::getValue('custom_ods_changelogurl', '') != '') { ?> - <strong><a href="<?php print_unescaped(OC_Config::getValue('custom_ods_changelogurl', '')); ?> "><?php p($l->t('Change log')); ?> </a></strong> <?php } } $cguUrl = ''; // presence of gtu app ? if (OC_APP::isEnabled('gtu')) { $cguUrl = \OCP\Config::getAppvalue('gtu', 'url', ''); } // else if (empty($cguUrl)) { $cguUrl = \OCP\Config::getSystemvalue('custom_termsofserviceurl', ''); } if (!empty($cguUrl)) { ?> <br /> <strong><a href="<?php print_unescaped($cguUrl); ?> "><?php p($l->t('GTU')); ?> </a> version <?php