-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheasygram.php
More file actions
52 lines (45 loc) · 1.52 KB
/
easygram.php
File metadata and controls
52 lines (45 loc) · 1.52 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
49
50
51
52
<?php
/**
* @package Easygram
* @version 2.2
*/
/*
Plugin Name: Easygram
Plugin URI: http://anthonygreat.com/plugins/easygram/
Description: Easily display Instagram photos as a widget that looks good in (almost) any WordPress theme.
Version: 2.2
Author: Anthony Great
Author URI: anthonygreat.com
Donate URI: https://anthonygreat.com/donate/
Text Domain: easygram
Domain Path: /languages
*/
/*
* This file is part of the Easygram plugin.
*
* (c) Anthony Great and OneDotThirty, LLC <hello@1dot30.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
/* Prevent Direct access */
if ( !defined( 'DB_NAME' ) ) {
header( 'HTTP/1.0 403 Forbidden' );
die;
}
define( 'EASYGRAM_WIDGET_URL', trailingslashit( plugin_dir_url( __FILE__ ) ) );
define( 'EASYGRAM_WIDGET_DIR', trailingslashit( plugin_dir_path( __FILE__ ) ) );
define( 'EASYGRAM_WIDGET_VER', '2.2.0' );
/* Initialize Widget */
if ( !function_exists( 'easygram_widget_init' ) ):
function easygram_widget_init() {
require_once EASYGRAM_WIDGET_DIR.'inc/class-easygram-widget.php';
register_widget( 'Easygram_Widget' );
}
endif;
add_action( 'widgets_init', 'easygram_widget_init' );
/* Load text domain */
function easygram_load_widget_text_domain() {
load_plugin_textdomain( 'easygram-widget', false, dirname( plugin_basename( __FILE__ ) ) . '/languages' );
}
add_action( 'plugins_loaded', 'easygram_load_widget_text_domain' );