Created
November 20, 2018 22:22
-
-
Save lots0logs/ebd896482d3302257e6b4cb8f310c14a to your computer and use it in GitHub Desktop.
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 { | |
public $slug = 'simp_simple_header'; | |
public $vb_support = 'on'; | |
public function __construct() { | |
$args = func_get_args(); // Because PHP won't let the method signature be different from parent class | |
if ( $args && $args[0] ) { | |
$this->fullwidth = true; | |
$this->slug = $this->slug . '_fw'; | |
} | |
parent::__construct(); | |
} | |
public function init() { | |
$this->name = esc_html__( 'Simple Header', 'simp-simple-extension' ); | |
} | |
public function get_fields() { | |
return array(); | |
} | |
public function render( $unprocessed_props, $content = null, $render_slug ) { | |
} | |
} | |
$simp_module = new SIMP_SimpleHeader; | |
$simp_module_fw = new SIMP_SimpleHeader(true); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment