]> _ Git - fluidbook-v3.git/commitdiff
fix #3633 @1
authorvincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Wed, 6 May 2020 09:28:50 +0000 (09:28 +0000)
committervincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Wed, 6 May 2020 09:28:50 +0000 (09:28 +0000)
framework/application/controllers/MaintenanceController.php
framework/application/views/helpers/Exemples.php
less/220-exemples.less

index 3ebd74bfa2f15a5bdd120da0ef11f595053d6943..bdbabbfa911a30cc798217b55832da3b5fb243c9 100644 (file)
@@ -26,7 +26,7 @@ class MaintenanceController extends CubeIT_Controller_MaintenanceController
         set_time_limit(0);
         ignore_user_abort(true);
 
-        $ws = new CubeIT_Services_Fluidbook('vincent@cubedesigners.com', 'iquique');
+        $ws = new CubeIT_Services_Fluidbook('vincent@cubedesigners.com', 'SiWyC@@1uW');
         $references = Fluidbook_Model_Reference::factory()->find();
 
         $fluidbooks = array();
@@ -69,7 +69,7 @@ class MaintenanceController extends CubeIT_Controller_MaintenanceController
 
     public static function importReference($id)
     {
-        $ws = new CubeIT_Services_Fluidbook('vincent@cubedesigners.com', 'iquique');
+        $ws = new CubeIT_Services_Fluidbook('vincent@cubedesigners.com', 'SiWyC@@1uW');
         $meta = $ws->getMetadata($id);
         $dir = PUBLIC_PATH . '/references/' . $id . '-' . CubeIT_Text::str2URL(trim($meta->title));
         $res = $ws->installBook($id, $dir, 'online', 3, function () use ($id) {
index 9dd10c6270e5a845fe273691c096359989395d89..a566cda941e0fbf994adcbaae600c0fd8d237fae 100644 (file)
@@ -116,8 +116,8 @@ class Fluidbook_View_Helper_Exemples extends CubeIT_View_Helper_Abstract {
                        $res .= $this->exemplePublication($f->getFluidbookId(), $f->getFluidbookPage());\r
                } else {\r
                        $res .= $this->htmlElement('', 'div',\r
-                               array('style' => 'background-image:url(' . $this->imageProcess()->imageProcessGetURL($image, $f->getTitle() . ' - ' . $f->getText(), 660, 440, array(), 'R') . ');',\r
-                                     'class' => 'img')\r
+                               array('style' => 'background-image:url(' . $this->imageProcess()->imageProcessGetURL($image, $f->getTitle() . ' - ' . $f->getText(), 1200, 1200, array(), 'R') . ');',\r
+                                     'class' => 'img full')\r
                        );\r
                }\r
                $attrs = array('data-j' => ++$this->_j, 'data-i' => $i);\r
index d9e51666a9a39412ac31105baa6c02add5a4612c..a9fa330ea737dd0d6ad24d4016f2ad6b06bbaa07 100644 (file)
                                bottom: 10%;\r
                                background-size: contain;\r
                                background-position: 50% 100%;\r
+\r
+                               &.full{\r
+                                       width:100%;\r
+                                       height:100%;\r
+                                       top:0;\r
+                                       left:0;\r
+                                       right: 0;\r
+                                       bottom: 0;\r
+                               }\r
                        }\r
 \r
                        h3 {\r