Merge pull request #1344 from clickwork-git/v4.0

V4.0 plugin Welcome
This commit is contained in:
Diego Najar 2021-09-16 09:23:13 +02:00 committed by GitHub
commit 667b3e3a65
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 32 additions and 7 deletions

View file

@ -0,0 +1,8 @@
{
"plugin-data":
{
"name": "Willkommen",
"description": "Zeigt die Willkommensmeldung im Dashboard an."
},
"welcome": "Willkommen"
}

View file

@ -0,0 +1,8 @@
{
"plugin-data":
{
"name": "Willkommen",
"description": "Zeigt die Willkommensmeldung im Dashboard an."
},
"welcome": "Willkommen"
}

View file

@ -0,0 +1,8 @@
{
"plugin-data":
{
"name": "Willkommen",
"description": "Zeigt die Willkommensmeldung im Dashboard an."
},
"welcome": "Willkommen"
}

View file

@ -3,5 +3,6 @@
{
"name": "Welcome",
"description": "Shows a greeting message in the dashboard."
}
}
},
"welcome": "Welcome"
}

View file

@ -20,11 +20,11 @@ class pluginWelcome extends Plugin {
$labelGoodEvening = $L->g('good-evening');
$labelGoodNight = $L->g('good-night');
return <<<EOF
<div class="pluginWelcome mt-4 mb-4 pb-4 border-bottom">
<h2 id="hello-message" class="m-0 p-0"><i class="bi bi-emoji-laughing"></i>Welcome</h2>
</div>
echo '<div class="pluginWelcome mt-4 mb-4 pb-4 border-bottom">';
echo '<h2 id="hello-message" class="m-0 p-0"><i class="bi bi-emoji-laughing"></i>' . $L->g('Welcome') . '</h2>';
echo '</div>';
return <<<EOF
<script>
$(document).ready(function() {
$("#hello-message").fadeOut(1000, function() {
@ -45,4 +45,4 @@ $(document).ready(function() {
EOF;
}
}
}