lots0logs
3/25/2018 - 3:43 AM

Background Field Configuration Examples

Background Field Configuration Examples

<?php

class SIMP_SimpleHeader extends ET_Builder_Module {

	// Example 1: Include Background Field using its default configuartion
	public function get_advanced_fields_config() {
		return array();
	}

	// Example 2: Include Background Field using a custom configuartion
	public function get_advanced_fields_config() {
		return array(
			'background' => array(
				'options' => array(
					'background_color' => array(
						'default'          => et_builder_accent_color(),
					),
				),
			),	
		);
	}
	
	// Example 3: Do not include Background Field
	public function get_advanced_fields_config() {
		return array(
			'background' => false,
		);
	}
}