am making sitemap for my website which is multi language.
my current sitemap code looks like
{foreach from=$data.listings_en item=i}
<url>
<loc>{$i}</loc>
</url>
{/foreach}
it was only for english urls which was ok now am trying to add few other language with it but am not able to it as i do not how to pass three arrays to above foreach loop
three arrays i have
$data.listings_en
$data.listings_cn
$data.listings_ru
values in $data.listings_en
$listings_en[] = 'my link 1';
$data['listings_en'] = $listings_en;
what i want something like that
{foreach from=$data.listings_en item=i} // loop over three arrays all arrays have same size
<url>
<loc>{$i}</loc> // print url of listening_en
<loc>{$i}</loc> // print url of listening_cn
<loc>{$i}</loc> // print url of listening_ru
</url>
{/foreach}