PluginProbe
Elementor Website Builder – more than just a page builder / 3.24.7
Elementor Website Builder – more than just a page builder v3.24.7
4.3.0-beta3 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 All 452 releases
elementor / modules / link-in-bio / module.php

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

61 lines 1.4 KB
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 use Elementor\Core\Experiments\Manager;
7
8 if ( ! defined( 'ABSPATH' ) ) {
9 exit; // Exit if accessed directly
10 }
11
12 class Module extends BaseModule {
13
14 const EXPERIMENT_NAME = 'link-in-bio';
15
16 public function get_name(): string {
17 return static::EXPERIMENT_NAME;
18 }
19
20 public function get_widgets(): array {
21 return [
22 'Link_In_Bio',
23 ];
24 }
25
26 // TODO: This is a hidden experiment which needs to remain enabled like this until 3.26 for pro compatibility.
27 public static function get_experimental_data() {
28 return [
29 'name' => self::EXPERIMENT_NAME,
30 'title' => esc_html__( 'Link In Bio', 'elementor' ),
31 'hidden' => true,
32 'default' => Manager::STATE_ACTIVE,
33 'release_status' => Manager::RELEASE_STATUS_STABLE,
34 'mutable' => false,
35 ];
36 }
37
38 public function __construct() {
39 parent::__construct();
40
41 add_action( 'elementor/frontend/after_register_styles', [ $this, 'register_styles' ] );
42 }
43
44 /**
45 * Register styles.
46 *
47 * At build time, Elementor compiles `/modules/link-in-bio/assets/scss/frontend.scss`
48 * to `/assets/css/widget-link-in-bio.min.css`.
49 *
50 * @return void
51 */
52 public function register_styles() {
53 wp_register_style(
54 'widget-link-in-bio',
55 $this->get_css_assets_url( 'widget-link-in-bio', null, true, true ),
56 [ 'elementor-frontend' ],
57 ELEMENTOR_VERSION
58 );
59 }
60 }
61