mirror of
https://github.com/unraid/webgui.git
synced 2026-04-23 10:38:50 -05:00
Allow plugins to use font awesome for icon
This commit is contained in:
@@ -63,11 +63,19 @@ foreach (glob($plugins,GLOB_NOSORT) as $plugin_link) {
|
||||
}
|
||||
}
|
||||
//link/icon
|
||||
$icon = icon($name);
|
||||
if ($launch = plugin('launch',$plugin_file))
|
||||
$link = "<a href='/$launch'><img src='/$icon' class='list'></a>";
|
||||
else
|
||||
$link = "<img src='/$icon' class='list'>";
|
||||
$launch = plugin('launch',$plugin_file);
|
||||
if ( $icon = plugin("icon",$plugin_file) ) {
|
||||
if ( $launch )
|
||||
$link = "<a href='/$launch'><i class='fa fa-$icon list'></i></a>";
|
||||
else
|
||||
$link = "<i class='fa fa-$icon list'></i>";
|
||||
} else {
|
||||
$icon = icon($name);
|
||||
if ( $launch )
|
||||
$link = "<a href='/$launch'><img src='/$icon' class='list'></a>";
|
||||
else
|
||||
$link = "<img src='/$icon' class='list'>";
|
||||
}
|
||||
//description
|
||||
$readme = "plugins/{$name}/README.md";
|
||||
if (file_exists($readme))
|
||||
|
||||
Reference in New Issue
Block a user