-
Notifications
You must be signed in to change notification settings - Fork 1
/
twitter-tweets-feeds.php
executable file
·55 lines (47 loc) · 1.66 KB
/
twitter-tweets-feeds.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
54
55
<?php
/**
*
* @link http://www.deepenbajracharya.com.np
* @since 1.0
* @package Tweet using TwitterAPI
*
* Plugin Name: Tweet using TwitterAPI
* Plugin URI: http://deepenbajracharya.com.np/
* Description: Twitter tweets and feeds makes it easy for the users to show their twitter feeds into their site. This is a simple though powerful plugin.
* Version: 1.3
* Author: Deepen Bajracharya
* Author URI: http://deepenbajracharya.com.np/
* License: GPL-2.0+
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
* Text Domain: tf
* Domain Path: /languages
*/
if(!defined('ABSPATH')) {
die('Access Denied');
exit;
}
define( 'TF_PLUGIN_NAME', 'Twitter Feeds' );
define( 'TF_PLUGIN_SLUG', 'tweets-feeds' );
define( 'TF_PATH', plugin_dir_path( __FILE__ ) );
define( 'TF_INCLUDES_PATH', plugin_dir_path( __FILE__ ) .'includes' );
define( 'TF_URL', plugin_dir_url( __FILE__ ) );
define( 'TF_REQUIRED_PHP_VERSION', '5.4' );
define( 'TF_PLUGIN_VERSION', '1.3' );
define( 'TF_JSON_PATH', plugin_dir_path( __FILE__ ) . 'json/' );
function tf_activate() {
require_once TF_PATH . 'includes/activators/activator.php';
Tf_Activator::activate();
}
function tf_deactivate() {
require_once TF_PATH . 'includes/activators/deactivator.php';
Tf_Deactivator::deactivate();
}
register_activation_hook( __FILE__, 'tf_activate' );
register_deactivation_hook( __FILE__, 'tf_deactivate' );
/**
* The core plugin class that is used to define internationalization,
* admin-specific hooks, and public-facing site hooks.
*/
require TF_PATH . 'src/TwitterAPIMain.php';
new TwitterAPIMain();
?>