Skip to content

Instantly share code, notes, and snippets.

@lots0logs
Created March 25, 2018 13:03
Show Gist options
  • Save lots0logs/32dc96280577caa5a14f17311be4d629 to your computer and use it in GitHub Desktop.
Save lots0logs/32dc96280577caa5a14f17311be4d629 to your computer and use it in GitHub Desktop.
Max Width Field Configuratin Examples
<?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