3
it'snt good because the condition espressed in the example is on the name of the block. In my case the condition is on a specific url adress!
I build these code:
<{php}>
$urlici= "http://".$_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"];
echo "<div style='background-image: url(.$xoops_imageurl.images/corpo_testata.jpg); height: 80px; padding-left: 70px; padding-right: 70px; text-align: right;'><br /><br /><br /><br /> <a href='/'>Home Page</a> / <B>LINKS2</B> </div>";
switch ($urlici) {
case 'http://127.0.0.1/DxoopsTest/modules/wfsection/article.php?articleid=2':
echo('<div style=background-image: url(<{$xoops_imageurl}>images/corpo_testata.jpg); background-repeat: no-repeat; height: 80px; padding-left: 70px; padding-right: 70px; text-align: right;><br /><br /><br /><br />Home Page / LINKS </div>');
break;
case 'http://127.0.0.1/DxoopsTest/modules/wfsection/article.php?articleid=1':
echo('<div style="background-image: url(
http://127.0.0.1/DxoopsTest/themes/PitPrincipale/images/corpo_testata.jpg); height: 80px; padding-left: 70px; padding-right: 70px; text-align: right;"><br /><br /><br /><br /> <a href="/">Home Page</a> / <B>LINKS2</B> </div>');
break;
default:echo('default');
}
// if ($urlici == 'http://127.0.0.1/DxoopsTest/modules/wfsection/article.php?articleid=1' ){echo('ok');}
<{/php}>
but there are some sintax error because the smarty tag "(<{$xoops_imageurl}>" return nothing!
ca you help me?