]> git.p6c8.net - jirafeau_project.git/blobdiff - lib/template/footer.php
[FEATURE] Enable a custom website title
[jirafeau_project.git] / lib / template / footer.php
index a8c080d0ba986101468b5d287c98dd463b839d75..3abc29099d2254fc272d2923ab6ad458008baf59 100644 (file)
@@ -2,9 +2,17 @@
 <div id="copyright">
     <p>
         <br />
 <div id="copyright">
     <p>
         <br />
+        <!-- Project links -->
         <a href="https://www.gnu.org/licenses/agpl.html"><abbr title="Affero General Public License">AGPL</abbr>v3</a> |
         <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> |
-        <a href="<?php echo rtrim($cfg['web_root'], '/') . '/tos.php'; ?>"><?php echo t('Term Of Service') ?></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>
     </p>
 </div>
 </div>

patrick-canterino.de