mirror of
https://github.com/friendica/friendica
synced 2024-11-10 08:22:57 +00:00
frio: hilight selectet item in generic_links_widget.tpl
Add a custom generic_links_widget.tpl. The class ".selected" is add to `li` instead of `a`, hilighting current item, e.g. in user settings aside.
This commit is contained in:
parent
ae580e5829
commit
7bed3e909a
1 changed files with 12 additions and 0 deletions
12
view/theme/frio/templates/generic_links_widget.tpl
Normal file
12
view/theme/frio/templates/generic_links_widget.tpl
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
|
||||||
|
<div class="widget{{if $class}} {{$class}}{{/if}}">
|
||||||
|
{{if $title}}<h3>{{$title}}</h3>{{/if}}
|
||||||
|
{{if $desc}}<div class="desc">{{$desc}}</div>{{/if}}
|
||||||
|
|
||||||
|
<ul role="menu">
|
||||||
|
{{foreach $items as $item}}
|
||||||
|
<li role="menuitem" class="{{if $item.selected}}selected{{/if}}"><a href="{{$item.url}}" {{if $item.accesskey}}accesskey="{{$item.accesskey}}"{{/if}}>{{$item.label}}</a></li>
|
||||||
|
{{/foreach}}
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
</div>
|
Loading…
Reference in a new issue