{set $rows = json_decode($_modx->resource.section, true)}
{set $pt = "g-pt-120"}
{foreach $rows as $row index=$index} {if $row.isrow == "1"} {set $row_class = "row"} {else} {set $row_class = ''} {/if} {if $index == "0"} {set $show_class = " show active"} {else} {set $show_class = ''} {/if} {switch $row.type} {case 'section-text-image'}

{$row.header}

{$row.content|replace:'src="':'src="/'}
{if $row.img}{$row.header|strip_tags}{/if}
{case 'section-text'}

{$row.header}

{$row.content|replace:'src="':'src="/'}
{/switch} {set $pt = "g-pt-40"} {/foreach}
{ignore} {/ignore}
{ignore} {/ignore} {ignore} {/ignore}