| 1 |
<?php |
| 2 |
/** |
| 3 |
* Register FL Module |
| 4 |
* |
| 5 |
* Created Date: Thursday September 3rd 2020 |
| 6 |
* Author: Michael Bourne |
| 7 |
* ----- |
| 8 |
* Last Modified: Wednesday, February 11th 2026, 8:43:51 pm |
| 9 |
* Modified By: Michael Bourne |
| 10 |
* ----- |
| 11 |
* Copyright (c) 2020 URSA6 |
| 12 |
* |
| 13 |
* @package wp-commerce7 |
| 14 |
* @author Michael Bourne |
| 15 |
* @license GPL3 |
| 16 |
* @link https://ursa6.com |
| 17 |
* @since 1.1.0 |
| 18 |
*/ |
| 19 |
|
| 20 |
if ( ! defined( 'ABSPATH' ) ) { |
| 21 |
return; |
| 22 |
} |
| 23 |
|
| 24 |
class C7WP_Default extends FLBuilderModule { // phpcs:ignore |
| 25 |
public function __construct() { |
| 26 |
parent::__construct( |
| 27 |
array( |
| 28 |
'name' => __( 'Default Content', 'wp-commerce7' ), |
| 29 |
'description' => __( 'Add dynamic content to default route pages for Commerce7.', 'wp-commerce7' ), |
| 30 |
'category' => __( 'Commerce7', 'wp-commerce7' ), |
| 31 |
'dir' => C7WP_ROOT . '/includes/beaverbuilder/default/', |
| 32 |
'url' => C7WP_URI . 'includes/beaverbuilder/default/', |
| 33 |
'partial_refresh' => true, |
| 34 |
) |
| 35 |
); |
| 36 |
} |
| 37 |
} |
| 38 |
|
| 39 |
FLBuilder::register_module( |
| 40 |
'C7WP_Default', |
| 41 |
array( |
| 42 |
'c7wp-tab' => array( |
| 43 |
'title' => __( 'Settings', 'wp-commerce7' ), |
| 44 |
), |
| 45 |
) |
| 46 |
); |
| 47 |
|