Browse Source

Translate string

pull/663/head
danpros 2 years ago
parent
commit
bc12476038
2 changed files with 5 additions and 5 deletions
  1. +3
    -3
      system/htmly.php
  2. +2
    -2
      system/includes/functions.php

+ 3
- 3
system/htmly.php View File

@ -2972,8 +2972,8 @@ get('/:static/:sub', function ($static, $sub) {
header("location: $redir", TRUE, 301); header("location: $redir", TRUE, 301);
} }
$father_post = get_static_post($static);
if (!$father_post) {
$parent_post = get_static_post($static);
if (!$parent_post) {
not_found(); not_found();
} }
$post = get_static_sub_post($static, $sub); $post = get_static_sub_post($static, $sub);
@ -3020,7 +3020,7 @@ get('/:static/:sub', function ($static, $sub) {
'description' => $post->description, 'description' => $post->description,
'canonical' => $post->url, 'canonical' => $post->url,
'bodyclass' => 'in-page ' . strtolower($static) . ' ' . strtolower($sub) , 'bodyclass' => 'in-page ' . strtolower($static) . ' ' . strtolower($sub) ,
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> &#187; <a href="' . $father_post[0]->url . '">' . $father_post[0]->title . '</a> &#187; ' . $post->title,
'breadcrumb' => '<a href="' . site_url() . '">' . config('breadcrumb.home') . '</a> &#187; <a href="' . $parent_post[0]->url . '">' . $parent_post[0]->title . '</a> &#187; ' . $post->title,
'p' => $post, 'p' => $post,
'type' => 'subPage', 'type' => 'subPage',
'is_subpage' => true, 'is_subpage' => true,


+ 2
- 2
system/includes/functions.php View File

@ -1959,10 +1959,10 @@ function tab($p)
$role = user('role', $user); $role = user('role', $user);
if (isset($p->author)) { if (isset($p->author)) {
if ($user === $p->author || $role === 'admin') { if ($user === $p->author || $role === 'admin') {
echo '<div class="tab"><ul class="nav nav-tabs"><li role="presentation" class="active"><a href="' . $p->url . '">View</a></li><li><a href="' . $p->url . '/edit?destination=post">Edit</a></li></ul></div>';
echo '<div class="tab"><ul class="nav nav-tabs"><li role="presentation" class="active"><a href="' . $p->url . '">' . i18n('View') .'</a></li><li><a href="' . $p->url . '/edit?destination=post">'. i18n('Edit') .'</a></li></ul></div>';
} }
} else { } else {
echo '<div class="tab"><ul class="nav nav-tabs"><li role="presentation" class="active"><a href="' . $p->url . '">View</a></li><li><a href="' . $p->url . '/edit?destination=post">Edit</a></li></ul></div>';
echo '<div class="tab"><ul class="nav nav-tabs"><li role="presentation" class="active"><a href="' . $p->url . '">' . i18n('View') .'</a></li><li><a href="' . $p->url . '/edit?destination=post">'. i18n('Edit') .'</a></li></ul></div>';
} }
} }


Loading…
Cancel
Save