sidebar.php 817 B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. /**
  3. * @class FLSidebarModule
  4. */
  5. class FLSidebarModule extends FLBuilderModule {
  6. /**
  7. * @method __construct
  8. */
  9. public function __construct() {
  10. parent::__construct(array(
  11. 'name' => __( 'Sidebar', 'fl-builder' ),
  12. 'description' => __( 'Display a WordPress sidebar that has been registered by the current theme.', 'fl-builder' ),
  13. 'category' => __( 'Layout', 'fl-builder' ),
  14. 'editor_export' => false,
  15. 'partial_refresh' => true,
  16. 'icon' => 'layout.svg',
  17. ));
  18. }
  19. }
  20. /**
  21. * Register the module and its form settings.
  22. */
  23. FLBuilder::register_module('FLSidebarModule', array(
  24. 'general' => array( // Tab
  25. 'title' => __( 'General', 'fl-builder' ), // Tab title
  26. 'file' => FL_BUILDER_DIR . 'modules/sidebar/includes/settings-general.php',
  27. ),
  28. ));