-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfoogallery-slick-init.php
More file actions
33 lines (27 loc) · 1.29 KB
/
foogallery-slick-init.php
File metadata and controls
33 lines (27 loc) · 1.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<?php
//This init class is used to add the extension to the extensions list while you are developing them.
//When the extension is added to the supported list of extensions, this file is no longer needed.
if ( !class_exists( 'FooGallery_Slick_Template_FooGallery_Extension_Init' ) ) {
class FooGallery_Slick_Template_FooGallery_Extension_Init {
function __construct() {
add_filter( 'foogallery_available_extensions', array( $this, 'add_to_extensions_list' ) );
}
function add_to_extensions_list( $extensions ) {
$extensions[] = array(
'slug'=> 'foogallery-slick',
'class'=> 'FooGallery_Slick_Template_FooGallery_Extension',
'title'=> __('FooGallery Slick', 'foogallery-slick'),
'file'=> 'foogallery-slick-extension.php',
'description'=> __('FooGallery template for Slick carousel', 'foogallery-slick'),
'author'=> ' WPTailor',
'author_url'=> 'https://github.com/wptailor',
'thumbnail'=> FOOGALLERY_SLICK_TEMPLATE_FOOGALLERY_EXTENSION_URL . '/assets/extension_bg.png',
'tags'=> array( __('template', 'foogallery') ), //use foogallery translations
'categories'=> array( __('Build Your Own', 'foogallery') ), //use foogallery translations
'source'=> 'generated'
);
return $extensions;
}
}
new FooGallery_Slick_Template_FooGallery_Extension_Init();
}