PluginProbe ʕ •ᴥ•ʔ
CookieYes – Cookie Banner for Cookie Consent (Easy to setup GDPR/CCPA Compliant Cookie Notice) / 3.5.1
CookieYes – Cookie Banner for Cookie Consent (Easy to setup GDPR/CCPA Compliant Cookie Notice) v3.5.1
3.5.1 3.5.0 3.4.2 trunk 1.0.1 1.0.3 1.2 1.2.1 1.2.2 1.3 1.3.1 1.3.2 1.4 1.4.1 1.4.2 1.4.3 1.5 1.5.1 1.5.2 1.5.3 1.5.4 1.5.5 1.5.6 1.5.7 1.5.8 1.5.9 1.6.0 1.6.1 1.6.10 1.6.2 1.6.3 1.6.4 1.6.5 1.6.6 1.6.7 1.6.8 1.6.9 1.7.0 1.7.1 1.7.2 1.7.3 1.7.4 1.7.5 1.7.6 1.7.7 1.7.8 1.7.9 1.8.0 1.8.1 1.8.2 1.8.3 1.8.4 1.8.5 1.8.6 1.8.7 1.8.8 1.8.9 1.9.0 1.9.1 1.9.2 1.9.3 1.9.4 1.9.5 2.0.0 2.0.1 2.0.2 2.0.3 2.0.4 2.0.5 2.0.6 2.0.7 2.0.8 2.0.9 2.1.0 2.1.1 2.1.2 2.1.3 3.0.0 3.0.1 3.0.2 3.0.3 3.0.4 3.0.5 3.0.6 3.0.7 3.0.8 3.0.9 3.1.0 3.1.1 3.1.2 3.1.3 3.1.4 3.1.5 3.1.6 3.1.7 3.1.8 3.2.0 3.2.1 3.2.10 3.2.2 3.2.3 3.2.4 3.2.5 3.2.6 3.2.7 3.2.8 3.2.9 3.3.0 3.3.1 3.3.2 3.3.3 3.3.4 3.3.5 3.3.6 3.3.7 3.3.8 3.3.9 3.3.9.1 3.4.0 3.4.1
cookie-law-info / class-autoloader.php
cookie-law-info Last commit date
languages 1 week ago legacy 1 week ago lite 1 week ago scripts 1 week ago class-autoloader.php 1 week ago cookie-law-info.php 1 week ago license.txt 1 week ago readme.txt 1 week ago uninstall.php 1 week ago wpml-config.xml 1 week ago
class-autoloader.php
51 lines
1 <?php
2 /**
3 * Custom autoloader
4 *
5 * @package CookieYes
6 */
7
8 namespace CookieYes\Lite;
9
10 /**
11 * Custom class autoloader class
12 */
13 class Autoloader {
14
15 /**
16 * Autoloader function
17 *
18 * @return void
19 */
20 public function register() {
21 spl_autoload_register( array( __CLASS__, 'load_class' ) );
22 }
23 /**
24 * Custom Class Loader For Boiler Plate
25 *
26 * @param string $class_name Class names.
27 * @return void
28 */
29 public static function load_class( $class_name ) {
30 if ( false === strpos( $class_name, 'CookieYes' ) ) {
31 return;
32 }
33 $file_parts = explode( '\\', $class_name );
34 $namespace = '';
35 for ( $i = count( $file_parts ) - 1; $i > 0; $i-- ) {
36
37 $current = strtolower( $file_parts[ $i ] );
38 $current = str_ireplace( '_', '-', $current );
39 if ( count( $file_parts ) - 1 === $i ) {
40 $file_name = "class-$current.php";
41 } else {
42 $namespace = '/' . $current . $namespace;
43 }
44 }
45 $filepath = dirname( __FILE__ ) . $namespace . '/' . $file_name;
46 if ( file_exists( $filepath ) ) {
47 require $filepath;
48 }
49 }
50 }
51