]> git.p6c8.net - jirafeau_project.git/blobdiff - lib/template/footer.php
[!!][FEATURE] Let admin overwrite the ToS page
[jirafeau_project.git] / lib / template / footer.php
index 7b9e188a5fa3af72adebe38db1ab2a8a19dc612f..3abc29099d2254fc272d2923ab6ad458008baf59 100644 (file)
@@ -2,9 +2,17 @@
 <div id="copyright">
     <p>
         <br />
-        <a href="https://www.gnu.org/licenses/agpl.html">agplv3</a> |
-        <a href="https://gitlab.com/mojo42/Jirafeau"><?php echo t('Jirafeau Project') ?></a> |
-        <a href="<?php echo rtrim($cfg['web_root'], '/') . '/tos.php'; ?>"><?php echo t('Term Of Service') ?></a>
+        <!-- Project links -->
+        <a href="https://www.gnu.org/licenses/agpl.html"><abbr title="Affero General Public License">AGPL</abbr>v3</a> |
+        <a href="https://gitlab.com/mojo42/Jirafeau"><?php echo t('Jirafeau Project') ?></a>
+        <!-- Installation dependend links -->
+        <?php
+        if (false === empty($cfg['web_root']))
+        {
+          echo ' | ';
+          echo '<a href="' . $cfg['web_root'] . '/tos.php">' . t('Term Of Service') . '</a>';
+        }
+        ?>
     </p>
 </div>
 </div>

patrick-canterino.de