How do I make an if statement in phpld tpl

Discussion in 'HTML & Website Design' started by jminscoe, Jun 27, 2007.

  1. #1
    I want to change how my detail page looks in phpld if a feature I want to display it one way, if regular another way so I made a dheader.tpl dfooter.tpl and dtop_bar.tpl my question now is there a way that I can have an if statement for instance

    if feature use dheader.tpl dfooter.tpl and dtop_bar.tpl

    else use header.tpl footer.tpl and top_bar.tpl
     
    jminscoe, Jun 27, 2007 IP
  2. uglyboy

    uglyboy Peon

    Messages:
    1,963
    Likes Received:
    134
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Hi jminscoe

    <?php
    if (condition)
    code to be executed if condition is true;
    else
    code to be executed if condition is false;
    ?>

    Hope that helps
     
    uglyboy, Jun 28, 2007 IP
  3. jminscoe

    jminscoe Peon

    Messages:
    1,223
    Likes Received:
    119
    Best Answers:
    0
    Trophy Points:
    0
    #3
    another words
    <?php
    if feature use dheader.tpl dfooter.tpl and dtop_bar.tpl true;
    else
    if regular use header.tpl footer.tpl and top_bar.tpl false;
    ?>
    Code (markup):
     
    jminscoe, Jun 28, 2007 IP