2011-12-02 12:36:05 -04:00
|
|
|
<?php
|
|
|
|
|
|
2012-01-03 18:31:15 -04:00
|
|
|
require_once 'classes/interfaces/dashletInterface.php';
|
2011-12-02 12:36:05 -04:00
|
|
|
|
2012-10-09 12:38:43 -04:00
|
|
|
class dashletProcessMakerCommunity implements DashletInterface
|
|
|
|
|
{
|
2011-12-02 12:36:05 -04:00
|
|
|
|
2012-10-09 12:38:43 -04:00
|
|
|
const version = '1.0';
|
2012-04-16 10:48:25 -04:00
|
|
|
|
2012-10-09 12:38:43 -04:00
|
|
|
public static function getAdditionalFields ($className)
|
|
|
|
|
{
|
|
|
|
|
$additionalFields = array ();
|
2011-12-02 12:36:05 -04:00
|
|
|
|
2012-10-09 12:38:43 -04:00
|
|
|
return $additionalFields;
|
|
|
|
|
}
|
2011-12-02 12:36:05 -04:00
|
|
|
|
2012-10-09 12:38:43 -04:00
|
|
|
public static function getXTemplate ($className)
|
|
|
|
|
{
|
|
|
|
|
return "<iframe src=\"{page}?DAS_INS_UID={id}\" width=\"{width}\" height=\"207\" frameborder=\"0\"></iframe>";
|
|
|
|
|
}
|
2012-01-03 18:31:15 -04:00
|
|
|
|
2012-10-09 12:38:43 -04:00
|
|
|
public function setup ($config)
|
|
|
|
|
{
|
|
|
|
|
return true;
|
|
|
|
|
}
|
2011-12-02 12:36:05 -04:00
|
|
|
|
2012-10-09 12:38:43 -04:00
|
|
|
public function render ($width = 300)
|
|
|
|
|
{
|
|
|
|
|
$html = "
|
2011-12-02 17:46:42 -04:00
|
|
|
<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">
|
|
|
|
|
|
|
|
|
|
<html xmlns=\"http://www.w3.org/1999/xhtml\">
|
|
|
|
|
<head>
|
|
|
|
|
<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />
|
|
|
|
|
|
|
|
|
|
<title></title>
|
2011-12-02 19:26:32 -04:00
|
|
|
|
2011-12-02 17:46:42 -04:00
|
|
|
<style type=\"text/css\">
|
|
|
|
|
body{
|
|
|
|
|
margin: 0;
|
|
|
|
|
padding: 0;
|
|
|
|
|
|
|
|
|
|
background: #FFFFFF;
|
|
|
|
|
font: 100% arial, verdana, helvetica, sans-serif;
|
|
|
|
|
color: #000000;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#container{
|
|
|
|
|
margin: 0 auto;
|
2011-12-14 16:56:31 -04:00
|
|
|
|
|
|
|
|
|
2011-12-02 17:46:42 -04:00
|
|
|
}
|
2011-12-02 19:26:32 -04:00
|
|
|
|
2011-12-02 17:46:42 -04:00
|
|
|
.clearf{
|
|
|
|
|
clear: both;
|
|
|
|
|
|
|
|
|
|
height: 0;
|
|
|
|
|
line-height: 0;
|
|
|
|
|
font-size: 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.icon{
|
|
|
|
|
float:left;
|
2011-12-02 19:26:32 -04:00
|
|
|
|
2011-12-14 16:56:31 -04:00
|
|
|
margin-left: 5%;
|
2011-12-02 19:26:32 -04:00
|
|
|
|
2011-12-14 16:56:31 -04:00
|
|
|
width: 13%;
|
2011-12-02 17:46:42 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.description{
|
|
|
|
|
float: right;
|
2011-12-02 19:26:32 -04:00
|
|
|
|
2011-12-14 16:56:31 -04:00
|
|
|
margin-right: 1%;
|
2011-12-02 19:26:32 -04:00
|
|
|
|
2011-12-14 16:56:31 -04:00
|
|
|
width: 79.5%;
|
2011-12-02 19:26:32 -04:00
|
|
|
|
2011-12-14 16:56:31 -04:00
|
|
|
font-size: 64%;
|
|
|
|
|
text-align : justify;
|
2011-12-02 17:46:42 -04:00
|
|
|
}
|
2011-12-02 19:26:32 -04:00
|
|
|
|
2011-12-02 17:46:42 -04:00
|
|
|
.icon img{
|
|
|
|
|
width: 35px;
|
|
|
|
|
}
|
2011-12-02 19:26:32 -04:00
|
|
|
|
2011-12-02 17:46:42 -04:00
|
|
|
.description strong{
|
|
|
|
|
color: #2C2C2C;
|
|
|
|
|
}
|
2011-12-02 19:26:32 -04:00
|
|
|
|
2011-12-02 17:46:42 -04:00
|
|
|
.description a{
|
|
|
|
|
color: #1A4897;
|
|
|
|
|
font-weight: bold;
|
|
|
|
|
}
|
2011-12-02 19:26:32 -04:00
|
|
|
|
2011-12-02 17:46:42 -04:00
|
|
|
.icon, .description{
|
|
|
|
|
margin-top: 0.65em;
|
|
|
|
|
}
|
|
|
|
|
</style>
|
|
|
|
|
</head>
|
|
|
|
|
<body>
|
2011-12-02 19:26:32 -04:00
|
|
|
|
2011-12-02 17:46:42 -04:00
|
|
|
<div id=\"container\">
|
2011-12-14 16:56:31 -04:00
|
|
|
<div class=\"icon\"><img src=\"/images/dashlets/community_forum.png\"/></div>
|
2011-12-02 17:46:42 -04:00
|
|
|
<div class=\"description\">
|
|
|
|
|
<strong>FORUM - </strong><a href=\"http://forum.processmaker.com/\" target=\"_blank\" title=\"http://forum.processmaker.com\">http://forum.processmaker.com</a>
|
|
|
|
|
<br />
|
2017-02-21 15:32:32 -04:00
|
|
|
Discuss ProcessMaker issues, interact with the PMOS community, and get support from fellow developers and community members in the ProcessMaker Forum.
|
2011-12-02 17:46:42 -04:00
|
|
|
</div>
|
|
|
|
|
<div class=\"clearf\"></div>
|
2011-12-02 19:26:32 -04:00
|
|
|
|
|
|
|
|
<div class=\"icon\"><img src=\"/images/dashlets/community_wiki.png\" style=\"border: medium none;\"></div>
|
2011-12-02 17:46:42 -04:00
|
|
|
<div class=\"description\">
|
|
|
|
|
<strong>WIKI - </strong><a href=\"http://wiki.processmaker.com/\" target=\"_blank\" title=\"http://wiki.processmaker.com\">http://wiki.processmaker.com</a>
|
|
|
|
|
<br />
|
|
|
|
|
The Wiki is your first stop for ProcessMaker information, including user guides, documentation, community projects, release notes, and FAQ.
|
|
|
|
|
</div>
|
|
|
|
|
<div class=\"clearf\"></div>
|
2011-12-02 19:26:32 -04:00
|
|
|
|
|
|
|
|
<div class=\"icon\"><img src=\"/images/dashlets/community_blog.png\" style=\"border: medium none;\"></div>
|
2011-12-02 17:46:42 -04:00
|
|
|
<div class=\"description\">
|
|
|
|
|
<strong>BLOG - </strong><a href=\"http://blog.processmaker.com/\" target=\"_blank\" title=\"http://blog.processmaker.com\">http://processmakerblog.com</a>
|
|
|
|
|
<br />
|
|
|
|
|
Get our BPM tips in the ProcessMaker blog.
|
|
|
|
|
</div>
|
|
|
|
|
<div class=\"clearf\"></div>
|
2011-12-02 19:26:32 -04:00
|
|
|
|
|
|
|
|
<div class=\"icon\"><img src=\"/images/dashlets/community_bug_tracker.png\" style=\"border: medium none;\"></div>
|
2011-12-02 17:46:42 -04:00
|
|
|
<div class=\"description\">
|
|
|
|
|
<strong>BUG TRACKER - </strong><a href=\"http://bugs.processmaker.com/\" target=\"_blank\">http://bugs.processmaker.com</a>
|
|
|
|
|
<br />
|
|
|
|
|
Help our development team to improve ProcessMaker by reporting your bugs and issues in the Bug Tracker. Monitor and track issue reports and solutions.
|
|
|
|
|
</div>
|
|
|
|
|
<div class=\"clearf\"></div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</body>
|
|
|
|
|
</html>
|
|
|
|
|
";
|
|
|
|
|
|
2012-10-09 12:38:43 -04:00
|
|
|
echo $html;
|
|
|
|
|
}
|
2011-12-02 12:36:05 -04:00
|
|
|
|
2017-02-21 15:32:32 -04:00
|
|
|
}
|