-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathadrotate-extra-settings.php
More file actions
48 lines (41 loc) · 1.66 KB
/
adrotate-extra-settings.php
File metadata and controls
48 lines (41 loc) · 1.66 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<?php
/**
* AdRotate Extra Settings
*
* Ultra light plugin for Wordpress that add new tiny features to AdRotate/AdRotate Pro
*
* @package AdrotateExtraSettings
* @author Daniele 'Mte90' Scasciafratte <mte90net@gmail.com>
* @license GPL-2.0+
* @link http://mte90.net
* @copyright 2014-2016
*
* @wordpress-plugin
* Plugin Name: Adrotate Extra Settings
* Plugin URI: http://github.com/Mte90/AdRotate-Extra-Settings
* Description: Ultra light plugin for Wordpress that add new tinys feature to AdRotate/AdRotate Pro
* Version: 1.2.0
* Author: Codeat
* Author URI: http://mte90.net
* Text Domain: adrotate-extra-settings
* License: GPL-2.0+
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
* Domain Path: /languages
*/
// If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ) {
die;
}
/*
* Register hooks that are fired when the plugin is activated or deactivated.
* When the plugin is deleted, the uninstall.php file is loaded.
*/
register_activation_hook( __FILE__, array( 'AdrotateExtraSettings', 'activate' ) );
register_deactivation_hook( __FILE__, array( 'AdrotateExtraSettings', 'deactivate' ) );
/*----------------------------------------------------------------------------*
* Dashboard and Administrative Functionality
*----------------------------------------------------------------------------*/
if ( is_admin() && ( ! defined( 'DOING_AJAX' ) || ! DOING_AJAX ) ) {
require_once( plugin_dir_path( __FILE__ ) . 'admin/class-adrotate-extra-settings-admin.php' );
add_action( 'plugins_loaded', array( 'AdrotateExtraSettingsAdmin', 'get_instance' ) );
}