![]() |
Multi THIS_SCRIPT usage
I currently using <if condition="THIS_SCRIPT == 'index'"></if> to show some info and was wondering how I can add more to it instead having the following:
PHP Code:
|
You may do it that way. Or, you may want to use a switch in a plugin.
|
If you are displaying the same data for all of them, you can use the in_array() method.
|
try this
HTML Code:
<if condition="in_array(THIS_SCRIPT, array('index', 'blog','groups','faq'))"></if> |
Thank you for the fast replies :D
Got it working! Thanks again :cool: |
All times are GMT. The time now is 10:05 PM. |
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:
|