Ungenutztes Attribut SubjectData->buttonText aus Klasse und properties-Dateien entfernt
This commit is contained in:
@@ -28,11 +28,6 @@ class SubjectData
|
|||||||
*/
|
*/
|
||||||
public string $color;
|
public string $color;
|
||||||
|
|
||||||
/**
|
|
||||||
* @var string Text des Knopfes der auf die Fachseite weiterführt, nur reiner Text
|
|
||||||
*/
|
|
||||||
public string $buttonText;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var string Icon des Faches als Font-Awesome CSS-Klasse
|
* @var string Icon des Faches als Font-Awesome CSS-Klasse
|
||||||
*/
|
*/
|
||||||
@@ -108,12 +103,6 @@ class SubjectData
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isset($data->buttonText)) {
|
|
||||||
$result->buttonText = $data->buttonText;
|
|
||||||
} else {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (isset($data->icon)) {
|
if (isset($data->icon)) {
|
||||||
$result->icon = $data->icon;
|
$result->icon = $data->icon;
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -2,6 +2,5 @@
|
|||||||
"displayName": "Deutsch",
|
"displayName": "Deutsch",
|
||||||
"description": "Deutsch ist rot",
|
"description": "Deutsch ist rot",
|
||||||
"color": "#ef4444",
|
"color": "#ef4444",
|
||||||
"buttonText": "Erfahre von einem ungeheuren Ungeziefer",
|
|
||||||
"icon": "fa-book"
|
"icon": "fa-book"
|
||||||
}
|
}
|
||||||
@@ -2,6 +2,5 @@
|
|||||||
"displayName": "Englisch",
|
"displayName": "Englisch",
|
||||||
"description": "He she it das s muss mit!",
|
"description": "He she it das s muss mit!",
|
||||||
"color": "#17B750",
|
"color": "#17B750",
|
||||||
"buttonText": "--",
|
|
||||||
"icon": "fa-language"
|
"icon": "fa-language"
|
||||||
}
|
}
|
||||||
@@ -2,6 +2,5 @@
|
|||||||
"displayName": "Mathe",
|
"displayName": "Mathe",
|
||||||
"description": "Mathe ist blau",
|
"description": "Mathe ist blau",
|
||||||
"color": "#3b82f6",
|
"color": "#3b82f6",
|
||||||
"buttonText": "Jetzt rechnen!",
|
|
||||||
"icon": "fa-square-root-alt"
|
"icon": "fa-square-root-alt"
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user