| , 'gdpr-cookie-compliance' ) . "'> |
|---|
| 95 | <i class='gdpr-plugin-star-rating'>" |
|---|
| 96 | . "<svg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' class='feather feather-star'><polygon points='12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2'/></svg>" |
|---|
| 97 | . "<svg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' class='feather feather-star'><polygon points='12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2'/></svg>" |
|---|
| 98 | . "<svg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' class='feather feather-star'><polygon points='12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2'/></svg>" |
|---|
| 99 | . "<svg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' class='feather feather-star'><polygon points='12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2'/></svg>" |
|---|
| 100 | . "<svg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' class='feather feather-star'><polygon points='12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2'/></svg>" |
|---|
| 101 | . '</i></a>'; |
|---|
| 102 | |
|---|
| 103 | endif; |
|---|
| 104 | return $meta_fields; |
|---|
| 105 | } |
|---|
| 106 | } |
|---|
| 107 | add_filter( 'plugin_row_meta', 'gdpr_cookie_add_plugin_meta_links', 10, 2 ); |
|---|
| 108 | /** |
|---|
| 109 | * Loading assets |
|---|
| 110 | */ |
|---|
| 111 | function gdpr_cookie_compliance_load_libs() { |
|---|
| 112 | if ( current_user_can( 'edit_posts' ) && isset( $_GET['elementor-preview'] ) && intval( $_GET['elementor-preview'] ) ) : // phpcs:ignore |
|---|
| 113 | /** |
|---|
| 114 | * Prevent loading the GDPR plugin in Elementor previews |
|---|
| 115 | */ |
|---|
| 116 | else : |
|---|
| 117 | /** |
|---|
| 118 | * Database Controller |
|---|
| 119 | */ |
|---|
| 120 | include_once dirname( __FILE__ ) . DIRECTORY_SEPARATOR . 'controllers' . DIRECTORY_SEPARATOR . 'class-moove-gdpr-db-controller.php'; |
|---|
| 121 | |
|---|
| 122 | /** |
|---|
| 123 | * View |
|---|
| 124 | */ |
|---|
| 125 | include_once dirname( __FILE__ ) . DIRECTORY_SEPARATOR . 'class-gdpr-view.php'; |
|---|
| 126 | |
|---|
| 127 | /** |
|---|
| 128 | * Modules View |
|---|
| 129 | */ |
|---|
| 130 | include_once dirname( __FILE__ ) . DIRECTORY_SEPARATOR . 'class-gdpr-modules-view.php'; |
|---|
| 131 | /** |
|---|
| 132 | * Modules |
|---|
| 133 | */ |
|---|
| 134 | include_once dirname( __FILE__ ) . DIRECTORY_SEPARATOR . 'class-gdpr-modules.php'; |
|---|
| 135 | |
|---|
| 136 | /** |
|---|
| 137 | * Content |
|---|
| 138 | */ |
|---|
| 139 | include_once dirname( __FILE__ ) . DIRECTORY_SEPARATOR . 'class-moove-gdpr-content.php'; |
|---|
| 140 | |
|---|
| 141 | /** |
|---|
| 142 | * Options page |
|---|
| 143 | */ |
|---|
| 144 | include_once dirname( __FILE__ ) . DIRECTORY_SEPARATOR . 'class-moove-gdpr-options.php'; |
|---|
| 145 | |
|---|
| 146 | /** |
|---|
| 147 | * Controllers |
|---|
| 148 | */ |
|---|
| 149 | include_once dirname( __FILE__ ) . DIRECTORY_SEPARATOR . 'controllers' . DIRECTORY_SEPARATOR . 'class-moove-gdpr-controller.php'; |
|---|
| 150 | include_once dirname( __FILE__ ) . DIRECTORY_SEPARATOR . 'controllers' . DIRECTORY_SEPARATOR . 'class-moove-gdpr-license-manager.php'; |
|---|
| 151 | include_once dirname( __FILE__ ) . DIRECTORY_SEPARATOR . 'controllers' . DIRECTORY_SEPARATOR . 'class-moove-gdpr-review.php'; |
|---|
| 152 | |
|---|
| 153 | /** |
|---|
| 154 | * Custom Functions |
|---|
| 155 | */ |
|---|
| 156 | include_once dirname( __FILE__ ) . DIRECTORY_SEPARATOR . 'gdpr-functions.php'; |
|---|
| 157 | |
|---|
| 158 | /** |
|---|
| 159 | * Actions |
|---|
| 160 | */ |
|---|
| 161 | include_once dirname( __FILE__ ) . DIRECTORY_SEPARATOR . 'class-moove-gdpr-actions.php'; |
|---|
| 162 | endif; |
|---|
| 163 | } |
|---|