8
This would be a great option if it was only limited to my site. I'm making a module that other users can use, but I don't want to tell them to modify core XOOPS just to get my module to work. Is there a way to format my code so that I can format it myself? Here is the code I have...
if ($movies !== "") {
if ($movies_target == "No") {
$moviesURL = "<a href='$movies'>"._XD_MOVIES."</a>"; $xoopsTpl->assign('movies',$moviesURL);
} else {
$moviesURL = "<a href='$movies' target='_blank'>"._XD_MOVIES."</a>";
$xoopsTpl->assign('movies',$moviesURL);
}
} else {
$xoopsTpl->assign('movies',"");
}
In this code I'm giving the user the option to set the _blank target if they wish, else keep it on the same page. Is there something I can do to tell XOOPS not to format what I created? Thanks for your help.