kopia lustrzana https://github.com/friendica/friendica
User nav: Add icons to the remaining entries
rodzic
05b04439be
commit
c99beae9e0
|
@ -42,6 +42,7 @@ class FriendicaSmarty extends Smarty
|
|||
$this->registerPlugin('modifier', 'is_string', function ($value) {
|
||||
return is_string($value);
|
||||
});
|
||||
$this->registerPlugin("modifier", "str_ends_with", "str_ends_with");
|
||||
|
||||
/*
|
||||
* Enable sub-directory splitting for reducing directory descriptor
|
||||
|
|
|
@ -201,6 +201,20 @@
|
|||
<li>
|
||||
<a role="menuitem" class="{{$usermenu.2}}" href="{{$usermenu.0}}"
|
||||
title="{{$usermenu.3}}">
|
||||
|
||||
{{if $usermenu.0|str_ends_with:$userinfo.name}}
|
||||
<i class="fa fa-commenting"></i>
|
||||
{{elseif $usermenu.0|str_ends_with:"/profile"}}
|
||||
<i class="fa fa-user"></i>
|
||||
{{elseif $usermenu.0|str_ends_with:"/photos"}}
|
||||
<i class="fa fa-picture-o"></i>
|
||||
{{elseif $usermenu.0|str_ends_with:"/media"}}
|
||||
<i class="fa fa-edit"></i>
|
||||
{{elseif $usermenu.0|str_ends_with:"calendar/"}}
|
||||
<i class="fa fa-calendar"></i>
|
||||
{{elseif $usermenu.0|str_ends_with:"notes/"}}
|
||||
<i class="fa fa-book"></i>
|
||||
{{/if}}
|
||||
{{$usermenu.1}}
|
||||
</a>
|
||||
</li>
|
||||
|
|
Ładowanie…
Reference in New Issue