include words to the translations
This commit is contained in:
parent
9af6f81b2f
commit
e584226387
3 changed files with 11 additions and 10 deletions
|
@ -66,7 +66,7 @@
|
||||||
<div class="d-flex align-items-center mb-4">
|
<div class="d-flex align-items-center mb-4">
|
||||||
<h2 class="m-0"><i class="bi bi-folder"></i><?php $L->p('Content') ?></h2>
|
<h2 class="m-0"><i class="bi bi-folder"></i><?php $L->p('Content') ?></h2>
|
||||||
<div class="ms-auto">
|
<div class="ms-auto">
|
||||||
<a id="btnNew" class="btn btn-primary btn-sm" href="<?php echo HTML_PATH_ADMIN_ROOT . 'editor' ?>" role="button"><i class="bi bi-plus-circle"></i><?php $L->p('Add a new page') ?></a>
|
<a id="btnNew" class="btn btn-primary btn-sm" href="<?php echo HTML_PATH_ADMIN_ROOT . 'editor' ?>" role="button"><i class="bi bi-plus-circle"></i><?php $L->p('New content') ?></a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -228,7 +228,7 @@ function table($type)
|
||||||
<!-- Tabs -->
|
<!-- Tabs -->
|
||||||
<ul class="nav nav-tabs ps-3" role="tablist">
|
<ul class="nav nav-tabs ps-3" role="tablist">
|
||||||
<li class="nav-item">
|
<li class="nav-item">
|
||||||
<a class="nav-link active" id="pages-tab" data-bs-toggle="tab" href="#pages" role="tab" aria-controls="pages" aria-selected="true"><?php $L->p('Pages') ?></a>
|
<a class="nav-link active" id="standard-tab" data-bs-toggle="tab" href="#standard" role="tab" aria-controls="standard" aria-selected="true"><?php $L->p('Standard') ?></a>
|
||||||
</li>
|
</li>
|
||||||
<li class="nav-item">
|
<li class="nav-item">
|
||||||
<a class="nav-link" id="static-tab" data-bs-toggle="tab" href="#static" role="tab" aria-controls="static" aria-selected="true"><?php $L->p('Static') ?></a>
|
<a class="nav-link" id="static-tab" data-bs-toggle="tab" href="#static" role="tab" aria-controls="static" aria-selected="true"><?php $L->p('Static') ?></a>
|
||||||
|
@ -256,7 +256,7 @@ function table($type)
|
||||||
<div class="tab-content">
|
<div class="tab-content">
|
||||||
|
|
||||||
<!-- Tab pages -->
|
<!-- Tab pages -->
|
||||||
<div class="tab-pane show active" id="pages" role="tabpanel">
|
<div class="tab-pane show active" id="standard" role="tabpanel">
|
||||||
<?php table('published'); ?>
|
<?php table('published'); ?>
|
||||||
|
|
||||||
<!-- Paginator -->
|
<!-- Paginator -->
|
||||||
|
|
|
@ -393,5 +393,6 @@
|
||||||
"dashboard-plugins": "Dashboard plugins",
|
"dashboard-plugins": "Dashboard plugins",
|
||||||
"powered-by-bludit": "Powered by <a href='https:\/\/www.bludit.com'>Bludit</a>",
|
"powered-by-bludit": "Powered by <a href='https:\/\/www.bludit.com'>Bludit</a>",
|
||||||
"build-number": "Build Number",
|
"build-number": "Build Number",
|
||||||
"disk-usage": "Disk usage"
|
"disk-usage": "Disk usage",
|
||||||
|
"standard": "Standard"
|
||||||
}
|
}
|
||||||
|
|
|
@ -45,10 +45,10 @@ class pluginVisitsStats extends Plugin {
|
||||||
|
|
||||||
$labels = "'" . implode("','", $days) . "'";
|
$labels = "'" . implode("','", $days) . "'";
|
||||||
$seriesVisits = implode(',', $visits);
|
$seriesVisits = implode(',', $visits);
|
||||||
$seriesUnique = implode(',', $unique);
|
$seriesVisitors = implode(',', $unique);
|
||||||
|
|
||||||
$labelVisits = $L->g('Visits');
|
$labelVisits = $L->g('Visits');
|
||||||
$labelUnique = $L->g('Unique');
|
$labelVisitors = $L->g('Visitors');
|
||||||
|
|
||||||
return <<<EOF
|
return <<<EOF
|
||||||
<div class="pluginVisitsStats mt-4 mb-4 pb-4 border-bottom">
|
<div class="pluginVisitsStats mt-4 mb-4 pb-4 border-bottom">
|
||||||
|
@ -65,12 +65,12 @@ new Chart(ctx, {
|
||||||
datasets: [{
|
datasets: [{
|
||||||
backgroundColor: 'rgb(13,110,253)',
|
backgroundColor: 'rgb(13,110,253)',
|
||||||
borderColor: 'rgb(13,110,253)',
|
borderColor: 'rgb(13,110,253)',
|
||||||
label: '$labelUnique',
|
label: '$labelVisitors',
|
||||||
data: [$seriesUnique]
|
data: [$seriesVisitors]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
backgroundColor: 'rgb(61,139,253)',
|
backgroundColor: 'rgb(255, 210, 7)',
|
||||||
borderColor: 'rgb(61,139,253)',
|
borderColor: 'rgb(255, 210, 7)',
|
||||||
label: '$labelVisits',
|
label: '$labelVisits',
|
||||||
data: [$seriesVisits]
|
data: [$seriesVisits]
|
||||||
}]
|
}]
|
||||||
|
|
Loading…
Add table
Reference in a new issue