'$baseurl' => $a->get_baseurl(true),
'$function' => 'plugins',
'$plugins' => $plugins,
+ '$pcount' => count($plugins),
+ '$noplugshint' => sprintf( t('There are currently no plugins available on your node. You can find the official plugin repository at %1$s and might find other interesting plugins in the open plugin registry at %2$s'), 'https://github.com/friendica/friendica-addons', 'http://addons.friendi.ca'),
'$form_security_token' => get_form_security_token("admin_themes"),
));
}
<div id='adminpage'>
<h1>{{$title}} - {{$page}}</h1>
<a class="btn" href="{{$baseurl}}/admin/{{$function}}?a=r&t={{$form_security_token}}">{{$reload}}</a>
+ {{if $pcount eq 0}}
+ <div class="XXX">
+ {{$noplugshint}}
+ </div>
+ {{else}}
<ul id='pluginslist'>
{{foreach $plugins as $p}}
<li class='plugin {{$p.1}}'>
</li>
{{/foreach}}
</ul>
+ {{/if}}
</div>