Skip to content

Instantly share code, notes, and snippets.

@lots0logs
Created November 20, 2018 22:22
Show Gist options
  • Save lots0logs/ebd896482d3302257e6b4cb8f310c14a to your computer and use it in GitHub Desktop.
Save lots0logs/ebd896482d3302257e6b4cb8f310c14a to your computer and use it in GitHub Desktop.
<?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