@@ -188,8 +188,8 @@ protected function renderShy(Shy $component, RendererInterface $default_renderer
188188 $ value = htmlentities ($ value );
189189 }
190190 $ tpl ->setCurrentBlock ("property_row " );
191- $ tpl ->setVariable ("PROP_NAME_A " , $ name );
192- $ tpl ->setVariable ("PROP_VAL_A " , $ value );
191+ $ tpl ->setVariable ("PROP_NAME " , $ name );
192+ $ tpl ->setVariable ("PROP_VAL " , $ value );
193193 $ tpl ->parseCurrentBlock ();
194194 }
195195 $ tpl ->setCurrentBlock ("properties " );
@@ -338,19 +338,15 @@ protected function renderProperties(Item $component, RendererInterface $default_
338338 //should introduce here htmlentities
339339 $ value = $ value ;
340340 }
341- $ cnt ++;
342- if ($ cnt % 2 == 1 ) {
341+ $ tpl ->setCurrentBlock ("property_cell " );
342+ $ tpl ->setVariable ("PROP_NAME " , $ name );
343+ $ tpl ->setVariable ("PROP_VAL " , $ value );
344+ $ tpl ->parseCurrentBlock ();
345+ if ($ cnt % 2 === 1 || array_key_last ($ props ) === $ name ) {
343346 $ tpl ->setCurrentBlock ("property_row " );
344- $ tpl ->setVariable ("PROP_NAME_A " , $ name );
345- $ tpl ->setVariable ("PROP_VAL_A " , $ value );
346- } else {
347- $ tpl ->setVariable ("PROP_NAME_B " , $ name );
348- $ tpl ->setVariable ("PROP_VAL_B " , $ value );
349347 $ tpl ->parseCurrentBlock ();
350348 }
351- }
352- if ($ cnt % 2 == 1 ) {
353- $ tpl ->parseCurrentBlock ();
349+ $ cnt ++;
354350 }
355351 $ tpl ->setCurrentBlock ("properties " );
356352 $ tpl ->parseCurrentBlock ();
0 commit comments