Improvements

Styling, performance tweak, and bugs fixes.
This commit is contained in:
Danang Probo Sayekti 2015-07-05 21:29:02 +07:00
commit db786347c6
17 changed files with 197 additions and 107 deletions

View file

@ -29,8 +29,8 @@
echo $p->description;
} ?></textarea>
<br><br>
Featured Image (optional)<br><input type="text" class="text" name="fi" value="<?php if (isset($postFi)) {
echo $postFi;
Featured Image (optional)<br><input type="text" class="text" name="img" value="<?php if (isset($postImg)) {
echo $postImg;
} ?>"/><br><br>
Embed Youtube Video (optional)<br><input type="text" class="text" name="vid" value="<?php if (isset($postVid)) {
echo $postVid;

View file

@ -7,7 +7,7 @@ if (isset($p->file)) {
$content = file_get_contents($url);
$oldtitle = get_content_tag('t', $content, 'Untitled');
$oldfi = get_content_tag('fi', $content);
$oldimg = get_content_tag('img', $content);
$oldvid = get_content_tag('vid', $content);
$oldcontent = remove_html_comments($content);
@ -64,7 +64,7 @@ $delete = site_url() . date('Y/m', $postdate) . '/' . $oldmd . '/delete?destinat
echo $p->description;
} ?></textarea>
<br><br>
Featured Image (optional)<br><input type="text" class="text" name="fi" value="<?php echo $oldfi ?>"/><br><br>
Featured Image (optional)<br><input type="text" class="text" name="img" value="<?php echo $oldimg ?>"/><br><br>
Embed Youtube Video (optional)<br><input type="text" class="text" name="vid" value="<?php echo $oldvid ?>"/><br><br>
<div id="wmd-button-bar" class="wmd-button-bar"></div>

View file

@ -0,0 +1,19 @@
<?php
use \Kanti\HubUpdater;
$CSRF = get_csrf();
$updater = new HubUpdater(array(
'name' => 'danpros/htmly',
'prerelease' => !!config("prerelease"),
));
if ($updater->able()) {
$info = $updater->getNewestInfo();
echo '<h3>Update Available</h3>';
echo '<p><a href="' . $base . 'admin/update/now/' . $CSRF . '" alt="' . $info['name'] . '">Update to ' . $info['tag_name'] . '</a></p>';
} else {
echo '<h3>No Available Update</h3>';
echo '<p>You are using the latest HTMLy version.</p>';
}