This repository has been archived by the owner on May 19, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsocial-me.php
70 lines (62 loc) · 2.33 KB
/
social-me.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<?php
/*
Plugin Name: Social Me
Plugin URI: http://pixeljar.net/
Description: Allows you to import from and post to various social networks.
Version: 0.2
Author: Pixel Jar
Contributors:
Author URI: http://pixeljar.net/
Text Domain: social-me
*/
/**
* SOCIAL ME PLUGIN ICON BY
* http://www.vecteezy.com/members/hertzz
*
* SOCIAL MEDIA ICONS BY
* http://icondock.com/free/vector-social-media-icons
*/
/**
* Copyright (c) 2010 Your Name. All rights reserved.
*
* Released under the GPL license
* http://www.opensource.org/licenses/gpl-license.php
*
* This is an add-on for WordPress
* http://wordpress.org/
*
* **********************************************************************
* 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.
* **********************************************************************
*/
// SET UP PATH CONSTANTS
if ( ! defined( 'SOCME' ) ) define( 'SOCME', 'social-me' );
if ( ! defined( 'SOCME_URL' ) ) define( 'SOCME_URL', plugin_dir_url( __FILE__ ) );
if ( ! defined( 'SOCME_ABS' ) ) define( 'SOCME_ABS', plugin_dir_path( __FILE__ ) );
if ( ! defined( 'SOCME_REL' ) ) define( 'SOCME_REL', basename( dirname( __FILE__ ) ) );
if ( ! defined( 'SOCME_CORE' ) ) define( 'SOCME_CORE', SOCME_ABS.'core/' );
if ( ! defined( 'SOCME_EXT' ) ) define( 'SOCME_EXT', SOCME_ABS.'extensions/' );
if ( ! defined( 'SOCME_LANG' ) ) define( 'SOCME_LANG', SOCME_ABS.'i18n/' );
if ( ! defined( 'SOCME_CSS' ) ) define( 'SOCME_CSS', SOCME_URL.'css/' );
if ( ! defined( 'SOCME_JS' ) ) define( 'SOCME_JS', SOCME_URL.'js/' );
// INTERNATIONALIZATION
load_plugin_textdomain( SOCME, null, SOCME_REL );
// INCLUDE NECESSARY FILES
require_once( SOCME_CORE.'admin-menus.php' );
require_once( SOCME_CORE.'extension-loader.php' );
/* DEBUG HELPERS
************************************/
function pring_r( $arr ) {
echo _pring_r( $arr );
}
function _pring_r( $arr ) {
return '<pre>'.print_r( $arr, true ).'</pre>';
}