classes
1 year ago
modules
1 year ago
WptCf7Divi.php
1 year ago
loader.js
1 year ago
loader.php
1 year ago
WptCf7Divi.php
47 lines
| 1 | <?php |
| 2 | |
| 3 | class WPCD_WptCf7Divi extends DiviExtension { |
| 4 | |
| 5 | /** |
| 6 | * The gettext domain for the extension's translations. |
| 7 | * |
| 8 | * @since 1.0.0 |
| 9 | * |
| 10 | * @var string |
| 11 | */ |
| 12 | public $gettext_domain = 'wpcd-wpt-cf7-divi'; |
| 13 | |
| 14 | /** |
| 15 | * The extension's WP Plugin name. |
| 16 | * |
| 17 | * @since 1.0.0 |
| 18 | * |
| 19 | * @var string |
| 20 | */ |
| 21 | public $name = 'wpt-cf7-divi'; |
| 22 | |
| 23 | /** |
| 24 | * The extension's version |
| 25 | * |
| 26 | * @since 1.0.0 |
| 27 | * |
| 28 | * @var string |
| 29 | */ |
| 30 | public $version = '1.0.0'; |
| 31 | |
| 32 | /** |
| 33 | * WPCD_WptCf7Divi constructor. |
| 34 | * |
| 35 | * @param string $name |
| 36 | * @param array $args |
| 37 | */ |
| 38 | public function __construct( $name = 'wpt-cf7-divi', $args = array() ) { |
| 39 | $this->plugin_dir = plugin_dir_path( __FILE__ ); |
| 40 | $this->plugin_dir_url = plugin_dir_url( $this->plugin_dir ); |
| 41 | |
| 42 | parent::__construct( $name, $args ); |
| 43 | } |
| 44 | } |
| 45 | |
| 46 | new WPCD_WptCf7Divi; |
| 47 |