diff --git a/archive/community.applications-2023.04.11-x86_64-1.txz b/archive/community.applications-2023.04.11-x86_64-1.txz index 4fdd59f5..ab785da1 100644 Binary files a/archive/community.applications-2023.04.11-x86_64-1.txz and b/archive/community.applications-2023.04.11-x86_64-1.txz differ diff --git a/source/community.applications/usr/local/emhttp/plugins/community.applications/ca.md5 b/source/community.applications/usr/local/emhttp/plugins/community.applications/ca.md5 index 4d15682e..3b326ac5 100644 --- a/source/community.applications/usr/local/emhttp/plugins/community.applications/ca.md5 +++ b/source/community.applications/usr/local/emhttp/plugins/community.applications/ca.md5 @@ -2,7 +2,7 @@ 106b521c1feebda4d7b3f558cc016cda ./CA_notices.page eb1f0ee4148747c0473e73e4e973994f ./ca_settings.page e8d29607ec792ddf9f6832b10ee70fdc ./default.cfg -451cc69d66e2504aa3e9977cb2e233b8 ./include/exec.php +945036a5672dbad805d8507ff349d316 ./include/exec.php 1182f793790a06f0d8ac38674904ec76 ./include/helpers.php 7cc3e1ffd81120a1cf407857225db275 ./include/paths.php 532fffdf939594c143e679da02bd841e ./javascript/libraries.js @@ -20,6 +20,6 @@ ed42a35b3524b55e2024cdd56a795733 ./scripts/pluginInstall.php f2a86fd875cb73bb095388e69ca035fd ./scripts/showStatistics.php 4425f8fd4ef662a7dc65cee01de3e419 ./scripts/updatePLG.sh 5c088a7cf82229cb64edfd4c415a84a0 ./scripts/updatePluginSupport.php -9f9f7cbbb7962b6c70c9a4cda77d5cdf ./skins/Narrow/css.php +ba9fd42364af5a2f50958a638e82376f ./skins/Narrow/css.php d642a25efb891e51471fc4c7636da885 ./skins/Narrow/skin.html -fffb0e7d9806fa2b5ddf9954a087a26e ./skins/Narrow/skin.php +f06e9629ae3ef7028fbea384f91f0638 ./skins/Narrow/skin.php diff --git a/source/community.applications/usr/local/emhttp/plugins/community.applications/include/exec.php b/source/community.applications/usr/local/emhttp/plugins/community.applications/include/exec.php index d0abacfb..f1383639 100644 --- a/source/community.applications/usr/local/emhttp/plugins/community.applications/include/exec.php +++ b/source/community.applications/usr/local/emhttp/plugins/community.applications/include/exec.php @@ -600,9 +600,11 @@ function appOfDay($file) { foreach($file as $template) { if ( ! isset($template['Featured'] ) ) break; - if ( ! checkRandomApp($template) ) - continue; - // Don't show it if the plugin is installed + if ( ! $template['PluginURL'] == "https://unraid-dl.sfo2.cdn.digitaloceanspaces.com/unraid-api/dynamix.unraid.net.plg" ) { + if ( ! checkRandomApp($template) ) + continue; + } + // Don't show it if the plugin is installed if ( $template['PluginURL'] && is_file("/var/log/plugins/".basename($template['PluginURL'])) ) continue; // Don't show it if the container is installed diff --git a/source/community.applications/usr/local/emhttp/plugins/community.applications/skins/Narrow/css.php b/source/community.applications/usr/local/emhttp/plugins/community.applications/skins/Narrow/css.php index f2df2ed2..39cea185 100644 --- a/source/community.applications/usr/local/emhttp/plugins/community.applications/skins/Narrow/css.php +++ b/source/community.applications/usr/local/emhttp/plugins/community.applications/skins/Narrow/css.php @@ -418,7 +418,7 @@ a.popup-donate:hover{color:;background-color: .spotlightHeader{font-size:2rem;} .spotlightIconArea{display:inline-block;float:left;width:10rem;} .spotlightIcon{height:15rem;margin-bottom:-2.5rem;margin-left:-3rem;margin-top:-2rem;} -.spotlightInfoArea{margin-left:2rem;padding-left:10rem;} +.spotlightInfoArea{margin-left:2rem;padding-left:10rem;margin-top:2rem;} .spotlightPopup{display:inline-block;} .spotlightPopupText{position:absolute;color:white;font-size:2rem;position:absolute;top:1.2rem;right:2rem;} .spotlightPopupText::after{content:"\f005";font-family:fontAwesome;} diff --git a/source/community.applications/usr/local/emhttp/plugins/community.applications/skins/Narrow/skin.php b/source/community.applications/usr/local/emhttp/plugins/community.applications/skins/Narrow/skin.php index d9f61fb2..daf26ed2 100644 --- a/source/community.applications/usr/local/emhttp/plugins/community.applications/skins/Narrow/skin.php +++ b/source/community.applications/usr/local/emhttp/plugins/community.applications/skins/Narrow/skin.php @@ -265,7 +265,8 @@ function my_display_apps($file,$pageNumber=1,$selectedApps=false,$startup=false) } else { $installComment = $template['RequiresFile'] ? "" : $installComment; } - $actionsContext[] = ["icon"=>"ca_fa-install","text"=>$buttonTitle,"action"=>"installPlugin('{$template['PluginURL']}$isDeprecated','$updateFlag','".str_replace([" ","\n"],[" ",""],htmlspecialchars($installComment ?? ""))."','$requiresText');"]; + if ( $template['Compatible'] ) + $actionsContext[] = ["icon"=>"ca_fa-install","text"=>$buttonTitle,"action"=>"installPlugin('{$template['PluginURL']}$isDeprecated','$updateFlag','".str_replace([" ","\n"],[" ",""],htmlspecialchars($installComment ?? ""))."','$requiresText');"]; if ( $template['InstallPath'] ) { if ( ! empty($actionsContext) ) @@ -1285,7 +1286,7 @@ function displayCard($template) { if ( ! $Overview ) $Overview = tr("No description present"); - + $ovr = html_entity_decode($Overview); $ovr = trim($ovr); $ovr = str_replace(["[","]"],["<",">"],$ovr); @@ -1296,6 +1297,9 @@ function displayCard($template) { $ovr = str_replace("\n","
",$ovr); $Overview = strip_tags(str_replace("
"," ",$ovr)); + + if ( ! $Compatible && $homeScreen ) + $Overview = "Recommended to upgrade the OS to enjoy the additional features of MyServers  $Overview"; $descClass= $RepositoryTemplate ? "cardDescriptionRepo" : "cardDescription"; $card .= "
$Overview
"; @@ -1452,7 +1456,9 @@ function displayPopup($template) { if ( $Language && $LanguagePack !== "en_US" ) { $ModeratorComment .= "$disclaimLine1"; } - + if ( !$Compatible && $PluginURL == "https://unraid-dl.sfo2.cdn.digitaloceanspaces.com/unraid-api/dynamix.unraid.net.plg" ) + $ModeratorComment = "Recommended to upgrade the OS to enjoy the additional features of MyServers"; + if ( $ModeratorComment ) { $card .= "
".tr("Attention:")."
$ModeratorComment
"; }