Border Field Configuration Examples
<?php
class SIMP_SimpleHeader extends ET_Builder_Module {
// Example 1: Include Borders Field using its default configuartion
public function get_advanced_fields_config() {
return array();
}
// Example 2: Include Borders Field using a custom configuartion
public function get_advanced_fields_config() {
return array(
'borders' => array(
'default' => array(
'css' => array(
'main' => array(
'border_styles' => "{$this->main_css_element}.simp-custom-class",
),
),
'defaults' => array(
'border_radii' => 'on|3px|3px|3px|3px',
),
),
),
);
}
// Example 3: Do not include Borders Field
public function get_advanced_fields_config() {
return array(
'borders' => false,
);
}
}