BUG 11603 "Please consider include 'special' pages..." SOLVED
- Please consider include "special" pages layout to the SKIN. - Problema resuelto, se han customizado las interfaces "error404" y "updating", ahora estan disponibles en los skins "neoclassic" y "classic". Se ha validado esta interfaz en los skins, de no existir los templates en un determinado skin, automaticamente utilizara el template del skin "classic". * Available from version ProcessMaker-2.5.1-testing.3
@@ -5160,6 +5160,47 @@ class G
|
||||
|
||||
return $url;
|
||||
}
|
||||
|
||||
public static function skinGetPathToSrcByVirtualUri($option)
|
||||
{
|
||||
$path = "";
|
||||
$ereg = "";
|
||||
$strSearch = "";
|
||||
|
||||
switch ($option) {
|
||||
case "errors":
|
||||
$ereg = "/^\/errors\/.*$/";
|
||||
$strSearch = "/errors/";
|
||||
break;
|
||||
case "update":
|
||||
$ereg = "/^\/update\/.*$/";
|
||||
$strSearch = "/update/";
|
||||
break;
|
||||
}
|
||||
|
||||
if (preg_match($ereg, $_SERVER["REQUEST_URI"])) {
|
||||
$strAux = str_replace($strSearch, null, $_SERVER["REQUEST_URI"]);
|
||||
|
||||
if ($strAux != "") {
|
||||
$arrayAux = explode("?", $strAux);
|
||||
$fileTemplate = $arrayAux[0];
|
||||
|
||||
if (file_exists(PATH_SKIN_ENGINE . $_SESSION["currentSkin"] . PATH_SEP . $fileTemplate)) {
|
||||
$path = PATH_SKIN_ENGINE . $_SESSION["currentSkin"] . PATH_SEP;
|
||||
}
|
||||
|
||||
if (file_exists(PATH_SKINS . $_SESSION["currentSkin"] . PATH_SEP . $fileTemplate)) {
|
||||
$path = PATH_SKINS . $_SESSION["currentSkin"] . PATH_SEP;
|
||||
}
|
||||
|
||||
if (file_exists(PATH_CUSTOM_SKINS . $_SESSION["currentSkin"] . PATH_SEP . $fileTemplate)) {
|
||||
$path = PATH_CUSTOM_SKINS . $_SESSION["currentSkin"] . PATH_SEP;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return $path;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
287
workflow/engine/skinEngine/base/css2/style1.css
Normal file
@@ -0,0 +1,287 @@
|
||||
|
||||
/* Reset */
|
||||
* {
|
||||
margin: 0 auto;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
/* Body */
|
||||
body {
|
||||
background: url(../images/background.jpg) no-repeat top #00B4CD;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
/* No borders around images */
|
||||
img {
|
||||
border: none;
|
||||
}
|
||||
|
||||
/* Warp around everything */
|
||||
#warp {
|
||||
margin: 0 auto;
|
||||
margin-top: 10px;
|
||||
width: 985px;
|
||||
font-family: Helvetica;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
/* Header */
|
||||
#header_top {
|
||||
background: url(../images/top.png) no-repeat;
|
||||
width: 985px;
|
||||
height: 30px;
|
||||
}
|
||||
|
||||
/* Header content */
|
||||
#header {
|
||||
background: url(../images/box_bg.png) repeat-y;
|
||||
width: 985px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
/* Page title */
|
||||
#header h2 {
|
||||
padding-top: 10px;
|
||||
}
|
||||
|
||||
/* Subtitle */
|
||||
#header h5 {
|
||||
margin-top: 5px;
|
||||
padding-bottom: 15px;
|
||||
color: #acacac;
|
||||
}
|
||||
|
||||
/* Content div */
|
||||
#content {
|
||||
background: url(../images/content_bg.png) repeat-y;
|
||||
width: 985px;
|
||||
}
|
||||
|
||||
/* The info text */
|
||||
#text {
|
||||
float: left;
|
||||
margin: 10px 0 10px 60px;
|
||||
width: 420px;
|
||||
/* IE margin fix */
|
||||
display: inline;
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
/* The info text P */
|
||||
#text p {
|
||||
margin-top: 5px;
|
||||
font-size: 14px;
|
||||
line-height: 20px;
|
||||
color: #292929;
|
||||
}
|
||||
|
||||
/* The links list */
|
||||
|
||||
/* The list items */
|
||||
|
||||
/* The links */
|
||||
#text a {
|
||||
color: #292929;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
/* Link hover */
|
||||
#text a:hover {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
/* The book icon */
|
||||
#book {
|
||||
float: right;
|
||||
width: 472px;
|
||||
height: 332px;
|
||||
margin: 20px 20px 10px 0;
|
||||
|
||||
|
||||
}
|
||||
|
||||
/* Footer */
|
||||
#footer {
|
||||
background: url(../images/box_bg.png) repeat-y;
|
||||
width: 985px;
|
||||
|
||||
}
|
||||
|
||||
/* Footer bottom */
|
||||
#footer_bottom {
|
||||
background: url(../images/bottom.png) no-repeat;
|
||||
width: 985px;
|
||||
height: 28px;
|
||||
|
||||
}
|
||||
|
||||
/* Twitter icon */
|
||||
#twitter {
|
||||
margin: 10px 0px 0px 60px;
|
||||
float: left;
|
||||
}
|
||||
|
||||
/* The tweet text */
|
||||
#twitter_text {
|
||||
float: left;
|
||||
margin-left: 10px;
|
||||
margin-top: 15px;
|
||||
width: 300px;
|
||||
color: #878787;
|
||||
float: left;
|
||||
font-size: 10px;
|
||||
}
|
||||
|
||||
/* Twitter links */
|
||||
#twitter_text a {
|
||||
text-decoration: none;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
/* Search form */
|
||||
#searchform {
|
||||
float: right;
|
||||
margin: 15px 60px 0px 0px;
|
||||
/* IE margin fix */
|
||||
display: inline;
|
||||
}
|
||||
|
||||
/* Search input */
|
||||
input#search {
|
||||
background: url(../images/searchfield_bg.png) no-repeat;
|
||||
border: none;
|
||||
height: 31px;
|
||||
width: 244px;
|
||||
float: right;
|
||||
line-height: 30px;
|
||||
padding-left: 10px;
|
||||
}
|
||||
|
||||
/* The Send button */
|
||||
input#submit {
|
||||
border: none;
|
||||
float: right;
|
||||
margin-left: 5px;
|
||||
height: 31px;
|
||||
width: 74px;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
input:focus {
|
||||
outline: none;
|
||||
}
|
||||
|
||||
/* Social media */
|
||||
#socialmedia {
|
||||
margin-top: 5px;
|
||||
margin-right: 40px;
|
||||
margin-bottom: 10px;
|
||||
display: inline;
|
||||
list-style: none;
|
||||
float: right;
|
||||
}
|
||||
|
||||
/* Social media list items */
|
||||
#socialmedia a{
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
/* COLOR CHANGER */
|
||||
#colorchanger {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
#showChanger {
|
||||
margin-left: 10px;
|
||||
}
|
||||
|
||||
#colors {
|
||||
padding: 10px;
|
||||
background: #425a5e;
|
||||
height: 17px;
|
||||
}
|
||||
|
||||
/* The div around the color change links */
|
||||
.colorbox {
|
||||
width:15px;
|
||||
height:15px;
|
||||
border:1px solid #050505;
|
||||
float:left;
|
||||
margin:0px 2px;
|
||||
cursor:pointer;
|
||||
display:block;
|
||||
}
|
||||
|
||||
/* Blue */
|
||||
.colorblue {
|
||||
background-color:#1e82ac;
|
||||
}
|
||||
/* Blue Hover */
|
||||
.colorblue:hover {
|
||||
background-color:#177197;
|
||||
}
|
||||
|
||||
/* Red */
|
||||
.colorred {
|
||||
background-color:#cc2b2b;
|
||||
}
|
||||
/* Red Hover */
|
||||
.colorred:hover {
|
||||
background-color:#af1a1a;
|
||||
}
|
||||
|
||||
/* Grey */
|
||||
.colorgrey {
|
||||
background-color:#4d4d4d;
|
||||
}
|
||||
/* Grey Hover */
|
||||
.colorgrey:hover {
|
||||
background-color:#7c7c7c;
|
||||
}
|
||||
|
||||
/* Brown */
|
||||
.colorbrown {
|
||||
background-color:#4b3a15;
|
||||
}
|
||||
/* Brown Hover */
|
||||
.colorbrown:hover {
|
||||
background-color:#5e4b20;
|
||||
}
|
||||
|
||||
/* Green */
|
||||
.colorgreen {
|
||||
background-color:#6c8b2f;
|
||||
}
|
||||
/* Green Hover */
|
||||
.cologreen:hover {
|
||||
background-color:#7da137;
|
||||
}
|
||||
/* Page title */
|
||||
#header h2 {
|
||||
color: #187086;
|
||||
}
|
||||
|
||||
/* Page links */
|
||||
#text a:hover {
|
||||
color: #16687d;
|
||||
}
|
||||
|
||||
/* Search button */
|
||||
input#submit {
|
||||
background: url(../images/searchbutton_bg.png) no-repeat;
|
||||
}
|
||||
|
||||
/* Twitter links */
|
||||
#twitter_text a {
|
||||
color: #135869;
|
||||
}
|
||||
#textInfo{
|
||||
list-style: square inside none;
|
||||
padding: 0px;
|
||||
margin: 0px;
|
||||
line-height: 20px;
|
||||
}
|
||||
#textInfo li{
|
||||
padding: 5px 0px;
|
||||
text-align: justify;
|
||||
}
|
||||
@@ -1,46 +1,8 @@
|
||||
<?php
|
||||
$skin = '';
|
||||
if (isset($_SERVER['QUERY_STRING']) && ($_SERVER['QUERY_STRING']!= '')) {
|
||||
$url = urldecode($_SERVER['QUERY_STRING']);
|
||||
$urlParts = explode('/', $url);
|
||||
$skin = $urlParts['3'];
|
||||
} else {
|
||||
if (!class_exists('System')) {
|
||||
require_once (PATH_HOME . "engine/classes/class.system.php");
|
||||
$sysConf = System::getSystemConfiguration( PATH_CONFIG . 'env.ini' );
|
||||
if (isset($sysConf['default_skin']) && ($sysConf['default_skin']!='')) {
|
||||
$skin = $sysConf['default_skin'];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if ($skin != '') {
|
||||
$dir = pathinfo(__FILE__);
|
||||
$template = $dir['filename'];
|
||||
|
||||
$fileTemplate = PATH_SKINS . $skin . PATH_SEP . $template. '.html';
|
||||
if (!file_exists($fileTemplate)) {
|
||||
$fileTemplate = PATH_SKIN_ENGINE . $skin . PATH_SEP . $template. '.html';
|
||||
if (!file_exists($fileTemplate)) {
|
||||
$fileTemplate = PATH_CUSTOM_SKINS . $skin . PATH_SEP . $template. '.html';
|
||||
if (!file_exists($fileTemplate)) {
|
||||
$fileTemplate = '';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if ($fileTemplate != '') {
|
||||
$contentTemplate = file_get_contents($fileTemplate);
|
||||
print ($contentTemplate);
|
||||
die;
|
||||
}
|
||||
}
|
||||
?>
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<META http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<link rel="shortcut icon" href="/images/favicon.ico" type="image/x-icon"/>
|
||||
<link href="style1.css" type="text/css" rel="stylesheet"/>
|
||||
<link rel="shortcut icon" href="images/favicon.ico" type="image/x-icon"/>
|
||||
<link href="css2/style1.css" type="text/css" rel="stylesheet"/>
|
||||
</head>
|
||||
<body style="margin: 0px; overflow: auto;">
|
||||
<!-- Warp around everything -->
|
||||
@@ -60,7 +22,7 @@
|
||||
<h2>Oops, page not found!</h2>
|
||||
<h5>This page may be busy or the URL incorrect.</h5>
|
||||
</td>
|
||||
<td align="right"><img src="/images/processmaker.logo2.png" alt="www.colosa.com" id="colosa" /></td>
|
||||
<td align="right"><img src="images/processmaker.logo2.png" alt="www.colosa.com" id="colosa" /></td>
|
||||
</tr></table>
|
||||
|
||||
</div>
|
||||
BIN
workflow/engine/skinEngine/base/images/background.jpg
Normal file
|
After Width: | Height: | Size: 28 KiB |
BIN
workflow/engine/skinEngine/base/images/background2.jpg
Normal file
|
After Width: | Height: | Size: 23 KiB |
BIN
workflow/engine/skinEngine/base/images/bottom.png
Normal file
|
After Width: | Height: | Size: 1.7 KiB |
BIN
workflow/engine/skinEngine/base/images/box_bg.png
Normal file
|
After Width: | Height: | Size: 267 B |
BIN
workflow/engine/skinEngine/base/images/colortab.png
Normal file
|
After Width: | Height: | Size: 1.2 KiB |
BIN
workflow/engine/skinEngine/base/images/colosa.png
Normal file
|
After Width: | Height: | Size: 4.4 KiB |
BIN
workflow/engine/skinEngine/base/images/content_bg.png
Normal file
|
After Width: | Height: | Size: 277 B |
BIN
workflow/engine/skinEngine/base/images/img-01.png
Normal file
|
After Width: | Height: | Size: 57 KiB |
BIN
workflow/engine/skinEngine/base/images/img-02.png
Normal file
|
After Width: | Height: | Size: 60 KiB |
BIN
workflow/engine/skinEngine/base/images/pm.png
Normal file
|
After Width: | Height: | Size: 1.9 KiB |
BIN
workflow/engine/skinEngine/base/images/pmlogo.png
Normal file
|
After Width: | Height: | Size: 11 KiB |
BIN
workflow/engine/skinEngine/base/images/processmaker.logo.jpg
Normal file
|
After Width: | Height: | Size: 16 KiB |
BIN
workflow/engine/skinEngine/base/images/socialmedia/fb.png
Normal file
|
After Width: | Height: | Size: 2.2 KiB |
BIN
workflow/engine/skinEngine/base/images/socialmedia/rs.png
Normal file
|
After Width: | Height: | Size: 2.4 KiB |
BIN
workflow/engine/skinEngine/base/images/socialmedia/tw.png
Normal file
|
After Width: | Height: | Size: 2.2 KiB |
BIN
workflow/engine/skinEngine/base/images/socialmedia/yb.png
Normal file
|
After Width: | Height: | Size: 2.4 KiB |
BIN
workflow/engine/skinEngine/base/images/top.png
Normal file
|
After Width: | Height: | Size: 1.7 KiB |
|
Before Width: | Height: | Size: 531 B After Width: | Height: | Size: 531 B |
|
Before Width: | Height: | Size: 7.1 KiB After Width: | Height: | Size: 7.1 KiB |
|
Before Width: | Height: | Size: 32 KiB After Width: | Height: | Size: 32 KiB |
|
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
|
Before Width: | Height: | Size: 5.5 KiB After Width: | Height: | Size: 5.5 KiB |
|
Before Width: | Height: | Size: 6.5 KiB After Width: | Height: | Size: 6.5 KiB |