From: vincent@cubedesigners.com Date: Wed, 14 Aug 2013 16:31:15 +0000 (+0000) Subject: (no commit message) X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=a53996b9c180b4ff42158ab3223d3bd10a76decd;p=ccgm.git --- diff --git a/css/common.css b/css/common.css index a53a1cc..a6ce9f6 100644 --- a/css/common.css +++ b/css/common.css @@ -267,7 +267,7 @@ q:after{content:"";} margin:20px 0; } #content ul{ - margin:0; + margin:20px 0; padding:0; list-style:none; } diff --git a/css/faq.css b/css/faq.css new file mode 100644 index 0000000..801f5bb --- /dev/null +++ b/css/faq.css @@ -0,0 +1,12 @@ +#content ul.faq{ + margin:30px 0 0 0; +} + +.faq dt{ + font-weight: 500; + margin:12px 0; +} + +.faq dd{ + margin:12px 0 20px 0; +} \ No newline at end of file diff --git a/css/liens.css b/css/liens.css new file mode 100644 index 0000000..4260058 --- /dev/null +++ b/css/liens.css @@ -0,0 +1,14 @@ +.links{ + font-size: 16px; + font-weight: 300; +} + +.links li{ + margin:30px 0; +} + +.links li a{ + display: block; + margin:10px 0 0 0; + color:#0ea6db; +} \ No newline at end of file diff --git a/css/rightbar.css b/css/rightbar.css index 95b5920..085ba7f 100644 --- a/css/rightbar.css +++ b/css/rightbar.css @@ -1,6 +1,7 @@ #rightbar{ width:262px; display:inline-block; + margin:0 0 50px 0; } #rightbar>img{ diff --git a/framework/application/forms/CMS/Faq.php b/framework/application/forms/CMS/Faq.php new file mode 100644 index 0000000..2ff03d7 --- /dev/null +++ b/framework/application/forms/CMS/Faq.php @@ -0,0 +1,19 @@ +setLabel('Titre'); + $this->addElement($titre); + + $questions = new CCGM_Form_CMS_Sub_Faq_Questions(); + $questions->setLegend('Question / Réponses'); + $this->addSubForm($questions, 'questions'); + } + +} + +?> diff --git a/framework/application/forms/CMS/Liens.php b/framework/application/forms/CMS/Liens.php new file mode 100644 index 0000000..0012ef7 --- /dev/null +++ b/framework/application/forms/CMS/Liens.php @@ -0,0 +1,19 @@ +setLabel('Titre'); + $this->addElement($titre); + + $liens = new CCGM_Form_CMS_Sub_Liens(); + $liens->setLegend('Liens'); + $this->addSubForm($liens, 'liens'); + } + +} + +?> diff --git a/framework/application/forms/CMS/Sub/Faq/Question.php b/framework/application/forms/CMS/Sub/Faq/Question.php new file mode 100644 index 0000000..d6b03b5 --- /dev/null +++ b/framework/application/forms/CMS/Sub/Faq/Question.php @@ -0,0 +1,19 @@ +setLabel('Question'); + $this->addElement($question); + + $reponse = new CCGM_Form_Element_Markitup_Essential('reponse'); + $reponse->setLabel('Réponse'); + $reponse->setAttrib('rows', 6); + $this->addElement($reponse); + } + +} + +?> diff --git a/framework/application/forms/CMS/Sub/Faq/Questions.php b/framework/application/forms/CMS/Sub/Faq/Questions.php new file mode 100644 index 0000000..a9b8f0d --- /dev/null +++ b/framework/application/forms/CMS/Sub/Faq/Questions.php @@ -0,0 +1,15 @@ +setBaseSubForm($base); + $this->setNewLegend('Nouvelle question'); + $this->setBaseLegend('Editer la question « $question »'); + } + +} + +?> diff --git a/framework/application/forms/CMS/Sub/Liens.php b/framework/application/forms/CMS/Sub/Liens.php new file mode 100644 index 0000000..fbde543 --- /dev/null +++ b/framework/application/forms/CMS/Sub/Liens.php @@ -0,0 +1,16 @@ +setBaseSubForm($base); + $this->setBaseLegend('Editer le lien « $label »'); + $this->setNewLegend('Nouveau lien'); + } + +} + +?> diff --git a/framework/application/forms/CMS/Sub/Liens/Lien.php b/framework/application/forms/CMS/Sub/Liens/Lien.php new file mode 100644 index 0000000..0f984fe --- /dev/null +++ b/framework/application/forms/CMS/Sub/Liens/Lien.php @@ -0,0 +1,13 @@ +pageEnabled(false); + } + +} + +?> diff --git a/framework/application/views/helpers/Faq.php b/framework/application/views/helpers/Faq.php new file mode 100644 index 0000000..f3d69be --- /dev/null +++ b/framework/application/views/helpers/Faq.php @@ -0,0 +1,20 @@ +'; + $item.='
' . $q['question'] . '
'; + $item.='
' . $q['reponse'] . '
'; + $item.=''; + $items[] = $item; + } + + return $this->view->listUnordered($items, array('class' => 'faq')); + } + +} + +?> diff --git a/framework/application/views/helpers/Liens.php b/framework/application/views/helpers/Liens.php new file mode 100644 index 0000000..6562cdf --- /dev/null +++ b/framework/application/views/helpers/Liens.php @@ -0,0 +1,26 @@ +view->link($label, $l['url']); + } + $items[] = $item; + } + + return ''; + } + +} + +?> diff --git a/framework/application/views/scripts/templates/faq.phtml b/framework/application/views/scripts/templates/faq.phtml new file mode 100644 index 0000000..798e426 --- /dev/null +++ b/framework/application/views/scripts/templates/faq.phtml @@ -0,0 +1,8 @@ +headScript()->addScriptAndStyle('faq') ?> +
+
+

titre ?>

+ faq($this->questions); ?> +
+ rightbar() ?> +
\ No newline at end of file diff --git a/framework/application/views/scripts/templates/liens.phtml b/framework/application/views/scripts/templates/liens.phtml new file mode 100644 index 0000000..12fef00 --- /dev/null +++ b/framework/application/views/scripts/templates/liens.phtml @@ -0,0 +1,8 @@ +headScript()->addScriptAndStyle('liens') ?> +
+
+

titre ?>

+ liens($this->liens); ?> +
+ rightbar() ?> +
\ No newline at end of file