Skip to content

Instantly share code, notes, and snippets.

View yordanoff's full-sized avatar

Joro Yordanov yordanoff

View GitHub Profile
@yordanoff
yordanoff / raport-version.html.php
Last active January 7, 2018 21:42
Kirby CMS: Dashboard Widget Messages via JSON
<!--Print Information -->
<p>Current version: <strong><?= $localVersion ?></strong></p>
<?php if( $localVersion < $currentVersion ): ?>
<div class="upgrade">
<p>There is a newer version of Raport available<p>
<a href="<?= $upgradeURL ?>" target="_blank">
Update now to <strong>version <?= $currentVersion ?> &rarr;</strong></a>
</div>
[
{
"current_version": 0.2,
"upgrade_url": "http://yordanoff.net/",
"custom_message": "<div style='border: 1px solid blue; color: blue;padding: 10px;border-radius: 3px;text-align: center;clear: both;line-height: 1.5;'>Hello <strong>there</strong>. This is a custom message styled via JSON input.</div>"
}
]