]> _ Git - cubeextranet.git/commitdiff
wip #4528 @2
authorvincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Fri, 23 Jul 2021 15:01:33 +0000 (15:01 +0000)
committervincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Fri, 23 Jul 2021 15:01:33 +0000 (15:01 +0000)
inc/commons/class.common.page.php
inc/postconfig.inc.php
inc/prepend.php
style/ws/studiofrance.css [new file with mode: 0644]
style/ws/studiofrance.less [new file with mode: 0644]
style/ws/ysl.css [new file with mode: 0644]
style/ws/ysl.less [new file with mode: 0644]

index 2187177bae148cdc22c49c2fc28dc5ae33c4b6d5..a2f7f795e945f1a0d04f660e6bcf8a0c5e1c6887 100644 (file)
@@ -5,9 +5,11 @@ class commonPage
 \r
     public static function logo()\r
     {\r
-\r
+        global $css;\r
         if (THEME) {\r
+            $css[] = WEBROOT . 'style/' . MODE . '/' . THEME . '.css';\r
             return cubeMedia::image(IMG . '/white/' . THEME . '/logo.png');\r
+\r
         }\r
 \r
         return cubeMedia::image(IMG . '/logo.png');\r
@@ -15,8 +17,8 @@ class commonPage
 \r
     public static function header($args)\r
     {\r
-        global $js;\r
         global $core;\r
+\r
         // Entête HTML\r
         $res = '<html>';\r
         $res .= '<head>';\r
index 1bc4bcc4e5642f5c6033d0c05a5804383c7027ce..f91acf13497257a3de8a60ca6ff687e02ccb78b8 100644 (file)
@@ -5,8 +5,16 @@ $extranet = stristr($_SERVER['HTTP_HOST'], 'cubedesigners.com');
 $ws = !$extranet;\r
 \r
 $theme = false;\r
-if ($_SERVER['HTTP_HOST'] == 'workshop.studio-france.com') {\r
-    $theme = 'studiofrance';\r
+switch ($_SERVER['HTTP_HOST']) {\r
+    case 'workshop.studio-france.com' :\r
+        $theme = 'studiofrance';\r
+        break;\r
+    case 'ysl.workshop.fluidbook.com':\r
+        $theme = 'ysl';\r
+        break;\r
+    default:\r
+        $theme = false;\r
+        break;\r
 }\r
 \r
 \r
index 33215784b26a882342cc934e88605d3aae6bdaaf..1776fe2f0fc471f6d857185e66ee42c428a8f220 100644 (file)
@@ -50,7 +50,16 @@ if ($ws) {
                define('TEAM_NAME', __("L'équipe Studiofrance"));\r
                define('RAPPEL', __('Rappel des identifiants de connexion au Workshop Studio-France'));\r
                define('ASK_IDENT', __('Vous avez demandé la récupération de votre mot de passe sur le Workshop Studio-France'));\r
-       }\r
+       }else if(THEME=='ysl'){\r
+        define('TITLE', '[MAP|EMULSION] ✕ SAINT LAURENT - Workshop');\r
+        define('FROM_EMAIL', 'saintlaurent@map-emulsion.com');\r
+        define('FROM_NAME', '[MAP|EMULSION]');\r
+        define('EMAIL_SUBJECT', '[MAP|EMULSION] Workshop');\r
+        define('TEAM_EMAIL', 'saintlaurent@map-emulsion.com');\r
+        define('TEAM_NAME', __("[MAP|EMULSION] Team"));\r
+        define('RAPPEL', __('Rappel des identifiants de connexion au Workshop [MAP|EMULSION]'));\r
+        define('ASK_IDENT', __('Vous avez demandé la récupération de votre mot de passe sur le Workshop [MAP|EMULSION]'));\r
+    }\r
 } elseif ($extranet) {\r
        define('MAIL_BCC', 'contact@cubedesigners.com');\r
        define('GA', 'UA-4339912-4');\r
diff --git a/style/ws/studiofrance.css b/style/ws/studiofrance.css
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/style/ws/studiofrance.less b/style/ws/studiofrance.less
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/style/ws/ysl.css b/style/ws/ysl.css
new file mode 100644 (file)
index 0000000..7e49576
--- /dev/null
@@ -0,0 +1,35 @@
+#header {
+  background: #202020;
+}
+#logo {
+  position: relative;
+  top: 23px;
+  left: 3px;
+}
+a {
+  color: #fff;
+}
+.onglet:hover,
+.onglet.active {
+  background: #fff;
+  color: #7b7b7b;
+}
+.onglet {
+  background: #121212;
+}
+.liste {
+  color: #7b7b7b;
+}
+.liste a {
+  color: #000;
+}
+.liste .bouton a {
+  color: #ababab;
+}
+.form tr.odd td,
+.liste tr.odd td {
+  background: #f4f4f4;
+}
+body {
+  filter: grayscale(1);
+}
diff --git a/style/ws/ysl.less b/style/ws/ysl.less
new file mode 100644 (file)
index 0000000..de87833
--- /dev/null
@@ -0,0 +1,41 @@
+#header {\r
+  background: #202020;\r
+}\r
+\r
+#logo{\r
+  position: relative;\r
+  top:23px;\r
+  left:3px;\r
+}\r
+\r
+a {\r
+  color: #fff\r
+}\r
+\r
+.onglet:hover, .onglet.active {\r
+  background: #fff;\r
+  color: #7b7b7b;\r
+}\r
+\r
+.onglet {\r
+  background: #121212;\r
+}\r
+\r
+.liste{\r
+  color:#7b7b7b;\r
+  a{\r
+    color:#000;\r
+  }\r
+  .bouton a{\r
+    color: #ababab;\r
+  }\r
+}\r
+\r
+\r
+.form tr.odd td, .liste tr.odd td {\r
+  background: #f4f4f4;\r
+}\r
+\r
+body{\r
+  filter:grayscale(1);\r
+}
\ No newline at end of file