From 321ac5f9c7e32480148e72f764426ef9e7fcc60c Mon Sep 17 00:00:00 2001 From: "vincent@cubedesigners.com" Date: Mon, 5 Sep 2016 13:27:57 +0000 Subject: [PATCH] done #668 0:15 --- .../application/views/helpers/ExemplePublication.php | 8 +++++++- less/220-exemples.less | 4 ++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/framework/application/views/helpers/ExemplePublication.php b/framework/application/views/helpers/ExemplePublication.php index 6b62767..8d2a17d 100644 --- a/framework/application/views/helpers/ExemplePublication.php +++ b/framework/application/views/helpers/ExemplePublication.php @@ -5,6 +5,10 @@ class Fluidbook_View_Helper_ExemplePublication extends CubeIT_View_Helper_Abstra * @return string */ public function exemplePublication($fluidbook_id, $page) { + if(!is_numeric($page)){ + $page=2; + } + if ($page % 2 == 1) { $page--; } @@ -17,6 +21,8 @@ class Fluidbook_View_Helper_ExemplePublication extends CubeIT_View_Helper_Abstra 'blendmode' => array('prop' => 'background-blend-mode', 'format' => '%s'), ); + + $left = $this->_getPage($fluidbook_id, $page); $right = $this->_getPage($fluidbook_id, $page + 1); @@ -29,7 +35,7 @@ class Fluidbook_View_Helper_ExemplePublication extends CubeIT_View_Helper_Abstra $backgrounds = array(); // $backgrounds[] = array('image' => '/images/exemples/publications/shadow.png', 'size' => '100% 10%', 'position' => '0 95%', 'blendmode' => null); - $backgrounds[] = array('image' => $left['url'], 'size' => '50% 100%', 'position' => '0 0', 'blendmode' => 'normal'); + $backgrounds[] = array('image' => $left['url'], 'size' => '50% 100%', 'position' => '1px 0', 'blendmode' => 'normal'); $backgrounds[] = array('image' => $right['url'], 'size' => '50% 100%', 'position' => '100% 0', 'blendmode' => 'normal'); $backgrounds[] = array('image' => '/images/exemples/publications/light.png', 'size' => '30% 100%', 'position' => '50% 0', 'blendmode' => 'soft-light'); $backgrounds[] = array('image' => '/images/exemples/publications/dark.png', 'size' => '20% 100%', 'position' => '50% 0', 'blendmode' => 'multiply'); diff --git a/less/220-exemples.less b/less/220-exemples.less index b9feb2d..d9e5166 100644 --- a/less/220-exemples.less +++ b/less/220-exemples.less @@ -224,15 +224,15 @@ } .exemple-fluidbook { + background-color: #cfc0c0; border-right: 1em solid #dddddd; - border-left: 0.2em solid #cfc0c0; + border-left: 0.1em solid #cfc0c0; box-shadow: 0 0.4em 0.6em rgba(0, 0, 0, 0.2); position: absolute; z-index: 1; transform-origin: 0 0; margin: 0 auto; bottom: 10%; - background-color: #dddddd; .shadow { background-image: url("/images/exemples/publications/shadow.png"); -- 2.39.5