From: stephen@cubedesigners.com Date: Thu, 8 Jan 2015 10:25:25 +0000 (+0000) Subject: Many changes to make the website more responsive X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=3e82e07bf4e5afbb0453f9bd73345a23fbb9cf33;p=cubedesigners-v7.git Many changes to make the website more responsive --- diff --git a/framework/application/configs/application.ini b/framework/application/configs/application.ini index bfdf04b..e063696 100644 --- a/framework/application/configs/application.ini +++ b/framework/application/configs/application.ini @@ -56,7 +56,7 @@ database.params.dbname = cubev6dev locales.fr = dev.cubedesigners.fr locales.en = dev.cubedesigners.com -httpauth.username = cubedesigners -httpauth.password = cubedesigners +;httpauth.username = cubedesigners +;httpauth.password = cubedesigners webhost = dev.cubedesigners.fr \ No newline at end of file diff --git a/framework/application/layouts/scripts/layout.phtml b/framework/application/layouts/scripts/layout.phtml index 31b4eda..5e3b97c 100644 --- a/framework/application/layouts/scripts/layout.phtml +++ b/framework/application/layouts/scripts/layout.phtml @@ -11,7 +11,7 @@ $this->headScript()->addIEConditionnals(); $this->headScript()->appendFile('/js/common.js'); $this->headLink()->appendStylesheet('/less/common.less', 'all'); -$this->headMeta()->setViewport(1080); +$this->headMeta()->setViewport('device-width', null, '1.0'); profile(__FILE__, __LINE__, 'Before rendering body'); $res = $this->htmlPage($this->render('common/body.phtml')); diff --git a/framework/application/views/helpers/AgencyBlocs.php b/framework/application/views/helpers/AgencyBlocs.php index f7c13a0..c229871 100644 --- a/framework/application/views/helpers/AgencyBlocs.php +++ b/framework/application/views/helpers/AgencyBlocs.php @@ -20,10 +20,11 @@ class Cubedesigners_View_Helper_AgencyBlocs extends Zend_View_Helper_Abstract { $res.='
'; $res.=''; - $res.='

' . $bloc['titre'] . '

'; + $res.='
'; + $res.='

' . $bloc['titre'] . '

'; $res.='' . $bloc['poste'] . ''; $res.= $this->view->markupDotclear($bloc['texte'], array('class' => 'texte')); - $res.='
'; + $res.='
'; $i++; } diff --git a/framework/application/views/helpers/AgencyPictos.php b/framework/application/views/helpers/AgencyPictos.php index 4b62dc3..e3e4c72 100644 --- a/framework/application/views/helpers/AgencyPictos.php +++ b/framework/application/views/helpers/AgencyPictos.php @@ -12,10 +12,6 @@ class Cubedesigners_View_Helper_AgencyPictos extends Zend_View_Helper_Abstract { foreach ($blocs as $id => $bloc) { - if (($i % 3) == 0 && $i != 0) { - $res.='
'; - } - $image = $this->view->imageCms($bloc['picto'], '', 70, 70, array()); $res .= '
'; diff --git a/framework/application/views/helpers/HomeBlocs.php b/framework/application/views/helpers/HomeBlocs.php index 25dbe56..d3ec6bf 100644 --- a/framework/application/views/helpers/HomeBlocs.php +++ b/framework/application/views/helpers/HomeBlocs.php @@ -9,11 +9,11 @@ class Cubedesigners_View_Helper_HomeBlocs extends Zend_View_Helper_Abstract { $res = ''; $i = 0; foreach ($blocs as $bloc) { - if ($cols == 2) { - if (($i % 2) == 0 && $i != 0) { - $res.='
'; - } - } +// if ($cols == 2) { +// if (($i % 2) == 0 && $i != 0) { +// $res.='
'; +// } +// } $image = $this->view->imageCms($bloc['picto'], $bloc['titre'], 120, 120); $res .= '
'; $res.= $image; diff --git a/framework/application/views/helpers/Liste.php b/framework/application/views/helpers/Liste.php index 21e316b..26cbb9f 100644 --- a/framework/application/views/helpers/Liste.php +++ b/framework/application/views/helpers/Liste.php @@ -8,7 +8,7 @@ class Cubedesigners_View_Helper_Liste extends Zend_View_Helper_Abstract { $attrs = array_merge($defaultAttrs, $attrs); $this->view->headLink()->appendStylesheet('/less/list.less'); - $res = '
'; + $res = '
'; if ($items['titre']) { $res.='

' . ucfirst($items['titre']) . '

'; } diff --git a/framework/application/views/helpers/Twocols.php b/framework/application/views/helpers/Twocols.php index 4688d08..b638711 100644 --- a/framework/application/views/helpers/Twocols.php +++ b/framework/application/views/helpers/Twocols.php @@ -4,10 +4,11 @@ class Cubedesigners_View_Helper_Twocols extends Zend_View_Helper_Abstract { public function twocols($displayTitle = true) { $this->view->headLink()->appendStylesheet('/less/twocols.less'); - $res = '
'; + $res = '
'; $res.='
'; if ($displayTitle && trim($this->view->titre)) { - $res.= '
' . $this->view->markupDotclear($this->view->titre) . '
'; + // Replacing
tags with normal line breaks to allow for more flexible styling via CSS white-space + $res.= '
' . str_replace('
', "\n", $this->view->markupDotclear($this->view->titre)) . '
'; } $res.='
'; $res.='
' . $this->view->markupDotclear($this->view->colonnegauche) . '
'; diff --git a/framework/application/views/scripts/common/footer.phtml b/framework/application/views/scripts/common/footer.phtml index cbc43a8..f9679d4 100644 --- a/framework/application/views/scripts/common/footer.phtml +++ b/framework/application/views/scripts/common/footer.phtml @@ -11,7 +11,7 @@ echo $this->clear();