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 MYEX_HelloWorld extends ET_Builder_Module { | |
public $slug = 'myex_hello_world'; | |
public $vb_support = 'on'; | |
public function init() { | |
$this->name = esc_html__( 'Hello World', 'myex-my-extension' ); | |
} |
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 MYEX_HelloWorld extends ET_Builder_Module { | |
public $slug = 'myex_hello_world'; | |
public $vb_support = 'partial'; | |
public function init() { | |
$this->name = esc_html__( 'Hello World', 'myex-my-extension' ); | |
} |
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
version: '3.3' | |
services: | |
mariadb: | |
image: 'mariadb:10.2.14' | |
environment: | |
MYSQL_ROOT_PASSWORD: password | |
MYSQL_DATABASE: wordpress | |
DATADIR: /data |
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
// Internal Dependencies | |
import SimpleHeader from './SimpleHeader/SimpleHeader'; | |
export default [ | |
SimpleHeader, | |
]; |
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 { | |
// ...Rest of implementation | |
public function get_custom_css_fields_config() { | |
return array( | |
'content' => array( | |
'label' => esc_html__( 'Content', 'simp-simple' ), |
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
class SimpleHeader extends Component { | |
// Example 1: Text orientation has been set to the non-default value 'right' | |
render() { | |
console.log(this.props.text_orientation); // Outputs: 'right' | |
} | |
// Example 2: Text orientation has been set to the default value 'left' | |
render() { |
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 { | |
// ...Rest of implementation | |
public function get_fields() { | |
return array( | |
'text_orientation' => array( | |
'default' => 'left', |
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 all advanced fields using their default configuartion | |
public function get_advanced_fields_config() { | |
return array(); | |
} | |
// Example 2: Include all advanced fields using custom configuartions |
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 |
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 |