make it so that if a search footer element is translated as blank, then it does not appear on landing, a=chris

Chris Pollett [2015-12-16 01:Dec:th]
make it so that if a search footer element is translated as blank, then it does not appear on landing, a=chris
Filename
src/views/elements/FooterElement.php
diff --git a/src/views/elements/FooterElement.php b/src/views/elements/FooterElement.php
index ca4ed3460..46767f302 100755
--- a/src/views/elements/FooterElement.php
+++ b/src/views/elements/FooterElement.php
@@ -55,21 +55,48 @@ class FooterElement extends Element
             B\moreUrl();
             ?>
         <div class="center">
-        - <a href="<?=B\directUrl('blog') ?>"><?=
-        tl('footer_element_blog') ?></a> -
-        <a href="<?=B\directUrl('privacy') ?>"><?=
-        tl('footer_element_privacy') ?></a> -
-        <a href="<?=B\directUrl('terms') ?>"><?=
-        tl('footer_element_terms') ?></a> -
-        <a href="<?= $tools ?>"><?=
-        tl('footer_element_tools') ?></a> -
-        <a href="<?=B\directUrl('bot') ?>"><?=
-        tl('footer_element_bot') ?></a> - <?php if (C\MOBILE) {
-            e('<br /> - ');
+        <?php
+        if (tl('footer_element_blog') != "") {
+            ?>
+            - <a href="<?=B\directUrl('blog') ?>"><?=
+            tl('footer_element_blog') ?></a><?php
+        }
+        ?> -
+        <?php
+        if (tl('footer_element_privacy') != "") {
+            ?>
+            <a href="<?=B\directUrl('privacy') ?>"><?=
+            tl('footer_element_privacy') ?></a><?php
+        }
+        ?> -
+        <?php
+        if (tl('footer_element_terms') != "") {
+            ?>
+            <a href="<?=B\directUrl('terms') ?>"><?=
+            tl('footer_element_terms') ?></a><?php
+        }
+        ?> -
+        <?php
+        if (tl('footer_element_tools') != "") {
+            ?>
+            <a href="<?= $tools ?>"><?=
+            tl('footer_element_tools') ?></a><?php
+        }
+        ?> -
+        <?php
+        if (tl('footer_element_bot') != "") {
+            ?>
+            <a href="<?=B\directUrl('bot') ?>"><?=
+            tl('footer_element_bot') ?></a> - <?php if (C\MOBILE) {
+                e('<br /> - ');
+            }
+        }
+        if (tl('footer_element_developed_seek_quarry') != "") {
+            ?>
+            <a href="http://www.seekquarry.com/"><?=
+            tl('footer_element_developed_seek_quarry') ?></a><?php
         }
-        ?>
-        <a href="http://www.seekquarry.com/"><?=
-        tl('footer_element_developed_seek_quarry') ?></a> -
+        ?> -
         </div>
         <div class="center">
         <?= tl('footer_element_copyright_site') ?>
ViewGit