Factorize CSS directory for dashboard blocks

1.9.x
Yannick Warnier 10 years ago
parent b6baadc969
commit 057874a554
  1. 19
      main/inc/lib/dashboard.lib.php
  2. 79
      plugin/dashboard/block_course/css/default.css
  3. 8
      plugin/dashboard/block_course/css/index.html
  4. 78
      plugin/dashboard/block_daily/css/default.css
  5. 8
      plugin/dashboard/block_daily/css/index.html
  6. 78
      plugin/dashboard/block_evaluation_graph/css/default.css
  7. 79
      plugin/dashboard/block_global_info/css/default.css
  8. 8
      plugin/dashboard/block_global_info/css/index.html
  9. 78
      plugin/dashboard/block_session/css/default.css
  10. 8
      plugin/dashboard/block_session/css/index.html
  11. 78
      plugin/dashboard/block_student/css/default.css
  12. 8
      plugin/dashboard/block_student/css/index.html
  13. 85
      plugin/dashboard/block_student_graph/css/default.css
  14. 8
      plugin/dashboard/block_teacher/css/index.html
  15. 85
      plugin/dashboard/block_teacher_graph/css/default.css
  16. 5
      plugin/dashboard/css/default.css

@ -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 .= '<link rel="stylesheet" href="'.$src.'" type="text/css" />'.PHP_EOL;
}
}
@closedir($handle);
}
}
return $links;
return '<link rel="stylesheet" href="'.api_get_path(WEB_PLUGIN_PATH).'dashboard/css/default.css" type="text/css" />'.PHP_EOL;
}
}

@ -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;}

@ -1,8 +0,0 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
</head>
<body>
<br />
</body>
</html>

@ -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;}

@ -1,8 +0,0 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
</head>
<body>
<br />
</body>
</html>

@ -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;}

@ -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;}

@ -1,8 +0,0 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
</head>
<body>
<br />
</body>
</html>

@ -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;}

@ -1,8 +0,0 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
</head>
<body>
<br />
</body>
</html>

@ -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;}

@ -1,8 +0,0 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
</head>
<body>
<br />
</body>
</html>

@ -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;}

@ -1,8 +0,0 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
</head>
<body>
<br />
</body>
</html>

@ -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;}

@ -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;
}
Loading…
Cancel
Save