{set $rows = json_decode($_modx->resource.section, true)} {set $pt = "g-pt-120"} {foreach $rows as $row} {switch $row.type} {case 'section-text-image'}

{$row.header}

{$row.content}
{if $row.img}{$row.header|strip_tags}{/if}
{case 'section-text'}

{$row.header}

{$row.content}
{/switch} {set $pt = "g-pt-40"} {/foreach} {ignore} {/ignore}
{ignore} {/ignore}