Merge branch 'v4.0' of github.com:bludit/bludit into v4.0

This commit is contained in:
Diego Najar 2021-09-14 17:38:26 +02:00
commit 5ccd35544b
6 changed files with 33 additions and 8 deletions

View file

@ -151,7 +151,7 @@ function table($type)
';
if (count($page->children()) == 0) {
echo '<span class="link btnDeletePage" data-key="' . $page->key() . '">Delete</span>';
echo '<span class="link btnDeletePage" data-key="' . $page->key() . '">' . $L->g('Delete') . '</span>';
}
echo '
@ -174,7 +174,7 @@ function table($type)
<div class="mt-1">
<a class="me-2" target="_blank" href="' . $child->permalink() . '">' . $L->g('View') . '</a>
<a class="me-2" href="' . HTML_PATH_ADMIN_ROOT . 'editor/' . $child->key() . '">' . $L->g('Edit') . '</a>
<span class="link btnDeletePage" data-key="' . $child->key() . '">Delete</span>
<span class="link btnDeletePage" data-key="' . $child->key() . '">' . $L->g('Delete') . '</span>
</div>
</td>';
@ -202,7 +202,7 @@ function table($type)
<div class="mt-1">
<a class="me-2" target="_blank" href="' . $page->permalink() . '">' . $L->g('View') . '</a>
<a class="me-2" href="' . HTML_PATH_ADMIN_ROOT . 'editor/' . $page->key() . '">' . $L->g('Edit') . '</a>
<span class="link btnDeletePage" data-key="' . $page->key() . '">Delete</span>
<span class="link btnDeletePage" data-key="' . $page->key() . '">' . $L->g('Delete') . '</span>
</div>
</td>';

View file

@ -0,0 +1,8 @@
{
"plugin-data":
{
"name": "Neueste Seiten",
"description": "Zeigt die neuesten Seiten im Dashbord an."
},
"latest-pages": "Neueste Seiten"
}

View file

@ -0,0 +1,8 @@
{
"plugin-data":
{
"name": "Neueste Seiten",
"description": "Zeigt die neuesten Seiten im Dashbord an."
},
"latest-pages": "Neueste Seiten"
}

View file

@ -0,0 +1,8 @@
{
"plugin-data":
{
"name": "Neueste Seiten",
"description": "Zeigt die neuesten Seiten im Dashbord an."
},
"latest-pages": "Neueste Seiten"
}

View file

@ -3,5 +3,6 @@
{
"name": "Last pages",
"description": "Shows the last pages in the dashboard."
}
}
},
"latest-pages": "Latest pages"
}

View file

@ -8,7 +8,7 @@ class pluginLatestPages extends Plugin {
global $pages;
$html = '<div class="pluginLatestPages mt-4 mb-4 pb-4 border-bottom">';
$html .= '<h3 class="m-0 p-0 pb-3"><i class="bi bi-pencil-square"></i>Latest pages</h3>';
$html .= '<h3 class="m-0 p-0 pb-3"><i class="bi bi-pencil-square"></i>' . $L->g('Latest pages') . '</h3>';
$html .= '<div class="list-group">';
$tmp = $pages->getList(1, 5);
foreach ($tmp as $key) {
@ -17,7 +17,7 @@ class pluginLatestPages extends Plugin {
$html .= '<div class="d-flex gap-2 w-100 justify-content-between">';
$html .= '<div>';
$html .= '<h6 class="mb-0">'.($page->title() ? $page->title() : '<span class="text-muted">' . $L->g('Empty title') . '</span> ').'</h6>';
$html .= '<p class="mb-0 opacity-75">Category: '.($page->category() ? $page->category() : $L->get('uncategorized')).'</p>';
$html .= '<p class="mb-0 opacity-75">' . $L->g('Category') . ': '.($page->category() ? $page->category() : $L->get('uncategorized')).'</p>';
$html .= '</div>';
$html .= '<small class="opacity-50 text-nowrap">'.$page->relativeTime().'</small>';
$html .= '</div>';
@ -29,4 +29,4 @@ class pluginLatestPages extends Plugin {
return $html;
}
}
}