mirror of
https://github.com/danpros/htmly.git
synced 2026-04-19 03:56:21 +05:30
Fix parent link
This commit is contained in:
parent
8d142b7f37
commit
0d0195c247
3 changed files with 4 additions and 4 deletions
|
|
@ -55,7 +55,7 @@ $(function() {
|
|||
<span><a target="_blank" href="<?php echo $sp->url;?>"><?php echo $sp->title;?></a></span>
|
||||
</div>
|
||||
<div class="col-sm">
|
||||
<span><a class="btn btn-primary btn-xs" href="<?php echo $sp->url;?>/edit?destination=admin/pages"><?php echo i18n('Edit');?></a> <a class="btn btn-danger btn-xs" href="<?php echo $sp->url;?>/delete?destination=admin/pages"><?php echo i18n('Delete');?></a></span>
|
||||
<span><a class="btn btn-primary btn-xs" href="<?php echo $sp->url;?>/edit?destination=admin/pages/<?php echo $sp->parent;?>"><?php echo i18n('Edit');?></a> <a class="btn btn-danger btn-xs" href="<?php echo $sp->url;?>/delete?destination=admin/pages/<?php echo $sp->parent;?>"><?php echo i18n('Delete');?></a></span>
|
||||
</div>
|
||||
</div>
|
||||
<?php endforeach;?>
|
||||
|
|
|
|||
|
|
@ -1168,7 +1168,7 @@ get('/admin/pages/:static', function ($static)
|
|||
'description' => $post->description,
|
||||
'canonical' => $post->url,
|
||||
'bodyclass' => 'in-page ' . strtolower($static),
|
||||
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> » ' . '<a href="'. site_url() .'admin/pages">Pages</a> » ' . $post->title,
|
||||
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> » ' . '<a href="'. site_url() .'admin/pages">' .i18n('pages').'</a> » ' . $post->title,
|
||||
'p' => $post,
|
||||
'static' => $post,
|
||||
'type' => 'staticSubpage',
|
||||
|
|
@ -3207,7 +3207,7 @@ get('/:static/edit', function ($static) {
|
|||
'canonical' => site_url(),
|
||||
'bodyclass' => 'edit-page',
|
||||
'is_admin' => true,
|
||||
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> » ' . $post->title,
|
||||
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> » <a href="'. site_url() .'admin/pages">' .i18n('pages').'</a> » ' . $post->title,
|
||||
'p' => $post,
|
||||
'static' => $post,
|
||||
'type' => 'staticPage',
|
||||
|
|
|
|||
|
|
@ -628,7 +628,7 @@ function get_subpages($sub_pages, $page = 1, $perpage = 0)
|
|||
|
||||
$post->md = $v['basename'];
|
||||
$post->slug = $url;
|
||||
$post->parent = $fd;
|
||||
$post->parent = $static;
|
||||
|
||||
// Get the contents and convert it to HTML
|
||||
$content = file_get_contents($post->file);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue