<li [+phx:if=`[+wf.docid+]`:is=`xxx`:then=`class="logo"`+]><a href="/"><img src="logo.png"></li>
<li [+phx:if=`[+wf.id+]`:is=`yyy`:then=`class="logo"`+]><a href="/"><img src="logo.png"></li>
//....
$newResource->set('publishedon',$publishedon);
if($newResource->save()){
$newResource->setTVValue('sob_pol', $sob_pol);
//...
}