2011-08-23 09:34:28 -05:00
|
|
|
<?php
|
2018-01-26 13:34:37 -06:00
|
|
|
/**
|
2015-05-11 22:28:33 -05:00
|
|
|
* Plugin Name: WP Strava
|
2017-05-26 11:10:39 -05:00
|
|
|
* Plugin URI: https://wordpress.org/plugins/wp-strava/
|
2018-02-23 12:14:05 -06:00
|
|
|
* 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.
|
2021-11-26 13:09:20 -06:00
|
|
|
* Version: 2.11.0
|
2019-02-01 12:48:19 -06:00
|
|
|
* Author: Carlos Santa Cruz, Justin Foell, Lance Willett, Daniel Lintott, Sebastian Erb
|
2015-05-11 22:28:33 -05:00
|
|
|
* License: GPL2
|
2017-05-26 10:53:24 -05:00
|
|
|
* Text Domain: wp-strava
|
|
|
|
|
* Domain Path: /lang
|
2015-05-11 22:28:33 -05:00
|
|
|
*/
|
|
|
|
|
|
2018-03-23 11:21:14 -05:00
|
|
|
/*
|
|
|
|
|
Copyright 2018 Carlos Santa Cruz (email : cmanon at gmail dot com)
|
2011-08-23 09:34:28 -05:00
|
|
|
|
2018-03-23 11:21:14 -05:00
|
|
|
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.
|
2011-08-23 09:34:28 -05:00
|
|
|
|
2018-03-23 11:21:14 -05:00
|
|
|
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.
|
2011-08-23 09:34:28 -05:00
|
|
|
|
2018-03-23 11:21:14 -05:00
|
|
|
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
|
2011-08-23 09:34:28 -05:00
|
|
|
*/
|
|
|
|
|
|
2021-11-26 13:09:20 -06:00
|
|
|
define( 'WPSTRAVA_PLUGIN_VERSION', '2.11.0' );
|
2020-01-31 11:26:23 -06:00
|
|
|
define( 'WPSTRAVA_PLUGIN_FILE', __FILE__ );
|
2017-05-26 10:53:24 -05:00
|
|
|
define( 'WPSTRAVA_PLUGIN_DIR', trailingslashit( dirname( __FILE__ ) ) );
|
2013-02-03 20:38:55 -06:00
|
|
|
define( 'WPSTRAVA_PLUGIN_URL', plugins_url( '/', __FILE__ ) );
|
2017-05-26 10:53:24 -05:00
|
|
|
define( 'WPSTRAVA_PLUGIN_NAME', plugin_basename( __FILE__ ) );
|
2017-12-26 14:18:13 -06:00
|
|
|
if ( ! defined( 'WPSTRAVA_DEBUG' ) ) {
|
|
|
|
|
define( 'WPSTRAVA_DEBUG', false );
|
|
|
|
|
}
|
2011-08-23 09:34:28 -05:00
|
|
|
|
2020-01-31 11:51:37 -06:00
|
|
|
require_once WPSTRAVA_PLUGIN_DIR . 'src/autoload.php';
|
2018-09-21 10:28:46 -05:00
|
|
|
|
|
|
|
|
// Load the plugin and multilingual support.
|
2019-12-27 14:40:55 -06:00
|
|
|
function wpstrava_plugin_loaded() {
|
|
|
|
|
// Load language files.
|
2017-05-26 10:53:24 -05:00
|
|
|
load_plugin_textdomain( 'wp-strava', false, WPSTRAVA_PLUGIN_DIR . 'lang/' );
|
2011-08-23 09:34:28 -05:00
|
|
|
}
|
2019-12-27 14:40:55 -06:00
|
|
|
add_action( 'plugins_loaded', 'wpstrava_plugin_loaded' );
|
2018-04-27 17:04:12 -05:00
|
|
|
|
2013-02-17 21:19:08 -06:00
|
|
|
$wpstrava = WPStrava::get_instance();
|
2019-10-04 15:50:08 -05:00
|
|
|
$wpstrava->hook();
|