diff --git a/bl-plugins/latest-pages/languages/en.json b/bl-plugins/latest-pages/languages/en.json index 5b01d963..1e010ef4 100644 --- a/bl-plugins/latest-pages/languages/en.json +++ b/bl-plugins/latest-pages/languages/en.json @@ -1,7 +1,7 @@ { - "plugin-data": - { - "name": "Latest pages", - "description": "Shows the latest published pages." - } + "plugin-data": + { + "name": "Last pages", + "description": "Shows the last pages in the dashboard." + } } \ No newline at end of file diff --git a/bl-plugins/latest-pages/metadata.json b/bl-plugins/latest-pages/metadata.json index c287c379..86d3ed60 100644 --- a/bl-plugins/latest-pages/metadata.json +++ b/bl-plugins/latest-pages/metadata.json @@ -1,11 +1,11 @@ { - "author": "Bludit", - "email": "", - "website": "https://plugins.bludit.com", - "version": "4.0.0", - "releaseDate": "2021-03-02", - "license": "MIT", - "compatible": "4.0", - "type": "dashboard", - "notes": "" + "author": "Bludit", + "email": "", + "website": "https://plugins.bludit.com", + "version": "4.0.0", + "releaseDate": "2021-03-02", + "license": "MIT", + "compatible": "4.0", + "type": "dashboard", + "notes": "" } \ No newline at end of file diff --git a/bl-plugins/latest-pages/plugin.php b/bl-plugins/latest-pages/plugin.php index 97a3d242..3420fa5b 100644 --- a/bl-plugins/latest-pages/plugin.php +++ b/bl-plugins/latest-pages/plugin.php @@ -2,31 +2,31 @@ class pluginLatestPages extends Plugin { - public function dashboard() - { - global $L; - global $pages; + public function dashboard() + { + global $L; + global $pages; - $html = '
'; - $html .= '

Latest pages

'; - $html .= '
'; - $tmp = $pages->getList(1, 5); - foreach ($tmp as $key) { - $page = buildPage($key); - $html .= ''; - $html .= '
'; - $html .= '
'; - $html .= '
'.($page->title() ? $page->title() : '' . $L->g('Empty title') . ' ').'
'; - $html .= '

Category: '.($page->category() ? $page->category() : $L->get('uncategorized')).'

'; - $html .= '
'; - $html .= ''.$page->relativeTime().''; - $html .= '
'; - $html .= '
'; - } - $html .= '
'; - $html .= '
'; + $html = '
'; + $html .= '

Latest pages

'; + $html .= '
'; + $tmp = $pages->getList(1, 5); + foreach ($tmp as $key) { + $page = buildPage($key); + $html .= ''; + $html .= '
'; + $html .= '
'; + $html .= '
'.($page->title() ? $page->title() : '' . $L->g('Empty title') . ' ').'
'; + $html .= '

Category: '.($page->category() ? $page->category() : $L->get('uncategorized')).'

'; + $html .= '
'; + $html .= ''.$page->relativeTime().''; + $html .= '
'; + $html .= '
'; + } + $html .= '
'; + $html .= '
'; - return $html; - } + return $html; + } } \ No newline at end of file diff --git a/bl-plugins/visits-stats/languages/en.json b/bl-plugins/visits-stats/languages/en.json index 2788f570..19abdde1 100644 --- a/bl-plugins/visits-stats/languages/en.json +++ b/bl-plugins/visits-stats/languages/en.json @@ -2,7 +2,7 @@ "plugin-data": { "name": "Visits Stats", - "description": "Shows the number of visits and unique visitors." + "description": "Shows the number of visits and unique visitors in the dashboard." }, "visits": "Visits", "visitors": "Visitors",