Hi,
I'm having some problems with the skin template conditionals (if/elseif/else) in RC 1.5 Beta (latest as of this post.) In some circumstances the html code from ALL the if clauses is included, even if the conditions don't match. (See the attached screenshot.)
I'm pasting the code that works in RC 1.4 but doesn't work in RC 1.5. I have it added to header.html of a custom skin. The odd thing is that if I make the text in the if clauses shorter, it starts working properly. For example, if I remove the last two sentences inside the span of condition 4, it works.
Does anyone have any ideas what's going on?
<roundcube:if condition="env:task == 'mail' && env:action == 'show'" />
Condition 1
<span style="display:none">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse nulla quam, egestas
posuere ac, tincidunt a purus. Ut ornare semper vehicula. Maecenas molestie laoreet elit. Suspendisse
a accumsan ante, sit amet efficitur tellus. Nulla eget vehicula purus. Praesent gravida, nisl vitae
egestas vestibulum, erat nulla eleifend leo, in feugiat quam elit vel nulla.
</span>
<roundcube:elseif condition="env:task == 'mail' && env:action == 'compose'" />
Condition 2
<span style="display:none">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse nulla quam, egestas
posuere ac, tincidunt a purus. Ut ornare semper vehicula. Maecenas molestie laoreet elit. Suspendisse
a accumsan ante, sit amet efficitur tellus. Nulla eget vehicula purus. Praesent gravida, nisl vitae
egestas vestibulum, erat nulla eleifend leo, in feugiat quam elit vel nulla.
</span>
<roundcube:elseif condition="env:task == 'mail' && !env:action == 'plugin.summary'" />
Condition 3
<span style="display:none">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse nulla quam, egestas
posuere ac, tincidunt a purus. Ut ornare semper vehicula. Maecenas molestie laoreet elit. Suspendisse
a accumsan ante, sit amet efficitur tellus. Nulla eget vehicula purus. Praesent gravida, nisl vitae
egestas vestibulum, erat nulla eleifend leo, in feugiat quam elit vel nulla.
</span>
<roundcube:elseif condition="env:task == 'addressbook'" />
Condition 4
<span style="display:none">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse nulla quam, egestas
posuere ac, tincidunt a purus. Ut ornare semper vehicula. Maecenas molestie laoreet elit. Suspendisse
a accumsan ante, sit amet efficitur tellus. Nulla eget vehicula purus. Praesent gravida, nisl vitae
egestas vestibulum, erat nulla eleifend leo, in feugiat quam elit vel nulla. Nam ullamcorper sapien purus,
vitae sollicitudin enim lobortis eget. Aliquam interdum fermentum turpis nec ultrices.
</span>
<roundcube:elseif condition="env:task == 'settings'" />
Condition 5
<span style="display:none">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse nulla quam, egestas
posuere ac, tincidunt a purus. Ut ornare semper vehicula. Maecenas molestie laoreet elit. Suspendisse
a accumsan ante, sit amet efficitur tellus. Nulla eget vehicula purus. Praesent gravida, nisl vitae
egestas vestibulum, erat nulla eleifend leo, in feugiat quam elit vel nulla.
</span>
<roundcube:else/>
Condition 6
<span style="display:none">
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
</span>
<roundcube:endif />