-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathfreefolio.php
More file actions
58 lines (49 loc) · 1.63 KB
/
freefolio.php
File metadata and controls
58 lines (49 loc) · 1.63 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
53
54
55
56
57
58
<?php
/**
* Freefolio
*
* Adds a portfolio post type, custom widget and automatically imports Dribbble shots.
*
* @package Freefolio
* @author UpThemes <support@upthemes.com>
* @license GPL-2.0+
* @link https://upthemes.com
* @copyright 2014 UpThemes
*
* @wordpress-plugin
* Plugin Name: Freefolio
* Plugin URI: http://wordpress.org/plugins/freefolio/
* Description: Adds a portfolio to your WordPress website.
* Version: 1.1.3
* Author: UpThemes
* Author URI: https://upthemes.com
* Text Domain: freefolio
* License: GPL-2.0+
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
* Domain Path: /languages
* GitHub Plugin URI: https://github.com/UpThemes/freefolio
*/
// If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ) {
die;
}
/**
* Set up plugin constants
*/
define( 'DPI__PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
define( 'DPI__PLUGIN_FILE', __FILE__ );
/**
* Add localization to the FreeFolio plugin.
*/
function freefolio_localize(){
load_plugin_textdomain( 'freefolio', false, basename( dirname( __FILE__ ) ) . '/languages' );
}
add_action( 'plugins_loaded', 'freefolio_localize' );
/**
* Dribbble Importer setup
*/
require_once( DPI__PLUGIN_DIR . 'class.DP_Importer.php' );
register_activation_hook( DPI__PLUGIN_FILE, array( 'DP_Importer', 'on_plugin_activation' ) );
register_deactivation_hook( DPI__PLUGIN_FILE, array( 'DP_Importer', 'on_plugin_deactivation' ) );
add_action( 'init', array( 'DP_Importer', 'init' ) );
add_action( 'plugins_loaded', array( 'DP_Importer', 'on_plugins_loaded' ), 100 );