Skip to content

Commit

Permalink
#969 Added warning icon to the project details panel in workspace whe…
Browse files Browse the repository at this point in the history
…n player is Flash
  • Loading branch information
FayCross committed Sep 16, 2021
1 parent 605c63b commit 4f316ef
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
Expand Up @@ -104,6 +104,8 @@
define("PROPERTIES_LIBRARY_DEFAULT_HTML5", "HTML5");

define("PROPERTIES_LIBRARY_DEFAULT_FLASH", "Flash");

define("PROPERTIES_LIBRARY_FLASH_WARNING", "The Flash player is no longer supported. You can change the default player to HTML5 in the project properties");

define("PROPERTIES_LIBRARY_DEFAULT_ENGINE_CHANGED", "Default engine has been changed.");

Expand Down
3 changes: 2 additions & 1 deletion website_code/php/properties/properties_library.php
Expand Up @@ -507,7 +507,8 @@ function project_info($template_id){

if (get_default_engine($template_id) == 'flash')
{
$info .= PROPERTIES_LIBRARY_DEFAULT_FLASH . "<br/";
$info .= "<span class='warning'><i class='fa fa-exclamation-triangle' title='" . PROPERTIES_LIBRARY_FLASH_WARNING . "' style='height: 14px;'></i> ";
$info .= PROPERTIES_LIBRARY_DEFAULT_FLASH . "</span><br/>";
}
else
{
Expand Down
4 changes: 4 additions & 0 deletions website_code/styles/frontpage.css
Expand Up @@ -827,4 +827,8 @@ div.ui-layout-center {

.settingsDropdown {
display: inline-block;
}

.warning {
color: red;
}

0 comments on commit 4f316ef

Please sign in to comment.