Jump to content

customisation - $freedomaintlds output


Recommended Posts

modern theme > configureproductdomain.tpl > $freedomaintlds

would it be it possible to put a href link on the individual domain endings, disassemble the string ... divide ??

f.ex.

<a href="{$freedomaintlds}">{strtoupper($freedomaintlds)}</a>

all endings have the same link then ... maybe split that somehow ... ?

Link to comment
Share on other sites

6 hours ago, cluster said:

would it be it possible to put a href link on the individual domain endings, disassemble the string ... divide ?? all endings have the same link then ... maybe split that somehow ... ?

explode them.... :654_bomb:

{if $freedomaintlds}<p>* <em>{$LANG.orderfreedomainregistration} {$LANG.orderfreedomainappliesto}: 
	{assign var=freedomlist value=","|explode:$freedomaintlds} 
		{foreach from=$freedomlist item=freedomtld}
			<a href="{$freedomtld}">{strtoupper($freedomtld)}</a>{if not $freedomtld@last}, {/if}
		{/foreach} 
	</em></p>
{/if}

rQzBcmE.png

alternatively, you could write a hook that would do all of the above in PHP and then pass it back as $freedomaintlds but as an array including your links for each... but I assume you're editing the template anyway for other changes.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated