我有一个标题,基本上是这样说的:
" 论坛
支持的好地方。"
我需要它显示在我网站的某些页面上,这些页面与论坛相关。
但是在其他页面上,我可能想要一个标题,例如:
" 捐赠
帮助我们保持在线。"
网站论坛部分的地址与这些类似。
http://localhost/index.php?p=/discussions
http://localhost/index.php?p=/activity
http://localhost/index.php?p=/discussion/6/oh-dear#Item_1
捐赠的可能是这样的:
http://localhost/index.php?p=/plugin/page/donate
所以我需要一些方法来编写一个脚本
if url has (discussions, activity, discussion)
then use this header
"<b>Forum<b> <br> a great place for support
if else url has (donate)
then use this header
"<b>Donate<b> <br> help keep us online
else
use this header
"<b>Website<b> <br> this is our website