Created
March 25, 2018 13:03
-
-
Save lots0logs/32dc96280577caa5a14f17311be4d629 to your computer and use it in GitHub Desktop.
Max Width Field Configuratin 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 Max Width Field using its default configuartion | |
| public function get_advanced_fields_config() { | |
| return array(); | |
| } | |
| // Example 2: Include Max Width Field using a custom configuartion | |
| public function get_advanced_fields_config() { | |
| return array( | |
| 'max_width' => array( | |
| 'css' => array( | |
| 'module_alignment' => "{$this->main_css_element}.simp-custom-class", | |
| ), | |
| ), | |
| ); | |
| } | |
| // Example 3: Do not include Max Width Field | |
| public function get_advanced_fields_config() { | |
| return array( | |
| 'max_width' => false, | |
| ); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment