Skip to content

Commit

Permalink
(regression) fix text accordion view (non-bs/bs3), may have never wor…
Browse files Browse the repository at this point in the history
…ked correctly
  • Loading branch information
dleffler committed Nov 8, 2016
1 parent bc425e5 commit 598955d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion framework/modules/text/views/text/showall_accordion.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
* GPL: http://www.gnu.org/licenses/gpl.txt
*
*}

{css unique="accordion" corecss="accordion"}

{/css}
Expand Down Expand Up @@ -40,6 +40,7 @@
<div id="item{$item->id}" class="panel item{if !$item->approved && $smarty.const.ENABLE_WORKFLOW} unapproved{/if}">
<div class="hd"><a href="#" class="{if $config.initial_view==2||($config.initial_view==3&&$smarty.foreach.items.iteration==1)}collapse{else}expand{/if}" title="{'Collapse/Expand'|gettext}"><h2>{if $item->title ==""}&#160;{else}{$item->title}{/if}</h2></a></div>
<div class="piece bd {if $config.initial_view==2||($config.initial_view==3&&$smarty.foreach.items.iteration==1)}expanded{else}collapsed{/if}">
<ul><li>
{permissions}
<div class="item-actions">
{if $permissions.edit || ($permissions.create && $item->poster == $user->id)}
Expand Down Expand Up @@ -70,6 +71,7 @@
{filedisplayer view="`$config.filedisplay`" files=$item->expFile record=$item}
{/if}
</div>
</li></ul>
{clear}
</div>
</div>
Expand Down

0 comments on commit 598955d

Please sign in to comment.