]> git.p6c8.net - jirafeau/pcanterino.git/blobdiff - lib/template/footer.php
New configuration option "enable_tos"
[jirafeau/pcanterino.git] / lib / template / footer.php
index 64132c70966c4a6e5e2b0f8943422a245608764d..c2cc175b42c64f6a9447e75455f0b2b26735dd3e 100644 (file)
                 echo ' ' . t('DESIGNED')  . ' ' .  $cfg['organisation'];
             }
 
                 echo ' ' . t('DESIGNED')  . ' ' .  $cfg['organisation'];
             }
 
-            echo ' <span>|</span> ';
-            echo '<a href="tos.php" target="_blank" rel="nooener noreferrer">' . t('TOS') . '</a>';
+            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>
         }
         ?>
     </p>

patrick-canterino.de