mirror of
https://github.com/10h30/wp-strava.git
synced 2026-06-05 15:10:01 +09:00
50 lines
1.8 KiB
PHP
Executable File
50 lines
1.8 KiB
PHP
Executable File
<?php
|
|
/**
|
|
* Plugin Name: WP Strava
|
|
* Plugin URI: https://wordpress.org/plugins/wp-strava/
|
|
* Description: Show your strava.com activity on your WordPress site. Some Icons are Copyright © Yusuke Kamiyamane. All rights reserved. Licensed under a Creative Commons Attribution 3.0 license.
|
|
* Version: 2.10.2-beta1
|
|
* Author: Carlos Santa Cruz, Justin Foell, Lance Willett, Daniel Lintott, Sebastian Erb
|
|
* License: GPL2
|
|
* Text Domain: wp-strava
|
|
* Domain Path: /lang
|
|
*/
|
|
|
|
/*
|
|
Copyright 2018 Carlos Santa Cruz (email : cmanon at gmail dot com)
|
|
|
|
This program is free software; you can redistribute it and/or modify
|
|
it under the terms of the GNU General Public License, version 2, as
|
|
published by the Free Software Foundation.
|
|
|
|
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.
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
along with this program; if not, write to the Free Software
|
|
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
*/
|
|
|
|
define( 'WPSTRAVA_PLUGIN_VERSION', '2.10.1' );
|
|
define( 'WPSTRAVA_PLUGIN_FILE', __FILE__ );
|
|
define( 'WPSTRAVA_PLUGIN_DIR', trailingslashit( dirname( __FILE__ ) ) );
|
|
define( 'WPSTRAVA_PLUGIN_URL', plugins_url( '/', __FILE__ ) );
|
|
define( 'WPSTRAVA_PLUGIN_NAME', plugin_basename( __FILE__ ) );
|
|
if ( ! defined( 'WPSTRAVA_DEBUG' ) ) {
|
|
define( 'WPSTRAVA_DEBUG', false );
|
|
}
|
|
|
|
require_once WPSTRAVA_PLUGIN_DIR . 'src/autoload.php';
|
|
|
|
// Load the plugin and multilingual support.
|
|
function wpstrava_plugin_loaded() {
|
|
// Load language files.
|
|
load_plugin_textdomain( 'wp-strava', false, WPSTRAVA_PLUGIN_DIR . 'lang/' );
|
|
}
|
|
add_action( 'plugins_loaded', 'wpstrava_plugin_loaded' );
|
|
|
|
$wpstrava = WPStrava::get_instance();
|
|
$wpstrava->hook();
|