-
-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathindieweb.php
More file actions
executable file
·50 lines (41 loc) · 1.53 KB
/
indieweb.php
File metadata and controls
executable file
·50 lines (41 loc) · 1.53 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
<?php
/**
* Plugin Name: IndieWeb
* Plugin URI: https://github.com/indieweb/wordpress-indieweb
* Description: Interested in connecting your WordPress site to the IndieWeb?
* Author: IndieWebCamp WordPress Outreach Club
* Author URI: https://indieweb.org/WordPress_Outreach_Club
* Version: 5.1.1
* License: MIT
* License URI: http://opensource.org/licenses/MIT
* Text Domain: indieweb
*
* @package Indieweb
*/
namespace Indieweb;
\define( 'INDIEWEB_VERSION', '5.1.1' );
\defined( 'INDIEWEB_ADD_HCARD_SUPPORT' ) || \define( 'INDIEWEB_ADD_HCARD_SUPPORT', true );
\defined( 'INDIEWEB_ADD_RELME_SUPPORT' ) || \define( 'INDIEWEB_ADD_RELME_SUPPORT', true );
\define( 'INDIEWEB_PLUGIN_DIR', \plugin_dir_path( __FILE__ ) );
\define( 'INDIEWEB_PLUGIN_BASENAME', \plugin_basename( __FILE__ ) );
\define( 'INDIEWEB_PLUGIN_FILE', \plugin_dir_path( __FILE__ ) . '/' . \basename( __FILE__ ) );
\define( 'INDIEWEB_PLUGIN_URL', \plugin_dir_url( __FILE__ ) );
\define( 'CNKT_INSTALLER_PATH', \plugins_url( '/', __FILE__ ) );
require_once INDIEWEB_PLUGIN_DIR . '/includes/class-autoloader.php';
if ( INDIEWEB_ADD_HCARD_SUPPORT ) {
// Require simple-icons data.
require_once INDIEWEB_PLUGIN_DIR . '/includes/simple-icons.php';
}
// Register the autoloader.
Autoloader::register_path( __NAMESPACE__, INDIEWEB_PLUGIN_DIR . '/includes' );
// Initialize the plugin.
$indieweb = Indieweb::get_instance();
$indieweb->init();
/**
* Plugin Version Number used for caching.
*
* @return string The plugin version.
*/
function version() {
return INDIEWEB_VERSION;
}