mirror of
https://github.com/danpros/htmly.git
synced 2026-04-19 12:06:22 +05:30
Improvements
Styling, performance tweak, and bugs fixes.
This commit is contained in:
parent
f646e5f4f2
commit
db786347c6
17 changed files with 197 additions and 107 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
19
system/admin/views/update.html.php
Normal file
19
system/admin/views/update.html.php
Normal 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>';
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue