$content->setLabel('Contenus');
$this->addElement($content);
- $icon = new CubeIT_Form_Element_File_Image('icon');
- $icon->setLabel('Pictogramme');
+ $icon = new Zend_Form_Element_Text('icon');
+ $icon->setLabel('Pictogramme reference (CSS class)');
$this->addElement($icon);
$bg_gradient = new Fluidbook_Form_CMS_Sub_Gradient();
$res .= '<div class="feature-inner">';
- if (is_array($block['icon'])) {
- $res .= $this->imageCms($block['icon'], '', null, null, ['class' => 'feature-icon']);
+ if (!empty($block['icon'])) {
+ $res .= '<div class="feature-icon fb-'. $block['icon'] .'"></div>';
}
$res .= '<div class="feature-text">';
overflow: hidden;
background-repeat: no-repeat;
background-size: 100%;
+ color: @color-text;
// Block layouts
&.rectangle-right, &.rectangle-bottom {
}
.feature-icon {
+ font-size: 65px;
+ line-height: 49px;
margin-bottom: 30px;
margin-right: 30px;
.small-rectangle-wide & {
float: left;
}
+
+ // Hide icon for these views by default
+ .rectangle-right &,
+ .rectangle-bottom &,
+ .square-top &,
+ .square-bottom & {
+ display: none;
+ }
}
.feature-text {
+ overflow: hidden;
+
.rectangle-right & {
width: 30%;
}