Created
March 25, 2018 13:00
-
-
Save lots0logs/63ac0099cfa738e7066ab0427a3e45b7 to your computer and use it in GitHub Desktop.
Margin & Padding Field Configuration Examples
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| class SIMP_SimpleHeader extends ET_Builder_Module { | |
| // Example 1: Include Margin & Padding Field using its default configuartion | |
| public function get_advanced_fields_config() { | |
| return array(); | |
| } | |
| // Example 2: Include Margin & Padding Field using a custom configuartion | |
| public function get_advanced_fields_config() { | |
| return array( | |
| 'margin_padding' => array( | |
| 'css' => array( | |
| 'important' => 'all', | |
| ), | |
| ), | |
| ); | |
| } | |
| // Example 3: Do not include Margin & Padding Field | |
| public function get_advanced_fields_config() { | |
| return array( | |
| 'margin_padding' => false, | |
| ); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment