-
Notifications
You must be signed in to change notification settings - Fork 0
/
share-buttons.php
executable file
·32 lines (26 loc) · 967 Bytes
/
share-buttons.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
<?php
namespace Roots\ShareButtons;
/*
Plugin Name: Roots Share Buttons
Plugin URI: https://roots.io/plugins/share-buttons/
Description: Lightweight social sharing buttons
Version: 1.2.0
Author: Ben Word
Author URI: https://roots.io/
License: MIT License
License URI: http://opensource.org/licenses/MIT
*/
define('ROOTS_SHARE_PATH', plugin_dir_path(__FILE__));
define('ROOTS_SHARE_FOLDER', __FILE__);
require_once(__DIR__ . '/vendor/phpuri.php');
require_once(__DIR__ . '/lib/admin.php');
require_once(__DIR__ . '/lib/buttons.php');
require_once(__DIR__ . '/lib/shortcode.php');
function activation() {
require_once(ROOTS_SHARE_PATH . 'lib/activation.php');
}
register_activation_hook(__FILE__, __NAMESPACE__ . '\\activation');
function load_textdomain() {
load_plugin_textdomain('roots_share_buttons', false, dirname(plugin_basename(__FILE__)) . '/lang');
}
add_action('plugins_loaded', __NAMESPACE__ . '\\load_textdomain');