buffer
4 years ago
script_loader_tag
4 years ago
traits
4 years ago
Consent_API_Helper.php
4 years ago
Cookie_Consent.php
4 years ago
Cookie_Consent_Interface.php
4 years ago
Cookiebot_Activated.php
4 years ago
Cookiebot_Automatic_Updates.php
4 years ago
Cookiebot_Deactivated.php
4 years ago
Cookiebot_Javascript_Helper.php
4 years ago
Cookiebot_WP.php
3 years ago
Dependency_Container.php
4 years ago
Settings_Page_Tab.php
4 years ago
Settings_Service.php
4 years ago
Settings_Service_Interface.php
4 years ago
Supported_Languages.php
4 years ago
Supported_Regions.php
3 years ago
WP_Rocket_Helper.php
4 years ago
Widgets.php
4 years ago
global-deprecations.php
4 years ago
helper.php
4 years ago
Widgets.php
19 lines
| 1 | <?php |
| 2 | |
| 3 | namespace cybot\cookiebot\lib; |
| 4 | |
| 5 | use cybot\cookiebot\widgets\Cookiebot_Declaration_Widget; |
| 6 | use cybot\cookiebot\widgets\Dashboard_Widget_Cookiebot_Status; |
| 7 | |
| 8 | class Widgets { |
| 9 | public function register_hooks() { |
| 10 | //Loading widgets |
| 11 | add_action( 'widgets_init', array( $this, 'register_widgets' ) ); |
| 12 | ( new Dashboard_Widget_Cookiebot_Status() )->register_hooks(); |
| 13 | } |
| 14 | |
| 15 | public function register_widgets() { |
| 16 | register_widget( Cookiebot_Declaration_Widget::class ); |
| 17 | } |
| 18 | } |
| 19 |