class Cubedesigners_Form_CMS_Sub_Casestudies_Studie extends CubeIT_Form_SubForm {
public function init() {
- parent::init();
+ parent::init();
- $online = new Zend_Form_Element_Checkbox('online');
- $online->setLabel('En ligne');
- $this->addElement($online);
+ $online = new Zend_Form_Element_Checkbox('online');
+ $online->setLabel('En ligne');
+ $this->addElement($online);
- $titre = new Zend_Form_Element_Text('titre');
- $titre->setLabel('Titre');
- $this->addElement($titre);
+ $titre = new Zend_Form_Element_Text('titre');
+ $titre->setLabel('Titre');
+ $this->addElement($titre);
- $description = new Zend_Form_Element_Text('description');
- $description->setLabel('Description');
- $this->addElement($description);
+ $description = new Zend_Form_Element_Text('description');
+ $description->setLabel('Description');
+ $this->addElement($description);
- $visuel = new CubeIT_Form_Element_File_Image('visuel');
- $visuel->setLabel('Visuel de la page Case Studies');
- $visuel->setMaxItems(1);
- $this->addElement($visuel);
+ $visuel = new CubeIT_Form_Element_File_Image('visuel');
+ $visuel->setLabel('Visuel de la page Case Studies');
+ $visuel->setMaxItems(1);
+ $this->addElement($visuel);
- $blocs = new Cubedesigners_Form_CMS_Sub_Casestudies_Content_Blocs('blocs');
- $blocs->setLegend('Contenu');
- $this->addSubForm($blocs, 'blocs');
+ $blocs = new Cubedesigners_Form_CMS_Sub_Casestudies_Content_Blocs('blocs');
+ $blocs->setLegend('Contenu');
+ $this->addSubForm($blocs, 'blocs');
- $tags = new Cubedesigners_Form_Element_Tags('tags');
- $tags->setLabel('Tags');
- $this->addElement($tags);
+ $tags = new Cubedesigners_Form_Element_Tags('tags');
+ $tags->setLabel('Tags');
+ $this->addElement($tags);
}
}
<!-- Generator: Adobe Illustrator 15.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->\r
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN" "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">\r
<svg version="1.0" id="GroupLogo" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"\r
- width="317.94px" height="132px" viewBox="0 0 317.94 132" enable-background="new 0 0 317.94 132" xml:space="preserve">\r
+ width="317.94px" height="132px" viewBox="0 0 317.94 132" enable-background="new 0 0 317.94 132" xml:space="preserve" class="svglogo">\r
<path id="Background" fill-rule="evenodd" clip-rule="evenodd" fill="#3885E0" d="M17.715,123.41\r
c0.464,3.398,2.586,6.161,5.437,7.59h12.988l272.152-36.653c5.473-0.748,9.303-5.789,8.556-11.261L305.639,1H0.999L17.715,123.41z"\r
/>\r
+//global radomized color pallette\r
+var colors = ["#6F216C", "#F34B0D", "#C50102", "#5DA537", "#F1D81B"];\r
+\r
+//turn an icon a random color\r
+$(function() {\r
+ $("#header").hover(function() {\r
+ var color = colors[Math.floor(Math.random()*5)];\r
+ $(this).css('fill',color); \r
+ },\r
+ function() {\r
+ $(this).css('fill','black');\r
+ })\r
+});\r