1 | <?php |
||
7 | class FooGallery_Pro_Hover_Presets { |
||
|
|||
8 | |||
9 | function __construct() { |
||
18 | |||
19 | /** |
||
20 | * Adds the presets that are available in the PRO version |
||
21 | * |
||
22 | * @param $choices |
||
23 | * |
||
24 | * @return mixed |
||
25 | */ |
||
26 | function add_pro_hover_presets( $choices ) { |
||
40 | |||
41 | /** |
||
42 | * Removed the preset choices from the simple portfolio template |
||
43 | * |
||
44 | * @uses "foogallery_override_gallery_template_fields" |
||
45 | * @param $fields |
||
46 | * @param $template |
||
47 | * |
||
48 | * @return array |
||
49 | */ |
||
50 | function show_preset_fields( $fields, $template ) { |
||
61 | |||
62 | /** |
||
63 | * Removed the preset choices from the simple portfolio template |
||
64 | * |
||
65 | * @uses "foogallery_override_gallery_template_fields" |
||
66 | * @param $fields |
||
67 | * @param $template |
||
68 | * |
||
69 | * @return array |
||
70 | */ |
||
71 | function remove_preset_choices_for_simple_portfolio( $fields, $template ) { |
||
86 | } |
||
87 | } |
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.