0

I have this line

<? if(!$_SERVER['HTTP_X_PJAX']){  require_once("footer.php"); } ?>

Is there a way that I can add this class:

no-tablet-portrait no-phone
rink.attendant.6
  • 44,500
  • 61
  • 101
  • 156
cubaton3
  • 31
  • 6

2 Answers2

1

PHP Operates within HTML. Therefore, you can just use <style> or <link> instead, before the <?php

Also, you should be doing it within footer.php

0

Edited the footer.php.

<div class="bg-dark no-tablet-portrait no-phone">
        <div class="container tertiary-text bg-dark fg-white" style="padding: 10px">

        All right reserved. Copyright &copy; 2014 -
        <a class="pjaxer" href="<? echo $GLOBALS["sys"]->get_url(); ?>page/tos" ><? echo lng_menu_tos; ?></a> - 
        <a class="pjaxer" href="<? echo $GLOBALS["sys"]->get_url(); ?>page/privacy" ><? echo lng_menu_privacy; ?></a> - 
        <a class="pjaxer" href="<? echo $GLOBALS["sys"]->get_url(); ?>page/disclaimer" ><? echo lng_menu_disclaimer; ?></a> - 
        <a class="pjaxer" href="<? echo $GLOBALS["sys"]->get_url(); ?>page/contact" ><? echo lng_menu_contact; ?></a>
        </div>

Now it's hidden on all the pages for mobile and tablets, didn't need to edit every single page.

cubaton3
  • 31
  • 6