From c61bf4fea778963a07b5e7e67bba7ca7737fbc36 Mon Sep 17 00:00:00 2001 From: "stephen@cubedesigners.com" Date: Tue, 23 Dec 2014 14:49:50 +0000 Subject: [PATCH] - Add "Fermer" link to portfolio items - Make portfolio list remember last filter so state is preserved when going back from viewing a portfolio item - Remove 'Voir le site' on portfolio items that have no URL set - Ensure image(s) are positioned correctly in portfolio scroller when there are not many images --- .../application/views/helpers/Realisation.php | 7 +++- images/close-portfolio.png | Bin 0 -> 236 bytes js/realisations.js | 4 +-- js/taglist.js | 31 +++++++++++++----- less/realisation.less | 23 +++++++++++++ 5 files changed, 54 insertions(+), 11 deletions(-) create mode 100644 images/close-portfolio.png diff --git a/framework/application/views/helpers/Realisation.php b/framework/application/views/helpers/Realisation.php index e5fc38e..12eaeaa 100644 --- a/framework/application/views/helpers/Realisation.php +++ b/framework/application/views/helpers/Realisation.php @@ -12,6 +12,7 @@ class Cubedesigners_View_Helper_Realisation extends CubeIT_View_Helper_Abstract $res .= '
'; $res .= '

' . $r->titre . '

'; $res .= '

' . Cubedesigners_Util::getCategoryById($r->categories) . '

'; + $res .= $this->view->link(__('Fermer'), $this->currentPage->getParent()->getHref(), array('class' => 'close')); $res.='
'; $slides = array(); @@ -25,7 +26,11 @@ class Cubedesigners_View_Helper_Realisation extends CubeIT_View_Helper_Abstract $res.=$this->imageSlideshowScroll($slides, 439, array(), array('shortcuts' => false)); $res.='
'; - $res.=$this->_button($r->url); + + if (!empty($r->url->url)) { + $res.=$this->_button($r->url); + } + $res.=$this->markupDotclear($r->description); $res.='
'; $res.=''; diff --git a/images/close-portfolio.png b/images/close-portfolio.png new file mode 100644 index 0000000000000000000000000000000000000000..d8b66ddef0275641ee45b7f3f9e1a106f990029a GIT binary patch literal 236 zcmV1#99AUgKUxwVuRQyHj2$cv%u~yuxP>@Z$$C>YuY