From 594d6fd51d706c6a65ba1c96df2054542330b19f Mon Sep 17 00:00:00 2001 From: Awilum Date: Sat, 8 Feb 2014 14:05:52 +0200 Subject: [PATCH 1/2] Monstra Dashboard #204 --- plugins/box/dashboard/dashboard.admin.php | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/plugins/box/dashboard/dashboard.admin.php b/plugins/box/dashboard/dashboard.admin.php index df80d29..9beec0b 100644 --- a/plugins/box/dashboard/dashboard.admin.php +++ b/plugins/box/dashboard/dashboard.admin.php @@ -78,8 +78,29 @@ class DashboardAdmin extends Backend class Dashboard { + + /** + * Items + * + * @var array + */ + public static $items = array(); + + + /** + * + */ public static function addNewItem() { + Dashboard::$items[] = array( + 'name' => (string) $name, + 'url' => (string) $url, + ); + } + + public static function drawItems() + { } + } \ No newline at end of file From a1c7aa1d461d36472ae99d11b79e40a7df3442a7 Mon Sep 17 00:00:00 2001 From: Awilum Date: Sat, 8 Feb 2014 14:08:51 +0200 Subject: [PATCH 2/2] Plugins. README.MD #167 --- .../box/plugins/views/backend/index.view.php | 26 ++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/plugins/box/plugins/views/backend/index.view.php b/plugins/box/plugins/views/backend/index.view.php index 0c8465b..23fd3c5 100755 --- a/plugins/box/plugins/views/backend/index.view.php +++ b/plugins/box/plugins/views/backend/index.view.php @@ -41,10 +41,14 @@
+ 'btn btn-info', 'data-toggle' => 'modal', 'data-target' => '#readme')); + ?> 'btn btn-danger', 'onclick' => "return confirmDelete('".__('Delete plugin :plugin', 'plugins', array(':plugin' => $plugin['title']))."')")); - ?> + ?>
@@ -99,3 +103,23 @@ + + + + \ No newline at end of file