Source

shlomi-fish-homepage / lib / jqui_tabs_multi_lang.wml

Full commit
#include "jqui_tabs.wml"

<define-tag en endtag="required">
{#EN#:%body:##}
</define-tag>

<define-tag he endtag="required">
{#HE#:%body:##}
</define-tag>

<define-tag lip endtag="required">
<li>
<p>
%body
</p>
</li>
</define-tag>

<define-tag both endtag="required">
<en>%body</en><he>%body</he>
</define-tag>

<define-tag li_en endtag="required">
<en>
<lip>
%body
</lip>
</en>
</define-tag>

<define-tag li_he endtag="required">
<he>
<lip>
%body
</lip>
</he>
</define-tag>

<define-tag non_trans_en endtag="required">
<en>%body</en>
</define-tag>

<define-tag non_trans_he endtag="required">
<he>%body</he>
</define-tag>

<define-tag en_he_tabs>

<preserve  id_base />

<set-var %attributes />

<set-var en_id="<get-var id_base />_en" />
<set-var he_id="<get-var id_base />_he" />

<div class="tabs">

<ul>
<li><a href="#<get-var en_id />">English</a></li>
<li><a href="#<get-var he_id />">Hebrew (עברית)</a></li>
</ul>

<div id="<get-var en_id />">

<ul>
{#EN#}
</ul>

</div>

<div id="<get-var he_id />" class="hebrew">

<ul>
{#HE#}
</ul>

</div>

</div> ;;; end of .tabs

<restore id_base />
</define-tag>