【发布时间】:2014-04-29 20:15:23
【问题描述】:
我正在尝试传递 id 的条件?如何达到以下条件
if ( $vm->check( "pagetype = cart" ) )
{
echo $ showRightcolumn? 'contentarea2' : 'newcontentarea';
}
else
echo $showRightColumn ? 'contentarea2' : 'contentarea';
在此声明中
<div id="<?php echo $showRightColumn ? 'contentarea2' : 'contentarea'; ?>">
【问题讨论】:
-
你试过简写 if 语句吗? Check it here
标签: php html css wordpress joomla2.5