Include in footer and header?

Discussion in 'Customization & add-ons' started by seddapz, Mar 20, 2009.

  1. seddapz

    seddapz New Member

    Joined:
    Mar 14, 2009
    Messages:
    4
    Is it possible to include the header and footer in the header.html and footer.html with PHP?
    So that I don't have to change all files when I edit something.
  2. skippybosco

    skippybosco CGI-Central Partner Staff Member

    Joined:
    Aug 22, 2006
    Messages:
    2,526
    seddapz,

    That is what the templates are for.

    You can edit \amember\templates\header.html and \amember\templates\footer.html. They are included at the top of every aMember page.
  3. seddapz

    seddapz New Member

    Joined:
    Mar 14, 2009
    Messages:
    4
    Oh thanks! I didn't thought about it like that yet.
    But is it also possible to display a different header and footer to wich subscription a member has?
  4. skippybosco

    skippybosco CGI-Central Partner Staff Member

    Joined:
    Aug 22, 2006
    Messages:
    2,526
    You can add logic to the code to accomplish that:

    if product = # then display XYZ
  5. seddapz

    seddapz New Member

    Joined:
    Mar 14, 2009
    Messages:
    4
    Well I gues I need to replace the '#' with number of the product and what do I replace with XYZ?
    And what kind of code is it? Smarty, PHP?
  6. codeispoetry

    codeispoetry aMember Pro Customer

    Joined:
    Jan 12, 2009
    Messages:
    336
    It's smarty :)

    Lee

Share This Page