From e7ff32f513de5a3daad830adb1f7f552bb497390 Mon Sep 17 00:00:00 2001 From: "vincent@cubedesigners.com" Date: Wed, 14 Aug 2013 14:30:01 +0000 Subject: [PATCH] --- css/common.css | 46 +++++++------ css/sidebar.css | 66 +++++++++++++++++++ .../controllers/IndexController.php | 7 +- framework/application/forms/CMS/Default.php | 16 +++++ framework/application/forms/CMS/Text.php | 13 +++- .../application/forms/Element/Markitup.php | 7 ++ .../application/views/helpers/Bcrumbs.php | 18 +++++ .../application/views/helpers/Topimage.php | 19 ++++++ .../views/scripts/common/content.phtml | 23 ++++++- .../views/scripts/templates/text.phtml | 36 +--------- 10 files changed, 188 insertions(+), 63 deletions(-) create mode 100644 css/sidebar.css create mode 100644 framework/application/forms/CMS/Default.php create mode 100644 framework/application/forms/Element/Markitup.php create mode 100644 framework/application/views/helpers/Bcrumbs.php create mode 100644 framework/application/views/helpers/Topimage.php diff --git a/css/common.css b/css/common.css index 368e432..a53a1cc 100644 --- a/css/common.css +++ b/css/common.css @@ -214,10 +214,10 @@ q:after{content:"";} #content, .contents{ - padding:0 0 30px 0; + padding:0 0 50px 0; } .twocolumns{ - margin: 0 0 231px -3px; + margin: 0 0 0 -3px; overflow:hidden; } .twocolumns #content, @@ -234,11 +234,8 @@ q:after{content:"";} line-height:40px; font-weight:300; } -#content .head{ - overflow:hidden; - margin: 0 0 33px; -} -#content .sub-heading{ + +#content h2{ font-size:32px; line-height:35px; font-weight:300; @@ -246,31 +243,29 @@ q:after{content:"";} color:#f5810f; margin:0 0 38px; } -#content .rectum{ - display:block; +#content h3{ text-transform:uppercase; color:#696969; font-size:22px; line-height:25px; margin: 0 0 31px; + font-weight:400; } -#content .scanner{ - display:block; +#content h4{ font-weight:500; color:#e71a92; font-size:20px; line-height:23px; + margin:0 0 33px 0; } -#content .text-box{ - margin:0 0 19px; - overflow:hidden; +#content p{ + margin:20px 0; } -#content .text-box .heading{ - display: block; +#content h5{ font-weight: 500; - margin:0 0 20px; + font-size: 16px; + margin:20px 0; } -#content p{margin:0 0 20px;} #content ul{ margin:0; padding:0; @@ -280,28 +275,31 @@ q:after{content:"";} background:url(../images/arrow-li.svg) no-repeat 0 2px; padding:0 0 3px 30px; } -#content .suggestion{ - font-weight:300; - font-style:italic; +#content blockquote{ border-radius:3px; background:#f1f0f0; margin:-4px 0 0; padding:19px 10px 24px 24px; } -#content .suggestion .heading{ +#content blockquote h4{ font-weight:500; display:block; font-style:normal; + font-size: 16px; + color:#5e5e5e; margin: 0 0 6px; + } -#content .suggestion>ul{ +#content blockquote>ul{ margin:0; padding:0; list-style:none; } -#content .suggestion>ul>li{ +#content blockquote>ul>li{ background:url(../images/bullet.svg) no-repeat 2px 8px; padding: 0 0 3px 9px; + font-style:italic; + font-weight:300; } #footer .timing.info-area{ diff --git a/css/sidebar.css b/css/sidebar.css new file mode 100644 index 0000000..bcc0bf8 --- /dev/null +++ b/css/sidebar.css @@ -0,0 +1,66 @@ +#sidebar{ + width:179px; + float:left; + margin:6px 0 50px 0; +} +.sidenav{ + border-radius:3px; + padding: 7px 0 8px; + background:#0ea6db; +} +.sidenav ul{ + margin:0; + padding:0; + list-style:none; +} +.sidenav span{font-size:13px;} +.sidenav a:hover{text-decoration:none;} + +.sidenav>ul>li:hover, +.sidenav>ul>li.active +{ + background:url(../images/arrow-nav-1.svg) no-repeat 9px 7px; +} + +.sidenav>ul>li>a{ + padding:7px 0 11px 39px; + color:#fff; + display:block; +} +.sidenav>ul>li>ul{ + overflow:hidden; + border:0; + color:#035277; + font:13px; + background:#f3fafd; + padding: 0 5px 12px 39px; + width:137px; + margin:0 -1px -1px; + overflow:hidden; +} +.sidenav>ul>li>ul:first-child{padding: 0 5px 20px 39px;} + +.sidenav>ul>li>ul>li>a{ + font-weight:500; + display:block; + padding: 5px 0 0; +} + +.sidenav ul ul a{ + color: #035277; + display: block; + font-size: 13px; + line-height: 16px; +} +.sidenav ul ul li{ + margin: 0 0 1px; + padding: 8px 0 0; +} +.sidenav ul ul ul li:hover, +.sidenav ul ul ul li.active +{ + background:url(../images/arrow-nav-2.svg) no-repeat 22px 12px; + padding:8px 0 0 39px; + margin:0 0 1px -39px +} + diff --git a/framework/application/controllers/IndexController.php b/framework/application/controllers/IndexController.php index d4df531..8b56c5b 100644 --- a/framework/application/controllers/IndexController.php +++ b/framework/application/controllers/IndexController.php @@ -1,6 +1,11 @@ view->showbreadcrubms = $this->view->showsidebar = $this->view->showtopimage = true; + return parent::pageAction(); + } + } diff --git a/framework/application/forms/CMS/Default.php b/framework/application/forms/CMS/Default.php new file mode 100644 index 0000000..7537007 --- /dev/null +++ b/framework/application/forms/CMS/Default.php @@ -0,0 +1,16 @@ +setLabel('Image en tête des contenus'); + $image->setMaxItems(1); + $this->addElement($image); + } + +} + +?> diff --git a/framework/application/forms/CMS/Text.php b/framework/application/forms/CMS/Text.php index f7cd8d6..0a0a47b 100644 --- a/framework/application/forms/CMS/Text.php +++ b/framework/application/forms/CMS/Text.php @@ -1,7 +1,16 @@ setLabel('Texte'); + $contenus->setAttrib('rows', 30); + $this->addElement($contenus); + } + } ?> diff --git a/framework/application/forms/Element/Markitup.php b/framework/application/forms/Element/Markitup.php new file mode 100644 index 0000000..c2daf76 --- /dev/null +++ b/framework/application/forms/Element/Markitup.php @@ -0,0 +1,7 @@ + diff --git a/framework/application/views/helpers/Bcrumbs.php b/framework/application/views/helpers/Bcrumbs.php new file mode 100644 index 0000000..c635d54 --- /dev/null +++ b/framework/application/views/helpers/Bcrumbs.php @@ -0,0 +1,18 @@ +view->showbreadcrubms) { + return; + } + + $res = ''; + return $res; + } + +} + diff --git a/framework/application/views/helpers/Topimage.php b/framework/application/views/helpers/Topimage.php new file mode 100644 index 0000000..d19bec3 --- /dev/null +++ b/framework/application/views/helpers/Topimage.php @@ -0,0 +1,19 @@ +view->showtopimage) { + return ''; + } + $res = '
'; + $res.='
'; + $res.='
image description
'; + $res.='
'; + $res.='
'; + return $res; + } + +} + +?> diff --git a/framework/application/views/scripts/common/content.phtml b/framework/application/views/scripts/common/content.phtml index 5eb0ca9..b8ab857 100644 --- a/framework/application/views/scripts/common/content.phtml +++ b/framework/application/views/scripts/common/content.phtml @@ -1,5 +1,26 @@ layout()->content . "\n"; + + +if ($this->currentPage->getTemplate() == 'home') { + $c = $content; +} else { + $leftbar = $this->leftbar(); + $c = $this->topimage(); + $c.='
'; + $c.=$this->bcrumbs(); + if ($this->showsidebar) { + $c.='
'; + } + $c.=$content; + if ($this->showsidebar) { + $c.=$leftbar; + $c.='
'; + } + $c.='
'; +} + echo $this->render('common/header.phtml'); -echo $this->layout()->content . "\n"; +echo $c; echo $this->render('common/footer.phtml'); diff --git a/framework/application/views/scripts/templates/text.phtml b/framework/application/views/scripts/templates/text.phtml index 2bb61e1..c8f95fb 100644 --- a/framework/application/views/scripts/templates/text.phtml +++ b/framework/application/views/scripts/templates/text.phtml @@ -1,37 +1,3 @@
-

Pathologies

-
- Le digestif - Le rectum - Le scanner dosimétrique -
-

Cet examen n’est pas réalisé dans un but de diagnostic : aucune interprétation ne sera réalisée.

-
- Ce scanner a pour but : -
    -
  • De définir votre positionnement pendant tout votre traitement (contention)
  • -
  • De pouvoir reconstruire virtuellement votre corps en 3D afin de délimiter plus précisément les zones à traiter et celles à protéger.
  • -
-
-
- Déroulement de l’examen : -
    -
  • Des marques au feutre sont faites sur la peau
  • -
  • Des repères métalliques sont posés sur les marques
  • -
  • Le scanner est réalisé
  • -
  • Les marques peuvent être déplacées si nécessaire
  • -
  • Lorsque le positionnement est validé, des points de tatouages très discrets sont réalisés.
  • -
  • Les images de ce scanner sont récupérées par le service de Physique médicale afin de réaliser la Dosimétrie
  • -
-
-

A la fin de cet examen, vous rencontrerez un manipulateur de radiothérapie qui fixera avec vous votre
début de traitement et vous expliquera les modalités de la radiothérapie.

-

Des conseils vous seront donnés pour minimiser les effets secondaires : mesure d’hygiène, habillement, vie quotidienne…

-
- Conseils -
    -
  • Se laver avec un savon doux (Marseille, Alep)
  • -
  • Privilégier les vêtements en coton au contact direct de la peau
  • -
  • Suivre les conseils alimentaires
  • -
-
+ markupDotclear($this->text); ?>
\ No newline at end of file -- 2.39.5