PluginProbe
Elementor Website Builder – more than just a page builder / 3.24.0-dev2
Elementor Website Builder – more than just a page builder v3.24.0-dev2
4.3.0-beta2 4.3.0-beta1 4.2.4 4.2.3 4.2.2 4.2.1 4.2.0 4.1.5 4.2.0-beta2 4.2.0-dev2 4.2.0-beta1 4.1.4 4.1.3 4.1.2 4.1.1 4.1.0 4.1.0-beta3 4.1.0-dev3 4.0.9 4.1.0-beta2 4.1.0-dev2 4.0.8 4.1.0-beta1 4.1.0-dev1 4.0.7 All 451 releases
elementor / modules / link-in-bio / module.php

module.php in Elementor Website Builder – more than just a page builder 3.24.0-dev2, at modules/link-in-bio/module.php

48 lines 933 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace Elementor\Modules\LinkInBio;
4
5 use Elementor\Core\Base\Module as BaseModule;
6
7 if ( ! defined( 'ABSPATH' ) ) {
8 exit; // Exit if accessed directly
9 }
10
11 class Module extends BaseModule {
12
13 const EXPERIMENT_NAME = 'link-in-bio';
14
15 public function get_name(): string {
16 return static::EXPERIMENT_NAME;
17 }
18
19 public function get_widgets(): array {
20 return [
21 'Link_In_Bio',
22 ];
23 }
24
25 public function __construct() {
26 parent::__construct();
27
28 add_action( 'elementor/frontend/after_register_styles', [ $this, 'register_styles' ] );
29 }
30
31 /**
32 * Register styles.
33 *
34 * At build time, Elementor compiles `/modules/link-in-bio/assets/scss/frontend.scss`
35 * to `/assets/css/widget-link-in-bio.min.css`.
36 *
37 * @return void
38 */
39 public function register_styles() {
40 wp_register_style(
41 'widget-link-in-bio',
42 $this->get_css_assets_url( 'widget-link-in-bio', null, true, true ),
43 [],
44 ELEMENTOR_VERSION
45 );
46 }
47 }
48