-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhoppening.php
51 lines (41 loc) · 1.7 KB
/
hoppening.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
<?php
/*
Plugin Name: Concerts Calendar Agenda
Plugin URI: http://www.gigtime.co
Description: Create your favorite concerts calendar on your blog/website using gigtime website.
Version: 2.3.9
Author: Hoppening
Author URI: http://www.gigtime.co
Text Domain: hoppening
Domain Path: /languages/
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
define( 'HOPP_VERSION', '1.0' );
define( 'HOPP_URL', plugin_dir_url ( __FILE__ ));
define( 'HOPP_DIR', plugin_dir_path( __FILE__ ));
require( HOPP_DIR . '/classes/client.php');
require( HOPP_DIR . '/classes/widget.php');
if ( is_admin() ) {
require( HOPP_DIR . '/classes/admin.php');
}
function hoppening_init() {
// Load up the localization file if we're using WordPress in a different language
// Place it in this plugin's "lang" folder and name it "hoppening-[value in wp-config].mo"
load_plugin_textdomain( 'hoppening', false, basename( rtrim( dirname( __FILE__ ), '/' ) ) . '/languages' );
// Admin
if ( class_exists( 'Hoppening_Admin' ) ) {
new Hoppening_Admin();
}
new Hoppening_Client();
}
add_action( 'plugins_loaded', 'hoppening_init' );