Jump to content

Themes: how to disable header.tpl for AJAX requests?


markc

Recommended Posts

Hi, I am developing a theme and would like to disable the output from header.tpl and footer.tpl when I request any pages via AJAX. The tpl pages do not seem to "execute" any PHP so how would I provide live code in the template system to disable certain parts of a page under certain circumstances, like if (isset($_SERVER['HTTP_X_REQUESTED_WITH'])) exit(0); at the top of header.tpl?

Link to comment
Share on other sites

  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated