class Fluidbook_Form_CMS_Sub_Social_Network extends CubeIT_Form_SubForm {
- public function init() {
- parent::init();
+ public function init() {
+ parent::init();
- $title = new Zend_Form_Element_Text('title');
- $title->setLabel('Titre du réseau social');
- $this->addElement($title);
+ $title = new Zend_Form_Element_Text('title');
+ $title->setLabel('Titre du réseau social');
+ $this->addElement($title);
- $url = new CubeIT_Form_Element_Url('url');
- $url->setLabel('URL');
- $this->addElement($url);
+ $url = new CubeIT_Form_Element_Url('url');
+ $url->setLabel('URL');
+ $this->addElement($url);
- $couleur = new CubeIT_Form_Element_Color('color');
- $couleur->setLabel('Couleur');
- $this->addElement($couleur);
+ $couleur = new CubeIT_Form_Element_Color('color');
+ $couleur->setLabel('Couleur');
+ $this->addElement($couleur);
- $icon = new CubeIT_Form_Element_File_Image('icon');
- $icon->setLabel('Pictogramme');
- $icon->setMaxItems(1);
- $this->addElement($icon);
- }
+ $icon = new Zend_Form_Element_Text('icon');
+ $icon->setLabel('Pictogramme (fontastic)');
+ $this->addElement($icon);
+ }
}
\ No newline at end of file
\r
$res .= '<div class="footer-social">';\r
foreach ($this->option('social_networks') as $social) {\r
- $res .= '<a href="'. $social['url'] .'" style="color:'. $social['color'] .'" class="social-link" target="_blank">';\r
- $res .= $this->imageCms($social['icon'], $social['title'], 52, 52);\r
- $res .= '</a>';\r
+ $res .= '<style type="text/css">';\r
+ $res .= '#s-' . $social['icon'] . ':hover{background-color: ' . $social['color'] . ';border-color: ' . $social['color'] . ';}';\r
+ $res .= '</style>';\r
+ $res .= '<a href="' . $social['url'] . '" id="s-' . $social['icon'] . '" class="social-link fb-' . $social['icon'] . '" target="_blank">';\r
+ $res .= '</a>';\r
}\r
$res .= '</div>'; // .footer-social\r
\r