gunn4r
07-27-2009, 06:18 PM
I'd like to use conditional statements to include the calendar on my webpage, however, I am pretty noob at php, if anyone can help me out that'd be sweet.
I would like the regular calendar to appear in the side bar on just the home page, and would like to only include the css code and mouse over code for that page as well (and not have it on other pages), and so would like to use an if statement to make that happen... however I dont know what function to use to run the script.
I've tried require, echo, and include to no avail. Can anyone help? I just need to know what to put where the ????'s are: ... or am is what I have there totally not right? hah.
<?php if (is_home()) ????? '<?php $OL=1;require("cal/calendar.php"); ?>' ?>
I would like the regular calendar to appear in the side bar on just the home page, and would like to only include the css code and mouse over code for that page as well (and not have it on other pages), and so would like to use an if statement to make that happen... however I dont know what function to use to run the script.
I've tried require, echo, and include to no avail. Can anyone help? I just need to know what to put where the ????'s are: ... or am is what I have there totally not right? hah.
<?php if (is_home()) ????? '<?php $OL=1;require("cal/calendar.php"); ?>' ?>