mirror of
https://github.com/danpros/htmly.git
synced 2026-04-22 13:36:22 +05:30
Content Type
Trying to add content type: image, video, audio, link, and quote. No styling yet.
This commit is contained in:
parent
01c3a98824
commit
dd6942e439
27 changed files with 3011 additions and 105 deletions
|
|
@ -7,6 +7,7 @@ if (isset($p->file)) {
|
|||
}
|
||||
$content = file_get_contents($url);
|
||||
$oldtitle = get_content_tag('t', $content, 'Untitled');
|
||||
$olddescription = get_content_tag('d', $content);
|
||||
$oldcontent = remove_html_comments($content);
|
||||
|
||||
if (isset($_GET['destination'])) {
|
||||
|
|
@ -18,7 +19,17 @@ $dir = substr($url, 0, strrpos($url, '/'));
|
|||
$oldurl = str_replace($dir . '/', '', $url);
|
||||
$oldmd = str_replace('.md', '', $oldurl);
|
||||
|
||||
$delete = $p->url . '/delete?destination=' . $destination;
|
||||
if (isset($p->url)) {
|
||||
$delete = $p->url . '/delete?destination=' . $destination;
|
||||
}
|
||||
else {
|
||||
if(empty($sub)) {
|
||||
$delete = site_url() . $oldmd . '/delete?destination=' . $destination;
|
||||
}
|
||||
else {
|
||||
$delete = site_url() . $static .'/'. $sub . '/delete?destination=' . $destination;
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
<link rel="stylesheet" type="text/css" href="<?php echo site_url() ?>system/admin/editor/css/editor.css"/>
|
||||
|
|
@ -46,9 +57,8 @@ $delete = $p->url . '/delete?destination=' . $destination;
|
|||
<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)) {
|
||||
echo $p->description;
|
||||
} ?></textarea>
|
||||
} else {echo $olddescription;}?></textarea>
|
||||
<br><br>
|
||||
|
||||
<div id="wmd-button-bar" class="wmd-button-bar"></div>
|
||||
<textarea id="wmd-input" class="wmd-input <?php if (isset($postContent)) {
|
||||
if (empty($postContent)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue