diff --git a/bl-kernel/admin/views/dashboard.php b/bl-kernel/admin/views/dashboard.php
index 76360a47..ec53cc4c 100644
--- a/bl-kernel/admin/views/dashboard.php
+++ b/bl-kernel/admin/views/dashboard.php
@@ -98,24 +98,15 @@
-
-
p('Scheduled content') ?>
-
- getScheduledDB();
- if( empty($scheduledPages) ) {
- echo '- '.$Language->g('There are no scheduled content').'
';
- }
- else {
- $keys = array_keys($scheduledPages);
- foreach($keys as $key) {
- $page = buildPage($key);
- echo '- '.$page->dateRaw(SCHEDULED_DATE_FORMAT).''.($page->title()?$page->title():'['.$Language->g('Empty title').'] ').'
';
- }
- }
+ ';
+ echo ''.$SimpleStats->getValue('label').'
';
+ echo $SimpleStats->dashboard();
+ echo '
';
+ }
?>
-
-
+
p('Statistics') ?>
@@ -140,6 +131,25 @@
+
+
p('Scheduled content') ?>
+
+
+
p('Draft content') ?>
diff --git a/bl-kernel/functions.php b/bl-kernel/functions.php
index 3d07b8ed..e1441a98 100644
--- a/bl-kernel/functions.php
+++ b/bl-kernel/functions.php
@@ -251,6 +251,16 @@ function buildAllpages($publishedPages=true, $staticPages=true, $draftPages=true
return $tmp;
}
+function getPlugin($pluginName) {
+ global $plugins;
+
+ if (pluginEnabled($pluginName)) {
+ $pluginClass = 'plugin'.Text::firstCharUp($pluginName);
+ return $plugins['all'][$pluginClass];
+ }
+ return false;
+}
+
// Returns TRUE if the plugin is enabled, FALSE otherwise
function pluginEnabled($pluginName) {
global $plugins;