| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111 |
- <?php
- if(Core::$show_footer_content) {
- ?>
- <footer class="my-3 d-print-none">
- <div class="container">
- <hr />
- <div class="row">
- <div class="col-md mb-3">
- <h5><?=htmlspecialchars(_("Navigation"))?></h5>
- <ul class="nav flex-column">
- <li><a href="/home"><?=htmlspecialchars(_("Home"))?></a></li>
- <?php
- if(!Core::$user) {
- ?>
- <li><a href="/services"><?=htmlspecialchars(_("Services"))?></a></li>
- <li><a href="/become-a-tester"><?=htmlspecialchars(_("Become a Tester"))?></a></li>
- <li><a href="/contact"><?=htmlspecialchars(_("Contact"))?></a></li>
- <li><a href="/jobs"><?=htmlspecialchars(_("Jobs"))?></a></li>
- <?php
- }
- else {
- ?>
- <li><a href="/contact"><?=htmlspecialchars(_("Contact"))?></a></li>
- <li><a href="/account"><?=htmlspecialchars(_("Account"))?></a></li>
- <?php
- }
- ?>
- </ul>
- </div>
- <div class="col-md mb-3">
- <h5><?=htmlspecialchars(_("Follow Us"))?></h5>
- <ul class="nav flex-column">
- <li><i class="fab fa-fw fa-facebook"></i> <a href="https://www.facebook.com/checkpolicy" target="_blank">Facebook</a></li>
- <?php
- if(WHATSAPP) {
- ?>
- <li><i class="fab fa-fw fa-whatsapp"></i> <a href="https://api.whatsapp.com/send?phone=<?=WHATSAPP?>" target="_blank">WhatsApp</a></li>
- <?php
- }
- ?>
- </ul>
- </div>
- <div class="col-md mb-3">
- <h5><?=htmlspecialchars(_("Our Location"))?></h5>
- <ul class="nav flex-column">
- <li><i class="fal fa-fw fa-map-marker"></i> <?=htmlspecialchars(str_replace("\n", ", ", ADDRESS))?></li>
- <li><i class="fal fa-fw fa-phone"></i> <a href="tel:<?=urlencode(PHONE)?>"><?=htmlspecialchars(PHONE)?></a></li>
- <li><i class="fal fa-fw fa-envelope"></i> <a href="mailto:admin@<?=DOMAIN?>">admin@<?=DOMAIN?></a></li>
- </ul>
- </div>
- </div>
- <div class="text-center">
- © <?=date("Y")?> <?=APP_NAME?><br />
- <small>
- <a class="mx-1" href="/terms-and-conditions"><?=htmlspecialchars(_("Terms & Conditions"))?></a>
- <a class="mx-1" href="/privacy-policy"><?=htmlspecialchars(_("Privacy Policy"))?></a>
- </small>
- </div>
- </div>
- </footer>
- <?php
- }
- ?>
- <?php
- $scripts = Core::getScripts();
- foreach($scripts as $script) {
- HTML::script($script);
- }
- ?>
- <script src="https://maps.googleapis.com/maps/api/js?key=<?=GOOGLE_MAPS_API_KEY?>&libraries=places&callback=initialiseMaps" async defer></script>
- <?php
- if(GOOGLE_RECAPTCHA_SITE_KEY) {
- $url = "https://www.google.com/recaptcha/api.js";
- if(GOOGLE_RECAPTCHA_VERSION == 3) {
- $url .= "?render=" . GOOGLE_RECAPTCHA_SITE_KEY;
- }
- ?>
- <script type="text/javascript" src="<?=htmlspecialchars($url)?>"></script>
- <?php
- if(GOOGLE_RECAPTCHA_VERSION == 3) {
- ?>
- <script>
- grecaptcha.ready(function() {
- grecaptcha.execute('<?=GOOGLE_RECAPTCHA_SITE_KEY?>', {action: '<?=htmlspecialchars(Core::$controller)?>'})
- .then(function(token) {
- $(function() {
- $("form[data-recaptcha-form]").each(function() {
- $(this).append('<input type="hidden" name="g-recaptcha-response" value="' + token + '" />');
- });
- });
- });
- });
- </script>
- <?php
- }
- }
- ?>
- </body>
- </html>
|