|
|
|
@ -19,6 +19,11 @@ if ($updater->able()) { |
|
|
|
echo '<p><strong>Important:</strong> Please always backup your files before upgrading to newer version.</p>'; |
|
|
|
echo '<p><a href="' . site_url() . 'admin/update/now/' . $CSRF . '" alt="' . $info['name'] . '">Update to ' . $info['tag_name'] . ' now</a></p>'; |
|
|
|
} else { |
|
|
|
echo '<h3>No Available Update</h3>'; |
|
|
|
echo '<p>You are using the latest HTMLy version.</p>'; |
|
|
|
echo '<h2>Congrats! You are Up to Date</h2>'; |
|
|
|
$info = $updater->getCurrentInfo(); |
|
|
|
echo '<p>Release Title: '. $info['name'] .'</p>'; |
|
|
|
echo '<p>Version: '. $info['tag_name'] .'</p>'; |
|
|
|
echo '<p>Release Notes: </p>'; |
|
|
|
echo '<pre><code>'. $info['body'] .'</code></pre>'; |
|
|
|
echo '<p>Read on <a target="_blank" href="' . $info['html_url'] . '">Github</a></p>'; |
|
|
|
} |