2017-05-01, 11:49 PM
I have the plugin template conditionals
and i have the piece to add a link on conditions for the header template
What i would like to do is if the url starts with
to do this instead of != /index.php
so something like
but im not sure what the proper php would be to use in this plugin?
and i have the piece to add a link on conditions for the header template
<if $_SERVER['REQUEST_URI'] != "/index.php" then>
<a href="#bottom">Bottom Page</a><br>
</if>
What i would like to do is if the url starts with
Thread
to do this instead of != /index.php
so something like
<if startswith($_SERVER['REQUEST_URI'], "Thread") then>
<a href="#bottom">Bottom Page</a><br>
</if>
but im not sure what the proper php would be to use in this plugin?