-
Notifications
You must be signed in to change notification settings - Fork 2
/
vs_meetup.php
53 lines (45 loc) · 1.12 KB
/
vs_meetup.php
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<?php
/**
* Plugin Name: Meetup Widgets
* Description: Add widgets displaying information from Meetup.com
* Version: 2.2.1
* Author: Kelly Dwan
* Author URI: http://redradar.net
* Plugin URI: http://redradar.net/category/plugins/meetup-widgets/
* License: GPL2
* Date: 01.06.2016
*
* @package Meetup_Widgets
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
if ( ! defined( 'VSMEET_TEMPLATE_DIR' ) ) {
define( 'VSMEET_TEMPLATE_DIR', dirname( __FILE__ ) . '/templates/' );
}
require_once( 'class-meetup-widgets-admin.php' );
require_once( 'class-meetup-widget.php' );
/**
* Initialize Meetup Widgets
*/
function meetup_widgets_start() {
new Meetup_Widgets_Admin();
} add_action( 'init', 'meetup_widgets_start' );
require_once( 'widgets/single.php' );
add_action(
'widgets_init', function() {
return register_widget( 'VsMeetSingleWidget' );
}
);
require_once( 'widgets/group-list.php' );
add_action(
'widgets_init', function() {
return register_widget( 'VsMeetListWidget' );
}
);
require_once( 'widgets/user-list.php' );
add_action(
'widgets_init', function() {
return register_widget( 'VsMeetUserListWidget' );
}
);