mirror of
https://github.com/danpros/htmly.git
synced 2026-04-19 12:06:22 +05:30
Improvements
This commit is contained in:
parent
e6e8a12b90
commit
c4f424ad4f
17 changed files with 33 additions and 28 deletions
|
|
@ -29,11 +29,11 @@
|
||||||
echo $postUrl;
|
echo $postUrl;
|
||||||
} ?>"/><br>
|
} ?>"/><br>
|
||||||
<span class="help">If the url leave empty we will use the post title.</span><br><br>
|
<span class="help">If the url leave empty we will use the post title.</span><br><br>
|
||||||
Meta Description (optional)<br><textarea name="description" maxlength="200"><?php if (isset($p->description)) {
|
Meta Description (optional)<br><textarea name="description" rows="3" cols="20"><?php if (isset($p->description)) {
|
||||||
echo $p->description;
|
echo $p->description;
|
||||||
} ?></textarea>
|
} ?></textarea>
|
||||||
<br><br>
|
<br><br>
|
||||||
Featured Audio <span class="required">*</span> (SoundCloud Only)<br><textarea maxlength="200" class="text <?php if (isset($postAudio)) {
|
Featured Audio <span class="required">*</span> (SoundCloud Only)<br><textarea rows="3" cols="20" class="text <?php if (isset($postAudio)) {
|
||||||
if (empty($postAudio)) {
|
if (empty($postAudio)) {
|
||||||
echo 'error';
|
echo 'error';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -29,11 +29,11 @@
|
||||||
echo $postUrl;
|
echo $postUrl;
|
||||||
} ?>"/><br>
|
} ?>"/><br>
|
||||||
<span class="help">If the url leave empty we will use the post title.</span><br><br>
|
<span class="help">If the url leave empty we will use the post title.</span><br><br>
|
||||||
Meta Description (optional)<br><textarea name="description" maxlength="200"><?php if (isset($p->description)) {
|
Meta Description (optional)<br><textarea name="description" rows="3" cols="20"><?php if (isset($p->description)) {
|
||||||
echo $p->description;
|
echo $p->description;
|
||||||
} ?></textarea>
|
} ?></textarea>
|
||||||
<br><br>
|
<br><br>
|
||||||
Featured Image <span class="required">*</span> <br><textarea maxlength="200" class="text <?php if (isset($postImage)) {
|
Featured Image <span class="required">*</span> <br><textarea rows="3" cols="20" class="text <?php if (isset($postImage)) {
|
||||||
if (empty($postImage)) {
|
if (empty($postImage)) {
|
||||||
echo 'error';
|
echo 'error';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -29,11 +29,11 @@
|
||||||
echo $postUrl;
|
echo $postUrl;
|
||||||
} ?>"/><br>
|
} ?>"/><br>
|
||||||
<span class="help">If the url leave empty we will use the post title.</span><br><br>
|
<span class="help">If the url leave empty we will use the post title.</span><br><br>
|
||||||
Meta Description (optional)<br><textarea name="description" maxlength="200"><?php if (isset($p->description)) {
|
Meta Description (optional)<br><textarea name="description" rows="3" cols="20"><?php if (isset($p->description)) {
|
||||||
echo $p->description;
|
echo $p->description;
|
||||||
} ?></textarea>
|
} ?></textarea>
|
||||||
<br><br>
|
<br><br>
|
||||||
Featured Link <span class="required">*</span> <br><textarea maxlength="200" class="text <?php if (isset($postLink)) {
|
Featured Link <span class="required">*</span> <br><textarea rows="3" cols="20" class="text <?php if (isset($postLink)) {
|
||||||
if (empty($postLink)) {
|
if (empty($postLink)) {
|
||||||
echo 'error';
|
echo 'error';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@
|
||||||
echo $postUrl;
|
echo $postUrl;
|
||||||
} ?>"/><br>
|
} ?>"/><br>
|
||||||
<span class="help">If the url leave empty we will use the page title.</span><br><br>
|
<span class="help">If the url leave empty we will use the page title.</span><br><br>
|
||||||
Meta Description (optional)<br><textarea name="description" maxlength="200"><?php if (isset($p->description)) {
|
Meta Description (optional)<br><textarea name="description" rows="3" cols="20"><?php if (isset($p->description)) {
|
||||||
echo $p->description;
|
echo $p->description;
|
||||||
} ?></textarea>
|
} ?></textarea>
|
||||||
<br><br>
|
<br><br>
|
||||||
|
|
|
||||||
|
|
@ -29,7 +29,7 @@
|
||||||
echo $postUrl;
|
echo $postUrl;
|
||||||
} ?>"/><br>
|
} ?>"/><br>
|
||||||
<span class="help">If the url leave empty we will use the post title.</span><br><br>
|
<span class="help">If the url leave empty we will use the post title.</span><br><br>
|
||||||
Meta Description (optional)<br><textarea name="description" maxlength="200"><?php if (isset($p->description)) {
|
Meta Description (optional)<br><textarea name="description" rows="3" cols="20"><?php if (isset($p->description)) {
|
||||||
echo $p->description;
|
echo $p->description;
|
||||||
} ?></textarea>
|
} ?></textarea>
|
||||||
<br><br>
|
<br><br>
|
||||||
|
|
|
||||||
|
|
@ -29,11 +29,11 @@
|
||||||
echo $postUrl;
|
echo $postUrl;
|
||||||
} ?>"/><br>
|
} ?>"/><br>
|
||||||
<span class="help">If the url leave empty we will use the post title.</span><br><br>
|
<span class="help">If the url leave empty we will use the post title.</span><br><br>
|
||||||
Meta Description (optional)<br><textarea name="description" maxlength="200"><?php if (isset($p->description)) {
|
Meta Description (optional)<br><textarea name="description" rows="3" cols="20"><?php if (isset($p->description)) {
|
||||||
echo $p->description;
|
echo $p->description;
|
||||||
} ?></textarea>
|
} ?></textarea>
|
||||||
<br><br>
|
<br><br>
|
||||||
Featured Quote <span class="required">*</span> <br><textarea maxlength="200" class="text <?php if (isset($postQuote)) {
|
Featured Quote <span class="required">*</span> <br><textarea rows="3" cols="20" class="text <?php if (isset($postQuote)) {
|
||||||
if (empty($postQuote)) {
|
if (empty($postQuote)) {
|
||||||
echo 'error';
|
echo 'error';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -29,11 +29,11 @@
|
||||||
echo $postUrl;
|
echo $postUrl;
|
||||||
} ?>"/><br>
|
} ?>"/><br>
|
||||||
<span class="help">If the url leave empty we will use the post title.</span><br><br>
|
<span class="help">If the url leave empty we will use the post title.</span><br><br>
|
||||||
Meta Description (optional)<br><textarea name="description" maxlength="200"><?php if (isset($p->description)) {
|
Meta Description (optional)<br><textarea name="description" rows="3" cols="20"><?php if (isset($p->description)) {
|
||||||
echo $p->description;
|
echo $p->description;
|
||||||
} ?></textarea>
|
} ?></textarea>
|
||||||
<br><br>
|
<br><br>
|
||||||
Featured Video <span class="required">*</span> (YouTube Only)<br><textarea maxlength="200" class="text <?php if (isset($postVideo)) {
|
Featured Video <span class="required">*</span> (YouTube Only)<br><textarea rows="3" cols="20" class="text <?php if (isset($postVideo)) {
|
||||||
if (empty($postVideo)) {
|
if (empty($postVideo)) {
|
||||||
echo 'error';
|
echo 'error';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,11 @@
|
||||||
<p>
|
<p>
|
||||||
<u>hint:</u> Use <code>Ctrl</code>/<code>CMD⌘</code> + <code>F</code> to search for your config key or value.
|
<u>hint:</u> Use <code>Ctrl</code>/<code>CMD⌘</code> + <code>F</code> to search for your config key or value.
|
||||||
</p>
|
</p>
|
||||||
|
<p>
|
||||||
|
<u>pro tips:</u> You can creating custom config key and print out your config key value anywhere in your template.
|
||||||
|
</p>
|
||||||
|
<pre><code><?php echo config('your.key'); ?></code></pre>
|
||||||
|
<hr style="margin:30px 0;border:1px solid #e3e3e3;">
|
||||||
<form method="POST">
|
<form method="POST">
|
||||||
<input type="hidden" name="csrf_token" value="<?php echo get_csrf(); ?>">
|
<input type="hidden" name="csrf_token" value="<?php echo get_csrf(); ?>">
|
||||||
<input type="submit">
|
<input type="submit">
|
||||||
|
|
|
||||||
|
|
@ -71,11 +71,11 @@ if (config('permalink.type') == 'post') {
|
||||||
Year, Month, Day<br><input type="date" name="date" class="text" value="<?php echo date('Y-m-d', $postdate); ?>"><br>
|
Year, Month, Day<br><input type="date" name="date" class="text" value="<?php echo date('Y-m-d', $postdate); ?>"><br>
|
||||||
Hour, Minute, Second<br><input
|
Hour, Minute, Second<br><input
|
||||||
type="time" name="time" class="text" value="<?php echo $time->format('H:i:s'); ?>"><br><br>
|
type="time" name="time" class="text" value="<?php echo $time->format('H:i:s'); ?>"><br><br>
|
||||||
Meta Description (optional)<br><textarea name="description" maxlength="200"><?php if (isset($p->description)) {
|
Meta Description (optional)<br><textarea name="description" rows="3" cols="20"><?php if (isset($p->description)) {
|
||||||
echo $p->description;
|
echo $p->description;
|
||||||
} else {echo $olddescription;}?></textarea>
|
} else {echo $olddescription;}?></textarea>
|
||||||
<br><br>
|
<br><br>
|
||||||
Featured Audio <span class="required">*</span> (SoundCloud Only)<br><textarea maxlength="200" class="text <?php if (isset($postAudio)) {
|
Featured Audio <span class="required">*</span> (SoundCloud Only)<br><textarea rows="3" cols="20" class="text <?php if (isset($postAudio)) {
|
||||||
if (empty($postAudio)) {
|
if (empty($postAudio)) {
|
||||||
echo 'error';
|
echo 'error';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -71,11 +71,11 @@ if (config('permalink.type') == 'post') {
|
||||||
Year, Month, Day<br><input type="date" name="date" class="text" value="<?php echo date('Y-m-d', $postdate); ?>"><br>
|
Year, Month, Day<br><input type="date" name="date" class="text" value="<?php echo date('Y-m-d', $postdate); ?>"><br>
|
||||||
Hour, Minute, Second<br><input
|
Hour, Minute, Second<br><input
|
||||||
type="time" name="time" class="text" value="<?php echo $time->format('H:i:s'); ?>"><br><br>
|
type="time" name="time" class="text" value="<?php echo $time->format('H:i:s'); ?>"><br><br>
|
||||||
Meta Description (optional)<br><textarea name="description" maxlength="200"><?php if (isset($p->description)) {
|
Meta Description (optional)<br><textarea name="description" rows="3" cols="20"><?php if (isset($p->description)) {
|
||||||
echo $p->description;
|
echo $p->description;
|
||||||
} else {echo $olddescription;}?></textarea>
|
} else {echo $olddescription;}?></textarea>
|
||||||
<br><br>
|
<br><br>
|
||||||
Featured Image <span class="required">*</span> <br><textarea maxlength="200" class="text <?php if (isset($postImage)) {
|
Featured Image <span class="required">*</span> <br><textarea rows="3" cols="20" class="text <?php if (isset($postImage)) {
|
||||||
if (empty($postImage)) {
|
if (empty($postImage)) {
|
||||||
echo 'error';
|
echo 'error';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -72,11 +72,11 @@ if (config('permalink.type') == 'post') {
|
||||||
Year, Month, Day<br><input type="date" name="date" class="text" value="<?php echo date('Y-m-d', $postdate); ?>"><br>
|
Year, Month, Day<br><input type="date" name="date" class="text" value="<?php echo date('Y-m-d', $postdate); ?>"><br>
|
||||||
Hour, Minute, Second<br><input
|
Hour, Minute, Second<br><input
|
||||||
type="time" name="time" class="text" value="<?php echo $time->format('H:i:s'); ?>"><br><br>
|
type="time" name="time" class="text" value="<?php echo $time->format('H:i:s'); ?>"><br><br>
|
||||||
Meta Description (optional)<br><textarea name="description" maxlength="200"><?php if (isset($p->description)) {
|
Meta Description (optional)<br><textarea name="description" rows="3" cols="20"><?php if (isset($p->description)) {
|
||||||
echo $p->description;
|
echo $p->description;
|
||||||
} else {echo $olddescription;}?></textarea>
|
} else {echo $olddescription;}?></textarea>
|
||||||
<br><br>
|
<br><br>
|
||||||
Featured Link <span class="required">*</span> <br><textarea maxlength="200" class="text <?php if (isset($postLink)) {
|
Featured Link <span class="required">*</span> <br><textarea rows="3" cols="20" class="text <?php if (isset($postLink)) {
|
||||||
if (empty($postLink)) {
|
if (empty($postLink)) {
|
||||||
echo 'error';
|
echo 'error';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -53,7 +53,7 @@ else {
|
||||||
} ?>" value="<?php echo $oldtitle ?>"/><br><br>
|
} ?>" value="<?php echo $oldtitle ?>"/><br><br>
|
||||||
Url (optional)<br><input type="text" name="url" class="text" value="<?php echo $oldmd ?>"/><br>
|
Url (optional)<br><input type="text" name="url" class="text" value="<?php echo $oldmd ?>"/><br>
|
||||||
<span class="help">If the url leave empty we will use the page title.</span><br><br>
|
<span class="help">If the url leave empty we will use the page title.</span><br><br>
|
||||||
Meta Description (optional)<br><textarea name="description" maxlength="200"><?php if (isset($p->description)) {
|
Meta Description (optional)<br><textarea name="description" rows="3" cols="20"><?php if (isset($p->description)) {
|
||||||
echo $p->description;
|
echo $p->description;
|
||||||
} else {echo $olddescription;}?></textarea>
|
} else {echo $olddescription;}?></textarea>
|
||||||
<br><br>
|
<br><br>
|
||||||
|
|
|
||||||
|
|
@ -71,7 +71,7 @@ if (config('permalink.type') == 'post') {
|
||||||
Year, Month, Day<br><input type="date" name="date" class="text" value="<?php echo date('Y-m-d', $postdate); ?>"><br>
|
Year, Month, Day<br><input type="date" name="date" class="text" value="<?php echo date('Y-m-d', $postdate); ?>"><br>
|
||||||
Hour, Minute, Second<br><input
|
Hour, Minute, Second<br><input
|
||||||
type="time" name="time" class="text" value="<?php echo $time->format('H:i:s'); ?>"><br><br>
|
type="time" name="time" class="text" value="<?php echo $time->format('H:i:s'); ?>"><br><br>
|
||||||
Meta Description (optional)<br><textarea name="description" maxlength="200"><?php if (isset($p->description)) {
|
Meta Description (optional)<br><textarea name="description" rows="3" cols="20"><?php if (isset($p->description)) {
|
||||||
echo $p->description;
|
echo $p->description;
|
||||||
} else { echo $olddescription;} ?></textarea>
|
} else { echo $olddescription;} ?></textarea>
|
||||||
<br><br>
|
<br><br>
|
||||||
|
|
|
||||||
|
|
@ -72,11 +72,11 @@ if (config('permalink.type') == 'post') {
|
||||||
Year, Month, Day<br><input type="date" name="date" class="text" value="<?php echo date('Y-m-d', $postdate); ?>"><br>
|
Year, Month, Day<br><input type="date" name="date" class="text" value="<?php echo date('Y-m-d', $postdate); ?>"><br>
|
||||||
Hour, Minute, Second<br><input
|
Hour, Minute, Second<br><input
|
||||||
type="time" name="time" class="text" value="<?php echo $time->format('H:i:s'); ?>"><br><br>
|
type="time" name="time" class="text" value="<?php echo $time->format('H:i:s'); ?>"><br><br>
|
||||||
Meta Description (optional)<br><textarea name="description" maxlength="200"><?php if (isset($p->description)) {
|
Meta Description (optional)<br><textarea name="description" rows="3" cols="20"><?php if (isset($p->description)) {
|
||||||
echo $p->description;
|
echo $p->description;
|
||||||
} else {echo $olddescription;}?></textarea>
|
} else {echo $olddescription;}?></textarea>
|
||||||
<br><br>
|
<br><br>
|
||||||
Featured Quote <span class="required">*</span> <br><textarea maxlength="200" class="text <?php if (isset($postQuote)) {
|
Featured Quote <span class="required">*</span> <br><textarea rows="3" cols="20" class="text <?php if (isset($postQuote)) {
|
||||||
if (empty($postQuote)) {
|
if (empty($postQuote)) {
|
||||||
echo 'error';
|
echo 'error';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -73,11 +73,11 @@ if (config('permalink.type') == 'post') {
|
||||||
Year, Month, Day<br><input type="date" name="date" class="text" value="<?php echo date('Y-m-d', $postdate); ?>"><br>
|
Year, Month, Day<br><input type="date" name="date" class="text" value="<?php echo date('Y-m-d', $postdate); ?>"><br>
|
||||||
Hour, Minute, Second<br><input
|
Hour, Minute, Second<br><input
|
||||||
type="time" name="time" class="text" value="<?php echo $time->format('H:i:s'); ?>"><br><br>
|
type="time" name="time" class="text" value="<?php echo $time->format('H:i:s'); ?>"><br><br>
|
||||||
Meta Description (optional)<br><textarea name="description" maxlength="200"><?php if (isset($p->description)) {
|
Meta Description (optional)<br><textarea name="description" rows="3" cols="20"><?php if (isset($p->description)) {
|
||||||
echo $p->description;
|
echo $p->description;
|
||||||
} else {echo $olddescription;}?></textarea>
|
} else {echo $olddescription;}?></textarea>
|
||||||
<br><br>
|
<br><br>
|
||||||
Featured Video <span class="required">*</span> (YouTube Only)<br><textarea maxlength="200" class="text <?php if (isset($postVideo)) {
|
Featured Video <span class="required">*</span> (YouTube Only)<br><textarea rows="3" cols="20" class="text <?php if (isset($postVideo)) {
|
||||||
if (empty($postVideo)) {
|
if (empty($postVideo)) {
|
||||||
echo 'error';
|
echo 'error';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@ if ($updater->able()) {
|
||||||
echo '<p>Release Title: <strong>'. $info['name'] .'</strong></p>';
|
echo '<p>Release Title: <strong>'. $info['name'] .'</strong></p>';
|
||||||
echo '<p>Version: <strong>'. $info['tag_name'] .'</strong></p>';
|
echo '<p>Version: <strong>'. $info['tag_name'] .'</strong></p>';
|
||||||
echo '<h4>Release Notes</h4>';
|
echo '<h4>Release Notes</h4>';
|
||||||
echo '<div style="background-color:#f9f9f9;border:1px solid #ccc;border-radius:4px;color:#333;display:block;font-size:13px;line-height:1.42857;margin:20px 0;padding:0 1em;word-break:break-all;word-wrap:break-word;">';
|
echo '<div style="background-color:#f9f9f9;border:1px solid #ccc;border-radius:4px;color:#333;display:block;font-size:13px;margin:20px 0;padding:0 1em;">';
|
||||||
echo \Michelf\MarkdownExtra::defaultTransform($info['body']);
|
echo \Michelf\MarkdownExtra::defaultTransform($info['body']);
|
||||||
echo '</div>';
|
echo '</div>';
|
||||||
echo '<p><strong>Important:</strong> Please always backup your files before upgrading to newer version.</p>';
|
echo '<p><strong>Important:</strong> Please always backup your files before upgrading to newer version.</p>';
|
||||||
|
|
@ -26,7 +26,7 @@ if ($updater->able()) {
|
||||||
echo '<p>Release Title: <strong>'. $info['name'] .'</strong></p>';
|
echo '<p>Release Title: <strong>'. $info['name'] .'</strong></p>';
|
||||||
echo '<p>Installed Version: <strong>'. $info['tag_name'] .'</strong></p>';
|
echo '<p>Installed Version: <strong>'. $info['tag_name'] .'</strong></p>';
|
||||||
echo '<h4>Release Notes: </h4>';
|
echo '<h4>Release Notes: </h4>';
|
||||||
echo '<div style="background-color:#f9f9f9;border:1px solid #ccc;border-radius:4px;color:#333;display:block;font-size:13px;line-height:1.42857;margin:20px 0;padding:0 1em;word-break:break-all;word-wrap:break-word;">';
|
echo '<div style="background-color:#f9f9f9;border:1px solid #ccc;border-radius:4px;color:#333;display:block;font-size:13px;margin:20px 0;padding:0 1em;">';
|
||||||
echo \Michelf\MarkdownExtra::defaultTransform($info['body']);
|
echo \Michelf\MarkdownExtra::defaultTransform($info['body']);
|
||||||
echo '</div>';
|
echo '</div>';
|
||||||
echo '<p>Read on <a target="_blank" href="' . $info['html_url'] . '">Github</a>.</p>';
|
echo '<p>Read on <a target="_blank" href="' . $info['html_url'] . '">Github</a>.</p>';
|
||||||
|
|
|
||||||
|
|
@ -1229,7 +1229,7 @@ get('/tag/:tag', function ($tag) {
|
||||||
render('main', array(
|
render('main', array(
|
||||||
'title' => 'Posts tagged: ' . tag_i18n($tag) . ' - ' . blog_title(),
|
'title' => 'Posts tagged: ' . tag_i18n($tag) . ' - ' . blog_title(),
|
||||||
'description' => 'All posts tagged: ' . tag_i18n($tag) . ' on ' . blog_title() . '.',
|
'description' => 'All posts tagged: ' . tag_i18n($tag) . ' on ' . blog_title() . '.',
|
||||||
'canonical' => site_url() . 'tag/' . $tag,
|
'canonical' => site_url() . 'tag/' . strtolower($tag),
|
||||||
'page' => $page,
|
'page' => $page,
|
||||||
'posts' => $posts,
|
'posts' => $posts,
|
||||||
'bodyclass' => 'intag',
|
'bodyclass' => 'intag',
|
||||||
|
|
@ -1312,7 +1312,7 @@ get('/search/:keyword', function ($keyword) {
|
||||||
render('main', array(
|
render('main', array(
|
||||||
'title' => 'Search results for: ' . tag_i18n($keyword) . ' - ' . blog_title(),
|
'title' => 'Search results for: ' . tag_i18n($keyword) . ' - ' . blog_title(),
|
||||||
'description' => 'Search results for: ' . tag_i18n($keyword) . ' on ' . blog_title() . '.',
|
'description' => 'Search results for: ' . tag_i18n($keyword) . ' on ' . blog_title() . '.',
|
||||||
'canonical' => site_url() . 'search/' . $keyword,
|
'canonical' => site_url() . 'search/' . strtolower($keyword),
|
||||||
'page' => $page,
|
'page' => $page,
|
||||||
'posts' => $posts,
|
'posts' => $posts,
|
||||||
'bodyclass' => 'insearch',
|
'bodyclass' => 'insearch',
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue