| @@ -2,35 +2,12 @@ | ||
| 2 | 2 | |
| 3 | 3 | namespace Elementor\Modules\Shapes; |
| 4 | 4 | |
| 5 | 5 | if ( ! defined( 'ABSPATH' ) ) { |
| 6 | - exit; // Exit if accessed directly. | |
| 6 | + exit; // Exit if accessed directly | |
| 7 | 7 | } |
| 8 | 8 | |
| 9 | 9 | class Module extends \Elementor\Core\Base\Module { |
| 10 | - | |
| 11 | - public function __construct() { | |
| 12 | - parent::__construct(); | |
| 13 | - | |
| 14 | - add_action( 'elementor/frontend/after_register_styles', [ $this, 'register_styles' ] ); | |
| 15 | - } | |
| 16 | - | |
| 17 | - /** | |
| 18 | - * Register styles. | |
| 19 | - * | |
| 20 | - * At build time, Elementor compiles `/modules/shapes/assets/scss/frontend.scss` | |
| 21 | - * to `/assets/css/widget-shapes.min.css`. | |
| 22 | - * | |
| 23 | - * @return void | |
| 24 | - */ | |
| 25 | - public function register_styles() { | |
| 26 | - wp_register_style( | |
| 27 | - 'widget-text-path', | |
| 28 | - $this->get_css_assets_url( 'widget-text-path', null, true, true ), | |
| 29 | - [ 'elementor-frontend' ], | |
| 30 | - ELEMENTOR_VERSION | |
| 31 | - ); | |
| 32 | - } | |
| 33 | 10 | |
| 34 | 11 | /** |
| 35 | 12 | * Return a translated user-friendly list of the available SVG shapes. |
| 36 | 13 | * |