mirror of
https://github.com/danpros/htmly.git
synced 2026-04-20 20:46:26 +05:30
Permalink without year-month
This commit is contained in:
parent
f83e54e786
commit
26a1a97082
10 changed files with 491 additions and 21 deletions
|
|
@ -34,9 +34,13 @@ $time = new DateTime($t);
|
|||
$timestamp = $time->format("Y-m-d H:i:s");
|
||||
// The post date
|
||||
$postdate = strtotime($timestamp);
|
||||
// The post URL
|
||||
$delete = site_url() . date('Y/m', $postdate) . '/' . $oldmd . '/delete?destination=' . $destination;
|
||||
|
||||
if (config('permalink.type') == 'post') {
|
||||
$delete = site_url() . 'post/' . $oldmd . '/delete?destination=' . $destination;
|
||||
} else {
|
||||
// The post URL
|
||||
$delete = site_url() . date('Y/m', $postdate) . '/' . $oldmd . '/delete?destination=' . $destination;
|
||||
}
|
||||
?>
|
||||
<link rel="stylesheet" type="text/css" href="<?php echo site_url() ?>system/admin/editor/css/editor.css"/>
|
||||
<script src="<?php echo site_url() ?>system/resources/js/jquery.min.js"></script>
|
||||
|
|
|
|||
|
|
@ -35,8 +35,12 @@ $timestamp = $time->format("Y-m-d H:i:s");
|
|||
// The post date
|
||||
$postdate = strtotime($timestamp);
|
||||
// The post URL
|
||||
$delete = site_url() . date('Y/m', $postdate) . '/' . $oldmd . '/delete?destination=' . $destination;
|
||||
|
||||
if (config('permalink.type') == 'post') {
|
||||
$delete = site_url() . 'post/' . $oldmd . '/delete?destination=' . $destination;
|
||||
} else {
|
||||
// The post URL
|
||||
$delete = site_url() . date('Y/m', $postdate) . '/' . $oldmd . '/delete?destination=' . $destination;
|
||||
}
|
||||
?>
|
||||
<link rel="stylesheet" type="text/css" href="<?php echo site_url() ?>system/admin/editor/css/editor.css"/>
|
||||
<script src="<?php echo site_url() ?>system/resources/js/jquery.min.js"></script>
|
||||
|
|
|
|||
|
|
@ -35,7 +35,12 @@ $timestamp = $time->format("Y-m-d H:i:s");
|
|||
// The post date
|
||||
$postdate = strtotime($timestamp);
|
||||
// The post URL
|
||||
$delete = site_url() . date('Y/m', $postdate) . '/' . $oldmd . '/delete?destination=' . $destination;
|
||||
if (config('permalink.type') == 'post') {
|
||||
$delete = site_url() . 'post/' . $oldmd . '/delete?destination=' . $destination;
|
||||
} else {
|
||||
// The post URL
|
||||
$delete = site_url() . date('Y/m', $postdate) . '/' . $oldmd . '/delete?destination=' . $destination;
|
||||
}
|
||||
|
||||
?>
|
||||
<link rel="stylesheet" type="text/css" href="<?php echo site_url() ?>system/admin/editor/css/editor.css"/>
|
||||
|
|
|
|||
|
|
@ -34,7 +34,12 @@ $timestamp = $time->format("Y-m-d H:i:s");
|
|||
// The post date
|
||||
$postdate = strtotime($timestamp);
|
||||
// The post URL
|
||||
$delete = site_url() . date('Y/m', $postdate) . '/' . $oldmd . '/delete?destination=' . $destination;
|
||||
if (config('permalink.type') == 'post') {
|
||||
$delete = site_url() . 'post/' . $oldmd . '/delete?destination=' . $destination;
|
||||
} else {
|
||||
// The post URL
|
||||
$delete = site_url() . date('Y/m', $postdate) . '/' . $oldmd . '/delete?destination=' . $destination;
|
||||
}
|
||||
|
||||
?>
|
||||
<link rel="stylesheet" type="text/css" href="<?php echo site_url() ?>system/admin/editor/css/editor.css"/>
|
||||
|
|
|
|||
|
|
@ -35,7 +35,12 @@ $timestamp = $time->format("Y-m-d H:i:s");
|
|||
// The post date
|
||||
$postdate = strtotime($timestamp);
|
||||
// The post URL
|
||||
$delete = site_url() . date('Y/m', $postdate) . '/' . $oldmd . '/delete?destination=' . $destination;
|
||||
if (config('permalink.type') == 'post') {
|
||||
$delete = site_url() . 'post/' . $oldmd . '/delete?destination=' . $destination;
|
||||
} else {
|
||||
// The post URL
|
||||
$delete = site_url() . date('Y/m', $postdate) . '/' . $oldmd . '/delete?destination=' . $destination;
|
||||
}
|
||||
|
||||
?>
|
||||
<link rel="stylesheet" type="text/css" href="<?php echo site_url() ?>system/admin/editor/css/editor.css"/>
|
||||
|
|
|
|||
|
|
@ -36,7 +36,12 @@ $timestamp = $time->format("Y-m-d H:i:s");
|
|||
// The post date
|
||||
$postdate = strtotime($timestamp);
|
||||
// The post URL
|
||||
$delete = site_url() . date('Y/m', $postdate) . '/' . $oldmd . '/delete?destination=' . $destination;
|
||||
if (config('permalink.type') == 'post') {
|
||||
$delete = site_url() . 'post/' . $oldmd . '/delete?destination=' . $destination;
|
||||
} else {
|
||||
// The post URL
|
||||
$delete = site_url() . date('Y/m', $postdate) . '/' . $oldmd . '/delete?destination=' . $destination;
|
||||
}
|
||||
|
||||
?>
|
||||
<link rel="stylesheet" type="text/css" href="<?php echo site_url() ?>system/admin/editor/css/editor.css"/>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue