'danpros/htmly', 'prerelease' => !!config("prerelease"), )); if ($updater->able()) { $info = $updater->getNewestInfo(); echo '

Update Available

'; echo '

Release Title: '. $info['name'] .'

'; echo '

Version: '. $info['tag_name'] .'

'; echo '

Release Notes

'; echo '
'; echo \Michelf\MarkdownExtra::defaultTransform($info['body']); echo '
'; echo '

Important: Please always backup your files before upgrading to newer version.

'; echo '

Update to ' . $info['tag_name'] . ' now

'; } else { echo '

Congrats! You have the latest version of HTMLy

'; $info = $updater->getCurrentInfo(); echo '

Release Title: '. $info['name'] .'

'; echo '

Installed Version: '. $info['tag_name'] .'

'; echo '

Release Notes:

'; echo '
'; echo \Michelf\MarkdownExtra::defaultTransform($info['body']); echo '
'; echo '

Read on Github.

'; } $files = array(); $draft = array(); $files = glob('content/*/blog/*.md', GLOB_NOSORT); $draft = glob('content/*/draft/*.md', GLOB_NOSORT); if (!empty($files) || !empty($draft)) { migrate_old_content(); }