]> git.mxchange.org Git - friendica.git/commitdiff
frio: hilight selectet item in generic_links_widget.tpl
authorfabrixxm <fabrix.xm@gmail.com>
Thu, 27 Apr 2017 17:34:01 +0000 (19:34 +0200)
committerfabrixxm <fabrix.xm@gmail.com>
Thu, 27 Apr 2017 17:34:01 +0000 (19:34 +0200)
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.

view/theme/frio/templates/generic_links_widget.tpl [new file with mode: 0644]

diff --git a/view/theme/frio/templates/generic_links_widget.tpl b/view/theme/frio/templates/generic_links_widget.tpl
new file mode 100644 (file)
index 0000000..5510eae
--- /dev/null
@@ -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>