Advertisement
Guest User

Untitled

a guest
Jun 18th, 2018
258
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.67 KB | None | 0 0
  1. <?php
  2.  
  3. class feduHeroImage extends FLBuilderModule {
  4.  
  5.     public function __construct() {
  6.         parent::__construct(array(
  7.             'name'            => __( 'Hero Image', 'fl-builder' ),
  8.             'description'     => __( 'Top of page hero image with title', 'fl-builder' ),
  9.             'category'        => __( 'General', 'fl-builder' ),
  10.             'dir'             => FEDU_BB_MODULES_DIR . 'fedu-hero-image/',
  11.             'url'             => FEDU_BB_MODULES_URL . 'fedu-hero-image/',
  12.             'editor_export'   => true, // Defaults to true and can be omitted.
  13.             'enabled'         => true, // Defaults to true and can be omitted.
  14.             'partial_refresh' => false, // Defaults to false and can be omitted.
  15.         ));
  16.    }
  17. }
  18.  
  19.  
  20.  
  21. FLBuilder::register_module( 'feduHeroImage', array(
  22.     'tab-1' => array(
  23.         'title'     => __( 'General', 'fl-builder' ),
  24.         'sections'  => array(
  25.             'section-1' => array(
  26.                 'title'     => __( 'Data', 'fl-builder' ),
  27.                 'fields'    => array(
  28.                     'image'  => array(
  29.                         'type'      => 'photo',
  30.                         'label'     => __( 'Image', 'fl-builder' ),
  31.                         'help'          => __( 'Select an image to be displayed.', 'fl-builder' )
  32.                     ),
  33.                     'headline' => array(
  34.                         'type'          => 'text',
  35.                         'label'         => __( 'Headline', 'fl-builder' ),
  36.                         'description'   => __( 'Optional headline for the hero image', 'fl-builder' ),
  37.                     )
  38.                 )
  39.             )
  40.         )
  41.     )
  42. ) );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement