From: vincent@cubedesigners.com Date: Fri, 4 Oct 2013 08:28:00 +0000 (+0000) Subject: (no commit message) X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=abf2364659edcac469f18d1d649231e2deb7346c;p=ccgm.git --- diff --git a/.ovhconfig b/.ovhconfig index cbd0e2f..fb174a6 100644 --- a/.ovhconfig +++ b/.ovhconfig @@ -1,2 +1,3 @@ app.engine=php -app.engine.version=5.5 \ No newline at end of file +app.engine.version=5.5 +environement = development \ No newline at end of file diff --git a/framework/application/forms/CMS/Parcours.php b/framework/application/forms/CMS/Parcours.php new file mode 100644 index 0000000..d16ace4 --- /dev/null +++ b/framework/application/forms/CMS/Parcours.php @@ -0,0 +1,15 @@ +setLegend('Etapes'); + $this->addSubForm($etapes, 'etapes'); + } + +} + +?> diff --git a/framework/application/forms/CMS/Sub/Parcours/Etape.php b/framework/application/forms/CMS/Sub/Parcours/Etape.php new file mode 100644 index 0000000..36c308e --- /dev/null +++ b/framework/application/forms/CMS/Sub/Parcours/Etape.php @@ -0,0 +1,29 @@ +setLabel('Titre de la bulle'); + $this->addElement($titre); + + $soustitre = new Zend_Form_Element_Text('soustitre'); + $soustitre->setLabel('Sous-titre'); + $this->addElement($soustitre); + + $contenu = new CubeIT_Form_Element_Markitup_Essential('contenu'); + $contenu->setLabel('Contenu (affiché au passage de la souris)'); + $contenu->setAttrib('rows', 5); + $this->addElement($contenu); + + $couleur = new Zend_Form_Element_Select('couleur'); + $couleur->setLabel('Couleur'); + $couleur->setMultiOptions(array('orange' => 'Orange', 'vert' => 'Vert', 'bleu' => 'Bleu', 'petrole' => 'Petrole', 'rose' => 'Rose')); + $this->addElement($couleur); + } + +} + +?> diff --git a/framework/application/forms/CMS/Sub/Parcours/Etapes.php b/framework/application/forms/CMS/Sub/Parcours/Etapes.php new file mode 100644 index 0000000..9f732e4 --- /dev/null +++ b/framework/application/forms/CMS/Sub/Parcours/Etapes.php @@ -0,0 +1,17 @@ +setBaseSubForm($etape); + $this->setBaseLegend('Edition de l`étape « $titre »'); + $this->setNewLegend('Nouvelle étape'); + } + +} + +?> diff --git a/framework/application/views/helpers/Etapes.php b/framework/application/views/helpers/Etapes.php new file mode 100644 index 0000000..a5dd5a5 --- /dev/null +++ b/framework/application/views/helpers/Etapes.php @@ -0,0 +1,44 @@ +'; + $nb = count($etapes); + foreach ($etapes as $k => $etape) { + $res.=$this->_etape($etape, $k+1, $nb); + } + $res.=''; + + return $res; + } + + protected function _etape($e, $i, $total) { + $pos = $this->_getPosition($i, $total); + $res = '
'; + $res.='
'; + $res.='

' . $e['titre'] . '

'; + $res.='

' . $e['soustitre'] . '

'; + $res.='
'; + $res.=$this->view->markupDotclear($e['contenu']); + $res.='
'; + return $res; + } + + protected function _getPosition($i, $total) { + $dim = array(1 => array(72, 52), + 2 => array(451, 2), + 3 => array(618, 213), + 4 => array(281, 241), + 5 => array(3, 391), + 6 => array(295, 467), + 7 => array(596, 431), + ); + + $d = $dim[$i]; + return array('left' => $d[0], 'top' => $d[1]); + } + +} + +?> diff --git a/framework/application/views/scripts/templates/parcours.phtml b/framework/application/views/scripts/templates/parcours.phtml index ab4fa67..ec9b560 100644 --- a/framework/application/views/scripts/templates/parcours.phtml +++ b/framework/application/views/scripts/templates/parcours.phtml @@ -1,2 +1,12 @@ headScript()->addScriptAndStyle('parcours'); +?> +
+
+ markupDotclear($this->text); + echo $this->etapes($this->etapes); + ?> +
+ rightbar() ?> +
\ No newline at end of file diff --git a/images/etapes.png b/images/etapes.png new file mode 100644 index 0000000..f4181ef Binary files /dev/null and b/images/etapes.png differ diff --git a/less/parcours.less b/less/parcours.less new file mode 100644 index 0000000..6ac36c8 --- /dev/null +++ b/less/parcours.less @@ -0,0 +1,11 @@ +#etapes{ + background-image: url("../images/etapes.png"); + position:relative; + width:709px; + height:477px; + margin:140px 0 50px -20px; + + .etape{ + position:absolute; + } +} \ No newline at end of file