]> git.p6c8.net - jirafeau/pcanterino.git/blobdiff - lib/template/footer.php
New configuration option "enable_tos"
[jirafeau/pcanterino.git] / lib / template / footer.php
index 8647b2eb7d12d4a472bf11dde4f7c89e619e5337..c2cc175b42c64f6a9447e75455f0b2b26735dd3e 100644 (file)
@@ -1,17 +1,23 @@
-
 <div id="copyright">
     <p>
         <!-- Project links -->
         <?php
           echo t('MADE_WITH') .
-            ' <a href="https://gitlab.com/mojo42/Jirafeau">' . t('JI_PROJECT') . '</a>' .
-            ' (<a href="https://www.gnu.org/licenses/agpl.html"><abbr title="GNU Affero General Public License v3">AGPL-3.0</abbr></a>)';
+            ' <a href="' . JIRAFEAU_WEBSITE . '" target="_blank" rel="noopener noreferrer">' . t('JI_PROJECT') . '</a>' .
+            ' (<a href="https://www.gnu.org/licenses/agpl.html" target="_blank" rel="noopener noreferrer"><abbr title="GNU Affero General Public License v3">AGPL-3.0</abbr></a>)';
         ?>
-        <!-- Installation dependend links -->
+        <!-- Installation dependent links -->
         <?php
         if (false === empty($cfg['installation_done'])) {
-            echo ' <span>|</span> ';
-            echo '<a href="tos.php">' . t('TOS') . '</a>';
+            if(false === empty($cfg['organisation'])) {
+                echo ' <span>|</span> ';
+                echo ' ' . t('DESIGNED')  . ' ' .  $cfg['organisation'];
+            }
+
+            if (isset($cfg['enable_tos']) && $cfg['enable_tos']) {
+                echo ' <span>|</span> ';
+                echo '<a href="tos.php" target="_blank" rel="nooener noreferrer">' . t('TOS') . '</a>';
+            }
         }
         ?>
     </p>

patrick-canterino.de