Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- class feduHeroImage extends FLBuilderModule {
- public function __construct() {
- parent::__construct(array(
- 'name' => __( 'Hero Image', 'fl-builder' ),
- 'description' => __( 'Top of page hero image with title', 'fl-builder' ),
- 'category' => __( 'General', 'fl-builder' ),
- 'dir' => FEDU_BB_MODULES_DIR . 'fedu-hero-image/',
- 'url' => FEDU_BB_MODULES_URL . 'fedu-hero-image/',
- 'editor_export' => true, // Defaults to true and can be omitted.
- 'enabled' => true, // Defaults to true and can be omitted.
- 'partial_refresh' => false, // Defaults to false and can be omitted.
- ));
- }
- }
- FLBuilder::register_module( 'feduHeroImage', array(
- 'tab-1' => array(
- 'title' => __( 'General', 'fl-builder' ),
- 'sections' => array(
- 'section-1' => array(
- 'title' => __( 'Data', 'fl-builder' ),
- 'fields' => array(
- 'image' => array(
- 'type' => 'photo',
- 'label' => __( 'Image', 'fl-builder' ),
- 'help' => __( 'Select an image to be displayed.', 'fl-builder' )
- ),
- 'headline' => array(
- 'type' => 'text',
- 'label' => __( 'Headline', 'fl-builder' ),
- 'description' => __( 'Optional headline for the hero image', 'fl-builder' ),
- )
- )
- )
- )
- )
- ) );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement