![]() |
Can I use PHP in Style??
I make this code
<?php if ((date('D', strtotime('+2 hours')) == 'Sat') or (date('D', strtotime('+2 hours')) == 'Sun')) { ?> $module_style <?php } else { header ("Location: another.php"); }; ?> I try to do a conditional when if is Saturday or Sunday execute that module, else, redirect to another page I Think that php not work in style U_U |
You can't put PHP into a template. Templates are HTML (and if conditions) only. You must place PHP code in a Plugin with an appropriate hook location.
|
All times are GMT. The time now is 03:43 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|