1 | <?php |
||
11 | class FooGallery_Responsive_Lightbox_dFactory_Compatibility { |
||
|
|||
12 | |||
13 | function __construct() { |
||
17 | |||
18 | /** |
||
19 | * Add the dFactory lightbox to the available FooGallery lightboxes |
||
20 | * @param $lightboxes |
||
21 | * |
||
22 | * @return mixed |
||
23 | * @since 1.2.21 |
||
24 | */ |
||
25 | function add_lightbox($lightboxes) { |
||
34 | |||
35 | /** |
||
36 | * If the dFactory lightbox is selected for the gallery, then make the integration work |
||
37 | * |
||
38 | * @param $attr |
||
39 | * @param $args |
||
40 | * @param $attachment |
||
41 | * |
||
42 | * @return mixed |
||
43 | * @since 1.2.21 |
||
44 | */ |
||
45 | function add_attributes($attr, $args, $attachment) { |
||
61 | } |
||
62 | } |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.