| 1 |
<?php |
| 2 |
|
| 3 |
function fca_eoi_layout_descriptor_3( $name, $layout_id, $include_fold, $texts ) { |
| 4 |
$layout = new EasyOptInsLayout( $layout_id ); |
| 5 |
$class = $layout->layout_class; |
| 6 |
|
| 7 |
$headline = array( |
| 8 |
'.fca_eoi_layout_3.' . $class . ' div.fca_eoi_layout_headline_copy_wrapper div' => array( |
| 9 |
'font-size' => array( __( 'Font Size'), '30px'), |
| 10 |
'color' => array( __( 'Font Color'), '#FFF'), |
| 11 |
'background-color' => array( __( 'Background Color' ), '#344860' ), |
| 12 |
) |
| 13 |
); |
| 14 |
|
| 15 |
if ( $include_fold ) { |
| 16 |
$headline['.fca_eoi_layout_3.' . $class . ' svg.fca_eoi_layout_headline_copy_triangle'] = array( |
| 17 |
'fill' => array( __( 'Fold Color' ), '#344860' ), |
| 18 |
); |
| 19 |
} |
| 20 |
|
| 21 |
return array( |
| 22 |
|
| 23 |
'name' => __( $name ), |
| 24 |
|
| 25 |
'editables' => array( |
| 26 |
|
| 27 |
// Added to the fieldset "Form Background" |
| 28 |
'form' => array( |
| 29 |
'.fca_eoi_layout_3.' . $class => array( |
| 30 |
'background-color' => array( __( 'Form Background Color' ), '#EEE' ), |
| 31 |
'border-color' => array( __( 'Border Color' ), '#D2D2D2' ), |
| 32 |
), |
| 33 |
), |
| 34 |
'headline' => $headline, |
| 35 |
'description' => array( |
| 36 |
'.fca_eoi_layout_3.' . $class . ' div.fca_eoi_layout_description_copy_wrapper p, '. |
| 37 |
'.fca_eoi_layout_3.' . $class . ' div.fca_eoi_layout_description_copy_wrapper div' => array( |
| 38 |
'font-size' => array( __( 'Font Size' ), '14px'), |
| 39 |
'color' => array( __( 'Font Color' ), '#6D6D6D'), |
| 40 |
) |
| 41 |
), |
| 42 |
'name_field' => array( |
| 43 |
'.fca_eoi_layout_3.' . $class . ' div.fca_eoi_layout_name_field_wrapper, ' . |
| 44 |
'.fca_eoi_layout_3.' . $class . ' div.fca_eoi_layout_name_field_wrapper input, ' . |
| 45 |
'.fca_eoi_layout_3.' . $class . ' div.fca_eoi_layout_name_field_wrapper i.fa:before' => array( |
| 46 |
'font-size' => array( __( 'Font Size' ), '14px'), |
| 47 |
'color' => array( __( 'Font Color' ), '#444' ), |
| 48 |
), |
| 49 |
'.fca_eoi_layout_3.' . $class . ' div.fca_eoi_layout_name_field_wrapper' => array( |
| 50 |
'border-color' => array( __( 'Border Color' ), '#D2D2D2' ), |
| 51 |
), |
| 52 |
), |
| 53 |
'email_field' => array( |
| 54 |
'.fca_eoi_layout_3.' . $class . ' div.fca_eoi_layout_email_field_wrapper, ' . |
| 55 |
'.fca_eoi_layout_3.' . $class . ' div.fca_eoi_layout_email_field_wrapper input, ' . |
| 56 |
'.fca_eoi_layout_3.' . $class . ' div.fca_eoi_layout_email_field_wrapper i.fa:before' => array( |
| 57 |
'font-size' => array( __( 'Font Size' ), '14px'), |
| 58 |
'color' => array( __( 'Font Color' ), '#444' ), |
| 59 |
), |
| 60 |
'.fca_eoi_layout_3.' . $class . ' div.fca_eoi_layout_email_field_wrapper' => array( |
| 61 |
'border-color' => array( __( 'Border Color' ), '#D2D2D2' ), |
| 62 |
), |
| 63 |
), |
| 64 |
'button' => array( |
| 65 |
'.fca_eoi_layout_3.' . $class . ' div.fca_eoi_layout_submit_button_wrapper input' => array( |
| 66 |
'font-size' => array( __( 'Font Size' ), '14px'), |
| 67 |
'color' => array( __( 'Font Color' ), '#FFF' ), |
| 68 |
'background-color' => array( __( 'Background Color' ), '#D35500' ), |
| 69 |
'border-color' => array( __( 'Border Color' ), '#ac4500' ), |
| 70 |
), |
| 71 |
'.fca_eoi_layout_3.' . $class . ' div.fca_eoi_layout_submit_button_wrapper input:hover' => array( |
| 72 |
'background-color' => array( __( 'Hover Background Color' ), '#ac4500' ), |
| 73 |
), |
| 74 |
), |
| 75 |
'privacy' => array( |
| 76 |
'.fca_eoi_layout_3.' . $class . ' div.fca_eoi_layout_privacy_copy_wrapper div' => array( |
| 77 |
'font-size' => array( __( 'Font Size' ), '13px'), |
| 78 |
'color' => array( __( 'Font Color' ), '#B3B3B3' ), |
| 79 |
), |
| 80 |
), |
| 81 |
'fatcatapps' => array( |
| 82 |
'.fca_eoi_layout_3.' . $class . ' div.fca_eoi_layout_fatcatapps_link_wrapper a, ' . |
| 83 |
'.fca_eoi_layout_3.' . $class . ' div.fca_eoi_layout_fatcatapps_link_wrapper a:hover' => array( |
| 84 |
'color' => array( __( 'Font Color' ), '#D8722B'), |
| 85 |
), |
| 86 |
), |
| 87 |
), |
| 88 |
|
| 89 |
'autocolors' => array( |
| 90 |
array( |
| 91 |
'source' => '[.fca_eoi_layout_3.' . $class . ' div.fca_eoi_layout_headline_copy_wrapper div][background-color]', |
| 92 |
'destination' => '[.fca_eoi_layout_3.' . $class . ' svg.fca_eoi_layout_headline_copy_triangle][fill]', |
| 93 |
'operations' => array(), |
| 94 |
), |
| 95 |
array( |
| 96 |
'source' => '[.fca_eoi_layout_3.' . $class . ' div.fca_eoi_layout_submit_button_wrapper input][background-color]', |
| 97 |
'destination' => '[.fca_eoi_layout_3.' . $class . ' div.fca_eoi_layout_submit_button_wrapper input][border-color]', |
| 98 |
'operations' => array( |
| 99 |
'spin' => '-0.10084867188361457', |
| 100 |
'darken' => '7.647058823529407', |
| 101 |
), |
| 102 |
), |
| 103 |
array( |
| 104 |
'source' => '[.fca_eoi_layout_3.' . $class . ' div.fca_eoi_layout_submit_button_wrapper input][background-color]', |
| 105 |
'destination' => '[.fca_eoi_layout_3.' . $class . ' div.fca_eoi_layout_submit_button_wrapper input:hover][background-color]', |
| 106 |
'operations' => array( |
| 107 |
'spin' => '-0.10084867188361457', |
| 108 |
'darken' => '7.647058823529407', |
| 109 |
), |
| 110 |
), |
| 111 |
), |
| 112 |
|
| 113 |
'texts' => $texts |
| 114 |
); |
| 115 |
} |