diff --git a/main/inc/lib/dashboard.lib.php b/main/inc/lib/dashboard.lib.php index 75818cba2b..6405b09520 100755 --- a/main/inc/lib/dashboard.lib.php +++ b/main/inc/lib/dashboard.lib.php @@ -512,24 +512,7 @@ class DashboardManager */ public static function get_links_for_styles_from_dashboard_plugins() { - $possible_paths = self::get_posible_dashboard_plugins_path(); - $enabled_blocks = self::get_enabled_dashboard_blocks(); - $links = ''; - foreach ($enabled_blocks as $block) { - $path = $block['path']; - $dashboard_plugin_path = api_get_path(SYS_PLUGIN_PATH).'dashboard/'.$path.'/css/'; - if (is_dir($dashboard_plugin_path)) { - $handle = @opendir($dashboard_plugin_path); - while (false !== ($file = readdir($handle))) { - if ($file <> '.' AND $file <> '..') { - $src = api_get_path(WEB_PLUGIN_PATH).'dashboard/'.$path.'/css/'.$file; - $links .= ''.PHP_EOL; - } - } - @closedir($handle); - } - } - return $links; + return ''.PHP_EOL; } } diff --git a/plugin/dashboard/block_course/css/default.css b/plugin/dashboard/block_course/css/default.css deleted file mode 100755 index 0838548929..0000000000 --- a/plugin/dashboard/block_course/css/default.css +++ /dev/null @@ -1,79 +0,0 @@ -/* Colors */ -.color-yellow {background:#f2bc00;} -.color-red {background:#dd0000;} -.color-blue {background:#148ea4;} -.color-white {background:#dfdfdf;} -.color-orange {background:#f66e00;} -.color-green {background:#8dc100;} -.color-yellow h3, -.color-white h3, -.color-green h3 - {color:#000;} -.color-red h3, -.color-blue h3, -.color-orange h3 - {color:#FFF;} -/* End Colors */ - -//#columns #column1 .widget { margin: 30px 35px 0 25px; } -//#columns #column3 .widget { margin: 30px 25px 0 35px; } - -.widget { - margin: 30px 20px 0 20px; - padding: 2px; - -moz-border-radius: 4px; - -webkit-border-radius: 4px; -} -.widget .widget-head { - color: #000; - overflow: hidden; - width: 100%; - height: 30px; - line-height: 10px; -} -.widget .widget-head h3 { - padding: 0 5px; - float: left; - margin: 0px; -} -.widget .widget-content { - background: #FFF url(img/widget-content-bg.png) repeat-x; - padding: 0 5px; - color: #000; - -moz-border-radius-bottomleft: 2px; - -moz-border-radius-bottomright: 2px; - -webkit-border-bottom-left-radius: 2px; - -webkit-border-bottom-right-radius: 2px; - line-height: 1.2em; - overflow: hidden; -} -.widget .widget-content p { - padding: 0.8em 0; - border-bottom: 1px solid #666; -} -.widget .widget-content pre { - padding: 0.5em 5px; - color: #EEE; - font-size: 12px; -} -.widget .widget-content ul { - padding: 5px 0 5px 20px; - list-style: disc; -} -.widget .widget-content ul li {padding: 3px 0;} -.widget .widget-content ul.images { - padding: 7px 0 0 0; - list-style: none; - height: 1%; -} -.widget .widget-content ul.images li { - display: inline; - float: left; -} -.widget .widget-content ul.images img { - display: inline; - float: left; - margin: 0 0 7px 7px; -} - -.widget-actions {text-align:right;margin-right:5px;margin-top:5px;} diff --git a/plugin/dashboard/block_course/css/index.html b/plugin/dashboard/block_course/css/index.html deleted file mode 100755 index 8e464d8ce3..0000000000 --- a/plugin/dashboard/block_course/css/index.html +++ /dev/null @@ -1,8 +0,0 @@ - - - - - -
- - \ No newline at end of file diff --git a/plugin/dashboard/block_daily/css/default.css b/plugin/dashboard/block_daily/css/default.css deleted file mode 100755 index 04e46d3039..0000000000 --- a/plugin/dashboard/block_daily/css/default.css +++ /dev/null @@ -1,78 +0,0 @@ -/* Colors */ -.color-yellow {background:#f2bc00;} -.color-red {background:#dd0000;} -.color-blue {background:#148ea4;} -.color-white {background:#dfdfdf;} -.color-orange {background:#f66e00;} -.color-green {background:#8dc100;} -.color-yellow h3, -.color-white h3, -.color-green h3 - {color:#000;} -.color-red h3, -.color-blue h3, -.color-orange h3 - {color:#FFF;} -/* End Colors */ - -//#columns #column1 .widget { margin: 30px 35px 0 25px; } -//#columns #column3 .widget { margin: 30px 25px 0 35px; } - -.widget { - margin: 30px 20px 0 20px; - padding: 2px; - -moz-border-radius: 4px; - -webkit-border-radius: 4px; -} -.widget .widget-head { - color: #000; - overflow: hidden; - width: 100%; - height: 30px; - line-height: 30px; -} -.widget .widget-head h3 { - padding: 0 5px; - float: left; -} -.widget .widget-content { - background: #FFF url(img/widget-content-bg.png) repeat-x; - padding: 0 5px; - color: #000; - -moz-border-radius-bottomleft: 2px; - -moz-border-radius-bottomright: 2px; - -webkit-border-bottom-left-radius: 2px; - -webkit-border-bottom-right-radius: 2px; - line-height: 1.2em; - overflow: hidden; -} -.widget .widget-content p { - padding: 0.8em 0; - border-bottom: 1px solid #666; -} -.widget .widget-content pre { - padding: 0.5em 5px; - color: #EEE; - font-size: 12px; -} -.widget .widget-content ul { - padding: 5px 0 5px 20px; - list-style: disc; -} -.widget .widget-content ul li {padding: 3px 0;} -.widget .widget-content ul.images { - padding: 7px 0 0 0; - list-style: none; - height: 1%; -} -.widget .widget-content ul.images li { - display: inline; - float: left; -} -.widget .widget-content ul.images img { - display: inline; - float: left; - margin: 0 0 7px 7px; -} - -.widget-actions {text-align:right;margin-right:5px;margin-top:5px;} \ No newline at end of file diff --git a/plugin/dashboard/block_daily/css/index.html b/plugin/dashboard/block_daily/css/index.html deleted file mode 100755 index 8e464d8ce3..0000000000 --- a/plugin/dashboard/block_daily/css/index.html +++ /dev/null @@ -1,8 +0,0 @@ - - - - - -
- - \ No newline at end of file diff --git a/plugin/dashboard/block_evaluation_graph/css/default.css b/plugin/dashboard/block_evaluation_graph/css/default.css deleted file mode 100755 index 04e46d3039..0000000000 --- a/plugin/dashboard/block_evaluation_graph/css/default.css +++ /dev/null @@ -1,78 +0,0 @@ -/* Colors */ -.color-yellow {background:#f2bc00;} -.color-red {background:#dd0000;} -.color-blue {background:#148ea4;} -.color-white {background:#dfdfdf;} -.color-orange {background:#f66e00;} -.color-green {background:#8dc100;} -.color-yellow h3, -.color-white h3, -.color-green h3 - {color:#000;} -.color-red h3, -.color-blue h3, -.color-orange h3 - {color:#FFF;} -/* End Colors */ - -//#columns #column1 .widget { margin: 30px 35px 0 25px; } -//#columns #column3 .widget { margin: 30px 25px 0 35px; } - -.widget { - margin: 30px 20px 0 20px; - padding: 2px; - -moz-border-radius: 4px; - -webkit-border-radius: 4px; -} -.widget .widget-head { - color: #000; - overflow: hidden; - width: 100%; - height: 30px; - line-height: 30px; -} -.widget .widget-head h3 { - padding: 0 5px; - float: left; -} -.widget .widget-content { - background: #FFF url(img/widget-content-bg.png) repeat-x; - padding: 0 5px; - color: #000; - -moz-border-radius-bottomleft: 2px; - -moz-border-radius-bottomright: 2px; - -webkit-border-bottom-left-radius: 2px; - -webkit-border-bottom-right-radius: 2px; - line-height: 1.2em; - overflow: hidden; -} -.widget .widget-content p { - padding: 0.8em 0; - border-bottom: 1px solid #666; -} -.widget .widget-content pre { - padding: 0.5em 5px; - color: #EEE; - font-size: 12px; -} -.widget .widget-content ul { - padding: 5px 0 5px 20px; - list-style: disc; -} -.widget .widget-content ul li {padding: 3px 0;} -.widget .widget-content ul.images { - padding: 7px 0 0 0; - list-style: none; - height: 1%; -} -.widget .widget-content ul.images li { - display: inline; - float: left; -} -.widget .widget-content ul.images img { - display: inline; - float: left; - margin: 0 0 7px 7px; -} - -.widget-actions {text-align:right;margin-right:5px;margin-top:5px;} \ No newline at end of file diff --git a/plugin/dashboard/block_global_info/css/default.css b/plugin/dashboard/block_global_info/css/default.css deleted file mode 100755 index 0838548929..0000000000 --- a/plugin/dashboard/block_global_info/css/default.css +++ /dev/null @@ -1,79 +0,0 @@ -/* Colors */ -.color-yellow {background:#f2bc00;} -.color-red {background:#dd0000;} -.color-blue {background:#148ea4;} -.color-white {background:#dfdfdf;} -.color-orange {background:#f66e00;} -.color-green {background:#8dc100;} -.color-yellow h3, -.color-white h3, -.color-green h3 - {color:#000;} -.color-red h3, -.color-blue h3, -.color-orange h3 - {color:#FFF;} -/* End Colors */ - -//#columns #column1 .widget { margin: 30px 35px 0 25px; } -//#columns #column3 .widget { margin: 30px 25px 0 35px; } - -.widget { - margin: 30px 20px 0 20px; - padding: 2px; - -moz-border-radius: 4px; - -webkit-border-radius: 4px; -} -.widget .widget-head { - color: #000; - overflow: hidden; - width: 100%; - height: 30px; - line-height: 10px; -} -.widget .widget-head h3 { - padding: 0 5px; - float: left; - margin: 0px; -} -.widget .widget-content { - background: #FFF url(img/widget-content-bg.png) repeat-x; - padding: 0 5px; - color: #000; - -moz-border-radius-bottomleft: 2px; - -moz-border-radius-bottomright: 2px; - -webkit-border-bottom-left-radius: 2px; - -webkit-border-bottom-right-radius: 2px; - line-height: 1.2em; - overflow: hidden; -} -.widget .widget-content p { - padding: 0.8em 0; - border-bottom: 1px solid #666; -} -.widget .widget-content pre { - padding: 0.5em 5px; - color: #EEE; - font-size: 12px; -} -.widget .widget-content ul { - padding: 5px 0 5px 20px; - list-style: disc; -} -.widget .widget-content ul li {padding: 3px 0;} -.widget .widget-content ul.images { - padding: 7px 0 0 0; - list-style: none; - height: 1%; -} -.widget .widget-content ul.images li { - display: inline; - float: left; -} -.widget .widget-content ul.images img { - display: inline; - float: left; - margin: 0 0 7px 7px; -} - -.widget-actions {text-align:right;margin-right:5px;margin-top:5px;} diff --git a/plugin/dashboard/block_global_info/css/index.html b/plugin/dashboard/block_global_info/css/index.html deleted file mode 100755 index 8e464d8ce3..0000000000 --- a/plugin/dashboard/block_global_info/css/index.html +++ /dev/null @@ -1,8 +0,0 @@ - - - - - -
- - \ No newline at end of file diff --git a/plugin/dashboard/block_session/css/default.css b/plugin/dashboard/block_session/css/default.css deleted file mode 100755 index fe0d219762..0000000000 --- a/plugin/dashboard/block_session/css/default.css +++ /dev/null @@ -1,78 +0,0 @@ -/* Colors */ -.color-yellow {background:#f2bc00;} -.color-red {background:#dd0000;} -.color-blue {background:#148ea4;} -.color-white {background:#dfdfdf;} -.color-orange {background:#f66e00;} -.color-green {background:#8dc100;} -.color-yellow h3, -.color-white h3, -.color-green h3 - {color:#000;} -.color-red h3, -.color-blue h3, -.color-orange h3 - {color:#FFF;} -/* End Colors */ - -//#columns #column1 .widget { margin: 30px 35px 0 25px; } -//#columns #column3 .widget { margin: 30px 25px 0 35px; } - -.widget { - margin: 30px 20px 0 20px; - padding: 2px; - -moz-border-radius: 4px; - -webkit-border-radius: 4px; -} -.widget .widget-head { - color: #000; - overflow: hidden; - width: 100%; - height: 30px; - line-height: 30px; -} -.widget .widget-head h3 { - padding: 0 5px; - float: left; -} -.widget .widget-content { - background: #FFF;/* url(img/widget-content-bg.png) repeat-x;*/ - padding: 0 5px; - color: #000; - -moz-border-radius-bottomleft: 2px; - -moz-border-radius-bottomright: 2px; - -webkit-border-bottom-left-radius: 2px; - -webkit-border-bottom-right-radius: 2px; - line-height: 1.2em; - overflow: hidden; -} -.widget .widget-content p { - padding: 0.8em 0; - border-bottom: 1px solid #666; -} -.widget .widget-content pre { - padding: 0.5em 5px; - color: #EEE; - font-size: 12px; -} -.widget .widget-content ul { - padding: 5px 0 5px 20px; - list-style: disc; -} -.widget .widget-content ul li {padding: 3px 0;} -.widget .widget-content ul.images { - padding: 7px 0 0 0; - list-style: none; - height: 1%; -} -.widget .widget-content ul.images li { - display: inline; - float: left; -} -.widget .widget-content ul.images img { - display: inline; - float: left; - margin: 0 0 7px 7px; -} - -.widget-actions {text-align:right;margin-right:5px;margin-top:5px;} diff --git a/plugin/dashboard/block_session/css/index.html b/plugin/dashboard/block_session/css/index.html deleted file mode 100755 index 8e464d8ce3..0000000000 --- a/plugin/dashboard/block_session/css/index.html +++ /dev/null @@ -1,8 +0,0 @@ - - - - - -
- - \ No newline at end of file diff --git a/plugin/dashboard/block_student/css/default.css b/plugin/dashboard/block_student/css/default.css deleted file mode 100755 index 04e46d3039..0000000000 --- a/plugin/dashboard/block_student/css/default.css +++ /dev/null @@ -1,78 +0,0 @@ -/* Colors */ -.color-yellow {background:#f2bc00;} -.color-red {background:#dd0000;} -.color-blue {background:#148ea4;} -.color-white {background:#dfdfdf;} -.color-orange {background:#f66e00;} -.color-green {background:#8dc100;} -.color-yellow h3, -.color-white h3, -.color-green h3 - {color:#000;} -.color-red h3, -.color-blue h3, -.color-orange h3 - {color:#FFF;} -/* End Colors */ - -//#columns #column1 .widget { margin: 30px 35px 0 25px; } -//#columns #column3 .widget { margin: 30px 25px 0 35px; } - -.widget { - margin: 30px 20px 0 20px; - padding: 2px; - -moz-border-radius: 4px; - -webkit-border-radius: 4px; -} -.widget .widget-head { - color: #000; - overflow: hidden; - width: 100%; - height: 30px; - line-height: 30px; -} -.widget .widget-head h3 { - padding: 0 5px; - float: left; -} -.widget .widget-content { - background: #FFF url(img/widget-content-bg.png) repeat-x; - padding: 0 5px; - color: #000; - -moz-border-radius-bottomleft: 2px; - -moz-border-radius-bottomright: 2px; - -webkit-border-bottom-left-radius: 2px; - -webkit-border-bottom-right-radius: 2px; - line-height: 1.2em; - overflow: hidden; -} -.widget .widget-content p { - padding: 0.8em 0; - border-bottom: 1px solid #666; -} -.widget .widget-content pre { - padding: 0.5em 5px; - color: #EEE; - font-size: 12px; -} -.widget .widget-content ul { - padding: 5px 0 5px 20px; - list-style: disc; -} -.widget .widget-content ul li {padding: 3px 0;} -.widget .widget-content ul.images { - padding: 7px 0 0 0; - list-style: none; - height: 1%; -} -.widget .widget-content ul.images li { - display: inline; - float: left; -} -.widget .widget-content ul.images img { - display: inline; - float: left; - margin: 0 0 7px 7px; -} - -.widget-actions {text-align:right;margin-right:5px;margin-top:5px;} \ No newline at end of file diff --git a/plugin/dashboard/block_student/css/index.html b/plugin/dashboard/block_student/css/index.html deleted file mode 100755 index 8e464d8ce3..0000000000 --- a/plugin/dashboard/block_student/css/index.html +++ /dev/null @@ -1,8 +0,0 @@ - - - - - -
- - \ No newline at end of file diff --git a/plugin/dashboard/block_student_graph/css/default.css b/plugin/dashboard/block_student_graph/css/default.css deleted file mode 100755 index 7547348f6c..0000000000 --- a/plugin/dashboard/block_student_graph/css/default.css +++ /dev/null @@ -1,85 +0,0 @@ -/* Colors */ -.color-yellow {background:#f2bc00;} -.color-red {background:#dd0000;} -.color-blue {background:#148ea4;} -.color-white {background:#dfdfdf;} -.color-orange {background:#f66e00;} -.color-green {background:#8dc100;} -.color-yellow h3, -.color-white h3, -.color-green h3 - {color:#000;} -.color-red h3, -.color-blue h3, -.color-orange h3 - {color:#FFF;} -/* End Colors */ - -//#columns #column1 .widget { margin: 30px 35px 0 25px; } -//#columns #column3 .widget { margin: 30px 25px 0 35px; } - -.widget { - margin: 30px 20px 0 20px; - padding: 2px; - -moz-border-radius: 4px; - -webkit-border-radius: 4px; -} -.widget .widget-head { - color: #000; - overflow: hidden; - width: 100%; - height: 30px; - line-height: 30px; -} -.widget .widget-head h3 { - padding: 0 5px; - float: left; -} -.widget .widget-content { - background: #FFF url(img/widget-content-bg.png) repeat-x; - padding: 0 5px; - color: #000; - -moz-border-radius-bottomleft: 2px; - -moz-border-radius-bottomright: 2px; - -webkit-border-bottom-left-radius: 2px; - -webkit-border-bottom-right-radius: 2px; - line-height: 1.2em; - overflow: hidden; -} -.widget .widget-content p { - padding: 0.8em 0; - border-bottom: 1px solid #666; -} -/* -.widget .widget-content img { - float: right; - margin: 10px; - border: 1px solid #FFF; -} -*/ -.widget .widget-content pre { - padding: 0.5em 5px; - color: #EEE; - font-size: 12px; -} -.widget .widget-content ul { - padding: 5px 0 5px 20px; - list-style: disc; -} -.widget .widget-content ul li {padding: 3px 0;} -.widget .widget-content ul.images { - padding: 7px 0 0 0; - list-style: none; - height: 1%; -} -.widget .widget-content ul.images li { - display: inline; - float: left; -} -.widget .widget-content ul.images img { - display: inline; - float: left; - margin: 0 0 7px 7px; -} - -.widget-actions {text-align:right;margin-right:5px;margin-top:5px;} \ No newline at end of file diff --git a/plugin/dashboard/block_teacher/css/index.html b/plugin/dashboard/block_teacher/css/index.html deleted file mode 100755 index 8e464d8ce3..0000000000 --- a/plugin/dashboard/block_teacher/css/index.html +++ /dev/null @@ -1,8 +0,0 @@ - - - - - -
- - \ No newline at end of file diff --git a/plugin/dashboard/block_teacher_graph/css/default.css b/plugin/dashboard/block_teacher_graph/css/default.css deleted file mode 100755 index 7547348f6c..0000000000 --- a/plugin/dashboard/block_teacher_graph/css/default.css +++ /dev/null @@ -1,85 +0,0 @@ -/* Colors */ -.color-yellow {background:#f2bc00;} -.color-red {background:#dd0000;} -.color-blue {background:#148ea4;} -.color-white {background:#dfdfdf;} -.color-orange {background:#f66e00;} -.color-green {background:#8dc100;} -.color-yellow h3, -.color-white h3, -.color-green h3 - {color:#000;} -.color-red h3, -.color-blue h3, -.color-orange h3 - {color:#FFF;} -/* End Colors */ - -//#columns #column1 .widget { margin: 30px 35px 0 25px; } -//#columns #column3 .widget { margin: 30px 25px 0 35px; } - -.widget { - margin: 30px 20px 0 20px; - padding: 2px; - -moz-border-radius: 4px; - -webkit-border-radius: 4px; -} -.widget .widget-head { - color: #000; - overflow: hidden; - width: 100%; - height: 30px; - line-height: 30px; -} -.widget .widget-head h3 { - padding: 0 5px; - float: left; -} -.widget .widget-content { - background: #FFF url(img/widget-content-bg.png) repeat-x; - padding: 0 5px; - color: #000; - -moz-border-radius-bottomleft: 2px; - -moz-border-radius-bottomright: 2px; - -webkit-border-bottom-left-radius: 2px; - -webkit-border-bottom-right-radius: 2px; - line-height: 1.2em; - overflow: hidden; -} -.widget .widget-content p { - padding: 0.8em 0; - border-bottom: 1px solid #666; -} -/* -.widget .widget-content img { - float: right; - margin: 10px; - border: 1px solid #FFF; -} -*/ -.widget .widget-content pre { - padding: 0.5em 5px; - color: #EEE; - font-size: 12px; -} -.widget .widget-content ul { - padding: 5px 0 5px 20px; - list-style: disc; -} -.widget .widget-content ul li {padding: 3px 0;} -.widget .widget-content ul.images { - padding: 7px 0 0 0; - list-style: none; - height: 1%; -} -.widget .widget-content ul.images li { - display: inline; - float: left; -} -.widget .widget-content ul.images img { - display: inline; - float: left; - margin: 0 0 7px 7px; -} - -.widget-actions {text-align:right;margin-right:5px;margin-top:5px;} \ No newline at end of file diff --git a/plugin/dashboard/block_teacher/css/default.css b/plugin/dashboard/css/default.css old mode 100755 new mode 100644 similarity index 95% rename from plugin/dashboard/block_teacher/css/default.css rename to plugin/dashboard/css/default.css index 5792477690..0bdcce8c45 --- a/plugin/dashboard/block_teacher/css/default.css +++ b/plugin/dashboard/css/default.css @@ -1,7 +1,7 @@ /* Colors */ .color-yellow {background:#f2bc00;} .color-red {background:#dd0000;} -.color-blue {background:#148ea4;} +.color-blue {background:#00A9E0;} .color-white {background:#dfdfdf;} .color-orange {background:#f66e00;} .color-green {background:#8dc100;} @@ -76,3 +76,6 @@ } .widget-actions {text-align:right;margin-right:5px;margin-top:5px;} +.widget-actions img { + margin-bottom: 15px; +}